Lines Matching defs:alg
319 * SPU message for a given cipher and hash alg context.
348 * SPU message for a given cipher and hash alg context.
547 * @alg: The hash algorithm
554 u32 spum_digest_size(u32 alg_digest_size, enum hash_alg alg,
563 if (alg == HASH_ALG_SHA224)
565 else if (alg == HASH_ALG_SHA384)
635 if ((hash_parms->alg == HASH_ALG_AES) &&
644 flow_log(" %s. cipher alg:%u mode:%u type %u\n",
645 spu_alg_name(cipher_parms->alg, cipher_parms->mode),
646 cipher_parms->alg, cipher_parms->mode, cipher_parms->type);
651 flow_log(" auth alg:%u mode:%u type %u\n",
652 hash_parms->alg, hash_parms->mode, hash_parms->type);
688 cipher_bits |= cipher_parms->alg << CIPHER_ALG_SHIFT;
693 cipher_bits |= hash_parms->alg << HASH_ALG_SHIFT;
701 if (hash_parms->alg) {
736 if (cipher_parms->alg) {
842 flow_log(" cipher alg:%u mode:%u type %u\n", cipher_parms->alg,
863 if (cipher_parms->alg) {
882 cipher_bits |= cipher_parms->alg << CIPHER_ALG_SHIFT;
887 if (cipher_parms->alg && cipher_parms->key_len)
938 flow_log(" cipher alg: %u, cipher_type: %u\n", cipher_parms->alg,
968 if (cipher_parms->alg && cipher_parms->iv_buf && cipher_parms->iv_len)
1055 /* add the size at the end as required per alg */