Searched refs:avb_handle (Results 1 – 5 of 5) sorted by relevance
/system/core/fs_mgr/libfs_avb/tests/ |
D | fs_avb_test.cpp | 105 auto avb_handle = AvbHandle::LoadAndVerifyVbmeta( in TEST_F() local 110 EXPECT_NE(nullptr, avb_handle); in TEST_F() 111 EXPECT_EQ(AvbHandleStatus::kSuccess, avb_handle->status()); in TEST_F() 116 avb_handle->vbmeta_info().digest); in TEST_F() 117 EXPECT_EQ(8576UL, avb_handle->vbmeta_info().total_size); in TEST_F() 118 EXPECT_EQ(HashAlgorithm::kSHA256, avb_handle->vbmeta_info().hash_algorithm); in TEST_F() 121 avb_handle = AvbHandle::LoadAndVerifyVbmeta( in TEST_F() 126 EXPECT_NE(nullptr, avb_handle); in TEST_F() 127 EXPECT_EQ(AvbHandleStatus::kSuccess, avb_handle->status()); in TEST_F() 129 avb_handle->vbmeta_info().digest); in TEST_F() [all …]
|
D | fs_avb_device_test.cpp | 120 auto avb_handle = AvbHandle::LoadAndVerifyVbmeta(*system_other_entry); in TEST() local 121 EXPECT_NE(nullptr, avb_handle) << "Failed to load system_other vbmeta. Try 'adb root'?"; in TEST() 122 EXPECT_EQ(AvbHandleStatus::kSuccess, avb_handle->status()); in TEST() 129 auto avb_handle = AvbHandle::LoadAndVerifyVbmeta(); in TEST() local 130 EXPECT_NE(nullptr, avb_handle) << "Failed to load inline vbmeta. Try 'adb root'?"; in TEST() 131 EXPECT_EQ(AvbHandleStatus::kSuccess, avb_handle->status()); in TEST() 136 EXPECT_EQ(10UL, avb_handle->GetSecurityPatchLevel(*system_entry).length()); in TEST() 140 EXPECT_EQ(10UL, avb_handle->GetSecurityPatchLevel(*vendor_entry).length()); in TEST() 144 EXPECT_EQ(10UL, avb_handle->GetSecurityPatchLevel(*product_entry).length()); in TEST()
|
/system/core/fs_mgr/libfs_avb/ |
D | fs_avb.cpp | 188 AvbUniquePtr avb_handle(new AvbHandle()); in LoadAndVerifyVbmeta() local 189 if (!avb_handle) { in LoadAndVerifyVbmeta() 214 /* is_chained_vbmeta */ &avb_handle->vbmeta_images_); in LoadAndVerifyVbmeta() 217 avb_handle->status_ = AvbHandleStatus::kSuccess; in LoadAndVerifyVbmeta() 220 avb_handle->status_ = AvbHandleStatus::kVerificationError; in LoadAndVerifyVbmeta() 228 if (avb_handle->vbmeta_images_.size() < 1) { in LoadAndVerifyVbmeta() 234 avb_handle->avb_version_ = StringPrintf("%d.%d", AVB_VERSION_MAJOR, AVB_VERSION_MINOR); in LoadAndVerifyVbmeta() 238 avb_handle->vbmeta_images_[0].GetVBMetaHeader(); in LoadAndVerifyVbmeta() 244 avb_handle->status_ = AvbHandleStatus::kVerificationDisabled; in LoadAndVerifyVbmeta() 246 avb_handle->status_ = AvbHandleStatus::kHashtreeDisabled; in LoadAndVerifyVbmeta() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr.cpp | 1089 AvbUniquePtr avb_handle(nullptr); in fs_mgr_mount_all() local 1155 if (!avb_handle) { in fs_mgr_mount_all() 1156 avb_handle = AvbHandle::Open(); in fs_mgr_mount_all() 1157 if (!avb_handle) { in fs_mgr_mount_all() 1162 if (avb_handle->SetUpAvbHashtree(¤t_entry, true /* wait_for_verity_dev */) == in fs_mgr_mount_all() 1322 AvbUniquePtr avb_handle(nullptr); in fs_mgr_umount_all() local 1387 AvbUniquePtr avb_handle(nullptr); in fs_mgr_do_mount_helper() local 1428 if (!avb_handle) { in fs_mgr_do_mount_helper() 1429 avb_handle = AvbHandle::Open(); in fs_mgr_do_mount_helper() 1430 if (!avb_handle) { in fs_mgr_do_mount_helper() [all …]
|
/system/core/init/ |
D | first_stage_mount.cpp | 882 AvbUniquePtr avb_handle = AvbHandle::Open(); in SetInitAvbVersionInRecovery() local 883 if (!avb_handle) { in SetInitAvbVersionInRecovery() 887 setenv("INIT_AVB_VERSION", avb_handle->avb_version().c_str(), 1); in SetInitAvbVersionInRecovery()
|