Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c54f4330 authored by Andrew Scull's avatar Andrew Scull
Browse files

Adjust for library rename

libcert_request_validator is now called libhwtrust so update the
references to match.

Test: atest VtsHalRemotelyProvisionedComponentTargetTest
Change-Id: I3c73e2749996ef684da4567a3c86daf8b9c0fd09
parent 9a8c9456
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -67,7 +67,7 @@ cc_library {
        "android.hardware.security.rkp-V3-ndk",
    ],
    whole_static_libs: [
        "libcert_request_validator_cxx",
        "libhwtrust_cxx",
    ],
    shared_libs: [
        "libbase",
+2 −2
Original line number Diff line number Diff line
@@ -23,8 +23,8 @@

#include <aidl/android/hardware/security/keymint/RpcHardwareInfo.h>
#include <android-base/properties.h>
#include <cert_request_validator/cert_request_validator.h>
#include <cppbor.h>
#include <hwtrust/hwtrust.h>
#include <json/json.h>
#include <keymaster/km_openssl/ec_key.h>
#include <keymaster/km_openssl/ecdsa_operation.h>
@@ -292,7 +292,7 @@ bytevec getProdEekChain(int32_t supportedEekCurve) {

ErrMsgOr<std::vector<BccEntryData>> validateBcc(const cppbor::Array* bcc) {
    auto encodedBcc = bcc->encode();
    auto chain = cert_request_validator::DiceChain::verify(encodedBcc);
    auto chain = hwtrust::DiceChain::verify(encodedBcc);
    if (!chain.ok()) return chain.error().message();
    auto keys = chain->cose_public_keys();
    if (!keys.ok()) return keys.error().message();