Home
last modified time | relevance | path

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

/linux-6.6.21/fs/ubifs/
Dauth.c34 return crypto_shash_tfm_digest(c->hash_tfm, node, le32_to_cpu(ch->len), in __ubifs_node_calc_hash()
71 SHASH_DESC_ON_STACK(hash_desc, c->hash_tfm); in ubifs_prepare_auth_node()
73 hash_desc->tfm = c->hash_tfm; in ubifs_prepare_auth_node()
123 return ubifs_get_desc(c, c->hash_tfm); in __ubifs_hash_get_desc()
302 c->hash_tfm = crypto_alloc_shash(c->auth_hash_name, 0, 0); in ubifs_init_authentication()
303 if (IS_ERR(c->hash_tfm)) { in ubifs_init_authentication()
304 err = PTR_ERR(c->hash_tfm); in ubifs_init_authentication()
310 c->hash_len = crypto_shash_digestsize(c->hash_tfm); in ubifs_init_authentication()
352 crypto_free_shash(c->hash_tfm); in ubifs_init_authentication()
372 crypto_free_shash(c->hash_tfm); in __ubifs_exit_authentication()
Dreplay.c567 SHASH_DESC_ON_STACK(hash_desc, c->hash_tfm); in authenticate_sleb_hash()
569 hash_desc->tfm = c->hash_tfm; in authenticate_sleb_hash()
Dmaster.c71 crypto_shash_tfm_digest(c->hash_tfm, node + sizeof(struct ubifs_ch), in mst_node_check_hash()
Dubifs.h1499 struct crypto_shash *hash_tfm; member
/linux-6.6.21/security/keys/encrypted-keys/
Dencrypted.c57 static struct crypto_shash *hash_tfm; variable
377 ret = crypto_shash_tfm_digest(hash_tfm, derived_buf, derived_buf_len, in get_derived_key()
1014 hash_tfm = crypto_alloc_shash(hash_alg, 0, 0); in init_encrypted()
1015 if (IS_ERR(hash_tfm)) { in init_encrypted()
1017 hash_alg, PTR_ERR(hash_tfm)); in init_encrypted()
1018 return PTR_ERR(hash_tfm); in init_encrypted()
1029 crypto_free_shash(hash_tfm); in init_encrypted()
1036 crypto_free_shash(hash_tfm); in cleanup_encrypted()
/linux-6.6.21/drivers/crypto/intel/qat/qat_common/
Dqat_algs.c71 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()
1158 ctx->hash_tfm = crypto_alloc_shash(hash_name, 0, 0); in qat_alg_aead_init()
[all …]
/linux-6.6.21/drivers/crypto/hisilicon/sec2/
Dsec.h96 struct crypto_shash *hash_tfm; member
Dsec_crypto.c1092 struct crypto_shash *hash_tfm = ctx->hash_tfm; in sec_aead_auth_set_key() local
1100 blocksize = crypto_shash_blocksize(hash_tfm); in sec_aead_auth_set_key()
1101 digestsize = crypto_shash_digestsize(hash_tfm); in sec_aead_auth_set_key()
1103 ret = crypto_shash_tfm_digest(hash_tfm, keys->authkey, in sec_aead_auth_set_key()
1941 auth_ctx->hash_tfm = crypto_alloc_shash(hash_name, 0, 0); in sec_aead_ctx_init()
1942 if (IS_ERR(auth_ctx->hash_tfm)) { in sec_aead_ctx_init()
1945 return PTR_ERR(auth_ctx->hash_tfm); in sec_aead_ctx_init()
1955 crypto_free_shash(ctx->a_ctx.hash_tfm); in sec_aead_ctx_exit()
/linux-6.6.21/fs/ecryptfs/
Dkeystore.c604 struct crypto_shash *hash_tfm; member
742 s->hash_tfm = crypto_alloc_shash(ECRYPTFS_TAG_70_DIGEST, 0, 0); in ecryptfs_write_tag_70_packet()
743 if (IS_ERR(s->hash_tfm)) { in ecryptfs_write_tag_70_packet()
744 rc = PTR_ERR(s->hash_tfm); in ecryptfs_write_tag_70_packet()
752 crypto_shash_descsize(s->hash_tfm), GFP_KERNEL); in ecryptfs_write_tag_70_packet()
758 s->hash_desc->tfm = s->hash_tfm; in ecryptfs_write_tag_70_packet()
840 crypto_free_shash(s->hash_tfm); in ecryptfs_write_tag_70_packet()
Dcrypto.c65 int rc = crypto_shash_tfm_digest(crypt_stat->hash_tfm, src, len, dst); in ecryptfs_calculate_md5()
173 crypt_stat->hash_tfm = tfm; in ecryptfs_init_crypt_stat()
190 crypto_free_shash(crypt_stat->hash_tfm); in ecryptfs_destroy_crypt_stat()
Decryptfs_kernel.h240 struct crypto_shash *hash_tfm; /* Crypto context for generating member
/linux-6.6.21/drivers/md/
Ddm-crypt.c119 struct crypto_shash *hash_tfm; member
419 if (lmk->hash_tfm && !IS_ERR(lmk->hash_tfm)) in crypt_iv_lmk_dtr()
420 crypto_free_shash(lmk->hash_tfm); in crypt_iv_lmk_dtr()
421 lmk->hash_tfm = NULL; in crypt_iv_lmk_dtr()
437 lmk->hash_tfm = crypto_alloc_shash("md5", 0, in crypt_iv_lmk_ctr()
439 if (IS_ERR(lmk->hash_tfm)) { in crypt_iv_lmk_ctr()
441 return PTR_ERR(lmk->hash_tfm); in crypt_iv_lmk_ctr()
468 crypto_shash_digestsize(lmk->hash_tfm)); in crypt_iv_lmk_init()
488 SHASH_DESC_ON_STACK(desc, lmk->hash_tfm); in crypt_iv_lmk_one()
493 desc->tfm = lmk->hash_tfm; in crypt_iv_lmk_one()