Lines Matching refs:hash_tfm
70 struct crypto_shash *hash_tfm; member
116 SHASH_DESC_ON_STACK(shash, ctx->hash_tfm); in qat_alg_do_precomputes()
117 int block_size = crypto_shash_blocksize(ctx->hash_tfm); in qat_alg_do_precomputes()
118 int digest_size = crypto_shash_digestsize(ctx->hash_tfm); in qat_alg_do_precomputes()
125 shash->tfm = ctx->hash_tfm; in qat_alg_do_precomputes()
262 cpu_to_be32(crypto_shash_blocksize(ctx->hash_tfm)); in qat_alg_aead_init_enc_session()
329 roundup(crypto_shash_digestsize(ctx->hash_tfm), 8) * 2); in qat_alg_aead_init_dec_session()
349 cpu_to_be32(crypto_shash_blocksize(ctx->hash_tfm)); in qat_alg_aead_init_dec_session()
371 roundup(crypto_shash_digestsize(ctx->hash_tfm), 8) * 2) >> 3; in qat_alg_aead_init_dec_session()
1337 ctx->hash_tfm = crypto_alloc_shash(hash_name, 0, 0); in qat_alg_aead_init()
1338 if (IS_ERR(ctx->hash_tfm)) in qat_alg_aead_init()
1339 return PTR_ERR(ctx->hash_tfm); in qat_alg_aead_init()
1366 crypto_free_shash(ctx->hash_tfm); in qat_alg_aead_exit()