Searched refs:hashstate (Results 1 – 5 of 5) sorted by relevance
/linux-5.19.10/fs/verity/ |
D | hash_algs.c | 159 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()
|
D | open.c | 48 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()
|
D | fsverity_private.h | 40 const u8 *hashstate; /* initial hash state or NULL */ member
|
D | enable.c | 318 kfree(params.hashstate); in enable_verity()
|
/linux-5.19.10/crypto/ |
D | testmgr.c | 1224 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 …]
|