Home
last modified time | relevance | path

Searched refs:crypto_alg (Results 1 – 25 of 114) sorted by relevance

12345

/linux-5.19.10/include/linux/
Dcrypto.h478 struct crypto_alg { struct
502 void (*cra_destroy)(struct crypto_alg *alg); argument
521 void crypto_stats_init(struct crypto_alg *alg); argument
522 void crypto_stats_get(struct crypto_alg *alg);
523 void crypto_stats_aead_encrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret);
524 void crypto_stats_aead_decrypt(unsigned int cryptlen, struct crypto_alg *alg, int ret);
525 void crypto_stats_ahash_update(unsigned int nbytes, int ret, struct crypto_alg *alg);
526 void crypto_stats_ahash_final(unsigned int nbytes, int ret, struct crypto_alg *alg);
527 void crypto_stats_akcipher_encrypt(unsigned int src_len, int ret, struct crypto_alg *alg);
528 void crypto_stats_akcipher_decrypt(unsigned int src_len, int ret, struct crypto_alg *alg);
[all …]
/linux-5.19.10/crypto/
Dinternal.h27 struct crypto_alg alg;
28 struct crypto_alg *adult;
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()
72 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
73 struct crypto_alg *crypto_alg_mod_lookup(const char *name, u32 type, u32 mask);
76 void crypto_larval_kill(struct crypto_alg *alg);
80 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
81 struct crypto_alg *nalg);
83 void crypto_shoot_alg(struct crypto_alg *alg);
[all …]
Dapi.c37 static struct crypto_alg *crypto_larval_wait(struct crypto_alg *alg);
39 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()
54 static struct crypto_alg *__crypto_alg_lookup(const char *name, u32 type, in __crypto_alg_lookup()
57 struct crypto_alg *q, *alg = NULL; in __crypto_alg_lookup()
94 static void crypto_larval_destroy(struct crypto_alg *alg) in crypto_larval_destroy()
124 static struct crypto_alg *crypto_larval_add(const char *name, u32 type, in crypto_larval_add()
127 struct crypto_alg *alg; in crypto_larval_add()
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()
[all …]
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()
146 struct crypto_alg *nalg) 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()
253 struct crypto_alg *q; in __crypto_register_alg()
309 struct crypto_alg *alg; in crypto_alg_tested()
310 struct crypto_alg *q; in crypto_alg_tested()
[all …]
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()
41 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg)
44 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_kpp_show()
109 struct crypto_alg *base = &alg->base; in kpp_prepare_alg()
118 struct crypto_alg *base = &alg->base; in crypto_register_kpp()
Drng.c33 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_rng_reset()
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()
89 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg)
91 static void crypto_rng_show(struct seq_file *m, struct crypto_alg *alg) in crypto_rng_show()
179 struct crypto_alg *base = &alg->base; in crypto_register_rng()
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()
42 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
45 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) in crypto_akcipher_show()
111 struct crypto_alg *base = &alg->base; in akcipher_prepare_alg()
125 struct crypto_alg *base = &alg->base; in crypto_register_akcipher()
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 …]
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()
44 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg)
47 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_acomp_show()
82 static unsigned int crypto_acomp_extsize(struct crypto_alg *alg) in crypto_acomp_extsize()
152 struct crypto_alg *base = &alg->base; in crypto_register_acomp()
Dcrypto_user_base.c36 struct crypto_alg *crypto_alg_match(struct crypto_user_alg *p, int exact) in crypto_alg_match()
38 struct crypto_alg *q, *alg = NULL; in crypto_alg_match()
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()
229 struct crypto_alg *alg; in crypto_dump_report()
263 struct crypto_alg *alg; in crypto_update_alg()
299 struct crypto_alg *alg; in crypto_del_alg()
[all …]
Daead.c86 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_encrypt()
103 struct crypto_alg *alg = aead->base.__crt_alg; in crypto_aead_decrypt()
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()
169 static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg)
171 static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) in crypto_aead_show()
222 struct crypto_alg *base = &alg->base; in aead_prepare_alg()
240 struct crypto_alg *base = &alg->base; in crypto_register_aead()
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()
60 static void crypto_scomp_show(struct seq_file *m, struct crypto_alg *alg)
63 static void crypto_scomp_show(struct seq_file *m, struct crypto_alg *alg) in crypto_scomp_show()
188 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_scomp_ops_async()
259 struct crypto_alg *base = &alg->base; in crypto_register_scomp()
Dahash.c343 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_final()
357 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_finup()
371 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_digest()
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()
520 static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg)
522 static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) in crypto_ahash_show()
570 struct crypto_alg *base = &alg->halg.base; in ahash_prepare_alg()
586 struct crypto_alg *base = &alg->halg.base; in crypto_register_ahash()
[all …]
Dproc.c38 struct crypto_alg *alg = list_entry(p, struct crypto_alg, cra_list); in c_show()
Dshash.c379 struct crypto_alg *calg = tfm->__crt_alg; in crypto_init_shash_ops_async()
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()
483 static void crypto_shash_show(struct seq_file *m, struct crypto_alg *alg)
485 static void crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) in crypto_shash_show()
526 struct crypto_alg *base = &alg->base; in shash_prepare_alg()
557 struct crypto_alg *base = &alg->base; in crypto_register_shash()
Dskcipher.c622 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_skcipher_encrypt()
639 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_skcipher_decrypt()
685 static void crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg)
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()
792 struct crypto_alg *base = &alg->base; in skcipher_prepare_alg()
812 struct crypto_alg *base = &alg->base; in crypto_register_skcipher()
935 struct crypto_alg *cipher_alg; in skcipher_alloc_instance_simple()
/linux-5.19.10/include/crypto/
Dalgapi.h37 unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask);
38 unsigned int (*extsize)(struct crypto_alg *alg);
41 void (*show)(struct seq_file *m, struct crypto_alg *alg);
42 int (*report)(struct sk_buff *skb, struct crypto_alg *alg);
52 struct crypto_alg alg;
78 struct crypto_alg *alg;
113 void crypto_mod_put(struct crypto_alg *alg);
136 struct crypto_alg *alg);
Dakcipher.h106 struct crypto_alg base;
139 static inline struct akcipher_alg *__crypto_akcipher_alg(struct crypto_alg *alg) in __crypto_akcipher_alg()
291 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_akcipher_encrypt()
315 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_akcipher_decrypt()
339 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_akcipher_sign()
366 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_akcipher_verify()
Dkpp.h83 struct crypto_alg base;
112 static inline struct kpp_alg *__crypto_kpp_alg(struct crypto_alg *alg) in __crypto_kpp_alg()
287 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_kpp_set_secret()
313 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_kpp_generate_public_key()
336 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_kpp_compute_shared_secret()
Dacompress.h83 struct crypto_alg base;
133 static inline struct acomp_alg *__crypto_acomp_alg(struct crypto_alg *alg) in __crypto_acomp_alg()
264 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_acomp_compress()
286 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_acomp_decompress()
Drng.h51 struct crypto_alg base;
140 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_rng_generate()
Dhash.h46 struct crypto_alg base;
221 struct crypto_alg base;
335 struct crypto_alg *alg) in __crypto_hash_alg_common()
552 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_ahash_update()
767 static inline struct shash_alg *__crypto_shash_alg(struct crypto_alg *alg) in __crypto_shash_alg()
/linux-5.19.10/include/crypto/internal/
Dscompress.h37 struct crypto_alg base;
40 static inline struct scomp_alg *__crypto_scomp_alg(struct crypto_alg *alg) in __crypto_scomp_alg()
Dcryptouser.h5 struct crypto_alg *crypto_alg_match(struct crypto_user_alg *p, int exact);
/linux-5.19.10/Documentation/crypto/
Ddevel-algos.rst14 filled with each, struct crypto_alg, must be considered -- see below
26 int crypto_register_alg(struct crypto_alg *alg);
27 int crypto_register_algs(struct crypto_alg *algs, int count);
34 void crypto_unregister_alg(struct crypto_alg *alg);
35 void crypto_unregister_algs(struct crypto_alg *algs, int count);
61 crypto_alg field .cra_type is empty. The .cra_u.cipher has to be

12345