Home
last modified time | relevance | path

Searched refs:sm4_ctx (Results 1 – 10 of 10) sorted by relevance

/linux-6.3-rc2/arch/arm64/crypto/
A Dsm4-neon-glue.c33 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_setkey()
69 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_encrypt()
77 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_decrypt()
85 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_encrypt()
117 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_decrypt()
148 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cfb_encrypt()
188 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cfb_decrypt()
281 .cra_ctxsize = sizeof(struct sm4_ctx),
295 .cra_ctxsize = sizeof(struct sm4_ctx),
310 .cra_ctxsize = sizeof(struct sm4_ctx),
[all …]
A Dsm4-ce-cipher-glue.c23 struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_setkey()
30 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_encrypt()
43 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_decrypt()
60 .cra_ctxsize = sizeof(struct sm4_ctx),
A Dsm4-ce-glue.c62 struct sm4_ctx key1;
63 struct sm4_ctx key2;
67 struct sm4_ctx key;
79 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_setkey()
146 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_encrypt()
160 struct sm4_ctx *ctx, bool encrypt) in sm4_cbc_crypt()
522 .cra_ctxsize = sizeof(struct sm4_ctx),
536 .cra_ctxsize = sizeof(struct sm4_ctx),
551 .cra_ctxsize = sizeof(struct sm4_ctx),
567 .cra_ctxsize = sizeof(struct sm4_ctx),
[all …]
A Dsm4-ce-ccm-glue.c33 struct sm4_ctx *ctx = crypto_aead_ctx(tfm); in ccm_setkey()
94 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_calculate_auth_mac()
216 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_encrypt()
244 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_decrypt()
279 .cra_ctxsize = sizeof(struct sm4_ctx),
A Dsm4-ce-gcm-glue.c38 struct sm4_ctx key;
/linux-6.3-rc2/crypto/
A Dsm4_generic.c34 struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_setkey()
43 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_encrypt()
52 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_decrypt()
63 .cra_ctxsize = sizeof(struct sm4_ctx),
A Dsm4.c119 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key, in sm4_expandkey()
/linux-6.3-rc2/arch/x86/crypto/
A Dsm4_aesni_avx2_glue.c32 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_skcipher_setkey()
64 .cra_ctxsize = sizeof(struct sm4_ctx),
80 .cra_ctxsize = sizeof(struct sm4_ctx),
97 .cra_ctxsize = sizeof(struct sm4_ctx),
115 .cra_ctxsize = sizeof(struct sm4_ctx),
A Dsm4_aesni_avx_glue.c36 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_skcipher_setkey()
78 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_ecb_encrypt()
87 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_ecb_decrypt()
96 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_encrypt()
130 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_cbc_decrypt()
194 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cfb_encrypt()
236 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_cfb_decrypt()
383 .cra_ctxsize = sizeof(struct sm4_ctx),
399 .cra_ctxsize = sizeof(struct sm4_ctx),
416 .cra_ctxsize = sizeof(struct sm4_ctx),
[all …]
/linux-6.3-rc2/include/crypto/
A Dsm4.h19 struct sm4_ctx { struct
37 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key, argument

Completed in 11 milliseconds