Home
last modified time | relevance | path

Searched refs:hashstate (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/fs/verity/
Dhash_algs.c159 u8 *hashstate = NULL; in fsverity_prepare_hash_state() local
170 hashstate = kmalloc(crypto_ahash_statesize(alg->tfm), GFP_KERNEL); in fsverity_prepare_hash_state()
171 if (!hashstate) in fsverity_prepare_hash_state()
206 err = crypto_ahash_export(req, hashstate); in fsverity_prepare_hash_state()
212 return hashstate; in fsverity_prepare_hash_state()
215 kfree(hashstate); in fsverity_prepare_hash_state()
216 hashstate = ERR_PTR(err); in fsverity_prepare_hash_state()
251 if (params->hashstate) { in fsverity_hash_page()
252 err = crypto_ahash_import(req, params->hashstate); in fsverity_hash_page()
Dopen.c48 params->hashstate = fsverity_prepare_hash_state(hash_alg, salt, in fsverity_init_merkle_tree_params()
50 if (IS_ERR(params->hashstate)) { in fsverity_init_merkle_tree_params()
51 err = PTR_ERR(params->hashstate); in fsverity_init_merkle_tree_params()
52 params->hashstate = NULL; in fsverity_init_merkle_tree_params()
121 kfree(params->hashstate); in fsverity_init_merkle_tree_params()
216 kfree(vi->tree_params.hashstate); in fsverity_free_info()
Dfsverity_private.h40 const u8 *hashstate; /* initial hash state or NULL */ member
Denable.c318 kfree(params.hashstate); in enable_verity()
/linux-6.1.9/crypto/
Dtestmgr.c1224 u8 *hashstate) in test_shash_vec_cfg() argument
1332 testmgr_poison(hashstate + statesize, in test_shash_vec_cfg()
1334 err = crypto_shash_export(desc, hashstate); in test_shash_vec_cfg()
1339 if (!testmgr_is_poison(hashstate + statesize, in test_shash_vec_cfg()
1346 err = crypto_shash_import(desc, hashstate); in test_shash_vec_cfg()
1408 u8 *hashstate) in test_ahash_vec_cfg() argument
1511 testmgr_poison(hashstate + statesize, in test_ahash_vec_cfg()
1513 err = crypto_ahash_export(req, hashstate); in test_ahash_vec_cfg()
1519 if (!testmgr_is_poison(hashstate + statesize, in test_ahash_vec_cfg()
1527 err = crypto_ahash_import(req, hashstate); in test_ahash_vec_cfg()
[all …]