/linux/include/crypto/internal/ |
H A D | hash.h | 34 char head[offsetof(struct ahash_alg, halg.base)]; 37 struct ahash_alg alg; 69 int crypto_register_ahash(struct ahash_alg *alg); 70 void crypto_unregister_ahash(struct ahash_alg *alg); 71 int crypto_register_ahashes(struct ahash_alg *algs, int count); 72 void crypto_unregister_ahashes(struct ahash_alg *algs, int count); 142 static inline struct ahash_alg *__crypto_ahash_alg(struct crypto_alg *alg) in __crypto_ahash_alg() 144 return container_of(__crypto_hash_alg_common(alg), struct ahash_alg, in __crypto_ahash_alg() 148 static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash) in crypto_ahash_alg() 150 return container_of(crypto_hash_alg_common(hash), struct ahash_alg, in crypto_ahash_alg()
|
/linux/drivers/crypto/ccp/ |
H A D | ccp-crypto.h | 62 struct ahash_alg alg; 83 struct ahash_alg *ahash_alg; in ccp_crypto_ahash_alg() local 85 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in ccp_crypto_ahash_alg() 87 return container_of(ahash_alg, struct ccp_crypto_ahash_alg, alg); in ccp_crypto_ahash_alg()
|
H A D | ccp-crypto-main.c | 366 struct ccp_crypto_ahash_alg *ahash_alg, *ahash_tmp; in ccp_unregister_algs() local 371 list_for_each_entry_safe(ahash_alg, ahash_tmp, &hash_algs, entry) { in ccp_unregister_algs() 372 crypto_unregister_ahash(&ahash_alg->alg); in ccp_unregister_algs() 373 list_del(&ahash_alg->entry); in ccp_unregister_algs() 374 kfree(ahash_alg); in ccp_unregister_algs()
|
H A D | ccp-crypto-sha.c | 416 struct ahash_alg *alg; in ccp_register_hmac_alg() 460 struct ahash_alg *alg; in ccp_register_sha_alg()
|
/linux/crypto/ |
H A D | ahash.c | 217 static void ahash_set_needkey(struct crypto_ahash *tfm, struct ahash_alg *alg) in ahash_set_needkey() 239 struct ahash_alg *alg = crypto_ahash_alg(tfm); in crypto_ahash_setkey() 465 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_exit_tfm() 473 struct ahash_alg *alg = crypto_ahash_alg(hash); in crypto_ahash_init_tfm() 583 struct ahash_alg *alg; in crypto_clone_ahash() 633 static int ahash_prepare_alg(struct ahash_alg *alg) in ahash_prepare_alg() 656 int crypto_register_ahash(struct ahash_alg *alg) in crypto_register_ahash() 669 void crypto_unregister_ahash(struct ahash_alg *alg) in crypto_unregister_ahash() 675 int crypto_register_ahashes(struct ahash_alg *algs, int count) in crypto_register_ahashes() 695 void crypto_unregister_ahashes(struct ahash_alg *algs, int count) in crypto_unregister_ahashes()
|
/linux/drivers/crypto/qce/ |
H A D | sha.h | 64 struct ahash_alg *alg = container_of(crypto_hash_alg_common(ahash), in to_ahash_tmpl() 65 struct ahash_alg, halg); in to_ahash_tmpl()
|
H A D | common.h | 91 struct ahash_alg ahash;
|
/linux/drivers/crypto/marvell/cesa/ |
H A D | cesa.h | 383 struct ahash_alg **ahash_algs; 901 extern struct ahash_alg mv_md5_alg; 902 extern struct ahash_alg mv_sha1_alg; 903 extern struct ahash_alg mv_sha256_alg; 904 extern struct ahash_alg mv_ahmac_md5_alg; 905 extern struct ahash_alg mv_ahmac_sha1_alg; 906 extern struct ahash_alg mv_ahmac_sha256_alg;
|
H A D | hash.c | 936 struct ahash_alg mv_md5_alg = { 1007 struct ahash_alg mv_sha1_alg = { 1081 struct ahash_alg mv_sha256_alg = { 1290 struct ahash_alg mv_ahmac_md5_alg = { 1361 struct ahash_alg mv_ahmac_sha1_alg = { 1432 struct ahash_alg mv_ahmac_sha256_alg = {
|
H A D | cesa.c | 241 static struct ahash_alg *orion_ahash_algs[] = { 257 static struct ahash_alg *armada_370_ahash_algs[] = {
|
/linux/drivers/crypto/allwinner/sun8i-ce/ |
H A D | sun8i-ce-hash.c | 29 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_init_tfm() 123 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_final() 166 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_finup() 194 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ce_hash_digest_fb() 209 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_need_fallback() 242 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_digest() 334 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun8i_ce_hash_run()
|
/linux/drivers/crypto/allwinner/sun8i-ss/ |
H A D | sun8i-ss-hash.c | 98 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_init_tfm() 194 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_final() 238 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_finup() 267 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_digest_fb() 343 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_need_fallback() 393 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_digest() 479 struct ahash_alg *alg = crypto_ahash_alg(tfm); in sun8i_ss_hash_run()
|
/linux/drivers/crypto/caam/ |
H A D | caamhash.c | 1581 struct ahash_alg template_ahash; 1758 struct ahash_engine_alg ahash_alg; member 1767 struct ahash_alg *alg = in caam_hash_cra_init() 1768 container_of(halg, struct ahash_alg, halg); in caam_hash_cra_init() 1770 container_of(alg, struct caam_hash_alg, ahash_alg.base); in caam_hash_cra_init() 1893 crypto_engine_unregister_ahash(&t_alg->ahash_alg); in caam_algapi_hash_exit() 1904 struct ahash_alg *halg; in caam_hash_alloc() 1911 t_alg->ahash_alg.base = template->template_ahash; in caam_hash_alloc() 1912 halg = &t_alg->ahash_alg.base; in caam_hash_alloc() 1939 t_alg->ahash_alg.op.do_one_request = ahash_do_one_req; in caam_hash_alloc() [all …]
|
H A D | caamalg_qi2.c | 4409 struct ahash_alg template_ahash; 4549 struct ahash_alg ahash_alg; member 4558 struct ahash_alg *alg = in caam_hash_cra_init() 4559 container_of(halg, struct ahash_alg, halg); in caam_hash_cra_init() 4561 container_of(alg, struct caam_hash_alg, ahash_alg); in caam_hash_cra_init() 4634 struct ahash_alg *halg; in caam_hash_alloc() 4641 t_alg->ahash_alg = template->template_ahash; in caam_hash_alloc() 4642 halg = &t_alg->ahash_alg; in caam_hash_alloc() 4656 t_alg->ahash_alg.setkey = NULL; in caam_hash_alloc() 5390 err = crypto_register_ahash(&t_alg->ahash_alg); in dpaa2_caam_probe() [all …]
|
/linux/drivers/crypto/ |
H A D | n2_core.c | 259 struct ahash_alg alg; 265 struct ahash_alg *ahash_alg; in n2_ahash_alg() local 267 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in n2_ahash_alg() 269 return container_of(ahash_alg, struct n2_ahash_alg, alg); in n2_ahash_alg() 280 struct ahash_alg *ahash_alg; in n2_hmac_alg() local 282 ahash_alg = container_of(alg, struct ahash_alg, halg.base); in n2_hmac_alg() 284 return container_of(ahash_alg, struct n2_hmac_alg, derived.alg); in n2_hmac_alg() 1340 struct ahash_alg *ahash; in __n2_register_one_hmac() 1386 struct ahash_alg *ahash; in __n2_register_one_ahash()
|
/linux/drivers/crypto/rockchip/ |
H A D | rk3288_crypto_ahash.c | 49 struct ahash_alg *alg = crypto_ahash_alg(tfm); in rk_ahash_digest_fb() 263 struct ahash_alg *alg = crypto_ahash_alg(tfm); in rk_hash_run() 348 struct ahash_alg *alg = crypto_ahash_alg(tfm); in rk_hash_init_tfm()
|
/linux/drivers/crypto/ccree/ |
H A D | cc_hash.c | 73 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 …]
|
/linux/Documentation/crypto/ |
H A D | api-digest.rst | 8 :functions: hash_alg_common ahash_alg shash_alg
|
H A D | devel-algos.rst | 151 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
|
/linux/drivers/crypto/allwinner/sun4i-ss/ |
H A D | sun4i-ss-hash.c | 21 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() 194 struct ahash_alg *alg = __crypto_ahash_alg(tfm->base.__crt_alg); in sun4i_hash()
|
H A D | sun4i-ss.h | 166 struct ahash_alg hash;
|
/linux/include/crypto/ |
H A D | engine.h | 35 struct ahash_alg base;
|
/linux/drivers/crypto/amcc/ |
H A D | crypto4xx_core.h | 138 struct ahash_alg hash;
|
/linux/drivers/crypto/chelsio/ |
H A D | chcr_crypto.h | 320 struct ahash_alg hash;
|
/linux/drivers/crypto/bcm/ |
H A D | cipher.h | 109 struct ahash_alg hash;
|