Lines Matching refs: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",
602 * @auth_first: true if alg authenticates before encrypting
771 * SPU message for a given cipher and hash alg context.
918 * @alg: The hash algorithm
922 u32 spu2_digest_size(u32 alg_digest_size, enum hash_alg alg,
983 (cipher_parms->alg == CIPHER_ALG_AES) &&
993 (cipher_parms->alg == CIPHER_ALG_AES) &&
1000 flow_log(" cipher alg:%u mode:%u type %u\n", cipher_parms->alg,
1007 flow_log(" auth alg:%u mode:%u type %u\n",
1008 hash_parms->alg, hash_parms->mode, hash_parms->type);
1021 /* Convert to spu2 values for cipher alg, hash alg */
1022 err = spu2_cipher_xlate(cipher_parms->alg, cipher_parms->mode,
1057 err = spu2_hash_xlate(hash_parms->alg, hash_parms->mode,
1135 flow_log(" cipher alg:%u mode:%u type %u\n", cipher_parms->alg,
1142 err = spu2_cipher_xlate(cipher_parms->alg, cipher_parms->mode,
1195 flow_log(" cipher alg: %u, cipher_type: %u\n", cipher_parms->alg,
1215 if (cipher_parms->alg && cipher_parms->iv_buf && cipher_parms->iv_len) {
1267 /* add the size at the end as required per alg */