Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 880 Bytes

1.Version.md

File metadata and controls

32 lines (20 loc) · 880 Bytes

1. Test for VERSION

Case 1.1

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:

  1. Requester -> GET_VERSION {SPDMVersion=0x10, Param1=0, Param2=0}
  2. 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}.