| /linux-6.15/include/linux/ |
| H A D | crypto.h | 162 struct crypto_tfm; 179 struct crypto_tfm *tfm; 242 int (*cia_setkey)(struct crypto_tfm *tfm, const u8 *key, 349 int (*cra_init)(struct crypto_tfm *tfm); 350 void (*cra_exit)(struct crypto_tfm *tfm); 406 struct crypto_tfm { struct 413 void (*exit)(struct crypto_tfm *tfm); argument 425 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm); 427 static inline void crypto_free_tfm(struct crypto_tfm *tfm) in crypto_free_tfm() 455 static inline u32 crypto_tfm_get_flags(struct crypto_tfm *tfm) in crypto_tfm_get_flags() [all …]
|
| /linux-6.15/crypto/ |
| H A D | des_generic.c | 19 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey() 37 static void crypto_des_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_des_encrypt() 44 static void crypto_des_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_des_decrypt() 51 static int des3_ede_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_ede_setkey() 69 static void crypto_des3_ede_encrypt(struct crypto_tfm *tfm, u8 *dst, in crypto_des3_ede_encrypt() 77 static void crypto_des3_ede_decrypt(struct crypto_tfm *tfm, u8 *dst, in crypto_des3_ede_decrypt()
|
| H A D | internal.h | 39 int (*init_tfm)(struct crypto_tfm *tfm); 123 struct crypto_tfm *__crypto_alloc_tfmgfp(struct crypto_alg *alg, u32 type, 125 struct crypto_tfm *__crypto_alloc_tfm(struct crypto_alg *alg, u32 type, 130 struct crypto_tfm *otfm); 213 static inline struct crypto_tfm *crypto_tfm_get(struct crypto_tfm *tfm) in crypto_tfm_get()
|
| H A D | tea.c | 42 static int tea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in tea_setkey() 56 static void tea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_encrypt() 82 static void tea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in tea_decrypt() 110 static int xtea_setkey(struct crypto_tfm *tfm, const u8 *in_key, in xtea_setkey() 124 static void xtea_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_encrypt() 143 static void xtea_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xtea_decrypt() 164 static void xeta_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_encrypt() 183 static void xeta_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in xeta_decrypt()
|
| H A D | api.c | 362 static void crypto_exit_ops(struct crypto_tfm *tfm) in crypto_exit_ops() 402 struct crypto_tfm *tfm; in __crypto_alloc_tfmgfp() 462 struct crypto_tfm *tfm; in crypto_alloc_base() 498 struct crypto_tfm *tfm; in crypto_alloc_tfmmem() 510 tfm = (struct crypto_tfm *)(mem + tfmsize); in crypto_alloc_tfmmem() 522 struct crypto_tfm *tfm; in crypto_create_tfm_node() 530 tfm = (struct crypto_tfm *)(mem + frontend->tfmsize); in crypto_create_tfm_node() 554 struct crypto_tfm *otfm) in crypto_clone_tfm() 557 struct crypto_tfm *tfm; in crypto_clone_tfm() 570 tfm = (struct crypto_tfm *)(mem + frontend->tfmsize); in crypto_clone_tfm() [all …]
|
| H A D | sm4_generic.c | 31 static int sm4_setkey(struct crypto_tfm *tfm, const u8 *in_key, in sm4_setkey() 41 static void sm4_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_encrypt() 50 static void sm4_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_decrypt()
|
| H A D | aes_ti.c | 12 static int aesti_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aesti_set_key() 20 static void aesti_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aesti_encrypt() 36 static void aesti_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aesti_decrypt()
|
| H A D | cipher.c | 63 void (*fn)(struct crypto_tfm *, u8 *, const u8 *) = in cipher_crypt_one() 95 struct crypto_tfm *tfm = crypto_cipher_tfm(cipher); in crypto_clone_cipher() 98 struct crypto_tfm *ntfm; in crypto_clone_cipher()
|
| /linux-6.15/include/crypto/ |
| H A D | algapi.h | 153 struct crypto_tfm *crypto_spawn_tfm(struct crypto_spawn *spawn, u32 type, 176 static inline void *crypto_tfm_ctx(struct crypto_tfm *tfm) in crypto_tfm_ctx() 181 static inline void *crypto_tfm_ctx_align(struct crypto_tfm *tfm, in crypto_tfm_ctx_align() 200 static inline void *crypto_tfm_ctx_dma(struct crypto_tfm *tfm) in crypto_tfm_ctx_dma() 206 struct crypto_tfm *tfm) in crypto_tfm_alg_instance() 264 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type() 274 static inline bool crypto_tfm_req_chain(struct crypto_tfm *tfm) in crypto_tfm_req_chain()
|
| H A D | twofish.h | 11 struct crypto_tfm; 23 int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len);
|
| H A D | sig.h | 19 struct crypto_tfm base; 96 static inline struct crypto_tfm *crypto_sig_tfm(struct crypto_sig *tfm) in crypto_sig_tfm() 101 static inline struct crypto_sig *__crypto_sig_tfm(struct crypto_tfm *tfm) in __crypto_sig_tfm()
|
| H A D | skcipher.h | 56 struct crypto_tfm base; 64 struct crypto_tfm base; 260 struct crypto_tfm *tfm) in __crypto_skcipher_cast() 303 static inline struct crypto_tfm *crypto_skcipher_tfm( in crypto_skcipher_tfm() 309 static inline struct crypto_tfm *crypto_lskcipher_tfm( in crypto_lskcipher_tfm() 315 static inline struct crypto_tfm *crypto_sync_skcipher_tfm( in crypto_sync_skcipher_tfm()
|
| H A D | kpp.h | 51 struct crypto_tfm base; 114 static inline struct crypto_tfm *crypto_kpp_tfm(struct crypto_kpp *tfm) in crypto_kpp_tfm() 124 static inline struct crypto_kpp *__crypto_kpp_tfm(struct crypto_tfm *tfm) in __crypto_kpp_tfm()
|
| H A D | akcipher.h | 49 struct crypto_tfm base; 122 static inline struct crypto_tfm *crypto_akcipher_tfm( in crypto_akcipher_tfm() 134 struct crypto_tfm *tfm) in __crypto_akcipher_tfm()
|
| /linux-6.15/arch/powerpc/crypto/ |
| H A D | aes.c | 28 static int p8_aes_init(struct crypto_tfm *tfm) in p8_aes_init() 51 static void p8_aes_exit(struct crypto_tfm *tfm) in p8_aes_exit() 61 static int p8_aes_setkey(struct crypto_tfm *tfm, const u8 *key, in p8_aes_setkey() 81 static void p8_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_encrypt() 98 static void p8_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in p8_aes_decrypt()
|
| /linux-6.15/drivers/crypto/inside-secure/ |
| H A D | safexcel_cipher.c | 374 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aes_setkey() 405 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_setkey() 1358 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aesctr_setkey() 2507 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_gcm_setkey() 2609 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_ccm_setkey() 2826 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in safexcel_aead_chachapoly_crypt() 3229 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setkey() 3240 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_fallback_setauthsize() 3251 struct crypto_tfm *tfm = crypto_aead_tfm(aead); in safexcel_aead_fallback_crypt() 3410 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_rfc4106_gcm_setkey() [all …]
|
| /linux-6.15/arch/arm64/crypto/ |
| H A D | sm4-ce-cipher-glue.c | 20 static int sm4_ce_setkey(struct crypto_tfm *tfm, const u8 *key, in sm4_ce_setkey() 28 static void sm4_ce_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_ce_encrypt() 41 static void sm4_ce_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in sm4_ce_decrypt()
|
| /linux-6.15/include/crypto/internal/ |
| H A D | scompress.h | 18 struct crypto_tfm base; 53 static inline struct crypto_scomp *__crypto_scomp_tfm(struct crypto_tfm *tfm) in __crypto_scomp_tfm() 58 static inline struct crypto_tfm *crypto_scomp_tfm(struct crypto_scomp *tfm) in crypto_scomp_tfm()
|
| H A D | cipher.h | 17 struct crypto_tfm base; 37 static inline struct crypto_cipher *__crypto_cipher_cast(struct crypto_tfm *tfm) in __crypto_cipher_cast() 66 static inline struct crypto_tfm *crypto_cipher_tfm(struct crypto_cipher *tfm) in crypto_cipher_tfm()
|
| /linux-6.15/drivers/crypto/allwinner/sun4i-ss/ |
| H A D | sun4i-ss.h | 199 int sun4i_hash_crainit(struct crypto_tfm *tfm); 200 void sun4i_hash_craexit(struct crypto_tfm *tfm); 226 int sun4i_ss_cipher_init(struct crypto_tfm *tfm); 227 void sun4i_ss_cipher_exit(struct crypto_tfm *tfm);
|
| /linux-6.15/arch/riscv/crypto/ |
| H A D | sm4-riscv64-glue.c | 27 static int riscv64_sm4_setkey(struct crypto_tfm *tfm, const u8 *key, in riscv64_sm4_setkey() 43 static void riscv64_sm4_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in riscv64_sm4_encrypt() 56 static void riscv64_sm4_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in riscv64_sm4_decrypt()
|
| /linux-6.15/drivers/crypto/allwinner/sun8i-ss/ |
| H A D | sun8i-ss.h | 292 int sun8i_ss_cipher_init(struct crypto_tfm *tfm); 293 void sun8i_ss_cipher_exit(struct crypto_tfm *tfm); 304 int sun8i_ss_prng_init(struct crypto_tfm *tfm); 305 void sun8i_ss_prng_exit(struct crypto_tfm *tfm);
|
| /linux-6.15/drivers/crypto/allwinner/sun8i-ce/ |
| H A D | sun8i-ce.h | 365 int sun8i_ce_cipher_init(struct crypto_tfm *tfm); 366 void sun8i_ce_cipher_exit(struct crypto_tfm *tfm); 389 void sun8i_ce_prng_exit(struct crypto_tfm *tfm); 390 int sun8i_ce_prng_init(struct crypto_tfm *tfm);
|
| /linux-6.15/arch/x86/crypto/ |
| H A D | twofish_glue.c | 54 static void twofish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in twofish_encrypt() 59 static void twofish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in twofish_decrypt()
|
| /linux-6.15/arch/arm/crypto/ |
| H A D | aes-cipher-glue.c | 17 static void aes_arm_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_arm_encrypt() 25 static void aes_arm_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in aes_arm_decrypt()
|