Home
last modified time | relevance | path

Searched defs:tfm (Results 76 – 100 of 365) sorted by relevance

12345678910>>...15

/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-prng.c17 int sun8i_ss_prng_seed(struct crypto_rng *tfm, const u8 *seed, in sun8i_ss_prng_seed()
39 int sun8i_ss_prng_init(struct crypto_tfm *tfm) in sun8i_ss_prng_init()
47 void sun8i_ss_prng_exit(struct crypto_tfm *tfm) in sun8i_ss_prng_exit()
57 int sun8i_ss_prng_generate(struct crypto_rng *tfm, const u8 *src, in sun8i_ss_prng_generate()
/OK3568_Linux_fs/kernel/arch/arm64/crypto/
H A Daes-neonbs-glue.c72 static int aesbs_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_setkey()
96 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __ecb_crypt() local
131 static int aesbs_cbc_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_cbc_setkey()
156 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
179 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
207 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_encrypt() local
246 static int aesbs_xts_setkey(struct crypto_skcipher *tfm, const u8 *in_key, in aesbs_xts_setkey()
275 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in __xts_crypt() local
/OK3568_Linux_fs/kernel/crypto/
H A Ddh.c43 static inline struct dh_ctx *dh_get_ctx(struct crypto_kpp *tfm) in dh_get_ctx()
75 static int dh_set_secret(struct crypto_kpp *tfm, const void *buf, in dh_set_secret()
152 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in dh_compute_value() local
234 static unsigned int dh_max_size(struct crypto_kpp *tfm) in dh_max_size()
241 static void dh_exit_tfm(struct crypto_kpp *tfm) in dh_exit_tfm()
H A Dcts.c68 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_reqctx_space() local
101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_encrypt() local
145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_encrypt() local
182 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cts_cbc_decrypt() local
239 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_cts_decrypt() local
283 static int crypto_cts_init_tfm(struct crypto_skcipher *tfm) in crypto_cts_init_tfm()
311 static void crypto_cts_exit_tfm(struct crypto_skcipher *tfm) in crypto_cts_exit_tfm()
H A Dctr.c29 struct crypto_cipher *tfm) in crypto_ctr_crypt_final()
47 struct crypto_cipher *tfm) in crypto_ctr_crypt_segment()
73 struct crypto_cipher *tfm) in crypto_ctr_crypt_inplace()
101 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_ctr_crypt() local
192 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in crypto_rfc3686_crypt() local
218 static int crypto_rfc3686_init_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_init_tfm()
242 static void crypto_rfc3686_exit_tfm(struct crypto_skcipher *tfm) in crypto_rfc3686_exit_tfm()
H A Dansi_cprng.c47 struct crypto_cipher *tfm; member
320 static int cprng_init(struct crypto_tfm *tfm) in cprng_init()
344 static void cprng_exit(struct crypto_tfm *tfm) in cprng_exit()
349 static int cprng_get_random(struct crypto_rng *tfm, in cprng_get_random()
364 static int cprng_reset(struct crypto_rng *tfm, in cprng_reset()
385 static int fips_cprng_get_random(struct crypto_rng *tfm, in fips_cprng_get_random()
394 static int fips_cprng_reset(struct crypto_rng *tfm, in fips_cprng_reset()
H A Dscompress.c108 static int crypto_scomp_init_tfm(struct crypto_tfm *tfm) in crypto_scomp_init_tfm()
122 struct crypto_acomp *tfm = crypto_acomp_reqtfm(req); in scomp_acomp_comp_decomp() local
174 static void crypto_exit_scomp_ops_async(struct crypto_tfm *tfm) in crypto_exit_scomp_ops_async()
186 int crypto_init_scomp_ops_async(struct crypto_tfm *tfm) in crypto_init_scomp_ops_async()
216 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in crypto_acomp_scomp_alloc_ctx() local
235 struct crypto_tfm *tfm = crypto_acomp_tfm(acomp); in crypto_acomp_scomp_free_ctx() local
H A Decdh.c21 static inline struct ecdh_ctx *ecdh_get_ctx(struct crypto_kpp *tfm) in ecdh_get_ctx()
35 static int ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in ecdh_set_secret()
69 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in ecdh_compute_value() local
135 static unsigned int ecdh_max_size(struct crypto_kpp *tfm) in ecdh_max_size()
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
180 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in essiv_aead_crypt() local
292 static int essiv_skcipher_init_tfm(struct crypto_skcipher *tfm) in essiv_skcipher_init_tfm()
317 static int essiv_aead_init_tfm(struct crypto_aead *tfm) in essiv_aead_init_tfm()
350 static void essiv_skcipher_exit_tfm(struct crypto_skcipher *tfm) in essiv_skcipher_exit_tfm()
359 static void essiv_aead_exit_tfm(struct crypto_aead *tfm) in essiv_aead_exit_tfm()
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
207 struct crypto_skcipher *tfm; in skcipher_check_key() local
314 struct crypto_skcipher *tfm = pask->private; in skcipher_sock_destruct() local
326 struct crypto_skcipher *tfm = private; in skcipher_accept_parent_nokey() local
355 struct crypto_skcipher *tfm = private; in skcipher_accept_parent() local
/OK3568_Linux_fs/kernel/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-prng.c17 int sun8i_ce_prng_init(struct crypto_tfm *tfm) in sun8i_ce_prng_init()
25 void sun8i_ce_prng_exit(struct crypto_tfm *tfm) in sun8i_ce_prng_exit()
35 int sun8i_ce_prng_seed(struct crypto_rng *tfm, const u8 *seed, in sun8i_ce_prng_seed()
57 int sun8i_ce_prng_generate(struct crypto_rng *tfm, const u8 *src, in sun8i_ce_prng_generate()
/OK3568_Linux_fs/kernel/drivers/crypto/
H A Dsa2ul.c810 static void sa_cipher_cra_exit(struct crypto_skcipher *tfm) in sa_cipher_cra_exit()
825 static int sa_cipher_cra_init(struct crypto_skcipher *tfm) in sa_cipher_cra_init()
858 static int sa_cipher_setkey(struct crypto_skcipher *tfm, const u8 *key, in sa_cipher_setkey()
921 static int sa_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, in sa_aes_cbc_setkey()
941 static int sa_aes_ecb_setkey(struct crypto_skcipher *tfm, const u8 *key, in sa_aes_ecb_setkey()
959 static int sa_3des_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, in sa_3des_cbc_setkey()
973 static int sa_3des_ecb_setkey(struct crypto_skcipher *tfm, const u8 *key, in sa_3des_ecb_setkey()
1334 struct crypto_ahash *tfm; in sa_sha_dma_in_callback() local
1359 struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); in zero_message_process() local
1468 static int sa_sha_cra_init_alg(struct crypto_tfm *tfm, const char *alg_base) in sa_sha_cra_init_alg()
[all …]
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 Datmel-ecc.c88 static int atmel_ecdh_set_secret(struct crypto_kpp *tfm, const void *buf, in atmel_ecdh_set_secret()
152 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_generate_public_key() local
180 struct crypto_kpp *tfm = crypto_kpp_reqtfm(req); in atmel_ecdh_compute_shared_secret() local
260 static int atmel_ecdh_init_tfm(struct crypto_kpp *tfm) in atmel_ecdh_init_tfm()
285 static void atmel_ecdh_exit_tfm(struct crypto_kpp *tfm) in atmel_ecdh_exit_tfm()
294 static unsigned int atmel_ecdh_max_size(struct crypto_kpp *tfm) in atmel_ecdh_max_size()
/OK3568_Linux_fs/kernel/drivers/crypto/ccp/
H A Dccp-crypto-aes-galois.c29 static int ccp_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key, in ccp_aes_gcm_setkey()
57 static int ccp_aes_gcm_setauthsize(struct crypto_aead *tfm, in ccp_aes_gcm_setauthsize()
78 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in ccp_aes_gcm_crypt() local
149 static int ccp_aes_gcm_cra_init(struct crypto_aead *tfm) in ccp_aes_gcm_cra_init()
161 static void ccp_aes_gcm_cra_exit(struct crypto_tfm *tfm) in ccp_aes_gcm_cra_exit()
H A Dccp-crypto-aes.c37 static int ccp_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, in ccp_aes_setkey()
67 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ccp_aes_crypt() local
122 static int ccp_aes_init_tfm(struct crypto_skcipher *tfm) in ccp_aes_init_tfm()
146 static int ccp_aes_rfc3686_setkey(struct crypto_skcipher *tfm, const u8 *key, in ccp_aes_rfc3686_setkey()
162 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ccp_aes_rfc3686_crypt() local
194 static int ccp_aes_rfc3686_init_tfm(struct crypto_skcipher *tfm) in ccp_aes_rfc3686_init_tfm()
/OK3568_Linux_fs/kernel/drivers/crypto/vmx/
H A Daes_cbc.c24 static int p8_aes_cbc_init(struct crypto_skcipher *tfm) in p8_aes_cbc_init()
44 static void p8_aes_cbc_exit(struct crypto_skcipher *tfm) in p8_aes_cbc_exit()
51 static int p8_aes_cbc_setkey(struct crypto_skcipher *tfm, const u8 *key, in p8_aes_cbc_setkey()
73 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in p8_aes_cbc_crypt() local
H A 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
H A 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
/OK3568_Linux_fs/kernel/net/mac80211/
H A 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()
/OK3568_Linux_fs/kernel/include/crypto/internal/
H A Dacompress.h21 static inline void *acomp_tfm_ctx(struct crypto_acomp *tfm) in acomp_tfm_ctx()
32 static inline const char *acomp_alg_name(struct crypto_acomp *tfm) in acomp_alg_name()
37 static inline struct acomp_req *__acomp_request_alloc(struct crypto_acomp *tfm) in __acomp_request_alloc()
/OK3568_Linux_fs/kernel/include/linux/
H A Dcrypto.h183 struct crypto_tfm *tfm; member
679 static inline void crypto_free_tfm(struct crypto_tfm *tfm) in crypto_free_tfm()
689 static inline const char *crypto_tfm_alg_name(struct crypto_tfm *tfm) in crypto_tfm_alg_name()
694 static inline const char *crypto_tfm_alg_driver_name(struct crypto_tfm *tfm) in crypto_tfm_alg_driver_name()
699 static inline int crypto_tfm_alg_priority(struct crypto_tfm *tfm) in crypto_tfm_alg_priority()
704 static inline u32 crypto_tfm_alg_type(struct crypto_tfm *tfm) in crypto_tfm_alg_type()
709 static inline unsigned int crypto_tfm_alg_blocksize(struct crypto_tfm *tfm) in crypto_tfm_alg_blocksize()
714 static inline unsigned int crypto_tfm_alg_alignmask(struct crypto_tfm *tfm) in crypto_tfm_alg_alignmask()
719 static inline u32 crypto_tfm_get_flags(struct crypto_tfm *tfm) in crypto_tfm_get_flags()
724 static inline void crypto_tfm_set_flags(struct crypto_tfm *tfm, u32 flags) in crypto_tfm_set_flags()
[all …]
/OK3568_Linux_fs/kernel/arch/x86/crypto/
H A Dblowfish_glue.c55 static void blowfish_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_encrypt()
60 static void blowfish_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in blowfish_decrypt()
65 static int blowfish_setkey_skcipher(struct crypto_skcipher *tfm, in blowfish_setkey_skcipher()
76 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_crypt() local
153 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
234 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
320 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_crypt() local
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_skcipher_utils.c13 struct rk_crypto_algt *rk_cipher_get_algt(struct crypto_skcipher *tfm) in rk_cipher_get_algt()
20 struct rk_crypto_algt *rk_aead_get_algt(struct crypto_aead *tfm) in rk_aead_get_algt()
285 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in rk_ablk_rx() local
331 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in rk_ablk_start() local
401 struct crypto_tfm *tfm = crypto_aead_tfm(cipher); in rk_aead_setkey() local
439 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in rk_aead_start() local
470 int rk_aead_gcm_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in rk_aead_gcm_setauthsize()
/OK3568_Linux_fs/kernel/drivers/crypto/ccree/
H A Dcc_cipher.c64 static inline enum cc_key_type cc_key_type(struct crypto_tfm *tfm) in cc_key_type()
151 static int cc_cipher_init(struct crypto_tfm *tfm) in cc_cipher_init()
229 static void cc_cipher_exit(struct crypto_tfm *tfm) in cc_cipher_exit()
301 struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); in cc_cipher_sethkey() local
401 struct crypto_tfm *tfm = crypto_skcipher_tfm(sktfm); in cc_cipher_setkey() local
507 static void cc_setup_readiv_desc(struct crypto_tfm *tfm, in cc_setup_readiv_desc()
563 static void cc_setup_state_desc(struct crypto_tfm *tfm, in cc_setup_state_desc()
607 static void cc_setup_xex_state_desc(struct crypto_tfm *tfm, in cc_setup_xex_state_desc()
685 static void cc_setup_key_desc(struct crypto_tfm *tfm, in cc_setup_key_desc()
767 static void cc_setup_mlli_desc(struct crypto_tfm *tfm, in cc_setup_mlli_desc()
[all …]

12345678910>>...15