Lines Matching defs:hash
7 * used for block encryption, by encrypting it using the hash of the
34 #include <crypto/internal/hash.h>
56 struct crypto_shash *hash;
81 err = crypto_shash_tfm_digest(tctx->hash, key, keylen, salt);
90 crypto_shash_digestsize(tctx->hash));
97 SHASH_DESC_ON_STACK(desc, tctx->hash);
112 desc->tfm = tctx->hash;
123 crypto_shash_digestsize(tctx->hash));
274 struct crypto_shash *hash;
281 hash = crypto_alloc_shash(ictx->shash_driver_name, 0, 0);
282 if (IS_ERR(hash)) {
283 err = PTR_ERR(hash);
288 tctx->hash = hash;
361 crypto_free_shash(tctx->hash);
370 crypto_free_shash(tctx->hash);
531 /* Synchronous hash, e.g., "sha256" */