Lines Matching refs:hash
18 #include "hash.h"
449 struct crypto_ahash *hash)
452 struct crypto_shash **ctx = crypto_ahash_ctx(hash);
468 struct crypto_shash *hash = __crypto_shash_cast(tfm);
469 struct shash_alg *alg = crypto_shash_alg(hash);
471 alg->exit_tfm(hash);
476 struct crypto_shash *hash = __crypto_shash_cast(tfm);
477 struct shash_alg *alg = crypto_shash_alg(hash);
480 hash->descsize = alg->descsize;
482 shash_set_needkey(hash, alg);
490 err = alg->init_tfm(hash);
495 if (WARN_ON_ONCE(hash->descsize > HASH_MAX_DESCSIZE)) {
497 alg->exit_tfm(hash);
585 struct crypto_shash *crypto_clone_shash(struct crypto_shash *hash)
587 struct crypto_tfm *tfm = crypto_shash_tfm(hash);
588 struct shash_alg *alg = crypto_shash_alg(hash);
597 return hash;
607 nhash->descsize = hash->descsize;
610 err = alg->clone_tfm(nhash, hash);
745 MODULE_DESCRIPTION("Synchronous cryptographic hash type");