Searched refs:hashstate (Results 1 – 5 of 5) sorted by relevance
/kernel/linux/linux-5.10/fs/verity/ |
D | hash_algs.c | 161 u8 *hashstate = NULL; in fsverity_prepare_hash_state() local 172 hashstate = kmalloc(crypto_ahash_statesize(alg->tfm), GFP_KERNEL); in fsverity_prepare_hash_state() 173 if (!hashstate) in fsverity_prepare_hash_state() 208 err = crypto_ahash_export(req, hashstate); in fsverity_prepare_hash_state() 214 return hashstate; in fsverity_prepare_hash_state() 217 kfree(hashstate); in fsverity_prepare_hash_state() 218 hashstate = ERR_PTR(err); in fsverity_prepare_hash_state() 253 if (params->hashstate) { in fsverity_hash_page() 254 err = crypto_ahash_import(req, params->hashstate); in fsverity_hash_page()
|
D | open.c | 50 params->hashstate = fsverity_prepare_hash_state(hash_alg, salt, in fsverity_init_merkle_tree_params() 52 if (IS_ERR(params->hashstate)) { in fsverity_init_merkle_tree_params() 53 err = PTR_ERR(params->hashstate); in fsverity_init_merkle_tree_params() 54 params->hashstate = NULL; in fsverity_init_merkle_tree_params() 123 kfree(params->hashstate); in fsverity_init_merkle_tree_params() 261 kfree(vi->tree_params.hashstate); in fsverity_free_info()
|
D | fsverity_private.h | 48 const u8 *hashstate; /* initial hash state or NULL */ member
|
D | enable.c | 376 kfree(params.hashstate); in fsverity_enable_with_descriptor()
|
/kernel/linux/linux-5.10/crypto/ |
D | testmgr.c | 1180 u8 *hashstate) in test_shash_vec_cfg() argument 1287 testmgr_poison(hashstate + statesize, in test_shash_vec_cfg() 1289 err = crypto_shash_export(desc, hashstate); in test_shash_vec_cfg() 1294 if (!testmgr_is_poison(hashstate + statesize, in test_shash_vec_cfg() 1301 err = crypto_shash_import(desc, hashstate); in test_shash_vec_cfg() 1364 u8 *hashstate) in test_ahash_vec_cfg() argument 1466 testmgr_poison(hashstate + statesize, in test_ahash_vec_cfg() 1468 err = crypto_ahash_export(req, hashstate); in test_ahash_vec_cfg() 1474 if (!testmgr_is_poison(hashstate + statesize, in test_ahash_vec_cfg() 1482 err = crypto_ahash_import(req, hashstate); in test_ahash_vec_cfg() [all …]
|