Lines Matching defs:alg
126 * spu2_cipher_xlate() - Convert a cipher {alg/mode/type} triple to a SPU2
187 flow_log("Invalid cipher alg %d or type %d\n",
222 * spu2_hash_xlate() - Convert a hash {alg/mode/type} triple to a SPU2 hash type
302 flow_log("Invalid hash alg %d or type %d\n",
601 * @authFirst: true if alg authenticates before encrypting
769 * SPU message for a given cipher and hash alg context.
913 * alg: The hash algorithm
917 u32 spu2_digest_size(u32 alg_digest_size, enum hash_alg alg,
980 (cipher_parms->alg == CIPHER_ALG_AES) &&
990 (cipher_parms->alg == CIPHER_ALG_AES) &&
997 flow_log(" cipher alg:%u mode:%u type %u\n", cipher_parms->alg,
1004 flow_log(" auth alg:%u mode:%u type %u\n",
1005 hash_parms->alg, hash_parms->mode, hash_parms->type);
1018 /* Convert to spu2 values for cipher alg, hash alg */
1019 err = spu2_cipher_xlate(cipher_parms->alg, cipher_parms->mode,
1054 err = spu2_hash_xlate(hash_parms->alg, hash_parms->mode,
1132 flow_log(" cipher alg:%u mode:%u type %u\n", cipher_parms->alg,
1139 err = spu2_cipher_xlate(cipher_parms->alg, cipher_parms->mode,
1192 flow_log(" cipher alg: %u, cipher_type: %u\n", cipher_parms->alg,
1212 if (cipher_parms->alg && cipher_parms->iv_buf && cipher_parms->iv_len) {
1264 /* add the size at the end as required per alg */