Lines Matching refs:hash
5 * This is the asynchronous version of hash.c with notification of
11 #include <crypto/internal/hash.h>
35 static inline struct ahash_alg *crypto_ahash_alg(struct crypto_ahash *hash)
37 return container_of(crypto_hash_alg_common(hash), struct ahash_alg,
216 * is necessary. See include/crypto/hash.h and include/linux/crypto.h
449 struct crypto_ahash *hash = __crypto_ahash_cast(tfm);
450 struct ahash_alg *alg = crypto_ahash_alg(hash);
452 alg->exit_tfm(hash);
457 struct crypto_ahash *hash = __crypto_ahash_cast(tfm);
458 struct ahash_alg *alg = crypto_ahash_alg(hash);
460 hash->setkey = ahash_nosetkey;
465 hash->init = alg->init;
466 hash->update = alg->update;
467 hash->final = alg->final;
468 hash->finup = alg->finup ?: ahash_def_finup;
469 hash->digest = alg->digest;
470 hash->export = alg->export;
471 hash->import = alg->import;
474 hash->setkey = alg->setkey;
475 ahash_set_needkey(hash);
481 return alg->init_tfm ? alg->init_tfm(hash) : 0;
660 MODULE_DESCRIPTION("Asynchronous cryptographic hash type");