Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/fs/ubifs/
Dauth.c35 return crypto_shash_tfm_digest(c->hash_tfm, node, le32_to_cpu(ch->len), in __ubifs_node_calc_hash()
72 SHASH_DESC_ON_STACK(hash_desc, c->hash_tfm); in ubifs_prepare_auth_node()
74 hash_desc->tfm = c->hash_tfm; in ubifs_prepare_auth_node()
124 return ubifs_get_desc(c, c->hash_tfm); in __ubifs_hash_get_desc()
303 c->hash_tfm = crypto_alloc_shash(c->auth_hash_name, 0, 0); in ubifs_init_authentication()
304 if (IS_ERR(c->hash_tfm)) { in ubifs_init_authentication()
305 err = PTR_ERR(c->hash_tfm); in ubifs_init_authentication()
311 c->hash_len = crypto_shash_digestsize(c->hash_tfm); in ubifs_init_authentication()
353 crypto_free_shash(c->hash_tfm); in ubifs_init_authentication()
373 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.h1471 struct crypto_shash *hash_tfm; member
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
Dencrypted.c57 static struct crypto_shash *hash_tfm; variable
371 ret = crypto_shash_tfm_digest(hash_tfm, derived_buf, derived_buf_len, in get_derived_key()
981 hash_tfm = crypto_alloc_shash(hash_alg, 0, 0); in init_encrypted()
982 if (IS_ERR(hash_tfm)) { in init_encrypted()
984 hash_alg, PTR_ERR(hash_tfm)); in init_encrypted()
985 return PTR_ERR(hash_tfm); in init_encrypted()
996 crypto_free_shash(hash_tfm); in init_encrypted()
1003 crypto_free_shash(hash_tfm); in cleanup_encrypted()
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
Dqat_algs.c58 struct crypto_shash *hash_tfm; member
102 SHASH_DESC_ON_STACK(shash, ctx->hash_tfm); in qat_alg_do_precomputes()
103 int block_size = crypto_shash_blocksize(ctx->hash_tfm); in qat_alg_do_precomputes()
104 int digest_size = crypto_shash_digestsize(ctx->hash_tfm); in qat_alg_do_precomputes()
111 shash->tfm = ctx->hash_tfm; in qat_alg_do_precomputes()
265 cpu_to_be32(crypto_shash_blocksize(ctx->hash_tfm)); in qat_alg_aead_init_enc_session()
332 roundup(crypto_shash_digestsize(ctx->hash_tfm), 8) * 2); in qat_alg_aead_init_dec_session()
352 cpu_to_be32(crypto_shash_blocksize(ctx->hash_tfm)); in qat_alg_aead_init_dec_session()
374 roundup(crypto_shash_digestsize(ctx->hash_tfm), 8) * 2) >> 3; in qat_alg_aead_init_dec_session()
1216 ctx->hash_tfm = crypto_alloc_shash(hash_name, 0, 0); in qat_alg_aead_init()
[all …]
/kernel/linux/linux-5.10/security/integrity/evm/
Devm.h41 extern struct crypto_shash *hash_tfm;
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/
Dsec_crypto.c856 struct crypto_shash *hash_tfm = ctx->hash_tfm; in sec_aead_auth_set_key() local
864 blocksize = crypto_shash_blocksize(hash_tfm); in sec_aead_auth_set_key()
866 ret = crypto_shash_tfm_digest(hash_tfm, keys->authkey, in sec_aead_auth_set_key()
1375 auth_ctx->hash_tfm = crypto_alloc_shash(hash_name, 0, 0); in sec_aead_ctx_init()
1376 if (IS_ERR(auth_ctx->hash_tfm)) { in sec_aead_ctx_init()
1379 return PTR_ERR(auth_ctx->hash_tfm); in sec_aead_ctx_init()
1389 crypto_free_shash(ctx->a_ctx.hash_tfm); in sec_aead_ctx_exit()
Dsec.h84 struct crypto_shash *hash_tfm; member
/kernel/linux/linux-5.10/fs/ecryptfs/
Dkeystore.c603 struct crypto_shash *hash_tfm; member
741 s->hash_tfm = crypto_alloc_shash(ECRYPTFS_TAG_70_DIGEST, 0, 0); in ecryptfs_write_tag_70_packet()
742 if (IS_ERR(s->hash_tfm)) { in ecryptfs_write_tag_70_packet()
743 rc = PTR_ERR(s->hash_tfm); in ecryptfs_write_tag_70_packet()
751 crypto_shash_descsize(s->hash_tfm), GFP_KERNEL); in ecryptfs_write_tag_70_packet()
757 s->hash_desc->tfm = s->hash_tfm; in ecryptfs_write_tag_70_packet()
839 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
/kernel/linux/linux-5.10/drivers/md/
Ddm-crypt.c112 struct crypto_shash *hash_tfm; member
411 if (lmk->hash_tfm && !IS_ERR(lmk->hash_tfm)) in crypt_iv_lmk_dtr()
412 crypto_free_shash(lmk->hash_tfm); in crypt_iv_lmk_dtr()
413 lmk->hash_tfm = NULL; in crypt_iv_lmk_dtr()
429 lmk->hash_tfm = crypto_alloc_shash("md5", 0, in crypt_iv_lmk_ctr()
431 if (IS_ERR(lmk->hash_tfm)) { in crypt_iv_lmk_ctr()
433 return PTR_ERR(lmk->hash_tfm); in crypt_iv_lmk_ctr()
460 crypto_shash_digestsize(lmk->hash_tfm)); in crypt_iv_lmk_init()
480 SHASH_DESC_ON_STACK(desc, lmk->hash_tfm); in crypt_iv_lmk_one()
485 desc->tfm = lmk->hash_tfm; in crypt_iv_lmk_one()