Searched refs:SEC_CALG_SM4 (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/crypto/hisilicon/sec2/ |
H A D | sec_crypto.c | 798 if (c_ctx->c_alg == SEC_CALG_SM4 && in sec_skcipher_aes_sm4_setkey() 848 case SEC_CALG_SM4: in sec_skcipher_setkey() 886 GEN_SEC_SETKEY_FUNC(sm4_xts, SEC_CALG_SM4, SEC_CMODE_XTS) in GEN_SEC_SETKEY_FUNC() 887 GEN_SEC_SETKEY_FUNC(sm4_cbc, SEC_CALG_SM4, SEC_CMODE_CBC) in GEN_SEC_SETKEY_FUNC() 888 GEN_SEC_SETKEY_FUNC(sm4_ofb, SEC_CALG_SM4, SEC_CMODE_OFB) in GEN_SEC_SETKEY_FUNC() 889 GEN_SEC_SETKEY_FUNC(sm4_cfb, SEC_CALG_SM4, SEC_CMODE_CFB) in GEN_SEC_SETKEY_FUNC() 890 GEN_SEC_SETKEY_FUNC(sm4_ctr, SEC_CALG_SM4, SEC_CMODE_CTR) in GEN_SEC_SETKEY_FUNC() 1223 GEN_SEC_AEAD_SETKEY_FUNC(sm4_ccm, 0, SEC_CALG_SM4, in GEN_SEC_AEAD_SETKEY_FUNC() 1225 GEN_SEC_AEAD_SETKEY_FUNC(sm4_gcm, 0, SEC_CALG_SM4, in GEN_SEC_AEAD_SETKEY_FUNC() 2072 } else if (c_alg == SEC_CALG_AES || c_alg == SEC_CALG_SM4) { in sec_skcipher_param_check() [all …]
|
H A D | sec_crypto.h | 17 SEC_CALG_SM4 = 0x3, enumerator
|