Home
last modified time | relevance | path

Searched defs:tfm (Results 101 – 125 of 390) sorted by relevance

12345678910>>...16

/Linux-v6.6/drivers/crypto/ccp/
Dccp-crypto-aes.c38 static int ccp_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in ccp_aes_setkey()
68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ccp_aes_crypt() local
120 static int ccp_aes_init_tfm(struct crypto_skcipher *tfm) in ccp_aes_init_tfm()
144 static int ccp_aes_rfc3686_setkey(struct crypto_skcipher *tfm, const u8 *key, in ccp_aes_rfc3686_setkey()
160 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ccp_aes_rfc3686_crypt() local
192 static int ccp_aes_rfc3686_init_tfm(struct crypto_skcipher *tfm) in ccp_aes_rfc3686_init_tfm()
/Linux-v6.6/drivers/crypto/vmx/
Daes_ctr.c23 static int p8_aes_ctr_init(struct crypto_skcipher *tfm) in p8_aes_ctr_init()
43 static void p8_aes_ctr_exit(struct crypto_skcipher *tfm) in p8_aes_ctr_exit()
50 static int p8_aes_ctr_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_ctr_setkey()
92 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_ctr_crypt() local
Daes_xts.c26 static int p8_aes_xts_init(struct crypto_skcipher *tfm) in p8_aes_xts_init()
46 static void p8_aes_xts_exit(struct crypto_skcipher *tfm) in p8_aes_xts_exit()
53 static int p8_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_xts_setkey()
80 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_xts_crypt() local
/Linux-v6.6/crypto/
Decdsa.c139 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in ecdsa_verify() local
222 static int ecdsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, unsigned int keylen) in ecdsa_set_pub_key()
254 static void ecdsa_exit_tfm(struct crypto_akcipher *tfm) in ecdsa_exit_tfm()
261 static unsigned int ecdsa_max_size(struct crypto_akcipher *tfm) in ecdsa_max_size()
268 static int ecdsa_nist_p384_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p384_init_tfm()
290 static int ecdsa_nist_p256_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p256_init_tfm()
312 static int ecdsa_nist_p192_init_tfm(struct crypto_akcipher *tfm) in ecdsa_nist_p192_init_tfm()
Dessiv.c66 static int essiv_skcipher_setkey(struct crypto_skcipher *tfm, in essiv_skcipher_setkey()
93 static int essiv_aead_setkey(struct crypto_aead *tfm, const u8 *key, in essiv_aead_setkey()
126 static int essiv_aead_setauthsize(struct crypto_aead *tfm, in essiv_aead_setauthsize()
143 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in essiv_skcipher_crypt() local
185 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in essiv_aead_crypt() local
297 static int essiv_skcipher_init_tfm(struct crypto_skcipher *tfm) in essiv_skcipher_init_tfm()
322 static int essiv_aead_init_tfm(struct crypto_aead *tfm) in essiv_aead_init_tfm()
355 static void essiv_skcipher_exit_tfm(struct crypto_skcipher *tfm) in essiv_skcipher_exit_tfm()
364 static void essiv_aead_exit_tfm(struct crypto_aead *tfm) in essiv_aead_exit_tfm()
Dalgif_skcipher.c44 struct crypto_skcipher *tfm = pask->private; in skcipher_sendmsg() local
58 struct crypto_skcipher *tfm = pask->private; in _skcipher_recvmsg() local
206 struct crypto_skcipher *tfm; in skcipher_check_key() local
300 struct crypto_skcipher *tfm = pask->private; in skcipher_sock_destruct() local
312 struct crypto_skcipher *tfm = private; in skcipher_accept_parent_nokey() local
341 struct crypto_skcipher *tfm = private; in skcipher_accept_parent() local
Dapi.c348 static void crypto_exit_ops(struct crypto_tfm *tfm) in crypto_exit_ops()
392 struct crypto_tfm *tfm = NULL; in __crypto_alloc_tfmgfp() local
452 struct crypto_tfm *tfm; in crypto_alloc_base() local
488 struct crypto_tfm *tfm; in crypto_alloc_tfmmem() local
512 struct crypto_tfm *tfm; in crypto_create_tfm_node() local
547 struct crypto_tfm *tfm; in crypto_clone_tfm() local
611 void *tfm; in crypto_alloc_tfm_node() local
651 void crypto_destroy_tfm(void *mem, struct crypto_tfm *tfm) in crypto_destroy_tfm()
Darc4.c18 static int crypto_arc4_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in crypto_arc4_setkey()
28 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_arc4_crypt() local
44 static int crypto_arc4_init(struct crypto_skcipher *tfm) in crypto_arc4_init()
Dacompress.c31 static inline struct acomp_alg *crypto_acomp_alg(struct crypto_acomp *tfm) in crypto_acomp_alg()
56 static void crypto_acomp_exit_tfm(struct crypto_tfm *tfm) in crypto_acomp_exit_tfm()
64 static int crypto_acomp_init_tfm(struct crypto_tfm *tfm) in crypto_acomp_init_tfm()
157 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in acomp_request_alloc() local
171 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in acomp_request_free() local
Dsm4_generic.c31 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()
Dcurve25519-generic.c9 static int curve25519_set_secret(struct crypto_kpp *tfm, const void *buf, in curve25519_set_secret()
26 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in curve25519_compute_value() local
57 static unsigned int curve25519_max_size(struct crypto_kpp *tfm) in curve25519_max_size()
Daes_ti.c12 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()
/Linux-v6.6/drivers/crypto/qce/
Daead.c188 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in qce_aead_ccm_prepare_buf_assoclen() local
332 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in qce_aead_ccm_prepare_buf() local
412 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in qce_aead_async_req_handle() local
504 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in qce_aead_crypt() local
565 static int qce_aead_ccm_setkey(struct crypto_aead *tfm, const u8 *key, in qce_aead_ccm_setkey()
595 static int qce_aead_setkey(struct crypto_aead *tfm, const u8 *key, unsigned int keylen) in qce_aead_setkey()
651 static int qce_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in qce_aead_setauthsize()
667 static int qce_aead_init(struct crypto_aead *tfm) in qce_aead_init()
683 static void qce_aead_exit(struct crypto_aead *tfm) in qce_aead_exit()
/Linux-v6.6/net/mac80211/
Daead_api.c18 int aead_encrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_encrypt()
50 int aead_decrypt(struct crypto_aead *tfm, u8 *b_0, u8 *aad, size_t aad_len, in aead_decrypt()
89 struct crypto_aead *tfm; in aead_key_setup_encrypt() local
110 void aead_key_free(struct crypto_aead *tfm) in aead_key_free()
Daes_gcm.h13 static inline int ieee80211_aes_gcm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_encrypt()
22 static inline int ieee80211_aes_gcm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_gcm_decrypt()
38 static inline void ieee80211_aes_gcm_key_free(struct crypto_aead *tfm) in ieee80211_aes_gcm_key_free()
Daes_ccm.h21 ieee80211_aes_ccm_encrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_encrypt()
31 ieee80211_aes_ccm_decrypt(struct crypto_aead *tfm, in ieee80211_aes_ccm_decrypt()
40 static inline void ieee80211_aes_key_free(struct crypto_aead *tfm) in ieee80211_aes_key_free()
Daes_gmac.c17 int ieee80211_aes_gmac(struct crypto_aead *tfm, const u8 *aad, u8 *nonce, in ieee80211_aes_gmac()
72 struct crypto_aead *tfm; in ieee80211_aes_gmac_key_setup() local
89 void ieee80211_aes_gmac_key_free(struct crypto_aead *tfm) in ieee80211_aes_gmac_key_free()
/Linux-v6.6/include/crypto/internal/
Dhash.h136 static inline void *crypto_ahash_ctx(struct crypto_ahash *tfm) in crypto_ahash_ctx()
141 static inline void *crypto_ahash_ctx_dma(struct crypto_ahash *tfm) in crypto_ahash_ctx_dma()
158 static inline void crypto_ahash_set_statesize(struct crypto_ahash *tfm, in crypto_ahash_set_statesize()
164 static inline void crypto_ahash_set_reqsize(struct crypto_ahash *tfm, in crypto_ahash_set_reqsize()
238 static inline void *crypto_shash_ctx(struct crypto_shash *tfm) in crypto_shash_ctx()
272 static inline void *crypto_shash_ctx_aligned(struct crypto_shash *tfm) in crypto_shash_ctx_aligned()
277 static inline struct crypto_shash *__crypto_shash_cast(struct crypto_tfm *tfm) in __crypto_shash_cast()
Dchacha.h15 static inline int chacha_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha_setkey()
31 static inline int chacha20_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha20_setkey()
37 static inline int chacha12_setkey(struct crypto_skcipher *tfm, const u8 *key, in chacha12_setkey()
/Linux-v6.6/drivers/crypto/starfive/
Djh7110-rsa.c308 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in starfive_rsa_enc() local
340 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in starfive_rsa_dec() local
472 static int starfive_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_setkey()
523 static int starfive_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_pub_key()
536 static int starfive_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_priv_key()
549 static unsigned int starfive_rsa_max_size(struct crypto_akcipher *tfm) in starfive_rsa_max_size()
559 static int starfive_rsa_init_tfm(struct crypto_akcipher *tfm) in starfive_rsa_init_tfm()
579 static void starfive_rsa_exit_tfm(struct crypto_akcipher *tfm) in starfive_rsa_exit_tfm()
/Linux-v6.6/drivers/crypto/ccree/
Dcc_cipher.c64 static inline enum cc_key_type cc_key_type(struct crypto_tfm *tfm) in cc_key_type()
154 static int cc_cipher_init(struct crypto_tfm *tfm) in cc_cipher_init()
232 static void cc_cipher_exit(struct crypto_tfm *tfm) in cc_cipher_exit()
304 struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); in cc_cipher_sethkey() local
404 struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); in cc_cipher_setkey() local
510 static void cc_setup_readiv_desc(struct crypto_tfm *tfm, in cc_setup_readiv_desc()
566 static void cc_setup_state_desc(struct crypto_tfm *tfm, in cc_setup_state_desc()
610 static void cc_setup_xex_state_desc(struct crypto_tfm *tfm, in cc_setup_xex_state_desc()
688 static void cc_setup_key_desc(struct crypto_tfm *tfm, in cc_setup_key_desc()
770 static void cc_setup_mlli_desc(struct crypto_tfm *tfm, in cc_setup_mlli_desc()
[all …]
Dcc_hash.c287 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_update_complete() local
305 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_digest_complete() local
325 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_complete() local
345 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_fin_result() local
368 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_fin_hmac() local
421 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_digest() local
559 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_update() local
635 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_do_finup() local
715 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in cc_hash_init() local
1110 static int cc_get_hash_len(struct crypto_tfm *tfm) in cc_get_hash_len()
[all …]
/Linux-v6.6/drivers/crypto/rockchip/
Drk3288_crypto_skcipher.c25 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_cipher_need_fallback() local
70 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in rk_cipher_fallback() local
111 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in rk_aes_setkey() local
255 struct crypto_tfm *tfm = crypto_skcipher_tfm(cipher); in rk_cipher_hw_init() local
302 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(areq); in rk_cipher_run() local
434 static int rk_cipher_tfm_init(struct crypto_skcipher *tfm) in rk_cipher_tfm_init()
454 static void rk_cipher_tfm_exit(struct crypto_skcipher *tfm) in rk_cipher_tfm_exit()
/Linux-v6.6/arch/arm64/crypto/
Dsm4-ce-cipher-glue.c20 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-v6.6/drivers/crypto/
Dimg-hash.c489 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_init() local
554 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_update() local
569 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_final() local
583 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_finup() local
599 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_import() local
612 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_export() local
624 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in img_hash_digest() local
678 static int img_hash_cra_init(struct crypto_tfm *tfm, const char *alg_name) in img_hash_cra_init()
696 static int img_hash_cra_md5_init(struct crypto_tfm *tfm) in img_hash_cra_md5_init()
701 static int img_hash_cra_sha1_init(struct crypto_tfm *tfm) in img_hash_cra_sha1_init()
[all …]

12345678910>>...16