Lines Matching refs:nhash
582 struct crypto_ahash *nhash; in crypto_clone_ahash() local
594 nhash = crypto_clone_tfm(&crypto_ahash_type, tfm); in crypto_clone_ahash()
596 if (IS_ERR(nhash)) in crypto_clone_ahash()
597 return nhash; in crypto_clone_ahash()
599 nhash->reqsize = hash->reqsize; in crypto_clone_ahash()
600 nhash->statesize = hash->statesize; in crypto_clone_ahash()
603 struct crypto_shash **nctx = crypto_ahash_ctx(nhash); in crypto_clone_ahash()
611 nhash->using_shash = true; in crypto_clone_ahash()
613 return nhash; in crypto_clone_ahash()
621 err = alg->clone_tfm(nhash, hash); in crypto_clone_ahash()
625 return nhash; in crypto_clone_ahash()
628 crypto_free_ahash(nhash); in crypto_clone_ahash()