Home
last modified time | relevance | path

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

/linux/arch/arm64/crypto/
H A Dsm4-ce-ccm-glue.c21 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
[all …]
H A Dsm4-ce-glue.c27 asmlinkage void sm4_ce_expand_key(const u8 *key, u32 *rkey_enc, u32 *rkey_dec,
48 asmlinkage void sm4_ce_mac_update(const u32 *rkey_enc, u8 *digest,
80 sm4_ce_expand_key(key, ctx->rkey_enc, ctx->rkey_dec, in sm4_setkey()
100 sm4_ce_expand_key(key, ctx->key1.rkey_enc, in sm4_xts_setkey()
102 sm4_ce_expand_key(&key[SM4_KEY_SIZE], ctx->key2.rkey_enc, in sm4_xts_setkey()
143 return sm4_ecb_do_crypt(req, ctx->rkey_enc); in sm4_ecb_encrypt()
175 sm4_ce_cbc_enc(ctx->rkey_enc, dst, src, in sm4_cbc_crypt()
257 sm4_ce_cbc_cts_enc(ctx->rkey_enc, walk.dst.virt.addr, in sm4_cbc_cts_crypt()
297 sm4_ce_ctr_enc(ctx->rkey_enc, dst, src, walk.iv, nblks); in sm4_ctr_crypt()
307 sm4_ce_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_ctr_crypt()
[all …]
H A Dsm4-ce-gcm-glue.c22 asmlinkage void sm4_ce_pmull_ghash_setup(const u32 *rkey_enc, u8 *ghash_table);
25 asmlinkage void sm4_ce_pmull_gcm_enc(const u32 *rkey_enc, u8 *dst,
29 asmlinkage void sm4_ce_pmull_gcm_dec(const u32 *rkey_enc, u8 *dst,
53 sm4_ce_expand_key(key, ctx->key.rkey_enc, ctx->key.rkey_dec, in gcm_setkey()
55 sm4_ce_pmull_ghash_setup(ctx->key.rkey_enc, ctx->ghash_table); in gcm_setkey()
139 void (*sm4_ce_pmull_gcm_crypt)(const u32 *rkey_enc, in gcm_crypt() argument
168 sm4_ce_pmull_gcm_crypt(ctx->key.rkey_enc, dst, src, iv, in gcm_crypt()
178 sm4_ce_pmull_gcm_crypt(ctx->key.rkey_enc, dst, src, iv, in gcm_crypt()
189 sm4_ce_pmull_gcm_crypt(ctx->key.rkey_enc, NULL, NULL, iv, in gcm_crypt()
H A Dsm4-neon-glue.c25 asmlinkage void sm4_neon_ctr_crypt(const u32 *rkey_enc, u8 *dst, const u8 *src,
69 return sm4_ecb_do_crypt(req, ctx->rkey_enc); in sm4_ecb_encrypt()
97 sm4_crypt_block(ctx->rkey_enc, dst, dst); in sm4_cbc_encrypt()
162 sm4_neon_ctr_crypt(ctx->rkey_enc, dst, src, in sm4_ctr_crypt()
176 sm4_crypt_block(ctx->rkey_enc, keystream, walk.iv); in sm4_ctr_crypt()
H A Dsm4-ce.h7 void sm4_ce_expand_key(const u8 *key, u32 *rkey_enc, u32 *rkey_dec,
12 void sm4_ce_cbc_enc(const u32 *rkey_enc, u8 *dst, const u8 *src,
H A 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/arch/riscv/crypto/
H A Dsm4-riscv64-glue.c21 u32 rkey_enc[SM4_RKEY_WORDS],
36 sm4_expandkey_zvksed_zvkb(key, ctx->rkey_enc, ctx->rkey_dec); in riscv64_sm4_setkey()
49 sm4_crypt_zvksed_zvkb(ctx->rkey_enc, src, dst); in riscv64_sm4_encrypt()
52 sm4_crypt_block(ctx->rkey_enc, dst, src); in riscv64_sm4_encrypt()
/linux/crypto/
H A 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()
H A Dsm4_generic.c45 sm4_crypt_block(ctx->rkey_enc, out, in); in sm4_encrypt()
/linux/arch/x86/crypto/
H A Dsm4_aesni_avx_glue.c78 return ecb_do_crypt(req, ctx->rkey_enc); in sm4_avx_ecb_encrypt()
108 sm4_crypt_block(ctx->rkey_enc, dst, dst); in sm4_cbc_encrypt()
207 func(ctx->rkey_enc, dst, src, walk.iv); in sm4_avx_ctr_crypt()
223 sm4_aesni_avx_crypt8(ctx->rkey_enc, keystream, in sm4_avx_ctr_crypt()
242 sm4_crypt_block(ctx->rkey_enc, keystream, keystream); in sm4_avx_ctr_crypt()
/linux/include/crypto/
H A Dsm4.h20 u32 rkey_enc[SM4_RKEY_WORDS]; member