Home
last modified time | relevance | path

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

12345678910>>...16

/openbmc/linux/drivers/crypto/ccp/
H A 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()
/openbmc/linux/crypto/
H A Dscompress.c101 static int crypto_scomp_init_tfm(struct crypto_tfm *tfm) in crypto_scomp_init_tfm()
115 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in scomp_acomp_comp_decomp() local
173 static void crypto_exit_scomp_ops_async(struct crypto_tfm *tfm) in crypto_exit_scomp_ops_async()
185 int crypto_init_scomp_ops_async(struct crypto_tfm *tfm) in crypto_init_scomp_ops_async()
215 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in crypto_acomp_scomp_alloc_ctx() local
234 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in crypto_acomp_scomp_free_ctx() local
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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
H A 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()
H A 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()
H A 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
H A Dxctr.c35 struct crypto_cipher *tfm, u32 byte_ctr) in crypto_xctr_crypt_final()
50 struct crypto_cipher *tfm, u32 byte_ctr) in crypto_xctr_crypt_segment()
75 struct crypto_cipher *tfm, u32 byte_ctr) in crypto_xctr_crypt_inplace()
102 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_xctr_crypt() local
/openbmc/linux/drivers/crypto/
H A Dpadlock-aes.c97 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm) in aes_ctx()
102 static inline struct aes_ctx *skcipher_aes_ctx(struct crypto_skcipher *tfm) in skcipher_aes_ctx()
107 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key()
162 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, in aes_set_key_skcipher()
306 static void padlock_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in padlock_aes_encrypt()
315 static void padlock_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in) in padlock_aes_decrypt()
346 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_aes_encrypt() local
371 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_aes_decrypt() local
411 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_aes_encrypt() local
438 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_aes_decrypt() local
H A Dsa2ul.c1357 struct crypto_ahash *tfm; in sa_sha_dma_in_callback() local
1382 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process() local
1541 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sa_sha_init() local
1557 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sa_sha_update() local
1572 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sa_sha_final() local
1586 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sa_sha_finup() local
1604 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in sa_sha_import() local
1627 static int sa_sha1_cra_init(struct crypto_tfm *tfm) in sa_sha1_cra_init()
1675 static void sa_sha_cra_exit(struct crypto_tfm *tfm) in sa_sha_cra_exit()
1695 struct crypto_aead *tfm; in sa_aead_dma_in_callback() local
[all …]
/openbmc/linux/arch/arm64/crypto/
H A 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()
/openbmc/linux/drivers/crypto/qce/
H A 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()
/openbmc/linux/include/crypto/internal/
H A 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()
H A 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()
/openbmc/linux/net/mac80211/
H A 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()
H A 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()
H A 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()
/openbmc/linux/drivers/crypto/starfive/
H A Djh7110-rsa.c312 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in starfive_rsa_enc() local
343 struct crypto_akcipher *tfm = crypto_akcipher_reqtfm(req); in starfive_rsa_dec() local
475 static int starfive_rsa_setkey(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_setkey()
526 static int starfive_rsa_set_pub_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_pub_key()
539 static int starfive_rsa_set_priv_key(struct crypto_akcipher *tfm, const void *key, in starfive_rsa_set_priv_key()
552 static unsigned int starfive_rsa_max_size(struct crypto_akcipher *tfm) in starfive_rsa_max_size()
562 static int starfive_rsa_init_tfm(struct crypto_akcipher *tfm) in starfive_rsa_init_tfm()
582 static void starfive_rsa_exit_tfm(struct crypto_akcipher *tfm) in starfive_rsa_exit_tfm()
/openbmc/linux/drivers/crypto/ccree/
H A Dcc_cipher.c154 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()
797 static void cc_setup_flow_desc(struct crypto_tfm *tfm, in cc_setup_flow_desc()
[all …]
/openbmc/linux/drivers/crypto/rockchip/
H A 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()
/openbmc/linux/net/xfrm/
H A Dxfrm_ipcomp.c45 struct crypto_comp *tfm = *this_cpu_ptr(ipcd->tfms); in ipcomp_decompress() local
128 struct crypto_comp *tfm; in ipcomp_compress() local
254 struct crypto_comp *tfm = *per_cpu_ptr(tfms, cpu); in ipcomp_free_tfms() local
268 struct crypto_comp *tfm; in ipcomp_alloc_tfms() local
292 struct crypto_comp *tfm = crypto_alloc_comp(alg_name, 0, in ipcomp_alloc_tfms() local

12345678910>>...16