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);
44 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images);
48 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images);
58 const std::vector<VBMetaData>& vbmeta_images,
75 std::unique_ptr<VBMetaData> VerifyVBMetaData(int fd, const std::string& partition_name,
80 VBMetaVerifyResult VerifyVBMetaSignature(const VBMetaData& vbmeta,
93 std::vector<ChainInfo> GetChainPartitionInfo(const VBMetaData& vbmeta, bool* fatal_error);
96 std::unique_ptr<VBMetaData> LoadAndVerifyVbmetaByPath(
110 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()
79 VBMetaData&& vbmeta) { in GetHashDescriptor()
82 std::vector<VBMetaData> vbmeta_images; in GetHashDescriptor()
Davb_util.cpp39 const std::vector<VBMetaData>& vbmeta_images) { in GetAvbPropertyDescriptor()
130 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images) { in GetHashDescriptor()
188 const std::string& partition_name, const std::vector<VBMetaData>& vbmeta_images) { in GetHashtreeDescriptor()
247 const std::vector<VBMetaData>& vbmeta_images, in LoadAvbHashtreeToEnableVerity()
397 VBMetaVerifyResult VerifyVBMetaSignature(const VBMetaData& vbmeta, in VerifyVBMetaSignature()
449 std::unique_ptr<VBMetaData> VerifyVBMetaData(int fd, const std::string& partition_name, in VerifyVBMetaData()
454 uint64_t vbmeta_size = VBMetaData::kMaxVBMetaSize; in VerifyVBMetaData()
470 if (vbmeta_size > VBMetaData::kMaxVBMetaSize) { in VerifyVBMetaData()
475 auto vbmeta = std::make_unique<VBMetaData>(vbmeta_size, partition_name); in VerifyVBMetaData()
505 std::vector<ChainInfo> GetChainPartitionInfo(const VBMetaData& vbmeta, bool* fatal_error) { in GetChainPartitionInfo()
[all …]
Davb_ops.h61 std::vector<VBMetaData>* out_vbmeta_images);
Dfs_avb.cpp53 std::pair<size_t, bool> VerifyVbmetaDigest(const std::vector<VBMetaData>& vbmeta_images, in VerifyVbmetaDigest()
68 std::pair<std::string, size_t> CalculateVbmetaDigest(const std::vector<VBMetaData>& vbmeta_images) { in CalculateVbmetaDigest()
94 bool VerifyVbmetaImages(const std::vector<VBMetaData>& vbmeta_images);
151 bool AvbVerifier::VerifyVbmetaImages(const std::vector<VBMetaData>& vbmeta_images) { in VerifyVbmetaImages()
297 std::unique_ptr<VBMetaData> vbmeta = LoadAndVerifyVbmetaByPath( in LoadAndVerifyVbmeta()
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/
Dfs_avb_util.h29 std::unique_ptr<VBMetaData> LoadAndVerifyVbmeta(const FstabEntry& fstab_entry,
36 std::unique_ptr<VBMetaData> LoadAndVerifyVbmetaByPath(
44 const std::string& avb_partition_name, VBMetaData&& vbmeta);
48 VBMetaData&& vbmeta);
Dtypes.h70 class VBMetaData {
73 VBMetaData() : vbmeta_ptr_(nullptr), vbmeta_size_(0){}; in VBMetaData() function
75 VBMetaData(const uint8_t* data, size_t size, const std::string& partition_name) in VBMetaData() function
84 explicit VBMetaData(size_t size, const std::string& partition_name) in VBMetaData() function
Dfs_avb.h142 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);
285 std::vector<VBMetaData> vbmeta_images; in TEST_F()
327 std::vector<VBMetaData> vbmeta_images; in TEST_F()
371 VBMetaData vbmeta((uint8_t*)content.data(), content.size(), "boot-vbmeta"); in TEST_F()
395 VBMetaData vbmeta_padding((const uint8_t*)content_padding.data(), content_padding.size(), in TEST_F()
523 const VBMetaData& vbmeta, size_t offset, size_t length) { in TestVBMetaModification()
591 VBMetaData invalid_vbmeta((const uint8_t*)vbmeta_buffer.data(), vbmeta_buffer.size(), in TEST_F()
599 const VBMetaData& expected_vbmeta) { in CompareVBMeta()
[all …]
Dfs_avb_test_util.cpp188 VBMetaData BaseFsAvbTest::GenerateImageAndExtractVBMetaData( in GenerateImageAndExtractVBMetaData()
210 VBMetaData BaseFsAvbTest::LoadVBMetaData(const std::string& file_name) { in LoadVBMetaData()
225 VBMetaData BaseFsAvbTest::ExtractAndLoadVBMetaData(const base::FilePath& image_path, in ExtractAndLoadVBMetaData()
Dfs_avb_test.cpp278 std::vector<VBMetaData> vbmeta_images; in TEST_F()