Home
last modified time | relevance | path

Searched refs:mtree (Results 1 – 8 of 8) sorted by relevance

/OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/incfs/
H A Dincfs_perf.c439 struct hash_block *mtree; in build_mtree() local
462 mtree = calloc(total_tree_block_count, sizeof(*mtree)); in build_mtree()
467 char *hash_ptr = mtree[block_index].data + block_off; in build_mtree()
481 char *hash_ptr = mtree[block_index].data + block_off; in build_mtree()
483 sha256(mtree[i + prev_lvl_base].data, in build_mtree()
489 sha256(mtree[0].data, INCFS_DATA_FILE_BLOCK_SIZE, root_hash); in build_mtree()
491 return mtree; in build_mtree()
495 struct hash_block *mtree, int mtree_block_count) in load_hash_tree() argument
515 .data = ptr_to_u64(mtree[i].data), in load_hash_tree()
567 struct hash_block *mtree = build_mtree(options->size, root_hash, in test_incfs_file() local
[all …]
H A Dincfs_test.c135 struct hash_block *mtree; member
886 file->mtree = calloc(total_tree_block_count, sizeof(*file->mtree)); in build_mtree()
895 char *hash_ptr = file->mtree[block_index].data + block_off; in build_mtree()
916 file->mtree[block_index].data + block_off; in build_mtree()
918 sha256(file->mtree[i + prev_lvl_base].data, in build_mtree()
924 sha256(file->mtree[0].data, in build_mtree()
952 .data = ptr_to_u64(file->mtree[i].data), in load_hash_tree()
2035 TESTEQUAL(memcmp(buf, file->mtree[i].data, err), 0); in validate_hash_tree()
2083 file->mtree[0].data[2 * SHA256_DIGEST_SIZE] ^= 0xff; in hash_tree_test()
2161 free(file->mtree); in hash_tree_test()
[all …]
/OK3568_Linux_fs/kernel/fs/incfs/
H A Dintegrity.h27 struct mtree { struct
43 struct mtree *incfs_alloc_mtree(struct mem_range signature, argument
46 void incfs_free_mtree(struct mtree *tree);
H A Dintegrity.c130 struct mtree *incfs_alloc_mtree(struct mem_range signature, in incfs_alloc_mtree()
135 struct mtree *result = NULL; in incfs_alloc_mtree()
202 void incfs_free_mtree(struct mtree *tree) in incfs_free_mtree()
H A Dverity.c298 struct mtree *hash_tree, loff_t hash_offset, in incfs_build_merkle_tree()
421 struct mtree *hash_tree = NULL; in incfs_add_signature_record()
H A Ddata_mgmt.h356 struct mtree *df_hash_tree;
H A Ddata_mgmt.c674 struct mtree *tree = NULL; in validate_hash_tree()
1481 struct mtree *hash_tree = NULL; in incfs_process_new_hash_block()
1548 struct mtree *hash_tree = NULL; in process_file_signature_md()
H A Dpseudo_files.c309 struct mtree *hash_tree = NULL; in init_new_file()