Searched refs:mtree (Results 1 – 8 of 8) sorted by relevance
| /OK3568_Linux_fs/kernel/tools/testing/selftests/filesystems/incfs/ |
| H A D | incfs_perf.c | 439 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 D | incfs_test.c | 135 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 D | integrity.h | 27 struct mtree { struct 43 struct mtree *incfs_alloc_mtree(struct mem_range signature, argument 46 void incfs_free_mtree(struct mtree *tree);
|
| H A D | integrity.c | 130 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 D | verity.c | 298 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 D | data_mgmt.h | 356 struct mtree *df_hash_tree;
|
| H A D | data_mgmt.c | 674 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 D | pseudo_files.c | 309 struct mtree *hash_tree = NULL; in init_new_file()
|