Home
last modified time | relevance | path

Searched refs:incfs_hash_alg (Results 1 – 3 of 3) sorted by relevance

/fs/incfs/
Dintegrity.h18 struct incfs_hash_alg { struct
28 struct incfs_hash_alg *alg; argument
41 struct incfs_hash_alg *incfs_get_hash_alg(enum incfs_hash_tree_algorithm id);
53 int incfs_calc_digest(struct incfs_hash_alg *alg, struct mem_range data,
Dintegrity.c12 struct incfs_hash_alg *incfs_get_hash_alg(enum incfs_hash_tree_algorithm id) in incfs_get_hash_alg()
14 static struct incfs_hash_alg sha256 = { in incfs_get_hash_alg()
19 struct incfs_hash_alg *result = NULL; in incfs_get_hash_alg()
136 struct incfs_hash_alg *hash_alg = NULL; in incfs_alloc_mtree()
207 int incfs_calc_digest(struct incfs_hash_alg *alg, struct mem_range data, in incfs_calc_digest()
Dverity.c131 static int incfs_compute_file_digest(struct incfs_hash_alg *alg, in incfs_compute_file_digest()
214 enum incfs_hash_tree_algorithm incfs_hash_alg; in incfs_calc_verity_digest_from_desc() local
217 struct incfs_hash_alg *hash_alg; in incfs_calc_verity_digest_from_desc()
219 incfs_hash_alg = incfs_convert_fsverity_hash_alg(desc->hash_algorithm); in incfs_calc_verity_digest_from_desc()
220 if (incfs_hash_alg < 0) in incfs_calc_verity_digest_from_desc()
221 return range(ERR_PTR(incfs_hash_alg), 0); in incfs_calc_verity_digest_from_desc()
223 hash_alg = incfs_get_hash_alg(incfs_hash_alg); in incfs_calc_verity_digest_from_desc()
299 struct incfs_hash_alg *alg, struct mem_range hash) in incfs_build_merkle_tree()
425 struct incfs_hash_alg *alg = incfs_get_hash_alg(INCFS_HASH_TREE_SHA256); in incfs_add_signature_record()