Home
last modified time | relevance | path

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

/test/vts-testcase/security/avb/
Dvts_gki_compliance_test.cpp244 std::string block_device_data; in LoadAndVerifyGkiBootImage() local
245 if (!android::base::ReadFileToString(block_device_path, &block_device_data, in LoadAndVerifyGkiBootImage()
251 if (block_device_data.size() <= 4096) { in LoadAndVerifyGkiBootImage()
253 << "' is impossibly small: " << block_device_data.size(); in LoadAndVerifyGkiBootImage()
257 if (block_device_data.substr(0, BOOT_MAGIC_SIZE) != BOOT_MAGIC) { in LoadAndVerifyGkiBootImage()
263 if (block_device_data.size() > AVB_FOOTER_SIZE) { in LoadAndVerifyGkiBootImage()
265 reinterpret_cast<const uint8_t *>(block_device_data.data()) + in LoadAndVerifyGkiBootImage()
266 block_device_data.size() - AVB_FOOTER_SIZE; in LoadAndVerifyGkiBootImage()
271 block_device_data.resize(vbmeta_footer.original_image_size); in LoadAndVerifyGkiBootImage()
277 GkiBootImage::GetBootHeaderVersion(block_device_data.data()); in LoadAndVerifyGkiBootImage()
[all …]