Description: SPDM responder shall return valid VERSION, if it receives a GET_VERSION with version 1.0.
SPDM Version: 1.0+
TestSetup: None
TestTeardown: None
Steps:
- Requester -> GET_VERSION {SPDMVersion=0x10, Param1=0, Param2=0}
- SpdmMessage <- Responder
Assertion 1.1.1: sizeof(SpdmMessage) >= offset(VERSION, VersionNumberEntry)
Assertion 1.1.2: SpdmMessage.RequestResponseCode == VERSION
Assertion 1.1.3: SpdmMessage.SPDMVersion == 0x10
Assertion 1.1.4: SpdmMessage.VersionNumberEntryCount > 0 && SpdmMessage.VersionNumberEntryCount <= (sizeof(SpdmMessage) - offset(VERSION, VersionNumberEntry)) / sizeof(uint16_t)
Assertion 1.1.5: ((SpdmMessage.VersionNumberEntry[i].MajorVersion << 4) + SpdmMessage.VersionNumberEntry[i].MinorVersion) is in {0x10, 0x11, 0x12, 0x13}.