Lines Matching refs:c_alg
753 if (c_ctx->c_alg == SEC_CALG_SM4 && in sec_skcipher_aes_sm4_setkey()
779 const u32 keylen, const enum sec_calg c_alg, in sec_skcipher_setkey() argument
795 c_ctx->c_alg = c_alg; in sec_skcipher_setkey()
798 switch (c_alg) { in sec_skcipher_setkey()
826 #define GEN_SEC_SETKEY_FUNC(name, c_alg, c_mode) \ argument
830 return sec_skcipher_setkey(tfm, key, keylen, c_alg, c_mode); \
1099 const enum sec_calg c_alg, in sec_aead_setkey() argument
1111 ctx->c_ctx.c_alg = c_alg; in sec_aead_setkey()
1249 sec_sqe->type2.c_alg = c_ctx->c_alg; in sec_skcipher_bd_fill()
1297 sec_sqe3->c_mode_alg = ((u8)c_ctx->c_alg << SEC_CALG_OFFSET_V3) | in sec_skcipher_bd_fill_v3()
2011 u8 c_alg = ctx->c_ctx.c_alg; in sec_skcipher_param_check() local
2025 if (c_alg == SEC_CALG_3DES) { in sec_skcipher_param_check()
2031 } else if (c_alg == SEC_CALG_AES || c_alg == SEC_CALG_SM4) { in sec_skcipher_param_check()
2260 u8 c_alg = ctx->c_ctx.c_alg; in sec_aead_param_check() local
2276 if (unlikely(c_alg != SEC_CALG_AES && c_alg != SEC_CALG_SM4)) { in sec_aead_param_check()