Searched refs:hashstate (Results 1 – 5 of 5) sorted by relevance
/linux/fs/verity/ |
A 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()
|
A 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() 217 kfree(vi->tree_params.hashstate); in fsverity_free_info()
|
A D | fsverity_private.h | 47 const u8 *hashstate; /* initial hash state or NULL */ member
|
A D | enable.c | 319 kfree(params.hashstate); in enable_verity()
|
/linux/crypto/ |
A D | testmgr.c | 1177 u8 *hashstate) in test_shash_vec_cfg() argument 1361 u8 *hashstate) in test_ahash_vec_cfg() argument 1528 u8 *hashstate) in test_hash_vec_cfg() argument 1540 hashstate); in test_hash_vec_cfg() 1561 req, desc, tsgl, hashstate); in test_hash_vec() 1636 u8 *hashstate) in test_hash_vs_generic_impl() argument 1752 u8 *hashstate) in test_hash_vs_generic_impl() argument 1801 u8 *hashstate = NULL; in __alg_test_hash() local 1849 if (!hashstate) { in __alg_test_hash() 1863 desc, tsgl, hashstate); in __alg_test_hash() [all …]
|
Completed in 16 milliseconds