Home
last modified time | relevance | path

Searched refs:ahash_alg (Results 1 – 25 of 47) sorted by relevance

12

/kernel/linux/linux-5.10/include/crypto/internal/
Dhash.h36 char head[offsetof(struct ahash_alg, halg.base)];
39 struct ahash_alg alg;
71 int crypto_register_ahash(struct ahash_alg *alg);
72 void crypto_unregister_ahash(struct ahash_alg *alg);
73 int crypto_register_ahashes(struct ahash_alg *algs, int count);
74 void crypto_unregister_ahashes(struct ahash_alg *algs, int count);
137 static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg) in __crypto_ahash_alg()
139 return container_of(__crypto_hash_alg_common(alg), struct ahash_alg, in __crypto_ahash_alg()
/kernel/linux/linux-5.10/drivers/crypto/ccp/
Dccp-crypto.h61 struct ahash_alg alg;
82 struct ahash_alg *ahash_alg; in ccp_crypto_ahash_alg() local
84 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in ccp_crypto_ahash_alg()
86 return container_of(ahash_alg, struct ccp_crypto_ahash_alg, alg); in ccp_crypto_ahash_alg()
Dccp-crypto-main.c373 struct ccp_crypto_ahash_alg *ahash_alg, *ahash_tmp; in ccp_unregister_algs() local
378 list_for_each_entry_safe(ahash_alg, ahash_tmp, &hash_algs, entry) { in ccp_unregister_algs()
379 crypto_unregister_ahash(&ahash_alg->alg); in ccp_unregister_algs()
380 list_del(&ahash_alg->entry); in ccp_unregister_algs()
381 kfree(ahash_alg); in ccp_unregister_algs()
Dccp-crypto-sha.c415 struct ahash_alg *alg; in ccp_register_hmac_alg()
459 struct ahash_alg *alg; in ccp_register_sha_alg()
/kernel/linux/linux-5.10/drivers/crypto/qce/
Dsha.h63 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl()
64 struct ahash_alg, halg); in to_ahash_tmpl()
Dcommon.h87 struct ahash_alg ahash;
/kernel/linux/linux-5.10/crypto/
Dahash.c35 static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) in crypto_ahash_alg()
37 return container_of(crypto_hash_alg_common(hash), struct ahash_alg, in crypto_ahash_alg()
450 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_exit_tfm()
458 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_init_tfm()
568 static int ahash_prepare_alg(struct ahash_alg *alg) in ahash_prepare_alg()
584 int crypto_register_ahash(struct ahash_alg *alg) in crypto_register_ahash()
597 void crypto_unregister_ahash(struct ahash_alg *alg) in crypto_unregister_ahash()
603 int crypto_register_ahashes(struct ahash_alg *algs, int count) in crypto_register_ahashes()
623 void crypto_unregister_ahashes(struct ahash_alg *algs, int count) in crypto_unregister_ahashes()
/kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/
Dcesa.h383 struct ahash_alg **ahash_algs;
872 extern struct ahash_alg mv_md5_alg;
873 extern struct ahash_alg mv_sha1_alg;
874 extern struct ahash_alg mv_sha256_alg;
875 extern struct ahash_alg mv_ahmac_md5_alg;
876 extern struct ahash_alg mv_ahmac_sha1_alg;
877 extern struct ahash_alg mv_ahmac_sha256_alg;
Dhash.c912 struct ahash_alg mv_md5_alg = {
983 struct ahash_alg mv_sha1_alg = {
1057 struct ahash_alg mv_sha256_alg = {
1291 struct ahash_alg mv_ahmac_md5_alg = {
1362 struct ahash_alg mv_ahmac_sha1_alg = {
1433 struct ahash_alg mv_ahmac_sha256_alg = {
Dcesa.c241 static struct ahash_alg *orion_ahash_algs[] = {
257 static struct ahash_alg *armada_370_ahash_algs[] = {
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ce/
Dsun8i-ce-hash.c24 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in sun8i_ce_hash_crainit()
117 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_final()
155 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_finup()
180 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_digest_fb()
220 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_digest()
254 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_run()
Dsun8i-ce.h331 struct ahash_alg hash;
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun8i-ss/
Dsun8i-ss-hash.c24 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in sun8i_ss_hash_crainit()
117 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_final()
155 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_finup()
180 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_digest_fb()
285 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_digest()
322 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ss_hash_run()
Dsun8i-ss.h277 struct ahash_alg hash;
/kernel/linux/linux-5.10/drivers/crypto/caam/
Dcaamhash.c1573 struct ahash_alg template_ahash;
1749 struct ahash_alg ahash_alg; member
1758 struct ahash_alg *alg = in caam_hash_cra_init()
1759 container_of(halg, struct ahash_alg, halg); in caam_hash_cra_init()
1761 container_of(alg, struct caam_hash_alg, ahash_alg); in caam_hash_cra_init()
1887 crypto_unregister_ahash(&t_alg->ahash_alg); in caam_algapi_hash_exit()
1898 struct ahash_alg *halg; in caam_hash_alloc()
1907 t_alg->ahash_alg = template->template_ahash; in caam_hash_alloc()
1908 halg = &t_alg->ahash_alg; in caam_hash_alloc()
1921 t_alg->ahash_alg.setkey = NULL; in caam_hash_alloc()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/
Dn2_core.c257 struct ahash_alg alg;
263 struct ahash_alg *ahash_alg; in n2_ahash_alg() local
265 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in n2_ahash_alg()
267 return container_of(ahash_alg, struct n2_ahash_alg, alg); in n2_ahash_alg()
278 struct ahash_alg *ahash_alg; in n2_hmac_alg() local
280 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in n2_hmac_alg()
282 return container_of(ahash_alg, struct n2_hmac_alg, derived.alg); in n2_hmac_alg()
1367 struct ahash_alg *ahash; in __n2_register_one_hmac()
1407 struct ahash_alg *ahash; in __n2_register_one_ahash()
/kernel/linux/linux-5.10/Documentation/crypto/
Dapi-digest.rst8 :functions: hash_alg_common ahash_alg shash_alg
Ddevel-algos.rst151 int crypto_register_ahash(struct ahash_alg *alg);
162 void crypto_unregister_ahash(struct ahash_alg *alg);
168 Cipher Definition With struct shash_alg and ahash_alg
/kernel/linux/linux-5.10/drivers/crypto/ccree/
Dcc_hash.c73 struct ahash_alg ahash_alg; member
1125 struct ahash_alg *ahash_alg = in cc_cra_init() local
1126 container_of(hash_alg_common, struct ahash_alg, halg); in cc_cra_init()
1128 container_of(ahash_alg, struct cc_hash_alg, ahash_alg); in cc_cra_init()
1566 struct ahash_alg template_ahash;
1826 struct ahash_alg *halg; in cc_alloc_hash_alg()
1832 t_crypto_alg->ahash_alg = template->template_ahash; in cc_alloc_hash_alg()
1833 halg = &t_crypto_alg->ahash_alg; in cc_alloc_hash_alg()
2018 rc = crypto_register_ahash(&t_alg->ahash_alg); in cc_hash_alloc()
2041 rc = crypto_register_ahash(&t_alg->ahash_alg); in cc_hash_alloc()
[all …]
/kernel/linux/linux-5.10/drivers/crypto/allwinner/sun4i-ss/
Dsun4i-ss.h164 struct ahash_alg hash;
Dsun4i-ss-hash.c21 struct ahash_alg *alg = __crypto_ahash_alg(tfm->__crt_alg); in sun4i_hash_crainit()
51 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun4i_hash_init()
/kernel/linux/linux-5.10/drivers/crypto/rockchip/
Drk3288_crypto.h243 struct ahash_alg hash;
/kernel/linux/linux-5.10/drivers/crypto/amcc/
Dcrypto4xx_core.h138 struct ahash_alg hash;
/kernel/linux/linux-5.10/drivers/crypto/chelsio/
Dchcr_crypto.h316 struct ahash_alg hash;
/kernel/linux/linux-5.10/drivers/crypto/bcm/
Dcipher.h108 struct ahash_alg hash;

12