Searched refs:OCS_SM4 (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.1/drivers/crypto/keembay/ |
D | keembay-ocs-aes-core.c | 160 if (cipher == OCS_SM4 && key_len == OCS_AES_KEYSIZE_128) in check_key() 1078 return kmb_ocs_sk_set_key(tfm, in_key, key_len, OCS_SM4); in kmb_ocs_sm4_set_key() 1084 return kmb_ocs_aead_set_key(tfm, in_key, key_len, OCS_SM4); in kmb_ocs_sm4_aead_set_key() 1090 return kmb_ocs_sk_common(req, OCS_SM4, OCS_ENCRYPT, OCS_MODE_ECB); in kmb_ocs_sm4_ecb_encrypt() 1095 return kmb_ocs_sk_common(req, OCS_SM4, OCS_DECRYPT, OCS_MODE_ECB); in kmb_ocs_sm4_ecb_decrypt() 1101 return kmb_ocs_sk_common(req, OCS_SM4, OCS_ENCRYPT, OCS_MODE_CBC); in kmb_ocs_sm4_cbc_encrypt() 1106 return kmb_ocs_sk_common(req, OCS_SM4, OCS_DECRYPT, OCS_MODE_CBC); in kmb_ocs_sm4_cbc_decrypt() 1111 return kmb_ocs_sk_common(req, OCS_SM4, OCS_ENCRYPT, OCS_MODE_CTR); in kmb_ocs_sm4_ctr_encrypt() 1116 return kmb_ocs_sk_common(req, OCS_SM4, OCS_DECRYPT, OCS_MODE_CTR); in kmb_ocs_sm4_ctr_decrypt() 1122 return kmb_ocs_sk_common(req, OCS_SM4, OCS_ENCRYPT, OCS_MODE_CTS); in kmb_ocs_sm4_cts_encrypt() [all …]
|
D | ocs-aes.h | 15 OCS_SM4 = 1, enumerator
|
D | ocs-aes.c | 492 if (cipher == OCS_SM4 && key_size != 16) { in ocs_aes_set_key() 609 if (!(cipher == OCS_AES || cipher == OCS_SM4)) in ocs_aes_validate_inputs()
|