Searched refs:alg (Results 1 - 25 of 305) sorted by relevance

1234567891011>>

/linux-master/crypto/
H A Dproc.c39 struct crypto_alg *alg = list_entry(p, struct crypto_alg, cra_list); local
41 seq_printf(m, "name : %s\n", alg->cra_name);
42 seq_printf(m, "driver : %s\n", alg->cra_driver_name);
43 seq_printf(m, "module : %s\n", module_name(alg->cra_module));
44 seq_printf(m, "priority : %d\n", alg->cra_priority);
45 seq_printf(m, "refcnt : %u\n", refcount_read(&alg->cra_refcnt));
47 (alg->cra_flags & CRYPTO_ALG_TESTED) ?
50 (alg->cra_flags & CRYPTO_ALG_INTERNAL) ?
54 (alg->cra_flags & CRYPTO_ALG_FIPS_INTERNAL) ?
58 if (alg
[all...]
H A Dapi.c39 static struct crypto_alg *crypto_larval_wait(struct crypto_alg *alg);
41 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg) argument
43 return try_module_get(alg->cra_module) ? crypto_alg_get(alg) : NULL;
47 void crypto_mod_put(struct crypto_alg *alg) argument
49 struct module *module = alg->cra_module;
51 crypto_alg_put(alg);
59 struct crypto_alg *q, *alg = NULL; local
85 if (alg)
86 crypto_mod_put(alg);
96 crypto_larval_destroy(struct crypto_alg *alg) argument
129 struct crypto_alg *alg; local
155 crypto_larval_kill(struct crypto_alg *alg) argument
202 crypto_larval_wait(struct crypto_alg *alg) argument
238 struct crypto_alg *alg; local
274 struct crypto_alg *alg; local
317 struct crypto_alg *alg; local
356 crypto_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) argument
381 crypto_shoot_alg(struct crypto_alg *alg) argument
389 __crypto_alloc_tfmgfp(struct crypto_alg *alg, u32 type, u32 mask, gfp_t gfp) argument
421 __crypto_alloc_tfm(struct crypto_alg *alg, u32 type, u32 mask) argument
456 struct crypto_alg *alg; local
484 crypto_alloc_tfmmem(struct crypto_alg *alg, const struct crypto_type *frontend, int node, gfp_t gfp) argument
508 crypto_create_tfm_node(struct crypto_alg *alg, const struct crypto_type *frontend, int node) argument
546 struct crypto_alg *alg = otfm->__crt_alg; local
615 struct crypto_alg *alg; local
653 struct crypto_alg *alg; local
673 struct crypto_alg *alg = crypto_alg_mod_lookup(name, type, mask); local
[all...]
H A Dskcipher.h14 struct skcipher_alg_common *alg)
17 return &alg->stat;
26 int skcipher_prepare_alg_common(struct skcipher_alg_common *alg);
13 skcipher_get_stat_common( struct skcipher_alg_common *alg) argument
H A Dcrypto_user_stat.c27 static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) argument
38 static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) argument
49 static int crypto_reportstat_one(struct crypto_alg *alg, argument
55 strscpy(ualg->cru_name, alg->cra_name, sizeof(ualg->cru_name));
56 strscpy(ualg->cru_driver_name, alg->cra_driver_name,
58 strscpy(ualg->cru_module_name, module_name(alg->cra_module),
63 ualg->cru_flags = alg->cra_flags;
64 ualg->cru_refcnt = refcount_read(&alg->cra_refcnt);
66 if (nla_put_u32(skb, CRYPTOCFGA_PRIORITY_VAL, alg->cra_priority))
68 if (alg
106 crypto_reportstat_alg(struct crypto_alg *alg, struct crypto_dump_info *info) argument
141 struct crypto_alg *alg; local
[all...]
H A Dalgapi.c38 static int crypto_check_alg(struct crypto_alg *alg) argument
40 crypto_check_module_sig(alg->cra_module);
42 if (!alg->cra_name[0] || !alg->cra_driver_name[0])
45 if (alg->cra_alignmask & (alg->cra_alignmask + 1))
49 if (alg->cra_alignmask > MAX_ALGAPI_ALIGNMASK)
52 if (alg->cra_blocksize > MAX_ALGAPI_BLOCKSIZE)
55 /* Lower maximums for specific alg types. */
56 if (!alg
88 crypto_destroy_instance(struct crypto_alg *alg) argument
107 crypto_more_spawns(struct crypto_alg *alg, struct list_head *stack, struct list_head *top, struct list_head *secondary_spawns) argument
157 crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list, struct crypto_alg *nalg) argument
237 crypto_alg_finish_registration(struct crypto_alg *alg, bool fulfill_requests, struct list_head *algs_to_put) argument
288 crypto_alloc_test_larval(struct crypto_alg *alg) argument
317 __crypto_register_alg(struct crypto_alg *alg, struct list_head *algs_to_put) argument
376 struct crypto_alg *alg; local
443 struct crypto_alg *alg; local
453 crypto_register_alg(struct crypto_alg *alg) argument
482 crypto_remove_alg(struct crypto_alg *alg, struct list_head *list) argument
495 crypto_unregister_alg(struct crypto_alg *alg) argument
727 struct crypto_alg *alg; local
777 struct crypto_alg *alg = ERR_PTR(-EAGAIN); local
803 struct crypto_alg *alg; local
828 struct crypto_alg *alg; local
927 crypto_inst_setname(struct crypto_instance *inst, const char *name, struct crypto_alg *alg) argument
1035 crypto_alg_extsize(struct crypto_alg *alg) argument
1046 struct crypto_alg *alg = crypto_find_alg(name, frontend, type, mask); local
[all...]
H A Dshash.c19 static inline struct crypto_istat_hash *shash_get_stat(struct shash_alg *alg) argument
21 return hash_get_stat(&alg->halg);
24 static inline int crypto_shash_errstat(struct shash_alg *alg, int err) argument
27 atomic64_inc(&shash_get_stat(alg)->err_cnt);
38 static void shash_set_needkey(struct crypto_shash *tfm, struct shash_alg *alg) argument
40 if (crypto_shash_alg_needs_key(alg))
199 struct shash_alg *alg = crypto_shash_alg(hash); local
201 alg->exit_tfm(hash);
207 struct shash_alg *alg = crypto_shash_alg(hash); local
210 hash->descsize = alg
241 crypto_shash_report( struct sk_buff *skb, struct crypto_alg *alg) argument
259 crypto_shash_show(struct seq_file *m, struct crypto_alg *alg) argument
268 crypto_shash_report_stat( struct sk_buff *skb, struct crypto_alg *alg) argument
318 struct shash_alg *alg = crypto_shash_alg(hash); local
351 hash_prepare_alg(struct hash_alg_common *alg) argument
371 shash_prepare_alg(struct shash_alg *alg) argument
412 crypto_register_shash(struct shash_alg *alg) argument
425 crypto_unregister_shash(struct shash_alg *alg) argument
[all...]
H A Dcrypto_user_base.c38 struct crypto_alg *q, *alg = NULL; local
63 alg = q;
69 return alg;
72 static int crypto_report_cipher(struct sk_buff *skb, struct crypto_alg *alg) argument
80 rcipher.blocksize = alg->cra_blocksize;
81 rcipher.min_keysize = alg->cra_cipher.cia_min_keysize;
82 rcipher.max_keysize = alg->cra_cipher.cia_max_keysize;
88 static int crypto_report_comp(struct sk_buff *skb, struct crypto_alg *alg) argument
99 static int crypto_report_one(struct crypto_alg *alg, argument
104 strscpy(ualg->cru_name, alg
154 crypto_report_alg(struct crypto_alg *alg, struct crypto_dump_info *info) argument
189 struct crypto_alg *alg; local
229 struct crypto_alg *alg; local
263 struct crypto_alg *alg; local
299 struct crypto_alg *alg; local
339 struct crypto_alg *alg; local
439 struct crypto_alg *alg; local
[all...]
H A Dcompress.h22 int crypto_acomp_report_stat(struct sk_buff *skb, struct crypto_alg *alg);
24 void comp_prepare_alg(struct comp_alg_common *alg);
H A Dkpp.c21 struct sk_buff *skb, struct crypto_alg *alg)
32 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg)
35 static void crypto_kpp_show(struct seq_file *m, struct crypto_alg *alg) argument
43 struct kpp_alg *alg = crypto_kpp_alg(kpp); local
45 alg->exit(kpp);
51 struct kpp_alg *alg = crypto_kpp_alg(kpp); local
53 if (alg->exit)
56 if (alg->init)
57 return alg->init(kpp);
70 struct sk_buff *skb, struct crypto_alg *alg)
20 crypto_kpp_report( struct sk_buff *skb, struct crypto_alg *alg) argument
69 crypto_kpp_report_stat( struct sk_buff *skb, struct crypto_alg *alg) argument
132 kpp_prepare_alg(struct kpp_alg *alg) argument
145 crypto_register_kpp(struct kpp_alg *alg) argument
154 crypto_unregister_kpp(struct kpp_alg *alg) argument
[all...]
H A Dhash.h16 struct hash_alg_common *alg)
19 return &alg->stat;
26 struct crypto_alg *alg,
29 struct hash_alg_common *halg = __crypto_hash_alg_common(alg);
46 int hash_prepare_alg(struct hash_alg_common *alg);
15 hash_get_stat( struct hash_alg_common *alg) argument
25 crypto_hash_report_stat(struct sk_buff *skb, struct crypto_alg *alg, const char *type) argument
H A Dinternal.h31 struct crypto_alg alg; member in struct:crypto_larval
67 int alg_test(const char *driver, const char *alg, u32 type, u32 mask);
99 static inline unsigned int crypto_cipher_ctxsize(struct crypto_alg *alg) argument
101 return alg->cra_ctxsize;
104 static inline unsigned int crypto_compress_ctxsize(struct crypto_alg *alg) argument
106 return alg->cra_ctxsize;
109 struct crypto_alg *crypto_mod_get(struct crypto_alg *alg);
113 void crypto_larval_kill(struct crypto_alg *alg);
117 void crypto_remove_spawns(struct crypto_alg *alg, struct list_head *list,
120 void crypto_shoot_alg(struct crypto_alg *alg);
134 crypto_create_tfm(struct crypto_alg *alg, const struct crypto_type *frontend) argument
161 crypto_alg_get(struct crypto_alg *alg) argument
167 crypto_alg_put(struct crypto_alg *alg) argument
183 crypto_is_larval(struct crypto_alg *alg) argument
188 crypto_is_dead(struct crypto_alg *alg) argument
193 crypto_is_moribund(struct crypto_alg *alg) argument
[all...]
H A Dacompress.c26 static inline struct acomp_alg *__crypto_acomp_alg(struct crypto_alg *alg) argument
28 return container_of(alg, struct acomp_alg, calg.base);
37 struct sk_buff *skb, struct crypto_alg *alg)
48 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg)
51 static void crypto_acomp_show(struct seq_file *m, struct crypto_alg *alg) argument
59 struct acomp_alg *alg = crypto_acomp_alg(acomp); local
61 alg->exit(acomp);
67 struct acomp_alg *alg = crypto_acomp_alg(acomp); local
72 acomp->compress = alg->compress;
73 acomp->decompress = alg
36 crypto_acomp_report( struct sk_buff *skb, struct crypto_alg *alg) argument
86 crypto_acomp_extsize(struct crypto_alg *alg) argument
96 __crypto_acomp_report_stat(struct sk_buff *skb, struct crypto_alg *alg) argument
116 crypto_acomp_report_stat(struct sk_buff *skb, struct crypto_alg *alg) argument
185 comp_prepare_alg(struct comp_alg_common *alg) argument
196 crypto_register_acomp(struct acomp_alg *alg) argument
209 crypto_unregister_acomp(struct acomp_alg *alg) argument
[all...]
H A Daead.c23 static inline struct crypto_istat_aead *aead_get_stat(struct aead_alg *alg) argument
26 return &alg->stat;
107 struct aead_alg *alg = crypto_aead_alg(aead); local
111 istat = aead_get_stat(alg);
121 ret = alg->encrypt(req);
130 struct aead_alg *alg = crypto_aead_alg(aead); local
134 istat = aead_get_stat(alg);
146 ret = alg->decrypt(req);
155 struct aead_alg *alg = crypto_aead_alg(aead); local
157 alg
163 struct aead_alg *alg = crypto_aead_alg(aead); local
178 crypto_aead_report( struct sk_buff *skb, struct crypto_alg *alg) argument
198 crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) argument
218 crypto_aead_report_stat( struct sk_buff *skb, struct crypto_alg *alg) argument
278 aead_prepare_alg(struct aead_alg *alg) argument
300 crypto_register_aead(struct aead_alg *alg) argument
313 crypto_unregister_aead(struct aead_alg *alg) argument
[all...]
H A Dgeniv.c46 struct aead_alg *alg; local
67 alg = crypto_spawn_aead_alg(spawn);
69 ivsize = crypto_aead_alg_ivsize(alg);
70 maxauthsize = crypto_aead_alg_maxauthsize(alg);
77 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME,
78 "%s(%s)", tmpl->name, alg->base.cra_name) >=
81 if (snprintf(inst->alg.base.cra_driver_name, CRYPTO_MAX_ALG_NAME,
82 "%s(%s)", tmpl->name, alg->base.cra_driver_name) >=
86 inst->alg.base.cra_priority = alg
[all...]
H A Dakcipher.c24 struct sk_buff *skb, struct crypto_alg *alg)
36 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg)
39 static void crypto_akcipher_show(struct seq_file *m, struct crypto_alg *alg) argument
47 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); local
49 alg->exit(akcipher);
55 struct akcipher_alg *alg = crypto_akcipher_alg(akcipher); local
57 if (alg->exit)
60 if (alg->init)
61 return alg->init(akcipher);
74 struct sk_buff *skb, struct crypto_alg *alg)
23 crypto_akcipher_report( struct sk_buff *skb, struct crypto_alg *alg) argument
73 crypto_akcipher_report_stat( struct sk_buff *skb, struct crypto_alg *alg) argument
132 akcipher_prepare_alg(struct akcipher_alg *alg) argument
156 crypto_register_akcipher(struct akcipher_alg *alg) argument
176 crypto_unregister_akcipher(struct akcipher_alg *alg) argument
[all...]
H A Dlskcipher.c27 struct crypto_alg *alg)
29 return container_of(alg, struct lskcipher_alg, co.base);
33 struct lskcipher_alg *alg)
35 return skcipher_get_stat_common(&alg->co);
38 static inline int crypto_lskcipher_errstat(struct lskcipher_alg *alg, int err) argument
40 struct crypto_istat_cipher *istat = lskcipher_get_stat(alg);
150 struct lskcipher_alg *alg = crypto_lskcipher_alg(tfm); local
163 return crypto_lskcipher_errstat(alg, ret);
169 struct lskcipher_alg *alg = crypto_lskcipher_alg(tfm); local
172 struct crypto_istat_cipher *istat = lskcipher_get_stat(alg);
26 __crypto_lskcipher_alg( struct crypto_alg *alg) argument
32 lskcipher_get_stat( struct lskcipher_alg *alg) argument
185 struct lskcipher_alg *alg = crypto_lskcipher_alg(tfm); local
245 struct lskcipher_alg *alg = crypto_lskcipher_alg(*ctx); local
254 struct lskcipher_alg *alg = crypto_lskcipher_alg(*ctx); local
262 struct lskcipher_alg *alg = crypto_lskcipher_alg(skcipher); local
270 struct lskcipher_alg *alg = crypto_lskcipher_alg(skcipher); local
289 crypto_lskcipher_show( struct seq_file *m, struct crypto_alg *alg) argument
303 crypto_lskcipher_report( struct sk_buff *skb, struct crypto_alg *alg) argument
323 crypto_lskcipher_report_stat( struct sk_buff *skb, struct crypto_alg *alg) argument
408 lskcipher_prepare_alg(struct lskcipher_alg *alg) argument
426 crypto_register_lskcipher(struct lskcipher_alg *alg) argument
439 crypto_unregister_lskcipher(struct lskcipher_alg *alg) argument
[all...]
/linux-master/fs/verity/
H A Dhash_algs.c40 * Return: pointer to the hash alg on success, else an ERR_PTR()
45 struct fsverity_hash_alg *alg; local
54 alg = &fsverity_hash_algs[num];
57 if (likely(smp_load_acquire(&alg->tfm) != NULL))
58 return alg;
62 if (alg->tfm != NULL)
65 tfm = crypto_alloc_shash(alg->name, 0, 0);
70 alg->name);
71 alg = ERR_PTR(-ENOPKG);
76 alg
111 fsverity_prepare_hash_state(const struct fsverity_hash_alg *alg, const u8 *salt, size_t salt_size) argument
209 fsverity_hash_buffer(const struct fsverity_hash_alg *alg, const void *data, size_t size, u8 *out) argument
224 const struct fsverity_hash_alg *alg = &fsverity_hash_algs[i]; local
[all...]
/linux-master/tools/crypto/tcrypt/
H A Dtcrypt_speed_compare.py33 modprobe tcrypt alg="pcrypt(rfc4106(gcm(aes)))" type=3
40 modprobe tcrypt alg="pcrypt(rfc4106(gcm(aes)))" type=3
61 alg = match.group(1)
63 return alg, op
94 alg, op = "", ""
101 alg, op = _alg, _op
102 if alg not in result:
103 result[alg] = {}
104 if op not in result[alg]:
105 result[alg][o
[all...]
/linux-master/include/crypto/
H A Dakcipher.h167 static inline struct akcipher_alg *__crypto_akcipher_alg(struct crypto_alg *alg) argument
169 return container_of(alg, struct akcipher_alg, base);
300 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); local
302 return alg->max_size(tfm);
306 struct akcipher_alg *alg)
309 return &alg->stat;
315 static inline int crypto_akcipher_errstat(struct akcipher_alg *alg, int err) argument
321 atomic64_inc(&akcipher_get_stat(alg)->err_cnt);
339 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); local
342 struct crypto_istat_akcipher *istat = akcipher_get_stat(alg);
305 akcipher_get_stat( struct akcipher_alg *alg) argument
364 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); local
425 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); local
450 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); local
475 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); local
497 struct akcipher_alg *alg = crypto_akcipher_alg(tfm); local
[all...]
H A Drng.h118 static inline struct rng_alg *__crypto_rng_alg(struct crypto_alg *alg) argument
120 return container_of(alg, struct rng_alg, base);
147 static inline struct crypto_istat_rng *rng_get_stat(struct rng_alg *alg) argument
150 return &alg->stat;
156 static inline int crypto_rng_errstat(struct rng_alg *alg, int err) argument
162 atomic64_inc(&rng_get_stat(alg)->err_cnt);
185 struct rng_alg *alg = crypto_rng_alg(tfm); local
188 struct crypto_istat_rng *istat = rng_get_stat(alg);
194 return crypto_rng_errstat(alg,
195 alg
[all...]
H A Dengine.h83 int crypto_engine_register_aead(struct aead_engine_alg *alg);
84 void crypto_engine_unregister_aead(struct aead_engine_alg *alg);
88 int crypto_engine_register_ahash(struct ahash_engine_alg *alg);
89 void crypto_engine_unregister_ahash(struct ahash_engine_alg *alg);
94 int crypto_engine_register_akcipher(struct akcipher_engine_alg *alg);
95 void crypto_engine_unregister_akcipher(struct akcipher_engine_alg *alg);
97 int crypto_engine_register_kpp(struct kpp_engine_alg *alg);
98 void crypto_engine_unregister_kpp(struct kpp_engine_alg *alg);
100 int crypto_engine_register_skcipher(struct skcipher_engine_alg *alg);
101 void crypto_engine_unregister_skcipher(struct skcipher_engine_alg *alg);
[all...]
H A Dacompress.h136 struct crypto_alg *alg)
138 return container_of(alg, struct comp_alg_common, base);
265 struct comp_alg_common *alg)
268 return &alg->stat;
274 static inline int crypto_comp_errstat(struct comp_alg_common *alg, int err) argument
280 atomic64_inc(&comp_get_stat(alg)->err_cnt);
297 struct comp_alg_common *alg; local
299 alg = crypto_comp_alg_common(tfm);
302 struct crypto_istat_compress *istat = comp_get_stat(alg);
308 return crypto_comp_errstat(alg, tf
135 __crypto_comp_alg_common( struct crypto_alg *alg) argument
264 comp_get_stat( struct comp_alg_common *alg) argument
323 struct comp_alg_common *alg; local
[all...]
/linux-master/drivers/crypto/qce/
H A Dcipher.h50 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); local
51 return container_of(alg, struct qce_alg_template, alg.skcipher);
/linux-master/include/crypto/internal/
H A Dakcipher.h20 struct akcipher_alg alg; member in union:akcipher_instance::__anon3257
83 return container_of(&inst->alg.base, struct crypto_instance, alg);
89 return container_of(&inst->alg, struct akcipher_instance, alg.base);
121 return container_of(spawn->base.alg, struct akcipher_alg, base);
129 * @alg: algorithm definition
133 int crypto_register_akcipher(struct akcipher_alg *alg);
140 * @alg: algorithm definition
142 void crypto_unregister_akcipher(struct akcipher_alg *alg);
[all...]
H A Daead.h25 struct aead_alg alg; member in union:aead_instance::__anon3255
50 return container_of(&inst->alg.base, struct crypto_instance, alg);
55 return container_of(&inst->alg, struct aead_instance, alg.base);
111 return container_of(spawn->base.alg, struct aead_alg, base);
139 static inline unsigned int crypto_aead_alg_chunksize(struct aead_alg *alg) argument
141 return alg->chunksize;
160 int crypto_register_aead(struct aead_alg *alg);
161 void crypto_unregister_aead(struct aead_alg *alg);
[all...]

Completed in 272 milliseconds

1234567891011>>