mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:23:37 +00:00
Merge "Correct the UDS_pub source" into main am: 52ed6c3497
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/3260455 Change-Id: I57ca171b73123aa3452ae2686e3c966768b618f9 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -1040,14 +1040,15 @@ ErrMsgOr<bytevec> parseAndValidateAuthenticatedRequest(const std::vector<uint8_t
|
||||
return diceContents.message() + "\n" + prettyPrint(diceCertChain);
|
||||
}
|
||||
|
||||
auto& udsPub = diceContents->back().pubKey;
|
||||
auto udsPub = diceCertChain->get(0)->asMap()->encode();
|
||||
auto& kmDiceKey = diceContents->back().pubKey;
|
||||
|
||||
auto error = validateUdsCerts(*udsCerts, udsPub);
|
||||
if (!error.empty()) {
|
||||
return error;
|
||||
}
|
||||
|
||||
auto signedPayload = verifyAndParseCoseSign1(signedData, udsPub, {} /* aad */);
|
||||
auto signedPayload = verifyAndParseCoseSign1(signedData, kmDiceKey, {} /* aad */);
|
||||
if (!signedPayload) {
|
||||
return signedPayload.message();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user