Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c796 if (c_ctx->c_alg == SEC_CALG_SM4 && in sec_skcipher_aes_sm4_setkey()
846 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_ofb, SEC_CALG_SM4, SEC_CMODE_OFB) in GEN_SEC_SETKEY_FUNC()
887 GEN_SEC_SETKEY_FUNC(sm4_cfb, SEC_CALG_SM4, SEC_CMODE_CFB) in GEN_SEC_SETKEY_FUNC()
888 GEN_SEC_SETKEY_FUNC(sm4_ctr, SEC_CALG_SM4, SEC_CMODE_CTR) in GEN_SEC_SETKEY_FUNC()
1221 GEN_SEC_AEAD_SETKEY_FUNC(sm4_ccm, 0, SEC_CALG_SM4, in GEN_SEC_AEAD_SETKEY_FUNC()
1223 GEN_SEC_AEAD_SETKEY_FUNC(sm4_gcm, 0, SEC_CALG_SM4, in GEN_SEC_AEAD_SETKEY_FUNC()
2070 } else if (c_alg == SEC_CALG_AES || c_alg == SEC_CALG_SM4) { in sec_skcipher_param_check()
[all …]
Dsec_crypto.h17 SEC_CALG_SM4 = 0x3, enumerator