mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 22:04:26 +00:00
Merge "Correct the UDS_pub source" into main
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