Searched refs:halg (Results 1 – 3 of 3) sorted by relevance
158 struct hash_alg_common *halg = crypto_hash_alg_common(tfm); in fips140_ahash_init_tfm() local159 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()
38 halg); in crypto_ahash_alg()570 struct crypto_alg *base = &alg->halg.base; in ahash_prepare_alg()572 if (alg->halg.digestsize > HASH_MAX_DIGESTSIZE || in ahash_prepare_alg()573 alg->halg.statesize > HASH_MAX_STATESIZE || in ahash_prepare_alg()574 alg->halg.statesize == 0) in ahash_prepare_alg()586 struct crypto_alg *base = &alg->halg.base; in crypto_register_ahash()599 crypto_unregister_alg(&alg->halg.base); in crypto_unregister_ahash()648 bool crypto_hash_alg_has_setkey(struct hash_alg_common *halg) in crypto_hash_alg_has_setkey() argument650 struct crypto_alg *alg = &halg->base; in crypto_hash_alg_has_setkey()
666 inst->alg.halg.base.cra_flags |= CRYPTO_ALG_ASYNC | in cryptd_create_hash()669 inst->alg.halg.digestsize = alg->digestsize; in cryptd_create_hash()670 inst->alg.halg.statesize = alg->statesize; in cryptd_create_hash()671 inst->alg.halg.base.cra_ctxsize = sizeof(struct cryptd_hash_ctx); in cryptd_create_hash()673 inst->alg.halg.base.cra_init = cryptd_hash_init_tfm; in cryptd_create_hash()674 inst->alg.halg.base.cra_exit = cryptd_hash_exit_tfm; in cryptd_create_hash()