Home
last modified time | relevance | path

Searched refs:hashtree_desc (Results 1 – 4 of 4) sorted by relevance

/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_util_test.cpp44 auto hashtree_desc = in TEST_F() local
46 EXPECT_NE(nullptr, hashtree_desc); in TEST_F()
82 EXPECT_EQ(1UL, hashtree_desc->dm_verity_version); in TEST_F()
83 EXPECT_EQ(10485760UL, hashtree_desc->image_size); in TEST_F()
84 EXPECT_EQ(10485760UL, hashtree_desc->tree_offset); in TEST_F()
85 EXPECT_EQ(86016UL, hashtree_desc->tree_size); in TEST_F()
86 EXPECT_EQ(4096UL, hashtree_desc->data_block_size); in TEST_F()
87 EXPECT_EQ(4096UL, hashtree_desc->hash_block_size); in TEST_F()
88 EXPECT_EQ(2UL, hashtree_desc->fec_num_roots); in TEST_F()
89 EXPECT_EQ(10571776UL, hashtree_desc->fec_offset); in TEST_F()
[all …]
Dfs_avb_device_test.cpp91 auto hashtree_desc = in TEST() local
93 EXPECT_NE(nullptr, hashtree_desc); in TEST()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp54 bool ConstructVerityTable(const FsAvbHashtreeDescriptor& hashtree_desc, in ConstructVerityTable() argument
74 hash_algorithm << hashtree_desc.hash_algorithm; in ConstructVerityTable()
77 0, hashtree_desc.image_size / 512, hashtree_desc.dm_verity_version, blk_device, in ConstructVerityTable()
78 blk_device, hashtree_desc.data_block_size, hashtree_desc.hash_block_size, in ConstructVerityTable()
79 hashtree_desc.image_size / hashtree_desc.data_block_size, in ConstructVerityTable()
80 hashtree_desc.tree_offset / hashtree_desc.hash_block_size, hash_algorithm.str(), in ConstructVerityTable()
81 hashtree_desc.root_digest, hashtree_desc.salt); in ConstructVerityTable()
82 if (hashtree_desc.fec_size > 0) { in ConstructVerityTable()
83 target.UseFec(blk_device, hashtree_desc.fec_num_roots, in ConstructVerityTable()
84 hashtree_desc.fec_offset / hashtree_desc.data_block_size, in ConstructVerityTable()
[all …]
Davb_util.h50 bool ConstructVerityTable(const FsAvbHashtreeDescriptor& hashtree_desc,
53 bool HashtreeDmVeritySetup(FstabEntry* fstab_entry, const FsAvbHashtreeDescriptor& hashtree_desc,