Lines Matching refs:nhash
870 struct crypto_ahash *nhash; in crypto_clone_ahash() local
882 nhash = crypto_clone_tfm(&crypto_ahash_type, tfm); in crypto_clone_ahash()
884 if (IS_ERR(nhash)) in crypto_clone_ahash()
885 return nhash; in crypto_clone_ahash()
887 nhash->reqsize = hash->reqsize; in crypto_clone_ahash()
888 nhash->statesize = hash->statesize; in crypto_clone_ahash()
891 struct crypto_shash **nctx = crypto_ahash_ctx(nhash); in crypto_clone_ahash()
899 crypto_ahash_tfm(nhash)->exit = crypto_exit_ahash_using_shash; in crypto_clone_ahash()
900 nhash->using_shash = true; in crypto_clone_ahash()
902 return nhash; in crypto_clone_ahash()
911 crypto_ahash_tfm(nhash)->fb = crypto_ahash_tfm(fb); in crypto_clone_ahash()
919 err = alg->clone_tfm(nhash, hash); in crypto_clone_ahash()
923 crypto_ahash_tfm(nhash)->exit = crypto_ahash_exit_tfm; in crypto_clone_ahash()
925 return nhash; in crypto_clone_ahash()
930 crypto_free_ahash(nhash); in crypto_clone_ahash()