Lines Matching defs:alg
321 * SPU message for a given cipher and hash alg context.
350 * SPU message for a given cipher and hash alg context.
549 * alg: The hash algorithm
556 u32 spum_digest_size(u32 alg_digest_size, enum hash_alg alg,
565 if (alg == HASH_ALG_SHA224)
567 else if (alg == HASH_ALG_SHA384)
637 if ((hash_parms->alg == HASH_ALG_AES) &&
646 flow_log(" %s. cipher alg:%u mode:%u type %u\n",
647 spu_alg_name(cipher_parms->alg, cipher_parms->mode),
648 cipher_parms->alg, cipher_parms->mode, cipher_parms->type);
653 flow_log(" auth alg:%u mode:%u type %u\n",
654 hash_parms->alg, hash_parms->mode, hash_parms->type);
690 cipher_bits |= cipher_parms->alg << CIPHER_ALG_SHIFT;
695 cipher_bits |= hash_parms->alg << HASH_ALG_SHIFT;
703 if (hash_parms->alg) {
738 if (cipher_parms->alg) {
844 flow_log(" cipher alg:%u mode:%u type %u\n", cipher_parms->alg,
865 if (cipher_parms->alg) {
884 cipher_bits |= cipher_parms->alg << CIPHER_ALG_SHIFT;
889 if (cipher_parms->alg && cipher_parms->key_len)
940 flow_log(" cipher alg: %u, cipher_type: %u\n", cipher_parms->alg,
970 if (cipher_parms->alg && cipher_parms->iv_buf && cipher_parms->iv_len)
1057 /* add the size at the end as required per alg */