Home
last modified time | relevance | path

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

/Linux-v5.4/fs/ubifs/
Dauth.c34 SHASH_DESC_ON_STACK(shash, c->hash_tfm); in __ubifs_node_calc_hash()
37 shash->tfm = c->hash_tfm; in __ubifs_node_calc_hash()
85 hash = kmalloc(crypto_shash_descsize(c->hash_tfm), GFP_NOFS); in ubifs_prepare_auth_node()
90 SHASH_DESC_ON_STACK(hash_desc, c->hash_tfm); in ubifs_prepare_auth_node()
92 hash_desc->tfm = c->hash_tfm; in ubifs_prepare_auth_node()
147 return ubifs_get_desc(c, c->hash_tfm); in __ubifs_hash_get_desc()
326 c->hash_tfm = crypto_alloc_shash(c->auth_hash_name, 0, 0); in ubifs_init_authentication()
327 if (IS_ERR(c->hash_tfm)) { in ubifs_init_authentication()
328 err = PTR_ERR(c->hash_tfm); in ubifs_init_authentication()
334 c->hash_len = crypto_shash_digestsize(c->hash_tfm); in ubifs_init_authentication()
[all …]
Dmaster.c71 SHASH_DESC_ON_STACK(shash, c->hash_tfm); in mst_node_check_hash()
73 shash->tfm = c->hash_tfm; in mst_node_check_hash()
Dreplay.c564 SHASH_DESC_ON_STACK(hash_desc, c->hash_tfm); in authenticate_sleb_hash()
566 hash_desc->tfm = c->hash_tfm; in authenticate_sleb_hash()
609 hash = kmalloc(crypto_shash_descsize(c->hash_tfm), GFP_NOFS); in authenticate_sleb()
Dubifs.h1469 struct crypto_shash *hash_tfm; member
/Linux-v5.4/security/keys/encrypted-keys/
Dencrypted.c57 static struct crypto_shash *hash_tfm; variable
384 ret = calc_hash(hash_tfm, derived_key, derived_buf, derived_buf_len); in get_derived_key()
994 hash_tfm = crypto_alloc_shash(hash_alg, 0, 0); in init_encrypted()
995 if (IS_ERR(hash_tfm)) { in init_encrypted()
997 hash_alg, PTR_ERR(hash_tfm)); in init_encrypted()
998 return PTR_ERR(hash_tfm); in init_encrypted()
1009 crypto_free_shash(hash_tfm); in init_encrypted()
1016 crypto_free_shash(hash_tfm); in cleanup_encrypted()
/Linux-v5.4/drivers/crypto/qat/qat_common/
Dqat_algs.c113 struct crypto_shash *hash_tfm; member
156 SHASH_DESC_ON_STACK(shash, ctx->hash_tfm); in qat_alg_do_precomputes()
157 int block_size = crypto_shash_blocksize(ctx->hash_tfm); in qat_alg_do_precomputes()
158 int digest_size = crypto_shash_digestsize(ctx->hash_tfm); in qat_alg_do_precomputes()
165 shash->tfm = ctx->hash_tfm; in qat_alg_do_precomputes()
319 cpu_to_be32(crypto_shash_blocksize(ctx->hash_tfm)); in qat_alg_aead_init_enc_session()
386 roundup(crypto_shash_digestsize(ctx->hash_tfm), 8) * 2); in qat_alg_aead_init_dec_session()
406 cpu_to_be32(crypto_shash_blocksize(ctx->hash_tfm)); in qat_alg_aead_init_dec_session()
428 roundup(crypto_shash_digestsize(ctx->hash_tfm), 8) * 2) >> 3; in qat_alg_aead_init_dec_session()
1173 ctx->hash_tfm = crypto_alloc_shash(hash_name, 0, 0); in qat_alg_aead_init()
[all …]
/Linux-v5.4/security/integrity/evm/
Devm.h41 extern struct crypto_shash *hash_tfm;
/Linux-v5.4/drivers/md/
Ddm-crypt.c107 struct crypto_shash *hash_tfm; member
384 if (lmk->hash_tfm && !IS_ERR(lmk->hash_tfm)) in crypt_iv_lmk_dtr()
385 crypto_free_shash(lmk->hash_tfm); in crypt_iv_lmk_dtr()
386 lmk->hash_tfm = NULL; in crypt_iv_lmk_dtr()
402 lmk->hash_tfm = crypto_alloc_shash("md5", 0, 0); in crypt_iv_lmk_ctr()
403 if (IS_ERR(lmk->hash_tfm)) { in crypt_iv_lmk_ctr()
405 return PTR_ERR(lmk->hash_tfm); in crypt_iv_lmk_ctr()
432 crypto_shash_digestsize(lmk->hash_tfm)); in crypt_iv_lmk_init()
452 SHASH_DESC_ON_STACK(desc, lmk->hash_tfm); in crypt_iv_lmk_one()
457 desc->tfm = lmk->hash_tfm; in crypt_iv_lmk_one()
/Linux-v5.4/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.c80 tfm = crypt_stat->hash_tfm; in ecryptfs_calculate_md5()
188 crypt_stat->hash_tfm = tfm; in ecryptfs_init_crypt_stat()
205 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