Home
last modified time | relevance | path

Searched refs:halg (Results 1 – 6 of 6) sorted by relevance

/crypto/
Dfips140-alg-registration.c158 struct hash_alg_common *halg = crypto_hash_alg_common(tfm); in fips140_ahash_init_tfm() local
159 struct ahash_alg *alg = container_of(halg, struct ahash_alg, halg); in fips140_ahash_init_tfm()
161 fips140_load_init_function(&halg->base); in fips140_ahash_init_tfm()
163 if (fips140_wait_until_ready(&halg->base)) in fips140_ahash_init_tfm()
220 return prepare_alg(alg, &alg->halg.base, init_tfm, in fips140_prepare_ahash_alg()
Dahash.c429 crypto_ahash_set_statesize(hash, alg->halg.statesize); in crypto_ahash_init_tfm()
544 struct hash_alg_common *halg = crypto_hash_alg_common(hash); in crypto_clone_ahash() local
550 if (!crypto_hash_alg_has_setkey(halg)) { in crypto_clone_ahash()
596 struct crypto_alg *base = &alg->halg.base; in ahash_prepare_alg()
599 if (alg->halg.statesize == 0) in ahash_prepare_alg()
602 err = hash_prepare_alg(&alg->halg); in ahash_prepare_alg()
614 struct crypto_alg *base = &alg->halg.base; in crypto_register_ahash()
627 crypto_unregister_alg(&alg->halg.base); in crypto_unregister_ahash()
676 bool crypto_hash_alg_has_setkey(struct hash_alg_common *halg) in crypto_hash_alg_has_setkey() argument
678 struct crypto_alg *alg = &halg->base; in crypto_hash_alg_has_setkey()
Dhash.h19 struct hash_alg_common *halg = __crypto_hash_alg_common(alg); in crypto_hash_report_stat() local
20 struct crypto_istat_hash *istat = hash_get_stat(halg); in crypto_hash_report_stat()
Dshash.c26 return hash_get_stat(&alg->halg); in shash_get_stat()
31 return crypto_hash_errstat(&alg->halg, err); in crypto_shash_errstat()
686 struct crypto_alg *base = &alg->halg.base; in shash_prepare_alg()
709 err = hash_prepare_alg(&alg->halg); in shash_prepare_alg()
723 alg->halg.statesize = alg->descsize; in shash_prepare_alg()
Dcryptd.c688 inst->alg.halg.base.cra_flags |= CRYPTO_ALG_ASYNC | in cryptd_create_hash()
691 inst->alg.halg.digestsize = alg->digestsize; in cryptd_create_hash()
692 inst->alg.halg.statesize = alg->statesize; in cryptd_create_hash()
693 inst->alg.halg.base.cra_ctxsize = sizeof(struct cryptd_hash_ctx); in cryptd_create_hash()
Dcrypto_engine.c622 alg->base.halg.base.cra_flags |= CRYPTO_ALG_ENGINE; in crypto_engine_register_ahash()