Lines Matching refs:OCS_SM4
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()
1127 return kmb_ocs_sk_common(req, OCS_SM4, OCS_DECRYPT, OCS_MODE_CTS); in kmb_ocs_sm4_cts_decrypt()
1133 return kmb_ocs_aead_common(req, OCS_SM4, OCS_ENCRYPT, OCS_MODE_GCM); in kmb_ocs_sm4_gcm_encrypt()
1138 return kmb_ocs_aead_common(req, OCS_SM4, OCS_DECRYPT, OCS_MODE_GCM); in kmb_ocs_sm4_gcm_decrypt()
1143 return kmb_ocs_aead_common(req, OCS_SM4, OCS_ENCRYPT, OCS_MODE_CCM); in kmb_ocs_sm4_ccm_encrypt()
1148 return kmb_ocs_aead_common(req, OCS_SM4, OCS_DECRYPT, OCS_MODE_CCM); in kmb_ocs_sm4_ccm_decrypt()