Home
last modified time | relevance | path

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

12345

/linux-6.1.9/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-6.1.9/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 …]
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()
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()
115 struct crypto_alg *base = &alg->base; in kpp_prepare_alg()
124 struct crypto_alg *base = &alg->base; in crypto_register_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()
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()
131 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()
532 struct crypto_alg *base = &alg->base; in shash_prepare_alg()
563 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-6.1.9/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;
114 static inline struct kpp_alg *__crypto_kpp_alg(struct crypto_alg *alg) in __crypto_kpp_alg()
289 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_kpp_set_secret()
315 struct crypto_alg *calg = tfm->base.__crt_alg; in crypto_kpp_generate_public_key()
338 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()
769 static inline struct shash_alg *__crypto_shash_alg(struct crypto_alg *alg) in __crypto_shash_alg()
/linux-6.1.9/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()
/linux-6.1.9/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
/linux-6.1.9/drivers/crypto/aspeed/
Daspeed-hace-crypto.c401 u32 crypto_alg = cmd & HACE_CMD_OP_MODE_MASK; in aspeed_des_crypt() local
405 if (crypto_alg == HACE_CMD_CBC || crypto_alg == HACE_CMD_ECB) { in aspeed_des_crypt()
579 u32 crypto_alg = cmd & HACE_CMD_OP_MODE_MASK; in aspeed_aes_crypt() local
581 if (crypto_alg == HACE_CMD_CBC || crypto_alg == HACE_CMD_ECB) { in aspeed_aes_crypt()
696 struct aspeed_hace_alg *crypto_alg; in aspeed_crypto_cra_init() local
699 crypto_alg = container_of(alg, struct aspeed_hace_alg, alg.skcipher); in aspeed_crypto_cra_init()
700 ctx->hace_dev = crypto_alg->hace_dev; in aspeed_crypto_cra_init()

12345