Home
last modified time | relevance | path

Searched refs:vbmeta (Results 1 – 19 of 19) sorted by relevance

/system/core/fs_mgr/libfs_avb/tests/
Davb_util_test.cpp55 bool TestVBMetaModification(VBMetaVerifyResult expected_result, const VBMetaData& vbmeta,
282 auto vbmeta = LoadVBMetaData("vbmeta.img"); in TEST_F() local
286 vbmeta_images.emplace_back(std::move(vbmeta)); in TEST_F()
323 auto vbmeta = LoadVBMetaData("vbmeta.img"); in TEST_F() local
328 vbmeta_images.emplace_back(std::move(vbmeta)); in TEST_F()
371 VBMetaData vbmeta((uint8_t*)content.data(), content.size(), "boot-vbmeta"); in TEST_F() local
372 EXPECT_EQ(content.size(), vbmeta.size()); in TEST_F()
375 auto vbmeta_header = vbmeta.GetVBMetaHeader(false /* update_vbmeta_size */); in TEST_F()
486 auto vbmeta = GenerateImageAndExtractVBMetaData("system", image_size, partition_size, in TEST_F() local
492 VerifyVBMetaSignature(vbmeta, expected_public_key_blob, in TEST_F()
[all …]
Dfs_avb_device_test.cpp47 std::unique_ptr<VBMetaData> vbmeta = in TEST() local
51 EXPECT_NE(nullptr, vbmeta); in TEST()
/system/extras/libfec/
Davb_utils.cpp24 int parse_vbmeta_from_footer(fec_handle *f, std::vector<uint8_t> *vbmeta) { in parse_vbmeta_from_footer() argument
61 *vbmeta = std::move(vbmeta_data); in parse_vbmeta_from_footer()
65 int parse_avb_image(fec_handle *f, const std::vector<uint8_t> &vbmeta) { in parse_avb_image() argument
83 avb_descriptor_foreach(vbmeta.data(), vbmeta.size(), parse_descriptor, in parse_avb_image()
105 check(hashtree_descriptor.salt_len < vbmeta.size()); in parse_avb_image()
106 check(salt_offset < vbmeta.size() - hashtree_descriptor.salt_len); in parse_avb_image()
107 check(hashtree_descriptor.root_digest_len < vbmeta.size()); in parse_avb_image()
108 check(root_offset < vbmeta.size() - hashtree_descriptor.root_digest_len); in parse_avb_image()
159 .vbmeta = vbmeta, in parse_avb_image()
Davb_utils.h27 int parse_vbmeta_from_footer(fec_handle *f, std::vector<uint8_t> *vbmeta);
30 int parse_avb_image(fec_handle *f, const std::vector<uint8_t> &vbmeta);
Dfec_open.cpp552 std::vector<uint8_t> vbmeta; in fec_open() local
553 if (parse_vbmeta_from_footer(f.get(), &vbmeta) == 0) { in fec_open()
554 if (parse_avb_image(f.get(), vbmeta) != 0) { in fec_open()
Dfec_private.h129 std::vector<uint8_t> vbmeta; member
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp41 for (const auto& vbmeta : vbmeta_images) { in GetAvbPropertyDescriptor() local
42 const char* value = avb_property_lookup(vbmeta.data(), vbmeta.size(), key.data(), in GetAvbPropertyDescriptor()
135 for (const auto& vbmeta : vbmeta_images) { in GetHashDescriptor() local
138 avb_descriptor_get_all(vbmeta.data(), vbmeta.size(), &num_descriptors), avb_free); in GetHashDescriptor()
193 for (const auto& vbmeta : vbmeta_images) { in GetHashtreeDescriptor() local
196 avb_descriptor_get_all(vbmeta.data(), vbmeta.size(), &num_descriptors), avb_free); in GetHashtreeDescriptor()
397 VBMetaVerifyResult VerifyVBMetaSignature(const VBMetaData& vbmeta, in VerifyVBMetaSignature() argument
404 vbmeta_ret = avb_vbmeta_image_verify(vbmeta.data(), vbmeta.size(), &pk_data, &pk_len); in VerifyVBMetaSignature()
416 LERROR << vbmeta.partition() in VerifyVBMetaSignature()
421 LERROR << vbmeta.partition() << ": Error verifying vbmeta image: public key used to" in VerifyVBMetaSignature()
[all …]
Dfs_avb_util.cpp69 const std::string& avb_partition_name, VBMetaData&& vbmeta) { in GetHashtreeDescriptor() argument
70 if (!vbmeta.size()) return nullptr; in GetHashtreeDescriptor()
73 vbmeta_images.emplace_back(std::move(vbmeta)); in GetHashtreeDescriptor()
79 VBMetaData&& vbmeta) { in GetHashDescriptor() argument
80 if (!vbmeta.size()) return nullptr; in GetHashDescriptor()
83 vbmeta_images.emplace_back(std::move(vbmeta)); in GetHashDescriptor()
Dfs_avb.cpp57 for (const auto& vbmeta : vbmeta_images) { in VerifyVbmetaDigest() local
58 hasher.update(vbmeta.data(), vbmeta.size()); in VerifyVbmetaDigest()
59 total_size += vbmeta.size(); in VerifyVbmetaDigest()
73 for (const auto& vbmeta : vbmeta_images) { in CalculateVbmetaDigest() local
74 hasher.update(vbmeta.data(), vbmeta.size()); in CalculateVbmetaDigest()
75 total_size += vbmeta.size(); in CalculateVbmetaDigest()
297 std::unique_ptr<VBMetaData> vbmeta = LoadAndVerifyVbmetaByPath( in LoadAndVerifyVbmeta() local
303 if (!vbmeta) { in LoadAndVerifyVbmeta()
313 avb_handle->vbmeta_images_.emplace_back(std::move(*vbmeta)); in LoadAndVerifyVbmeta()
Davb_util.h80 VBMetaVerifyResult VerifyVBMetaSignature(const VBMetaData& vbmeta,
93 std::vector<ChainInfo> GetChainPartitionInfo(const VBMetaData& vbmeta, bool* fatal_error);
/system/core/fs_mgr/libfs_avb/include/fs_avb/
Dfs_avb_util.h44 const std::string& avb_partition_name, VBMetaData&& vbmeta);
48 VBMetaData&& vbmeta);
/system/libsysprop/srcs/android/sysprop/
DOtaProperties.sysprop54 # Update_engine sets the vbmeta digest for the inactive slot, after installing
/system/apex/docs/
DREADME.md146 the vbmeta descriptor appended to `apex_payload.img`) file is signed with a key.
152 the vbmeta descriptor is installed. The APEX manager uses the public key to
361 ### vbmeta signing
705 system image that is paired with a hash tree and a vbmeta descriptor. Without
/system/sepolicy/prebuilts/api/28.0/public/
Dproperty_contexts173 ro.boot.vbmeta.avb_version u:object_r:exported2_default_prop:s0 exact string
/system/libvintf/test/
DLibVintfTest.cpp93 void setAvb(RuntimeInfo &ki, Version vbmeta, Version boot) { in setAvb()
94 ki.mBootVbmetaAvbVersion = vbmeta; in setAvb()
/system/sepolicy/prebuilts/api/29.0/public/
Dproperty_contexts229 ro.boot.vbmeta.avb_version u:object_r:exported2_default_prop:s0 exact string
/system/sepolicy/private/
Dproperty_contexts292 # The vbmeta digest for the inactive slot. It can be set after installing
672 ro.boot.vbmeta.avb_version u:object_r:bootloader_prop:s0 exact string
/system/sepolicy/prebuilts/api/31.0/private/
Dproperty_contexts292 # The vbmeta digest for the inactive slot. It can be set after installing
672 ro.boot.vbmeta.avb_version u:object_r:bootloader_prop:s0 exact string
/system/sepolicy/prebuilts/api/30.0/public/
Dproperty_contexts254 ro.boot.vbmeta.avb_version u:object_r:exported2_default_prop:s0 exact string