Home
last modified time | relevance | path

Searched refs:VBMetaData (Results 1 – 15 of 15) sorted by relevance

/system/core/fs_mgr/libfs_avb/
Davb_util.h41 const std::vector<VBMetaData>& vbmeta_images);
45 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images);
55 const std::vector<VBMetaData>& vbmeta_images,
72 std::unique_ptr<VBMetaData> VerifyVBMetaData(int fd, const std::string& partition_name,
77 VBMetaVerifyResult VerifyVBMetaSignature(const VBMetaData& vbmeta,
90 std::vector<ChainInfo> GetChainPartitionInfo(const VBMetaData& vbmeta, bool* fatal_error);
93 std::unique_ptr<VBMetaData> LoadAndVerifyVbmetaByPath(
107 std::vector<VBMetaData>* out_vbmeta_images);
Dfs_avb_util.cpp35 std::unique_ptr<VBMetaData> LoadAndVerifyVbmeta(const FstabEntry& fstab_entry, in LoadAndVerifyVbmeta()
69 const std::string& avb_partition_name, VBMetaData&& vbmeta) { in GetHashtreeDescriptor()
72 std::vector<VBMetaData> vbmeta_images; in GetHashtreeDescriptor()
Davb_util.cpp39 const std::vector<VBMetaData>& vbmeta_images) { in GetAvbPropertyDescriptor()
136 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images) { in GetHashtreeDescriptor()
195 const std::vector<VBMetaData>& vbmeta_images, in LoadAvbHashtreeToEnableVerity()
345 VBMetaVerifyResult VerifyVBMetaSignature(const VBMetaData& vbmeta, in VerifyVBMetaSignature()
397 std::unique_ptr<VBMetaData> VerifyVBMetaData(int fd, const std::string& partition_name, in VerifyVBMetaData()
402 uint64_t vbmeta_size = VBMetaData::kMaxVBMetaSize; in VerifyVBMetaData()
418 if (vbmeta_size > VBMetaData::kMaxVBMetaSize) { in VerifyVBMetaData()
423 auto vbmeta = std::make_unique<VBMetaData>(vbmeta_size, partition_name); in VerifyVBMetaData()
453 std::vector<ChainInfo> GetChainPartitionInfo(const VBMetaData& vbmeta, bool* fatal_error) { in GetChainPartitionInfo()
495 std::unique_ptr<VBMetaData> LoadAndVerifyVbmetaByPath( in LoadAndVerifyVbmetaByPath()
[all …]
Dfs_avb.cpp51 std::pair<size_t, bool> VerifyVbmetaDigest(const std::vector<VBMetaData>& vbmeta_images, in VerifyVbmetaDigest()
66 std::pair<std::string, size_t> CalculateVbmetaDigest(const std::vector<VBMetaData>& vbmeta_images) { in CalculateVbmetaDigest()
92 bool VerifyVbmetaImages(const std::vector<VBMetaData>& vbmeta_images);
149 bool AvbVerifier::VerifyVbmetaImages(const std::vector<VBMetaData>& vbmeta_images) { in VerifyVbmetaImages()
281 std::unique_ptr<VBMetaData> vbmeta = LoadAndVerifyVbmetaByPath( in LoadAndVerifyVbmeta()
Davb_ops.h61 std::vector<VBMetaData>* out_vbmeta_images);
Dtypes.cpp76 std::unique_ptr<AvbVBMetaImageHeader> VBMetaData::GetVBMetaHeader(bool update_vbmeta_size) { in GetVBMetaHeader()
Davb_ops.cpp228 std::vector<VBMetaData>* out_vbmeta_images) { in AvbSlotVerify()
247 out_vbmeta_images->emplace_back(VBMetaData(avb_slot_data->vbmeta_images[i].vbmeta_data, in AvbSlotVerify()
/system/core/fs_mgr/libfs_avb/include/fs_avb/
Dtypes.h64 class VBMetaData {
67 VBMetaData() : vbmeta_ptr_(nullptr), vbmeta_size_(0){}; in VBMetaData() function
69 VBMetaData(const uint8_t* data, size_t size, const std::string& partition_name) in VBMetaData() function
78 explicit VBMetaData(size_t size, const std::string& partition_name) in VBMetaData() function
Dfs_avb_util.h29 std::unique_ptr<VBMetaData> LoadAndVerifyVbmeta(const FstabEntry& fstab_entry,
37 const std::string& avb_partition_name, VBMetaData&& vbmeta);
Dfs_avb.h135 std::vector<VBMetaData> vbmeta_images_;
/system/core/fs_mgr/libfs_avb/tests/
Dfs_avb_test_util.h45 using android::fs_mgr::VBMetaData;
106 VBMetaData GenerateImageAndExtractVBMetaData(
111 VBMetaData ExtractAndLoadVBMetaData(const base::FilePath& image_path,
114 VBMetaData LoadVBMetaData(const std::string& file_name);
Dfs_avb_device_test.cpp30 using android::fs_mgr::VBMetaData;
47 std::unique_ptr<VBMetaData> vbmeta = in TEST()
82 std::unique_ptr<VBMetaData> system_other_vbmeta = in TEST()
Davb_util_test.cpp39 using android::fs_mgr::VBMetaData;
55 bool TestVBMetaModification(VBMetaVerifyResult expected_result, const VBMetaData& vbmeta,
61 bool CompareVBMeta(const base::FilePath& avb_image_path, const VBMetaData& expected_vbmeta);
283 std::vector<VBMetaData> vbmeta_images; in TEST_F()
325 std::vector<VBMetaData> vbmeta_images; in TEST_F()
367 VBMetaData vbmeta((uint8_t*)content.data(), content.size(), "boot-vbmeta"); in TEST_F()
391 VBMetaData vbmeta_padding((const uint8_t*)content_padding.data(), content_padding.size(), in TEST_F()
519 const VBMetaData& vbmeta, size_t offset, size_t length) { in TestVBMetaModification()
587 VBMetaData invalid_vbmeta((const uint8_t*)vbmeta_buffer.data(), vbmeta_buffer.size(), in TEST_F()
595 const VBMetaData& expected_vbmeta) { in CompareVBMeta()
[all …]
Dfs_avb_test_util.cpp187 VBMetaData BaseFsAvbTest::GenerateImageAndExtractVBMetaData( in GenerateImageAndExtractVBMetaData()
209 VBMetaData BaseFsAvbTest::LoadVBMetaData(const std::string& file_name) { in LoadVBMetaData()
224 VBMetaData BaseFsAvbTest::ExtractAndLoadVBMetaData(const base::FilePath& image_path, in ExtractAndLoadVBMetaData()
Dfs_avb_test.cpp278 std::vector<VBMetaData> vbmeta_images; in TEST_F()