Lines Matching refs:rkey_enc
21 asmlinkage void sm4_ce_cbcmac_update(const u32 *rkey_enc, u8 *mac,
23 asmlinkage void sm4_ce_ccm_enc(const u32 *rkey_enc, u8 *dst, const u8 *src,
25 asmlinkage void sm4_ce_ccm_dec(const u32 *rkey_enc, u8 *dst, const u8 *src,
27 asmlinkage void sm4_ce_ccm_final(const u32 *rkey_enc, u8 *iv, u8 *mac);
39 sm4_ce_expand_key(key, ctx->rkey_enc, ctx->rkey_dec, in ccm_setkey()
109 sm4_ce_crypt_block(ctx->rkey_enc, mac, mac); in ccm_calculate_auth_mac()
132 sm4_ce_crypt_block(ctx->rkey_enc, in ccm_calculate_auth_mac()
138 sm4_ce_cbcmac_update(ctx->rkey_enc, in ccm_calculate_auth_mac()
163 u32 *rkey_enc, u8 mac[], in ccm_crypt() argument
164 void (*sm4_ce_ccm_crypt)(const u32 *rkey_enc, u8 *dst, in ccm_crypt() argument
183 sm4_ce_ccm_crypt(rkey_enc, walk->dst.virt.addr, in ccm_crypt()
195 sm4_ce_ccm_crypt(rkey_enc, walk->dst.virt.addr, in ccm_crypt()
199 sm4_ce_ccm_final(rkey_enc, ctr0, mac); in ccm_crypt()
205 sm4_ce_ccm_final(rkey_enc, ctr0, mac); in ccm_crypt()
229 err = ccm_crypt(req, &walk, ctx->rkey_enc, mac, sm4_ce_ccm_enc); in ccm_encrypt()
258 err = ccm_crypt(req, &walk, ctx->rkey_enc, mac, sm4_ce_ccm_dec); in ccm_decrypt()