Home
last modified time | relevance | path

Searched refs:rkey_enc (Results 1 – 7 of 7) sorted by relevance

/linux-6.1.9/arch/arm64/crypto/
Dsm4-ce-glue.c23 asmlinkage void sm4_ce_expand_key(const u8 *key, u32 *rkey_enc, u32 *rkey_dec,
47 sm4_ce_expand_key(key, ctx->rkey_enc, ctx->rkey_dec, in sm4_setkey()
86 return sm4_ecb_do_crypt(req, ctx->rkey_enc); in sm4_ecb_encrypt()
116 sm4_ce_cbc_enc(ctx->rkey_enc, dst, src, walk.iv, nblks); in sm4_cbc_encrypt()
178 sm4_ce_cfb_enc(ctx->rkey_enc, dst, src, walk.iv, nblks); in sm4_cfb_encrypt()
188 sm4_ce_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_encrypt()
220 sm4_ce_cfb_dec(ctx->rkey_enc, dst, src, walk.iv, nblks); in sm4_cfb_decrypt()
230 sm4_ce_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_decrypt()
262 sm4_ce_ctr_enc(ctx->rkey_enc, dst, src, walk.iv, nblks); in sm4_ctr_crypt()
272 sm4_ce_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_ctr_crypt()
Dsm4-neon-glue.c85 return sm4_ecb_do_crypt(req, ctx->rkey_enc); in sm4_ecb_encrypt()
113 sm4_crypt_block(ctx->rkey_enc, dst, dst); in sm4_cbc_encrypt()
205 sm4_crypt_block(ctx->rkey_enc, keystream, iv); in sm4_cfb_encrypt()
217 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_encrypt()
247 sm4_neon_cfb_dec_blk8(ctx->rkey_enc, dst, src, in sm4_cfb_decrypt()
265 sm4_neon_crypt_blk1_8(ctx->rkey_enc, keystream, in sm4_cfb_decrypt()
281 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_decrypt()
311 sm4_neon_ctr_enc_blk8(ctx->rkey_enc, dst, src, in sm4_ctr_crypt()
328 sm4_neon_crypt_blk1_8(ctx->rkey_enc, keystream, in sm4_ctr_crypt()
344 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_ctr_crypt()
Dsm4-ce-cipher-glue.c33 sm4_crypt_block(ctx->rkey_enc, out, in); in sm4_ce_encrypt()
36 sm4_ce_do_crypt(ctx->rkey_enc, out, in); in sm4_ce_encrypt()
/linux-6.1.9/arch/x86/crypto/
Dsm4_aesni_avx_glue.c80 return ecb_do_crypt(req, ctx->rkey_enc); in sm4_avx_ecb_encrypt()
110 sm4_crypt_block(ctx->rkey_enc, dst, dst); in sm4_cbc_encrypt()
208 sm4_crypt_block(ctx->rkey_enc, keystream, iv); in sm4_cfb_encrypt()
220 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_cfb_encrypt()
250 func(ctx->rkey_enc, dst, src, walk.iv); in sm4_avx_cfb_decrypt()
267 sm4_aesni_avx_crypt8(ctx->rkey_enc, keystream, in sm4_avx_cfb_decrypt()
283 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_avx_cfb_decrypt()
319 func(ctx->rkey_enc, dst, src, walk.iv); in sm4_avx_ctr_crypt()
335 sm4_aesni_avx_crypt8(ctx->rkey_enc, keystream, in sm4_avx_ctr_crypt()
354 sm4_crypt_block(ctx->rkey_enc, keystream, keystream); in sm4_avx_ctr_crypt()
/linux-6.1.9/crypto/
Dsm4.c140 ctx->rkey_enc[i + 0] = rk[0]; in sm4_expandkey()
141 ctx->rkey_enc[i + 1] = rk[1]; in sm4_expandkey()
142 ctx->rkey_enc[i + 2] = rk[2]; in sm4_expandkey()
143 ctx->rkey_enc[i + 3] = rk[3]; in sm4_expandkey()
Dsm4_generic.c45 sm4_crypt_block(ctx->rkey_enc, out, in); in sm4_encrypt()
/linux-6.1.9/include/crypto/
Dsm4.h20 u32 rkey_enc[SM4_RKEY_WORDS]; member