Home
last modified time | relevance | path

Searched refs:hash_tfm (Results 1 – 4 of 4) sorted by relevance

/drivers/crypto/qat/qat_common/
Dqat_algs.c70 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()
[all …]
/drivers/crypto/hisilicon/sec2/
Dsec.h95 struct crypto_shash *hash_tfm; member
Dsec_crypto.c1044 struct crypto_shash *hash_tfm = ctx->hash_tfm; in sec_aead_auth_set_key() local
1052 blocksize = crypto_shash_blocksize(hash_tfm); in sec_aead_auth_set_key()
1053 digestsize = crypto_shash_digestsize(hash_tfm); in sec_aead_auth_set_key()
1055 ret = crypto_shash_tfm_digest(hash_tfm, keys->authkey, in sec_aead_auth_set_key()
1892 auth_ctx->hash_tfm = crypto_alloc_shash(hash_name, 0, 0); in sec_aead_ctx_init()
1893 if (IS_ERR(auth_ctx->hash_tfm)) { in sec_aead_ctx_init()
1896 return PTR_ERR(auth_ctx->hash_tfm); in sec_aead_ctx_init()
1906 crypto_free_shash(ctx->a_ctx.hash_tfm); in sec_aead_ctx_exit()
/drivers/md/
Ddm-crypt.c113 struct crypto_shash *hash_tfm; member
412 if (lmk->hash_tfm && !IS_ERR(lmk->hash_tfm)) in crypt_iv_lmk_dtr()
413 crypto_free_shash(lmk->hash_tfm); in crypt_iv_lmk_dtr()
414 lmk->hash_tfm = NULL; in crypt_iv_lmk_dtr()
430 lmk->hash_tfm = crypto_alloc_shash("md5", 0, in crypt_iv_lmk_ctr()
432 if (IS_ERR(lmk->hash_tfm)) { in crypt_iv_lmk_ctr()
434 return PTR_ERR(lmk->hash_tfm); in crypt_iv_lmk_ctr()
461 crypto_shash_digestsize(lmk->hash_tfm)); in crypt_iv_lmk_init()
481 SHASH_DESC_ON_STACK(desc, lmk->hash_tfm); in crypt_iv_lmk_one()
486 desc->tfm = lmk->hash_tfm; in crypt_iv_lmk_one()