Searched refs:sm4_ctx (Results 1 – 11 of 11) sorted by relevance
| /linux/arch/arm64/crypto/ |
| H A D | sm4-neon-glue.c | 31 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 D | sm4-ce-cipher-glue.c | 23 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 D | sm4-ce-glue.c | 56 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 D | sm4-ce-ccm-glue.c | 33 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 D | sm4-ce-gcm-glue.c | 38 struct sm4_ctx key;
|
| /linux/crypto/ |
| H A D | sm4_generic.c | 34 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),
|
| H A D | sm4.c | 119 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key, in sm4_expandkey()
|
| /linux/arch/x86/crypto/ |
| H A D | sm4_aesni_avx_glue.c | 34 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_skcipher_setkey() 76 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_ecb_encrypt() 85 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_ecb_decrypt() 94 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_encrypt() 128 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_cbc_decrypt() 193 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_avx_ctr_crypt() 270 .cra_ctxsize = sizeof(struct sm4_ctx), 285 .cra_ctxsize = sizeof(struct sm4_ctx), 301 .cra_ctxsize = sizeof(struct sm4_ctx),
|
| H A D | sm4_aesni_avx2_glue.c | 29 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_skcipher_setkey() 54 .cra_ctxsize = sizeof(struct sm4_ctx), 69 .cra_ctxsize = sizeof(struct sm4_ctx), 85 .cra_ctxsize = sizeof(struct sm4_ctx),
|
| /linux/arch/riscv/crypto/ |
| H A D | sm4-riscv64-glue.c | 30 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 D | sm4.h | 19 struct sm4_ctx { struct 37 int sm4_expandkey(struct sm4_ctx *ctx, const u8 *in_key, argument
|