diff options
author | Bowgo Tsai <bowgotsai@google.com> | 2019-01-08 18:50:04 +0800 |
---|---|---|
committer | Bowgo Tsai <bowgotsai@google.com> | 2019-01-24 17:43:25 +0800 |
commit | 278749d74cdb967495b147952c2273a6a16c19f1 (patch) | |
tree | 2d7307620507347d00945017f0eb6addce0b6026 /libunwindstack/tests/MemoryCacheTest.cpp | |
parent | ad6a5c565c4908e3ae292f26510a2cc3c8bdf046 (diff) |
libfs_avb: support loading vbmeta structs from any partition
This commits adds the following two public functions into
class AvbHandle, and verified by 'libfs_avb_test':
static AvbUniquePtr LoadAndVerifyVbmeta(); // loads inline vbmeta.
static AvbUniquePtr LoadAndVerifyVbmeta( // loads offline vbmeta.
const std::string& partition_name, const std::string& ab_suffix,
const std::string& ab_other_suffix, const std::string& expected_public_key,
const HashAlgorithm& hash_algorithm, bool allow_verification_error,
bool load_chained_vbmeta, bool rollback_protection,
std::function<std::string(const std::string&)> custom_device_path = nullptr);
The first function LoadAndVerifyVbmeta() will be used to replace Open(),
in a separate CL in the future. Many libfs_avb internal utils are added
into avb_util.cpp as well, which are verified by
'libfs_avb_internal_test'.
Bug: 112103720
Bug: 117960205
Test: atest libfs_avb_test
Test: atest libfs_avb_internal_test
Change-Id: I807b8af0b69c9a4511f6f120e9754aca5442830e
Diffstat (limited to 'libunwindstack/tests/MemoryCacheTest.cpp')
0 files changed, 0 insertions, 0 deletions