Home
last modified time | relevance | path

Searched defs:tfm (Results 1 – 25 of 139) sorted by relevance

123456

/linux/drivers/crypto/inside-secure/
H A Dsafexcel_cipher.c374 struct crypto_tfm *tfm = crypto_skcipher_tfm(ctfm); in safexcel_skcipher_aes_setkey() local
405 struct crypto_tfm *tfm = crypto_aead_tfm(ctfm); in safexcel_aead_setkey() local
1004 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in safexcel_aead_handle_result() local
1075 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in safexcel_aead_send() local
1094 static int safexcel_cipher_exit_inv(struct crypto_tfm *tfm, in safexcel_cipher_exit_inv()
1127 static int safexcel_skcipher_exit_inv(struct crypto_tfm *tfm) in safexcel_skcipher_exit_inv()
1142 static int safexcel_aead_exit_inv(struct crypto_tfm *tfm) in safexcel_aead_exit_inv()
1206 static int safexcel_skcipher_cra_init(struct crypto_tfm *tfm) in safexcel_skcipher_cra_init()
1225 static int safexcel_cipher_cra_exit(struct crypto_tfm *tfm) in safexcel_cipher_cra_exit()
1239 static void safexcel_skcipher_cra_exit(struct crypto_tfm *tfm) in safexcel_skcipher_cra_exit()
[all …]
/linux/include/crypto/
H A Daead.h162 static inline struct crypto_aead *__crypto_aead_cast(struct crypto_tfm *tfm) in __crypto_aead_cast()
183 static inline struct crypto_tfm *crypto_aead_tfm(struct crypto_aead *tfm) in crypto_aead_tfm()
194 static inline void crypto_free_aead(struct crypto_aead *tfm) in crypto_free_aead()
211 static inline const char *crypto_aead_driver_name(struct crypto_aead *tfm) in crypto_aead_driver_name()
216 static inline struct aead_alg *crypto_aead_alg(struct crypto_aead *tfm) in crypto_aead_alg()
236 static inline unsigned int crypto_aead_ivsize(struct crypto_aead *tfm) in crypto_aead_ivsize()
253 static inline unsigned int crypto_aead_authsize(struct crypto_aead *tfm) in crypto_aead_authsize()
278 static inline unsigned int crypto_aead_blocksize(struct crypto_aead *tfm) in crypto_aead_blocksize()
283 static inline unsigned int crypto_aead_alignmask(struct crypto_aead *tfm) in crypto_aead_alignmask()
288 static inline u32 crypto_aead_get_flags(struct crypto_aead *tfm) in crypto_aead_get_flags()
[all …]
H A Dkpp.h114 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()
129 static inline struct kpp_alg *crypto_kpp_alg(struct crypto_kpp *tfm) in crypto_kpp_alg()
134 static inline unsigned int crypto_kpp_reqsize(struct crypto_kpp *tfm) in crypto_kpp_reqsize()
140 struct crypto_kpp *tfm) in kpp_request_set_tfm()
150 static inline u32 crypto_kpp_get_flags(struct crypto_kpp *tfm) in crypto_kpp_get_flags()
155 static inline void crypto_kpp_set_flags(struct crypto_kpp *tfm, u32 flags) in crypto_kpp_set_flags()
167 static inline void crypto_free_kpp(struct crypto_kpp *tfm) in crypto_free_kpp()
180 static inline struct kpp_request *kpp_request_alloc(struct crypto_kpp *tfm, in kpp_request_alloc()
290 static inline int crypto_kpp_set_secret(struct crypto_kpp *tfm, in crypto_kpp_set_secret()
[all …]
/linux/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c17 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_opti_poll() local
150 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll_fallback() local
178 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cipher_poll() local
399 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_encrypt() local
410 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_aes_decrypt() local
422 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_encrypt() local
433 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_aes_decrypt() local
445 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_encrypt() local
456 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_cbc_des_decrypt() local
468 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sun4i_ss_ecb_des_encrypt() local
[all …]
/linux/crypto/
H A Dahash.c34 static inline bool crypto_ahash_block_only(struct crypto_ahash *tfm) in crypto_ahash_block_only()
40 static inline bool crypto_ahash_final_nonzero(struct crypto_ahash *tfm) in crypto_ahash_final_nonzero()
46 static inline bool crypto_ahash_need_fallback(struct crypto_ahash *tfm) in crypto_ahash_need_fallback()
157 static inline struct crypto_shash *ahash_to_shash(struct crypto_ahash *tfm) in ahash_to_shash()
163 struct crypto_ahash *tfm) in prepare_shash_desc()
244 static void crypto_exit_ahash_using_shash(struct crypto_tfm *tfm) in crypto_exit_ahash_using_shash()
251 static int crypto_init_ahash_using_shash(struct crypto_tfm *tfm) in crypto_init_ahash_using_shash()
277 static int ahash_nosetkey(struct crypto_ahash *tfm, const u8 *key, in ahash_nosetkey()
283 static void ahash_set_needkey(struct crypto_ahash *tfm, struct ahash_alg *alg) in ahash_set_needkey()
290 int crypto_ahash_setkey(struct crypto_ahash *tfm, const u8 *key, in crypto_ahash_setkey()
[all …]
H A Dskcipher.c41 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in skcipher_walk_virt() local
78 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_common() local
114 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in skcipher_walk_aead_decrypt() local
122 static void skcipher_set_needkey(struct crypto_skcipher *tfm) in skcipher_set_needkey()
128 static int skcipher_setkey_unaligned(struct crypto_skcipher *tfm, in skcipher_setkey_unaligned()
149 int crypto_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in crypto_skcipher_setkey()
188 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_encrypt() local
201 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_skcipher_decrypt() local
214 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_lskcipher_export() local
227 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_lskcipher_import() local
[all …]
H A Dsimd.c50 static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in simd_skcipher_setkey()
64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_encrypt() local
85 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_decrypt() local
104 static void simd_skcipher_exit(struct crypto_skcipher *tfm) in simd_skcipher_exit()
111 static int simd_skcipher_init(struct crypto_skcipher *tfm) in simd_skcipher_init()
268 static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, in simd_aead_setkey()
280 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize()
290 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_encrypt() local
311 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_decrypt() local
330 static void simd_aead_exit(struct crypto_aead *tfm) in simd_aead_exit()
[all …]
H A Dcipher.c20 static int setkey_unaligned(struct crypto_cipher *tfm, const u8 *key, in setkey_unaligned()
42 int crypto_cipher_setkey(struct crypto_cipher *tfm, in crypto_cipher_setkey()
58 static inline void cipher_crypt_one(struct crypto_cipher *tfm, in cipher_crypt_one()
79 void crypto_cipher_encrypt_one(struct crypto_cipher *tfm, in crypto_cipher_encrypt_one()
86 void crypto_cipher_decrypt_one(struct crypto_cipher *tfm, in crypto_cipher_decrypt_one()
95 struct crypto_tfm *tfm = crypto_cipher_tfm(cipher); in crypto_clone_cipher() local
/linux/include/crypto/internal/
H A Dcipher.h37 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()
75 static inline void crypto_free_cipher(struct crypto_cipher *tfm) in crypto_free_cipher()
109 static inline unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm) in crypto_cipher_blocksize()
114 static inline unsigned int crypto_cipher_alignmask(struct crypto_cipher *tfm) in crypto_cipher_alignmask()
119 static inline u32 crypto_cipher_get_flags(struct crypto_cipher *tfm) in crypto_cipher_get_flags()
124 static inline void crypto_cipher_set_flags(struct crypto_cipher *tfm, in crypto_cipher_set_flags()
130 static inline void crypto_cipher_clear_flags(struct crypto_cipher *tfm, in crypto_cipher_clear_flags()
215 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm) in crypto_cipher_alg()
H A Ddes.h26 static inline int crypto_des_verify_key(struct crypto_tfm *tfm, const u8 *key) in crypto_des_verify_key()
91 static inline int crypto_des3_ede_verify_key(struct crypto_tfm *tfm, in crypto_des3_ede_verify_key()
99 static inline int verify_skcipher_des_key(struct crypto_skcipher *tfm, in verify_skcipher_des_key()
105 static inline int verify_skcipher_des3_key(struct crypto_skcipher *tfm, in verify_skcipher_des3_key()
111 static inline int verify_aead_des_key(struct crypto_aead *tfm, const u8 *key, in verify_aead_des_key()
119 static inline int verify_aead_des3_key(struct crypto_aead *tfm, const u8 *key, in verify_aead_des3_key()
/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptvf_algs.c103 struct crypto_aead *tfm; in validate_hmac_cipher_null() local
239 struct crypto_tfm *tfm = crypto_skcipher_tfm(stfm); in create_ctx_hdr() local
394 static int otx_cpt_skcipher_xts_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_xts_setkey()
423 static int cpt_des_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_des_setkey()
439 static int cpt_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in cpt_aes_setkey()
465 static int otx_cpt_skcipher_cbc_aes_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_cbc_aes_setkey()
471 static int otx_cpt_skcipher_ecb_aes_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_ecb_aes_setkey()
477 static int otx_cpt_skcipher_cbc_des3_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_cbc_des3_setkey()
483 static int otx_cpt_skcipher_ecb_des3_setkey(struct crypto_skcipher *tfm, in otx_cpt_skcipher_ecb_des3_setkey()
489 static int otx_cpt_enc_dec_init(struct crypto_skcipher *tfm) in otx_cpt_enc_dec_init()
[all …]
/linux/security/integrity/ima/
H A Dima_crypto.c88 struct crypto_shash *tfm = ima_shash_tfm; in ima_alloc_tfm() local
209 static void ima_free_tfm(struct crypto_shash *tfm) in ima_free_tfm()
287 struct crypto_ahash *tfm = ima_ahash_tfm; in ima_alloc_atfm() local
307 static void ima_free_atfm(struct crypto_ahash *tfm) in ima_free_atfm()
326 struct crypto_ahash *tfm) in ima_calc_file_hash_atfm()
437 struct crypto_ahash *tfm; in ima_calc_file_ahash() local
453 struct crypto_shash *tfm) in ima_calc_file_hash_tfm()
504 struct crypto_shash *tfm; in ima_calc_file_shash() local
660 struct crypto_ahash *tfm) in calc_buffer_ahash_atfm()
701 struct crypto_ahash *tfm; in calc_buffer_ahash() local
[all …]
/linux/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c27 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sl3516_ce_need_fallback() local
105 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sl3516_ce_cipher_fallback() local
129 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sl3516_ce_cipher() local
280 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sl3516_ce_skdecrypt() local
298 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in sl3516_ce_skencrypt() local
314 int sl3516_ce_cipher_init(struct crypto_tfm *tfm) in sl3516_ce_cipher_init()
353 void sl3516_ce_cipher_exit(struct crypto_tfm *tfm) in sl3516_ce_cipher_exit()
362 int sl3516_ce_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in sl3516_ce_aes_setkey()
/linux/arch/powerpc/crypto/
H A Daes-spe-glue.c92 static int ppc_aes_setkey(struct crypto_tfm *tfm, const u8 *in_key, in ppc_aes_setkey()
119 static int ppc_aes_setkey_skcipher(struct crypto_skcipher *tfm, in ppc_aes_setkey_skcipher()
125 static int ppc_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in ppc_xts_setkey()
162 static void ppc_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_encrypt()
171 static void ppc_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in ppc_aes_decrypt()
182 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_ecb_crypt() local
221 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_cbc_crypt() local
262 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_ctr_crypt() local
288 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_xts_crypt() local
322 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ppc_xts_encrypt() local
[all …]
/linux/drivers/crypto/
H A Dgeode-aes.c110 static int geode_setkey_cip(struct crypto_tfm *tfm, const u8 *key, in geode_setkey_cip()
136 static int geode_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in geode_setkey_skcipher()
164 geode_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_encrypt()
179 geode_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in geode_decrypt()
192 static int fallback_init_cip(struct crypto_tfm *tfm) in fallback_init_cip()
208 static void fallback_exit_cip(struct crypto_tfm *tfm) in fallback_exit_cip()
238 static int geode_init_skcipher(struct crypto_skcipher *tfm) in geode_init_skcipher()
256 static void geode_exit_skcipher(struct crypto_skcipher *tfm) in geode_exit_skcipher()
265 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in geode_skcipher_crypt() local
/linux/arch/s390/crypto/
H A Ddes_s390.c35 static int des_setkey(struct crypto_tfm *tfm, const u8 *key, in des_setkey()
49 static int des_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des_setkey_skcipher()
55 static void s390_des_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in s390_des_encrypt()
62 static void s390_des_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in s390_des_decrypt()
91 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_desall_crypt() local
110 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_desall_crypt() local
200 static int des3_setkey(struct crypto_tfm *tfm, const u8 *key, in des3_setkey()
214 static int des3_setkey_skcipher(struct crypto_skcipher *tfm, const u8 *key, in des3_setkey_skcipher()
220 static void des3_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_encrypt()
227 static void des3_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in des3_decrypt()
[all …]
/linux/arch/riscv/crypto/
H A Daes-riscv64-glue.c89 static int riscv64_aes_setkey_cipher(struct crypto_tfm *tfm, in riscv64_aes_setkey_cipher()
97 static int riscv64_aes_setkey_skcipher(struct crypto_skcipher *tfm, in riscv64_aes_setkey_skcipher()
107 static void riscv64_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in riscv64_aes_encrypt()
120 static void riscv64_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in riscv64_aes_decrypt()
137 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in riscv64_aes_ecb_crypt() local
175 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in riscv64_aes_cbc_crypt() local
215 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in riscv64_aes_cbc_cts_crypt() local
279 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in riscv64_aes_ctr_crypt() local
344 static int riscv64_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in riscv64_aes_xts_setkey()
356 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in riscv64_aes_xts_crypt() local
/linux/drivers/crypto/hisilicon/sec/
H A Dsec_algs.c147 struct crypto_tfm *tfm = crypto_skcipher_tfm(atfm); in sec_alg_skcipher_init_context() local
227 static int sec_alg_skcipher_setkey(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey()
253 static int sec_alg_skcipher_setkey_aes_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ecb()
275 static int sec_alg_skcipher_setkey_aes_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_cbc()
297 static int sec_alg_skcipher_setkey_aes_ctr(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_ctr()
319 static int sec_alg_skcipher_setkey_aes_xts(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_aes_xts()
343 static int sec_alg_skcipher_setkey_des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_ecb()
350 static int sec_alg_skcipher_setkey_des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_des_cbc()
357 static int sec_alg_skcipher_setkey_3des_ecb(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_ecb()
365 static int sec_alg_skcipher_setkey_3des_cbc(struct crypto_skcipher *tfm, in sec_alg_skcipher_setkey_3des_cbc()
[all …]
/linux/arch/x86/crypto/
H A Daesni-intel_glue.c93 static inline struct aesni_xts_ctx *aes_xts_ctx(struct crypto_skcipher *tfm) in aes_xts_ctx()
116 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
123 static void aesni_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_encrypt()
136 static void aesni_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in aesni_decrypt()
149 static int aesni_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in aesni_skcipher_setkey()
157 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local
179 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local
201 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
223 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
245 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt() local
[all …]
H A Daria_aesni_avx_glue.c64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ecb_encrypt() local
72 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ecb_decrypt() local
78 static int aria_avx_set_key(struct crypto_skcipher *tfm, const u8 *key, in aria_avx_set_key()
87 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx_ctr_encrypt() local
144 static int aria_avx_init_tfm(struct crypto_skcipher *tfm) in aria_avx_init_tfm()
H A Daria_aesni_avx2_glue.c66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx2_ecb_encrypt() local
74 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx2_ecb_decrypt() local
80 static int aria_avx2_set_key(struct crypto_skcipher *tfm, const u8 *key, in aria_avx2_set_key()
89 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in aria_avx2_ctr_encrypt() local
157 static int aria_avx2_init_tfm(struct crypto_skcipher *tfm) in aria_avx2_init_tfm()
/linux/arch/arm64/crypto/
H A Dsm4-neon-glue.c28 static int sm4_setkey(struct crypto_skcipher *tfm, const u8 *key, in sm4_setkey()
66 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_encrypt() local
74 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ecb_decrypt() local
82 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_encrypt() local
114 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_cbc_decrypt() local
145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in sm4_ctr_crypt() local
/linux/drivers/crypto/amlogic/
H A Damlogic-gxl-cipher.c60 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_cipher_do_fallback() local
86 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_cipher() local
276 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_skdecrypt() local
294 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in meson_skencrypt() local
310 int meson_cipher_init(struct crypto_tfm *tfm) in meson_cipher_init()
336 void meson_cipher_exit(struct crypto_tfm *tfm) in meson_cipher_exit()
344 int meson_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in meson_aes_setkey()
/linux/drivers/crypto/ccp/
H A Dccp-crypto-rsa.c57 static unsigned int ccp_rsa_maxsize(struct crypto_akcipher *tfm) in ccp_rsa_maxsize()
66 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ccp_rsa_crypt() local
126 static int ccp_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setkey()
181 static int ccp_rsa_setprivkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setprivkey()
187 static int ccp_rsa_setpubkey(struct crypto_akcipher *tfm, const void *key, in ccp_rsa_setpubkey()
193 static int ccp_rsa_init_tfm(struct crypto_akcipher *tfm) in ccp_rsa_init_tfm()
203 static void ccp_rsa_exit_tfm(struct crypto_akcipher *tfm) in ccp_rsa_exit_tfm()
/linux/drivers/crypto/tegra/
H A Dtegra-se-aes.c341 static int tegra_aes_cra_init(struct crypto_skcipher *tfm) in tegra_aes_cra_init()
371 static void tegra_aes_cra_exit(struct crypto_skcipher *tfm) in tegra_aes_cra_exit()
382 static int tegra_aes_setkey(struct crypto_skcipher *tfm, in tegra_aes_setkey()
402 static int tegra_xts_setkey(struct crypto_skcipher *tfm, in tegra_xts_setkey()
480 struct crypto_skcipher *tfm; in tegra_aes_crypt() local
1160 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in tegra_ccm_crypt_init() local
1197 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in tegra_ccm_do_one_req() local
1272 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in tegra_gcm_do_one_req() local
1355 static int tegra_aead_cra_init(struct crypto_aead *tfm) in tegra_aead_cra_init()
1384 static int tegra_ccm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in tegra_ccm_setauthsize()
[all …]

123456