Lines Matching refs:c_alg
796 if (c_ctx->c_alg == SEC_CALG_SM4 && in sec_skcipher_aes_sm4_setkey()
822 const u32 keylen, const enum sec_calg c_alg, in sec_skcipher_setkey() argument
838 c_ctx->c_alg = c_alg; in sec_skcipher_setkey()
841 switch (c_alg) { in sec_skcipher_setkey()
869 #define GEN_SEC_SETKEY_FUNC(name, c_alg, c_mode) \ argument
873 return sec_skcipher_setkey(tfm, key, keylen, c_alg, c_mode); \
1142 const enum sec_calg c_alg, in sec_aead_setkey() argument
1154 ctx->c_ctx.c_alg = c_alg; in sec_aead_setkey()
1292 sec_sqe->type2.c_alg = c_ctx->c_alg; in sec_skcipher_bd_fill()
1340 sec_sqe3->c_mode_alg = ((u8)c_ctx->c_alg << SEC_CALG_OFFSET_V3) | in sec_skcipher_bd_fill_v3()
2050 u8 c_alg = ctx->c_ctx.c_alg; in sec_skcipher_param_check() local
2064 if (c_alg == SEC_CALG_3DES) { in sec_skcipher_param_check()
2070 } else if (c_alg == SEC_CALG_AES || c_alg == SEC_CALG_SM4) { in sec_skcipher_param_check()
2312 u8 c_alg = ctx->c_ctx.c_alg; in sec_aead_param_check() local
2328 if (unlikely(c_alg != SEC_CALG_AES && c_alg != SEC_CALG_SM4)) { in sec_aead_param_check()