Home
last modified time | relevance | path

Searched refs:alg (Results 76 - 100 of 601) sorted by relevance

12345678910>>...25

/kernel/linux/linux-6.6/include/crypto/internal/
H A Daead.h25 struct aead_alg alg; member
50 return container_of(&inst->alg.base, struct crypto_instance, alg); in aead_crypto_instance()
55 return container_of(&inst->alg, struct aead_instance, alg.base); in aead_instance()
111 return container_of(spawn->base.alg, struct aead_alg, base); in crypto_spawn_aead_alg()
139 static inline unsigned int crypto_aead_alg_chunksize(struct aead_alg *alg) in crypto_aead_alg_chunksize() argument
141 return alg->chunksize; in crypto_aead_alg_chunksize()
160 int crypto_register_aead(struct aead_alg *alg);
161 void crypto_unregister_aead(struct aead_alg *alg);
[all...]
H A Dakcipher.h20 struct akcipher_alg alg; member
83 return container_of(&inst->alg.base, struct crypto_instance, alg); in akcipher_crypto_instance()
89 return container_of(&inst->alg, struct akcipher_instance, alg.base); in akcipher_instance()
121 return container_of(spawn->base.alg, struct akcipher_alg, base); in crypto_spawn_akcipher_alg()
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 Dskcipher.h35 struct skcipher_alg alg; member
87 struct skcipher_instance, alg); in skcipher_alg_instance()
112 return container_of(spawn->base.alg, struct skcipher_alg, base); in crypto_skcipher_spawn_alg()
140 int crypto_register_skcipher(struct skcipher_alg *alg);
141 void crypto_unregister_skcipher(struct skcipher_alg *alg);
195 struct skcipher_alg *alg) in crypto_skcipher_alg_min_keysize()
197 return alg->min_keysize; in crypto_skcipher_alg_min_keysize()
201 struct skcipher_alg *alg) in crypto_skcipher_alg_max_keysize()
203 return alg->max_keysize; in crypto_skcipher_alg_max_keysize()
207 struct skcipher_alg *alg) in crypto_skcipher_alg_walksize()
194 crypto_skcipher_alg_min_keysize( struct skcipher_alg *alg) crypto_skcipher_alg_min_keysize() argument
200 crypto_skcipher_alg_max_keysize( struct skcipher_alg *alg) crypto_skcipher_alg_max_keysize() argument
206 crypto_skcipher_alg_walksize( struct skcipher_alg *alg) crypto_skcipher_alg_walksize() argument
[all...]
/kernel/linux/linux-6.6/include/crypto/
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 Drng.h118 static inline struct rng_alg *__crypto_rng_alg(struct crypto_alg *alg) in __crypto_rng_alg() argument
120 return container_of(alg, struct rng_alg, base); in __crypto_rng_alg()
147 static inline struct crypto_istat_rng *rng_get_stat(struct rng_alg *alg) in rng_get_stat() argument
150 return &alg->stat; in rng_get_stat()
156 static inline int crypto_rng_errstat(struct rng_alg *alg, int err) in crypto_rng_errstat() argument
162 atomic64_inc(&rng_get_stat(alg)->err_cnt); in crypto_rng_errstat()
185 struct rng_alg *alg = crypto_rng_alg(tfm); in crypto_rng_generate() local
188 struct crypto_istat_rng *istat = rng_get_stat(alg); in crypto_rng_generate()
194 return crypto_rng_errstat(alg, in crypto_rng_generate()
195 alg in crypto_rng_generate()
[all...]
H A Dalgapi.h58 unsigned int (*ctxsize)(struct crypto_alg *alg, u32 type, u32 mask);
59 unsigned int (*extsize)(struct crypto_alg *alg);
61 void (*show)(struct seq_file *m, struct crypto_alg *alg);
62 int (*report)(struct sk_buff *skb, struct crypto_alg *alg);
65 int (*report_stat)(struct sk_buff *skb, struct crypto_alg *alg);
75 struct crypto_alg alg; member
103 struct crypto_alg *alg; member
141 int crypto_register_alg(struct crypto_alg *alg);
142 void crypto_unregister_alg(struct crypto_alg *alg);
146 void crypto_mod_put(struct crypto_alg *alg);
[all...]
/kernel/linux/linux-5.10/include/crypto/internal/
H A Dhash.h39 struct ahash_alg alg; member
50 struct shash_alg alg; member
71 int crypto_register_ahash(struct ahash_alg *alg);
72 void crypto_unregister_ahash(struct ahash_alg *alg);
78 bool crypto_shash_alg_has_setkey(struct shash_alg *alg);
80 static inline bool crypto_shash_alg_needs_key(struct shash_alg *alg) in crypto_shash_alg_needs_key() argument
82 return crypto_shash_alg_has_setkey(alg) && in crypto_shash_alg_needs_key()
83 !(alg->base.cra_flags & CRYPTO_ALG_OPTIONAL_KEY); in crypto_shash_alg_needs_key()
100 return __crypto_hash_alg_common(spawn->base.alg); in crypto_spawn_ahash_alg()
103 int crypto_register_shash(struct shash_alg *alg);
137 __crypto_ahash_alg(struct crypto_alg *alg) __crypto_ahash_alg() argument
[all...]
H A Dakcipher.h20 struct akcipher_alg alg; member
61 return container_of(&inst->alg.base, struct crypto_instance, alg); in akcipher_crypto_instance()
67 return container_of(&inst->alg, struct akcipher_instance, alg.base); in akcipher_instance()
99 return container_of(spawn->base.alg, struct akcipher_alg, base); in crypto_spawn_akcipher_alg()
107 * @alg: algorithm definition
111 int crypto_register_akcipher(struct akcipher_alg *alg);
118 * @alg: algorithm definition
120 void crypto_unregister_akcipher(struct akcipher_alg *alg);
[all...]
H A Dskcipher.h26 struct skcipher_alg alg; member
78 struct skcipher_instance, alg); in skcipher_alg_instance()
103 return container_of(spawn->base.alg, struct skcipher_alg, base); in crypto_skcipher_spawn_alg()
124 int crypto_register_skcipher(struct skcipher_alg *alg);
125 void crypto_unregister_skcipher(struct skcipher_alg *alg);
165 struct skcipher_alg *alg) in crypto_skcipher_alg_min_keysize()
167 return alg->min_keysize; in crypto_skcipher_alg_min_keysize()
171 struct skcipher_alg *alg) in crypto_skcipher_alg_max_keysize()
173 return alg->max_keysize; in crypto_skcipher_alg_max_keysize()
177 struct skcipher_alg *alg) in crypto_skcipher_alg_walksize()
164 crypto_skcipher_alg_min_keysize( struct skcipher_alg *alg) crypto_skcipher_alg_min_keysize() argument
170 crypto_skcipher_alg_max_keysize( struct skcipher_alg *alg) crypto_skcipher_alg_max_keysize() argument
176 crypto_skcipher_alg_walksize( struct skcipher_alg *alg) crypto_skcipher_alg_walksize() argument
[all...]
/kernel/linux/linux-6.6/crypto/
H A Dalgboss.c46 char alg[CRYPTO_MAX_ALG_NAME]; member
68 crypto_alg_put(&param->larval->alg); in cryptomgr_probe()
77 const char *name = larval->alg.cra_name; in cryptomgr_schedule_probe()
148 param->type.data.type = larval->alg.cra_flags & ~CRYPTO_ALG_TESTED; in cryptomgr_schedule_probe()
152 param->otype = larval->alg.cra_flags; in cryptomgr_schedule_probe()
155 crypto_alg_get(&larval->alg); in cryptomgr_schedule_probe()
165 crypto_alg_put(&larval->alg); in cryptomgr_schedule_probe()
180 err = alg_test(param->driver, param->alg, type, CRYPTO_ALG_TESTED); in cryptomgr_test()
188 static int cryptomgr_schedule_test(struct crypto_alg *alg) in cryptomgr_schedule_test() argument
203 memcpy(param->driver, alg in cryptomgr_schedule_test()
[all...]
H A Dskcipher.c84 struct crypto_alg *alg) in __crypto_skcipher_alg()
86 return container_of(alg, struct skcipher_alg, base); in __crypto_skcipher_alg()
90 struct skcipher_alg *alg) in skcipher_get_stat()
93 return &alg->stat; in skcipher_get_stat()
99 static inline int crypto_skcipher_errstat(struct skcipher_alg *alg, int err) in crypto_skcipher_errstat() argument
101 struct crypto_istat_cipher *istat = skcipher_get_stat(alg); in crypto_skcipher_errstat()
640 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); in crypto_skcipher_encrypt() local
644 struct crypto_istat_cipher *istat = skcipher_get_stat(alg); in crypto_skcipher_encrypt()
653 ret = alg->encrypt(req); in crypto_skcipher_encrypt()
655 return crypto_skcipher_errstat(alg, re in crypto_skcipher_encrypt()
83 __crypto_skcipher_alg( struct crypto_alg *alg) __crypto_skcipher_alg() argument
89 skcipher_get_stat( struct skcipher_alg *alg) skcipher_get_stat() argument
662 struct skcipher_alg *alg = crypto_skcipher_alg(tfm); crypto_skcipher_decrypt() local
684 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); crypto_skcipher_exit_tfm() local
692 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); crypto_skcipher_init_tfm() local
715 crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg) crypto_skcipher_show() argument
730 crypto_skcipher_report( struct sk_buff *skb, struct crypto_alg *alg) crypto_skcipher_report() argument
750 crypto_skcipher_report_stat( struct sk_buff *skb, struct crypto_alg *alg) crypto_skcipher_report_stat() argument
837 skcipher_prepare_alg(struct skcipher_alg *alg) skcipher_prepare_alg() argument
861 crypto_register_skcipher(struct skcipher_alg *alg) crypto_register_skcipher() argument
874 crypto_unregister_skcipher(struct skcipher_alg *alg) crypto_unregister_skcipher() argument
[all...]
H A Dxts.c345 struct skcipher_alg *alg; in xts_create() local
380 alg = crypto_skcipher_spawn_alg(&ctx->spawn); in xts_create()
383 if (alg->base.cra_blocksize != XTS_BLOCK_SIZE) in xts_create()
386 if (crypto_skcipher_alg_ivsize(alg)) in xts_create()
390 &alg->base); in xts_create()
395 cipher_name = alg->base.cra_name; in xts_create()
412 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in xts_create()
425 inst->alg.base.cra_priority = alg->base.cra_priority; in xts_create()
426 inst->alg in xts_create()
[all...]
H A Dessiv.c417 struct crypto_alg *alg; in essiv_supported_algorithms() local
420 alg = crypto_alg_mod_lookup(essiv_cipher_name, in essiv_supported_algorithms()
423 if (IS_ERR(alg)) in essiv_supported_algorithms()
426 if (hash_alg->digestsize < alg->cra_cipher.cia_min_keysize || in essiv_supported_algorithms()
427 hash_alg->digestsize > alg->cra_cipher.cia_max_keysize) in essiv_supported_algorithms()
430 if (ivsize != alg->cra_blocksize) in essiv_supported_algorithms()
439 crypto_mod_put(alg); in essiv_supported_algorithms()
484 base = &skcipher_inst->alg.base; in essiv_create()
503 base = &aead_inst->alg.base; in essiv_create()
578 skcipher_inst->alg in essiv_create()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-core.c172 .alg.skcipher.base = {
194 .alg.skcipher.op = {
202 .alg.skcipher.base = {
223 .alg.skcipher.op = {
231 .alg.skcipher.base = {
253 .alg.skcipher.op = {
261 .alg.skcipher.base = {
282 .alg.skcipher.op = {
289 .alg.rng = {
308 .alg
[all...]
/kernel/linux/linux-5.10/crypto/
H A Dxts.c342 struct skcipher_alg *alg; in xts_create() local
377 alg = crypto_skcipher_spawn_alg(&ctx->spawn); in xts_create()
380 if (alg->base.cra_blocksize != XTS_BLOCK_SIZE) in xts_create()
383 if (crypto_skcipher_alg_ivsize(alg)) in xts_create()
387 &alg->base); in xts_create()
392 cipher_name = alg->base.cra_name; in xts_create()
409 if (snprintf(inst->alg.base.cra_name, CRYPTO_MAX_ALG_NAME, in xts_create()
417 inst->alg.base.cra_priority = alg->base.cra_priority; in xts_create()
418 inst->alg in xts_create()
[all...]
H A Dessiv.c416 struct crypto_alg *alg; in essiv_supported_algorithms() local
419 alg = crypto_alg_mod_lookup(essiv_cipher_name, in essiv_supported_algorithms()
422 if (IS_ERR(alg)) in essiv_supported_algorithms()
425 if (hash_alg->digestsize < alg->cra_cipher.cia_min_keysize || in essiv_supported_algorithms()
426 hash_alg->digestsize > alg->cra_cipher.cia_max_keysize) in essiv_supported_algorithms()
429 if (ivsize != alg->cra_blocksize) in essiv_supported_algorithms()
438 crypto_mod_put(alg); in essiv_supported_algorithms()
483 base = &skcipher_inst->alg.base; in essiv_create()
502 base = &aead_inst->alg.base; in essiv_create()
577 skcipher_inst->alg in essiv_create()
[all...]
H A Dskcipher.c627 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_skcipher_encrypt() local
631 crypto_stats_get(alg); in crypto_skcipher_encrypt()
636 crypto_stats_skcipher_encrypt(cryptlen, ret, alg); in crypto_skcipher_encrypt()
644 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_skcipher_decrypt() local
648 crypto_stats_get(alg); in crypto_skcipher_decrypt()
653 crypto_stats_skcipher_decrypt(cryptlen, ret, alg); in crypto_skcipher_decrypt()
661 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_exit_tfm() local
663 alg->exit(skcipher); in crypto_skcipher_exit_tfm()
669 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in crypto_skcipher_init_tfm() local
673 if (alg in crypto_skcipher_init_tfm()
692 crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg) crypto_skcipher_show() argument
709 crypto_skcipher_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_skcipher_report() argument
729 crypto_skcipher_report(struct sk_buff *skb, struct crypto_alg *alg) crypto_skcipher_report() argument
795 skcipher_prepare_alg(struct skcipher_alg *alg) skcipher_prepare_alg() argument
815 crypto_register_skcipher(struct skcipher_alg *alg) crypto_register_skcipher() argument
828 crypto_unregister_skcipher(struct skcipher_alg *alg) crypto_unregister_skcipher() argument
[all...]
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-hash.c24 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in sun8i_ce_hash_crainit() local
30 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash); in sun8i_ce_hash_crainit()
45 if (algt->alg.hash.halg.statesize < crypto_ahash_statesize(op->fallback_tfm)) in sun8i_ce_hash_crainit()
46 algt->alg.hash.halg.statesize = crypto_ahash_statesize(op->fallback_tfm); in sun8i_ce_hash_crainit()
117 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_final() local
127 algt = container_of(alg, struct sun8i_ce_alg_template, alg.hash); in sun8i_ce_hash_final()
155 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_finup() local
167 algt = container_of(alg, struc in sun8i_ce_hash_finup()
180 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); sun8i_ce_hash_digest_fb() local
220 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); sun8i_ce_hash_digest() local
254 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); sun8i_ce_hash_run() local
[all...]
H A Dsun8i-ce-core.c260 .alg.skcipher = {
287 .alg.skcipher = {
313 .alg.skcipher = {
340 .alg.skcipher = {
365 .alg.hash = {
395 .alg.hash = {
425 .alg.hash = {
455 .alg.hash = {
485 .alg.hash = {
515 .alg
[all...]
/kernel/linux/linux-5.10/drivers/crypto/bcm/
H A Dutil.c293 /* Returns the name for a given cipher alg/mode */
294 char *spu_alg_name(enum spu_cipher_alg alg, enum spu_cipher_mode mode) in spu_alg_name() argument
296 switch (alg) { in spu_alg_name()
357 u32 alg; in spu_debugfs_read() local
384 for (alg = 0; alg < CIPHER_ALG_LAST; alg++) { in spu_debugfs_read()
386 op_cnt = atomic_read(&ipriv->cipher_cnt[alg][mode]); in spu_debugfs_read()
391 spu_alg_name(alg, mode), op_cnt); in spu_debugfs_read()
398 for (alg in spu_debugfs_read()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/bcm/
H A Dutil.c295 /* Returns the name for a given cipher alg/mode */
296 char *spu_alg_name(enum spu_cipher_alg alg, enum spu_cipher_mode mode) in spu_alg_name() argument
298 switch (alg) { in spu_alg_name()
359 u32 alg; in spu_debugfs_read() local
386 for (alg = 0; alg < CIPHER_ALG_LAST; alg++) { in spu_debugfs_read()
388 op_cnt = atomic_read(&ipriv->cipher_cnt[alg][mode]); in spu_debugfs_read()
393 spu_alg_name(alg, mode), op_cnt); in spu_debugfs_read()
400 for (alg in spu_debugfs_read()
[all...]
/kernel/linux/linux-5.10/include/crypto/
H A Dkpp.h112 static inline struct kpp_alg *__crypto_kpp_alg(struct crypto_alg *alg) in __crypto_kpp_alg() argument
114 return container_of(alg, struct kpp_alg, base); in __crypto_kpp_alg()
271 * Function invokes the specific kpp operation for a given alg.
286 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_set_secret() local
291 ret = alg->set_secret(tfm, buffer, len); in crypto_kpp_set_secret()
312 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_generate_public_key() local
317 ret = alg->generate_public_key(req); in crypto_kpp_generate_public_key()
335 struct kpp_alg *alg = crypto_kpp_alg(tfm); in crypto_kpp_compute_shared_secret() local
340 ret = alg->compute_shared_secret(req); in crypto_kpp_compute_shared_secret()
357 struct kpp_alg *alg in crypto_kpp_maxsize() local
[all...]
H A Dacompress.h133 static inline struct acomp_alg *__crypto_acomp_alg(struct crypto_alg *alg) in __crypto_acomp_alg() argument
135 return container_of(alg, struct acomp_alg, base); in __crypto_acomp_alg()
264 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_acomp_compress() local
268 crypto_stats_get(alg); in crypto_acomp_compress()
270 crypto_stats_compress(slen, ret, alg); in crypto_acomp_compress()
286 struct crypto_alg *alg = tfm->base.__crt_alg; in crypto_acomp_decompress() local
290 crypto_stats_get(alg); in crypto_acomp_decompress()
292 crypto_stats_decompress(slen, ret, alg); in crypto_acomp_decompress()
/kernel/linux/linux-6.6/drivers/crypto/ccp/
H A Dccp-crypto-des3.c40 struct ccp_crypto_skcipher_alg *alg = ccp_crypto_skcipher_alg(tfm); in ccp_des3_setkey() local
52 ctx->u.des3.mode = alg->mode; in ccp_des3_setkey()
181 struct skcipher_alg *alg; in ccp_register_des3_alg() local
193 alg = &ccp_alg->alg; in ccp_register_des3_alg()
194 *alg = *def->alg_defaults; in ccp_register_des3_alg()
195 snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name); in ccp_register_des3_alg()
196 snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in ccp_register_des3_alg()
198 alg->base.cra_blocksize = def->blocksize; in ccp_register_des3_alg()
199 alg in ccp_register_des3_alg()
[all...]
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-core.c37 .alg.hash = {
64 .alg.hash = {
90 .alg.crypto = {
112 .alg.crypto = {
133 .alg.crypto = {
155 .alg.crypto = {
176 .alg.crypto = {
198 .alg.crypto = {
221 .alg.rng = {
433 err = crypto_register_skcipher(&ss_algs[i].alg in sun4i_ss_probe()
[all...]

Completed in 15 milliseconds

12345678910>>...25