Home
last modified time | relevance | path

Searched refs:vbmeta_size (Results 1 – 8 of 8) sorted by relevance

/system/extras/libfec/
Davb_utils.cpp43 uint64_t vbmeta_size = footer.vbmeta_size; in parse_vbmeta_from_footer() local
44 check(vbmeta_offset <= f->size - sizeof(footer) - vbmeta_size); in parse_vbmeta_from_footer()
46 std::vector<uint8_t> vbmeta_data(vbmeta_size, 0); in parse_vbmeta_from_footer()
/system/apex/apexd/
Dapex_file.cpp251 if (footer.vbmeta_size > kVbMetaMaxSize) { in verifyVbMeta()
256 std::unique_ptr<uint8_t[]> vbmeta_buf(new uint8_t[footer.vbmeta_size]); in verifyVbMeta()
258 if (!ReadFullyAtOffset(fd, vbmeta_buf.get(), footer.vbmeta_size, offset)) { in verifyVbMeta()
263 verifyVbMetaSignature(apex, vbmeta_buf.get(), footer.vbmeta_size); in verifyVbMeta()
272 size_t vbmeta_size) { in findDescriptor() argument
277 avb_descriptor_get_all(vbmeta_data, vbmeta_size, &num_descriptors); in findDescriptor()
334 findDescriptor(vbmeta_data->get(), (*footer)->vbmeta_size); in VerifyApexVerity()
/system/core/fs_mgr/libfs_avb/
Davb_util.cpp452 uint64_t vbmeta_size = VBMetaData::kMaxVBMetaSize; in VerifyVBMetaData() local
465 vbmeta_size = footer->vbmeta_size; in VerifyVBMetaData()
468 if (vbmeta_size > VBMetaData::kMaxVBMetaSize) { in VerifyVBMetaData()
473 auto vbmeta = std::make_unique<VBMetaData>(vbmeta_size, partition_name); in VerifyVBMetaData()
474 ssize_t num_read = TEMP_FAILURE_RETRY(pread64(fd, vbmeta->data(), vbmeta_size, vbmeta_offset)); in VerifyVBMetaData()
476 if (num_read < 0 || (!is_vbmeta_partition && static_cast<uint64_t>(num_read) != vbmeta_size)) { in VerifyVBMetaData()
478 << " with size " << vbmeta_size; in VerifyVBMetaData()
Davb_ops.cpp248 avb_slot_data->vbmeta_images[i].vbmeta_size, in AvbSlotVerify()
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc149 part.path, footer.vbmeta_offset, footer.vbmeta_size, &buffer)); in LoadVerityConfig()
/system/apex/apexer/
Dapexer.py568 vbmeta_size = int(re.search('VBMeta\ size:\ *([0-9]+)', info).group(1))
569 partition_size = RoundUp(vbmeta_offset + vbmeta_size,
/system/gsid/
Dgsi_service.cpp1022 std::vector<uint8_t> vbmeta_bytes(footer.vbmeta_size); in GetAvbPublicKeyFromFd()
/system/core/fs_mgr/libfs_avb/tests/
Davb_util_test.cpp247 EXPECT_EQ(3648, footer->vbmeta_size); in TEST_F()