Searched refs:vbmeta_header (Results 1 – 4 of 4) sorted by relevance
/system/core/fs_mgr/libfs_avb/ |
D | types.cpp | 77 auto vbmeta_header = std::make_unique<AvbVBMetaImageHeader>(); in GetVBMetaHeader() local 79 if (!vbmeta_header) return nullptr; in GetVBMetaHeader() 83 vbmeta_header.get()); in GetVBMetaHeader() 86 vbmeta_header->authentication_data_block_size + in GetVBMetaHeader() 87 vbmeta_header->auxiliary_data_block_size; in GetVBMetaHeader() 90 return vbmeta_header; in GetVBMetaHeader()
|
D | fs_avb.cpp | 237 std::unique_ptr<AvbVBMetaImageHeader> vbmeta_header = in LoadAndVerifyVbmeta() local 239 bool verification_disabled = ((AvbVBMetaImageFlags)vbmeta_header->flags & in LoadAndVerifyVbmeta() 242 ((AvbVBMetaImageFlags)vbmeta_header->flags & AVB_VBMETA_IMAGE_FLAGS_HASHTREE_DISABLED); in LoadAndVerifyVbmeta() 395 AvbVBMetaImageHeader vbmeta_header; in Open() local 397 (AvbVBMetaImageHeader*)avb_handle->vbmeta_images_[0].data(), &vbmeta_header); in Open() 398 bool verification_disabled = ((AvbVBMetaImageFlags)vbmeta_header.flags & in Open() 416 bool hashtree_disabled = ((AvbVBMetaImageFlags)vbmeta_header.flags & in Open()
|
D | avb_util.cpp | 530 std::unique_ptr<AvbVBMetaImageHeader> vbmeta_header = in LoadAndVerifyVbmetaByPath() local 532 if (!vbmeta_header) { in LoadAndVerifyVbmetaByPath() 537 if (rollback_protection && RollbackDetected(partition_name, vbmeta_header->rollback_index)) { in LoadAndVerifyVbmetaByPath() 542 if (is_chained_vbmeta && vbmeta_header->flags != 0) { in LoadAndVerifyVbmetaByPath() 549 if (vbmeta_header->flags & AVB_VBMETA_IMAGE_FLAGS_VERIFICATION_DISABLED) { in LoadAndVerifyVbmetaByPath()
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | avb_util_test.cpp | 371 auto vbmeta_header = vbmeta.GetVBMetaHeader(false /* update_vbmeta_size */); in TEST_F() local 372 EXPECT_NE(nullptr, vbmeta_header); in TEST_F() 373 EXPECT_EQ(576, vbmeta_header->authentication_data_block_size); in TEST_F() 374 EXPECT_EQ(1216, vbmeta_header->auxiliary_data_block_size); in TEST_F() 375 EXPECT_EQ(AVB_ALGORITHM_TYPE_SHA256_RSA4096, vbmeta_header->algorithm_type); in TEST_F() 376 EXPECT_EQ(0, vbmeta_header->hash_offset); in TEST_F() 377 EXPECT_EQ(32, vbmeta_header->hash_size); in TEST_F() 378 EXPECT_EQ(32, vbmeta_header->signature_offset); in TEST_F() 379 EXPECT_EQ(512, vbmeta_header->signature_size); in TEST_F() 380 EXPECT_EQ(176, vbmeta_header->public_key_offset); in TEST_F() [all …]
|