Home
last modified time | relevance | path

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

/system/core/fs_mgr/libfs_avb/
Dtypes.cpp77 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()
Dfs_avb.cpp239 std::unique_ptr<AvbVBMetaImageHeader> vbmeta_header = in LoadAndVerifyVbmeta() local
241 bool verification_disabled = ((AvbVBMetaImageFlags)vbmeta_header->flags & in LoadAndVerifyVbmeta()
244 ((AvbVBMetaImageFlags)vbmeta_header->flags & AVB_VBMETA_IMAGE_FLAGS_HASHTREE_DISABLED); in LoadAndVerifyVbmeta()
440 AvbVBMetaImageHeader vbmeta_header; in Open() local
442 (AvbVBMetaImageHeader*)avb_handle->vbmeta_images_[0].data(), &vbmeta_header); in Open()
443 bool verification_disabled = ((AvbVBMetaImageFlags)vbmeta_header.flags & in Open()
461 bool hashtree_disabled = ((AvbVBMetaImageFlags)vbmeta_header.flags & in Open()
Davb_util.cpp580 std::unique_ptr<AvbVBMetaImageHeader> vbmeta_header = in LoadAndVerifyVbmetaByPath() local
582 if (!vbmeta_header) { in LoadAndVerifyVbmetaByPath()
587 if (rollback_protection && RollbackDetected(partition_name, vbmeta_header->rollback_index)) { in LoadAndVerifyVbmetaByPath()
592 if (is_chained_vbmeta && vbmeta_header->flags != 0) { in LoadAndVerifyVbmetaByPath()
599 if (vbmeta_header->flags & AVB_VBMETA_IMAGE_FLAGS_VERIFICATION_DISABLED) { in LoadAndVerifyVbmetaByPath()
/system/core/fs_mgr/libfs_avb/tests/
Davb_util_test.cpp371 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 …]