Home
last modified time | relevance | path

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

/linux/arch/arm64/crypto/
H A Dsm4-neon-glue.c31 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_setkey()
64 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_encrypt()
72 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_decrypt()
80 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_encrypt()
112 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_decrypt()
140 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ctr_crypt()
186 .cra_ctxsize = sizeof(struct sm4_ctx),
200 .cra_ctxsize = sizeof(struct sm4_ctx),
215 .cra_ctxsize = sizeof(struct sm4_ctx),
H 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()
42 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_decrypt()
58 .cra_ctxsize = sizeof(struct sm4_ctx),
H A Dsm4-ce-glue.c56 struct sm4_ctx key1;
57 struct sm4_ctx key2;
61 struct sm4_ctx key;
72 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_setkey()
136 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_encrypt()
144 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_decrypt()
150 struct sm4_ctx *ctx, bool encrypt) in sm4_cbc_crypt()
186 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_encrypt()
194 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_decrypt()
202 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_cts_crypt()
[all …]
H A Dsm4-ce-ccm-glue.c33 struct sm4_ctx *ctx = crypto_aead_ctx(tfm); in ccm_setkey()
93 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_calculate_auth_mac()
194 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_encrypt()
222 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_decrypt()
257 .cra_ctxsize = sizeof(struct sm4_ctx),
H A Dsm4-ce-gcm-glue.c38 struct sm4_ctx key;
/linux/arch/riscv/crypto/
H A Dsm4-riscv64-glue.c30 struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in riscv64_sm4_setkey()
45 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in riscv64_sm4_encrypt()
58 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in riscv64_sm4_decrypt()
72 .cra_ctxsize = sizeof(struct sm4_ctx),
/linux/include/crypto/
H A Dsm4.h19 struct sm4_ctx { struct
37 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key, argument
/linux/crypto/
H A Dsm4.c119 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key, in sm4_expandkey()