Lines Matching refs:hash
38 struct crypto_ahash *hash; member
348 struct crypto_ahash *hash; in hash_bind() local
354 hash = crypto_alloc_ahash(name, type, mask); in hash_bind()
355 if (IS_ERR(hash)) { in hash_bind()
357 return ERR_CAST(hash); in hash_bind()
360 tfm->hash = hash; in hash_bind()
369 crypto_free_ahash(tfm->hash); in hash_release()
378 err = crypto_ahash_setkey(tfm->hash, key, keylen); in hash_setkey()
400 struct crypto_ahash *hash = tfm->hash; in hash_accept_parent_nokey() local
401 unsigned len = sizeof(*ctx) + crypto_ahash_reqsize(hash); in hash_accept_parent_nokey()
402 unsigned ds = crypto_ahash_digestsize(hash); in hash_accept_parent_nokey()
422 ahash_request_set_tfm(&ctx->req, hash); in hash_accept_parent_nokey()
435 if (!tfm->has_key && crypto_ahash_has_setkey(tfm->hash)) in hash_accept_parent()