Home
last modified time | relevance | path

Searched refs:nhash (Results 1 – 2 of 2) sorted by relevance

/crypto/
A Dahash.c857 struct crypto_ahash *nhash; in crypto_clone_ahash() local
869 nhash = crypto_clone_tfm(&crypto_ahash_type, tfm); in crypto_clone_ahash()
871 if (IS_ERR(nhash)) in crypto_clone_ahash()
872 return nhash; in crypto_clone_ahash()
874 nhash->reqsize = hash->reqsize; in crypto_clone_ahash()
875 nhash->statesize = hash->statesize; in crypto_clone_ahash()
887 nhash->using_shash = true; in crypto_clone_ahash()
889 return nhash; in crypto_clone_ahash()
906 err = alg->clone_tfm(nhash, hash); in crypto_clone_ahash()
912 return nhash; in crypto_clone_ahash()
[all …]
A Dshash.c403 struct crypto_shash *nhash; in crypto_clone_shash() local
417 nhash = crypto_clone_tfm(&crypto_shash_type, tfm); in crypto_clone_shash()
418 if (IS_ERR(nhash)) in crypto_clone_shash()
419 return nhash; in crypto_clone_shash()
422 err = alg->clone_tfm(nhash, hash); in crypto_clone_shash()
424 crypto_free_shash(nhash); in crypto_clone_shash()
430 crypto_shash_tfm(nhash)->exit = crypto_shash_exit_tfm; in crypto_clone_shash()
432 return nhash; in crypto_clone_shash()

Completed in 6 milliseconds