Home
last modified time | relevance | path

Searched refs:SEC_CALG_SM4 (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/drivers/crypto/hisilicon/sec2/
Dsec_crypto.h17 SEC_CALG_SM4 = 0x3, enumerator
Dsec_crypto.c797 if (c_ctx->c_alg == SEC_CALG_SM4 && in sec_skcipher_aes_sm4_setkey()
847 case SEC_CALG_SM4: in sec_skcipher_setkey()
884 GEN_SEC_SETKEY_FUNC(sm4_xts, SEC_CALG_SM4, SEC_CMODE_XTS) in GEN_SEC_SETKEY_FUNC()
885 GEN_SEC_SETKEY_FUNC(sm4_cbc, SEC_CALG_SM4, SEC_CMODE_CBC) in GEN_SEC_SETKEY_FUNC()
886 GEN_SEC_SETKEY_FUNC(sm4_ctr, SEC_CALG_SM4, SEC_CMODE_CTR) in GEN_SEC_SETKEY_FUNC()
1222 GEN_SEC_AEAD_SETKEY_FUNC(sm4_ccm, 0, SEC_CALG_SM4, in GEN_SEC_AEAD_SETKEY_FUNC()
1224 GEN_SEC_AEAD_SETKEY_FUNC(sm4_gcm, 0, SEC_CALG_SM4, in GEN_SEC_AEAD_SETKEY_FUNC()
2069 } else if (c_alg == SEC_CALG_AES || c_alg == SEC_CALG_SM4) { in sec_skcipher_param_check()
2302 if (unlikely(c_alg != SEC_CALG_AES && c_alg != SEC_CALG_SM4)) { in sec_aead_param_check()