Home
last modified time | relevance | path

Searched refs:hash_tfm (Results 1 - 25 of 25) sorted by relevance

/kernel/linux/linux-5.10/fs/ubifs/
H A 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()
[all...]
H A 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()
H A Dmaster.c71 crypto_shash_tfm_digest(c->hash_tfm, node + sizeof(struct ubifs_ch), in mst_node_check_hash()
H A Dubifs.h1228 * @hash_tfm: the hash transformation used for hashing nodes
1471 struct crypto_shash *hash_tfm; member
/kernel/linux/linux-6.6/fs/ubifs/
H A 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()
[all...]
H A 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()
H A Dmaster.c71 crypto_shash_tfm_digest(c->hash_tfm, node + sizeof(struct ubifs_ch), in mst_node_check_hash()
H A Dubifs.h1249 * @hash_tfm: the hash transformation used for hashing nodes
1499 struct crypto_shash *hash_tfm; member
/kernel/linux/linux-5.10/security/keys/encrypted-keys/
H A 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-6.6/security/keys/encrypted-keys/
H A 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()
/kernel/linux/linux-5.10/drivers/crypto/qat/qat_common/
H A 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 in qat_alg_aead_init()
[all...]
/kernel/linux/linux-6.6/drivers/crypto/intel/qat/qat_common/
H A 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 in qat_alg_aead_init()
[all...]
/kernel/linux/linux-5.10/security/integrity/evm/
H A Devm.h41 extern struct crypto_shash *hash_tfm;
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/
H A Dsec.h84 struct crypto_shash *hash_tfm; member
H A 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()
/kernel/linux/linux-6.6/drivers/crypto/hisilicon/sec2/
H A Dsec.h96 struct crypto_shash *hash_tfm; member
H A 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()
/kernel/linux/linux-5.10/fs/ecryptfs/
H A 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()
H A 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()
H A Decryptfs_kernel.h240 struct crypto_shash *hash_tfm; /* Crypto context for generating member
/kernel/linux/linux-6.6/fs/ecryptfs/
H A 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()
H A 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()
H A Decryptfs_kernel.h240 struct crypto_shash *hash_tfm; /* Crypto context for generating member
/kernel/linux/linux-5.10/drivers/md/
H A 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()
[all...]
/kernel/linux/linux-6.6/drivers/md/
H A 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()
[all...]

Completed in 45 milliseconds