Lines Matching refs:halg
220 !(alg->halg.base.cra_flags & CRYPTO_ALG_OPTIONAL_KEY)) in ahash_set_needkey()
475 crypto_ahash_set_statesize(hash, alg->halg.statesize); in crypto_ahash_init_tfm()
568 static bool crypto_hash_alg_has_setkey(struct hash_alg_common *halg) in crypto_hash_alg_has_setkey() argument
570 struct crypto_alg *alg = &halg->base; in crypto_hash_alg_has_setkey()
580 struct hash_alg_common *halg = crypto_hash_alg_common(hash); in crypto_clone_ahash() local
586 if (!crypto_hash_alg_has_setkey(halg)) { in crypto_clone_ahash()
635 struct crypto_alg *base = &alg->halg.base; in ahash_prepare_alg()
638 if (alg->halg.statesize == 0) in ahash_prepare_alg()
641 err = hash_prepare_alg(&alg->halg); in ahash_prepare_alg()
658 struct crypto_alg *base = &alg->halg.base; in crypto_register_ahash()
671 crypto_unregister_alg(&alg->halg.base); in crypto_unregister_ahash()