Searched refs:sm4_ctx (Results 1 – 11 of 11) sorted by relevance
| /linux-6.15/arch/arm64/crypto/ |
| H A D | sm4-neon-glue.c | 31 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_setkey() 67 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_encrypt() 75 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_decrypt() 83 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_encrypt() 115 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_cbc_decrypt() 146 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ctr_crypt() 195 .cra_ctxsize = sizeof(struct sm4_ctx), 209 .cra_ctxsize = sizeof(struct sm4_ctx), 224 .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() 43 const struct sm4_ctx *ctx = crypto_tfm_ctx(tfm); in sm4_ce_decrypt() 60 .cra_ctxsize = sizeof(struct sm4_ctx),
|
| H A D | sm4-ce-glue.c | 57 struct sm4_ctx key1; 58 struct sm4_ctx key2; 62 struct sm4_ctx key; 74 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_setkey() 141 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_encrypt() 149 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_ecb_decrypt() 155 struct sm4_ctx *ctx, bool encrypt) in sm4_cbc_crypt() 433 .cra_ctxsize = sizeof(struct sm4_ctx), 447 .cra_ctxsize = sizeof(struct sm4_ctx), 462 .cra_ctxsize = sizeof(struct sm4_ctx), [all …]
|
| H A D | sm4-ce-ccm-glue.c | 33 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() 211 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_encrypt() 239 struct sm4_ctx *ctx = crypto_aead_ctx(aead); in ccm_decrypt() 274 .cra_ctxsize = sizeof(struct sm4_ctx),
|
| H A D | sm4-ce-gcm-glue.c | 38 struct sm4_ctx key;
|
| /linux-6.15/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-6.15/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() 271 .cra_ctxsize = sizeof(struct sm4_ctx), 287 .cra_ctxsize = sizeof(struct sm4_ctx), 304 .cra_ctxsize = sizeof(struct sm4_ctx),
|
| H A D | sm4_aesni_avx2_glue.c | 30 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm); in sm4_skcipher_setkey() 56 .cra_ctxsize = sizeof(struct sm4_ctx), 72 .cra_ctxsize = sizeof(struct sm4_ctx), 89 .cra_ctxsize = sizeof(struct sm4_ctx),
|
| /linux-6.15/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-6.15/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
|