Closed jyao1 closed 3 years ago
SPDM does not specify that signature is a pre-requisite of Opaque Data in MEASUREMENT response. So Opaque Data should be included. The Requester should decide whether to use Responder's Opaque Data without a signature or send GET_MEASUREMENT again but require a signature.
agree with @xiaoyuruan
Fixed after fdb1467fc9d32504f0d101d77fa7c99be2dec26c. Case 23/24/29 are enabled.
See #137, test case feedback 3.
TestSpdmRequesterGetMeasurement fail due to one of the following reasons: Opaque data is ignored if the measurement response does not include a signature (test cases 23, 24, 29)
Current code purposely ignored Opaque data, because I don't think we should transport Opaque data if no signature is required.
Maybe SPDM spec should clarify it.