Home
last modified time | relevance | path

Searched defs:alg (Results 1 – 25 of 248) sorted by relevance

12345678910

/Linux-v6.1/crypto/
Dalgapi.c37 static int crypto_check_alg(struct crypto_alg *alg) in crypto_check_alg()
77 static void crypto_destroy_instance(struct crypto_alg *alg) in crypto_destroy_instance()
95 static struct list_head *crypto_more_spawns(struct crypto_alg *alg, in crypto_more_spawns()
145 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, in crypto_remove_spawns()
225 static struct crypto_larval *crypto_alloc_test_larval(struct crypto_alg *alg) in crypto_alloc_test_larval()
251 static struct crypto_larval *__crypto_register_alg(struct crypto_alg *alg) in __crypto_register_alg()
309 struct crypto_alg *alg; in crypto_alg_tested() local
413 struct crypto_alg *alg; in crypto_remove_final() local
423 int crypto_register_alg(struct crypto_alg *alg) in crypto_register_alg()
450 static int crypto_remove_alg(struct crypto_alg *alg, struct list_head *list) in crypto_remove_alg()
[all …]
Dapi.c39 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg) in crypto_mod_get()
45 void crypto_mod_put(struct crypto_alg *alg) in crypto_mod_put()
57 struct crypto_alg *q, *alg = NULL; in __crypto_alg_lookup() local
94 static void crypto_larval_destroy(struct crypto_alg *alg) in crypto_larval_destroy()
127 struct crypto_alg *alg; in crypto_larval_add() local
153 void crypto_larval_kill(struct crypto_alg *alg) in crypto_larval_kill()
203 static struct crypto_alg *crypto_larval_wait(struct crypto_alg *alg) in crypto_larval_wait()
239 struct crypto_alg *alg; in crypto_alg_lookup() local
275 struct crypto_alg *alg; in crypto_larval_lookup() local
318 struct crypto_alg *alg; in crypto_alg_mod_lookup() local
[all …]
Dcrypto_user_stat.c31 static int crypto_report_aead(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_aead()
48 static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_cipher()
65 static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_comp()
81 static int crypto_report_acomp(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_acomp()
97 static int crypto_report_akcipher(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_akcipher()
116 static int crypto_report_kpp(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_kpp()
132 static int crypto_report_ahash(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_ahash()
147 static int crypto_report_shash(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_shash()
162 static int crypto_report_rng(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_rng()
178 static int crypto_reportstat_one(struct crypto_alg *alg, in crypto_reportstat_one()
[all …]
Dinternal.h27 struct crypto_alg alg; member
62 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg) in crypto_cipher_ctxsize()
67 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) in crypto_compress_ctxsize()
89 static inline void *crypto_create_tfm(struct crypto_alg *alg, in crypto_create_tfm()
116 static inline struct crypto_alg *crypto_alg_get(struct crypto_alg *alg) in crypto_alg_get()
122 static inline void crypto_alg_put(struct crypto_alg *alg) in crypto_alg_put()
138 static inline int crypto_is_larval(struct crypto_alg *alg) in crypto_is_larval()
143 static inline int crypto_is_dead(struct crypto_alg *alg) in crypto_is_dead()
148 static inline int crypto_is_moribund(struct crypto_alg *alg) in crypto_is_moribund()
Dkpp.c24 static int crypto_kpp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_kpp_report()
35 static int crypto_kpp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_kpp_report()
44 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_kpp_show()
52 struct kpp_alg *alg = crypto_kpp_alg(kpp); in crypto_kpp_exit_tfm() local
60 struct kpp_alg *alg = crypto_kpp_alg(kpp); in crypto_kpp_init_tfm() local
113 static void kpp_prepare_alg(struct kpp_alg *alg) in kpp_prepare_alg()
122 int crypto_register_kpp(struct kpp_alg *alg) in crypto_register_kpp()
131 void crypto_unregister_kpp(struct kpp_alg *alg) in crypto_unregister_kpp()
Dakcipher.c24 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report()
36 static int crypto_akcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_akcipher_report()
45 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_akcipher_show()
53 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_exit_tfm() local
61 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); in crypto_akcipher_init_tfm() local
109 static void akcipher_prepare_alg(struct akcipher_alg *alg) in akcipher_prepare_alg()
129 int crypto_register_akcipher(struct akcipher_alg *alg) in crypto_register_akcipher()
149 void crypto_unregister_akcipher(struct akcipher_alg *alg) in crypto_unregister_akcipher()
Dacompress.c27 static int crypto_acomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report()
38 static int crypto_acomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_acomp_report()
47 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_acomp_show()
55 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_exit_tfm() local
63 struct acomp_alg *alg = crypto_acomp_alg(acomp); in crypto_acomp_init_tfm() local
82 static unsigned int crypto_acomp_extsize(struct crypto_alg *alg) in crypto_acomp_extsize()
150 int crypto_register_acomp(struct acomp_alg *alg) in crypto_register_acomp()
162 void crypto_unregister_acomp(struct acomp_alg *alg) in crypto_unregister_acomp()
Daead.c86 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_encrypt() local
103 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_decrypt() local
122 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_exit_tfm() local
130 struct aead_alg *alg = crypto_aead_alg(aead); in crypto_aead_init_tfm() local
146 static int crypto_aead_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_aead_report()
163 static int crypto_aead_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_aead_report()
171 static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) in crypto_aead_show()
220 static int aead_prepare_alg(struct aead_alg *alg) in aead_prepare_alg()
238 int crypto_register_aead(struct aead_alg *alg) in crypto_register_aead()
251 void crypto_unregister_aead(struct aead_alg *alg) in crypto_unregister_aead()
Drng.c33 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_rng_reset() local
62 static unsigned int seedsize(struct crypto_alg *alg) in seedsize()
70 static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_rng_report()
83 static int crypto_rng_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_rng_report()
91 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) in crypto_rng_show()
177 int crypto_register_rng(struct rng_alg *alg) in crypto_register_rng()
192 void crypto_unregister_rng(struct rng_alg *alg) in crypto_unregister_rng()
Dcrypto_user_base.c38 struct crypto_alg *q, *alg = NULL; in crypto_alg_match() local
72 static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_cipher()
88 static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) in crypto_report_comp()
99 static int crypto_report_one(struct crypto_alg *alg, in crypto_report_one()
154 static int crypto_report_alg(struct crypto_alg *alg, in crypto_report_alg()
189 struct crypto_alg *alg; in crypto_report() local
229 struct crypto_alg *alg; in crypto_dump_report() local
263 struct crypto_alg *alg; in crypto_update_alg() local
299 struct crypto_alg *alg; in crypto_del_alg() local
339 struct crypto_alg *alg; in crypto_add_alg() local
[all …]
Dahash.c165 const struct hash_alg_common *alg = crypto_hash_alg_common(tfm); in ahash_set_needkey() local
343 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_final() local
357 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_finup() local
371 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_digest() local
450 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_exit_tfm() local
458 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_init_tfm() local
484 static unsigned int crypto_ahash_extsize(struct crypto_alg *alg) in crypto_ahash_extsize()
500 static int crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_ahash_report()
514 static int crypto_ahash_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_ahash_report()
522 static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) in crypto_ahash_show()
[all …]
Dshash.c36 bool crypto_shash_alg_has_setkey(struct shash_alg *alg) in crypto_shash_alg_has_setkey()
63 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) in shash_set_needkey()
380 struct shash_alg *alg = __crypto_shash_alg(calg); in crypto_init_shash_ops_async() local
419 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_exit_tfm() local
427 struct shash_alg *alg = crypto_shash_alg(hash); in crypto_shash_init_tfm() local
462 static int crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_shash_report()
477 static int crypto_shash_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_shash_report()
485 static void crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) in crypto_shash_show()
530 static int shash_prepare_alg(struct shash_alg *alg) in shash_prepare_alg()
561 int crypto_register_shash(struct shash_alg *alg) in crypto_register_shash()
[all …]
Dscompress.c42 static int crypto_scomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_scomp_report()
54 static int crypto_scomp_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_scomp_report()
63 static void crypto_scomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_scomp_show()
257 int crypto_register_scomp(struct scomp_alg *alg) in crypto_register_scomp()
269 void crypto_unregister_scomp(struct scomp_alg *alg) in crypto_unregister_scomp()
Dskcipher.c622 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_skcipher_encrypt() local
639 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_skcipher_decrypt() local
656 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm() local
664 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_tfm() local
687 static void crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_skcipher_show()
704 static int crypto_skcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_skcipher_report()
724 static int crypto_skcipher_report(struct sk_buff *skb, struct crypto_alg *alg) in crypto_skcipher_report()
790 static int skcipher_prepare_alg(struct skcipher_alg *alg) in skcipher_prepare_alg()
810 int crypto_register_skcipher(struct skcipher_alg *alg) in crypto_register_skcipher()
823 void crypto_unregister_skcipher(struct skcipher_alg *alg) in crypto_unregister_skcipher()
Dsimd.c43 struct skcipher_alg alg; member
116 struct skcipher_alg *alg; in simd_skcipher_init() local
146 struct skcipher_alg *alg; in simd_skcipher_create_compat() local
283 struct aead_alg alg; member
364 struct aead_alg *alg; in simd_aead_init() local
393 struct aead_alg *alg; in simd_aead_create_compat() local
/Linux-v6.1/fs/verity/
Dhash_algs.c44 struct fsverity_hash_alg *alg; in fsverity_get_hash_alg() local
123 struct ahash_request *fsverity_alloc_hash_request(struct fsverity_hash_alg *alg, in fsverity_alloc_hash_request()
138 void fsverity_free_hash_request(struct fsverity_hash_alg *alg, in fsverity_free_hash_request()
156 const u8 *fsverity_prepare_hash_state(struct fsverity_hash_alg *alg, in fsverity_prepare_hash_state()
281 int fsverity_hash_buffer(struct fsverity_hash_alg *alg, in fsverity_hash_buffer()
313 const struct fsverity_hash_alg *alg = &fsverity_hash_algs[i]; in fsverity_check_hash_algs() local
/Linux-v6.1/include/linux/
Dcrypto.h541 static inline void crypto_stats_init(struct crypto_alg *alg) in crypto_stats_init()
543 static inline void crypto_stats_get(struct crypto_alg *alg) in crypto_stats_get()
545 static inline void crypto_stats_aead_encrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret) in crypto_stats_aead_encrypt()
547 static inline void crypto_stats_aead_decrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret) in crypto_stats_aead_decrypt()
549 static inline void crypto_stats_ahash_update(unsigned int nbytes, int ret, struct crypto_alg *alg) in crypto_stats_ahash_update()
551 static inline void crypto_stats_ahash_final(unsigned int nbytes, int ret, struct crypto_alg *alg) in crypto_stats_ahash_final()
553 …ic inline void crypto_stats_akcipher_encrypt(unsigned int src_len, int ret, struct crypto_alg *alg) in crypto_stats_akcipher_encrypt()
555 …ic inline void crypto_stats_akcipher_decrypt(unsigned int src_len, int ret, struct crypto_alg *alg) in crypto_stats_akcipher_decrypt()
557 static inline void crypto_stats_akcipher_sign(int ret, struct crypto_alg *alg) in crypto_stats_akcipher_sign()
559 static inline void crypto_stats_akcipher_verify(int ret, struct crypto_alg *alg) in crypto_stats_akcipher_verify()
[all …]
/Linux-v6.1/include/crypto/
Dakcipher.h139 static inline struct akcipher_alg *__crypto_akcipher_alg(struct crypto_alg *alg) in __crypto_akcipher_alg()
272 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_maxsize() local
290 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_encrypt() local
314 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_decrypt() local
338 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_sign() local
365 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_verify() local
392 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_set_pub_key() local
414 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); in crypto_akcipher_set_priv_key() local
Dkpp.h114 static inline struct kpp_alg *__crypto_kpp_alg(struct crypto_alg *alg) in __crypto_kpp_alg()
288 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_set_secret() local
314 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_generate_public_key() local
337 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_compute_shared_secret() local
359 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_maxsize() local
/Linux-v6.1/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-hash.c63 struct ahash_alg *alg = __crypto_ahash_alg(ahash->base.__crt_alg); in sun8i_ss_hmac_setkey() local
113 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in sun8i_ss_hash_crainit() local
208 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_final() local
246 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_finup() local
271 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_digest_fb() local
352 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_need_fallback() local
401 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_digest() local
487 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_run() local
Dsun8i-ss-cipher.c26 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_need_fallback() local
97 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher_fallback() local
184 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in sun8i_ss_cipher() local
388 struct skcipher_alg *alg = crypto_skcipher_alg(sktfm); in sun8i_ss_cipher_init() local
/Linux-v6.1/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-hash.c25 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in sun8i_ce_hash_crainit() local
118 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_final() local
156 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_finup() local
181 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_digest_fb() local
203 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_need_fallback() local
236 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_digest() local
328 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_run() local
/Linux-v6.1/drivers/staging/rtl8192u/ieee80211/
Dieee80211_crypt.c101 struct ieee80211_crypto_alg *alg; in ieee80211_register_crypto_ops() local
133 struct ieee80211_crypto_alg *alg = in ieee80211_unregister_crypto_ops() local
164 struct ieee80211_crypto_alg *alg = in ieee80211_get_crypto_ops() local
226 struct ieee80211_crypto_alg *alg = in ieee80211_crypto_deinit() local
/Linux-v6.1/drivers/crypto/nx/
Dnx.c515 static int nx_register_skcipher(struct skcipher_alg *alg, u32 fc, u32 mode) in nx_register_skcipher()
521 static int nx_register_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_register_aead()
527 static int nx_register_shash(struct shash_alg *alg, u32 fc, u32 mode, int slot) in nx_register_shash()
535 static void nx_unregister_skcipher(struct skcipher_alg *alg, u32 fc, u32 mode) in nx_unregister_skcipher()
541 static void nx_unregister_aead(struct aead_alg *alg, u32 fc, u32 mode) in nx_unregister_aead()
547 static void nx_unregister_shash(struct shash_alg *alg, u32 fc, u32 mode, in nx_unregister_shash()
/Linux-v6.1/drivers/crypto/hisilicon/sec/
Dsec_algs.c128 enum sec_cipher_alg alg) in sec_alg_skcipher_init_template()
145 enum sec_cipher_alg alg) in sec_alg_skcipher_init_context()
229 enum sec_cipher_alg alg) in sec_alg_skcipher_setkey()
256 enum sec_cipher_alg alg; in sec_alg_skcipher_setkey_aes_ecb() local
278 enum sec_cipher_alg alg; in sec_alg_skcipher_setkey_aes_cbc() local
300 enum sec_cipher_alg alg; in sec_alg_skcipher_setkey_aes_ctr() local
322 enum sec_cipher_alg alg; in sec_alg_skcipher_setkey_aes_xts() local

12345678910