-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Observed Failure While Running spdm_device_validator_sample:
test case 3.2 (spdm_test_case_algorithms_version_mismatch) - setup enter
test case 3.2 (spdm_test_case_algorithms_version_mismatch) - setup exit (0)
test assertion 3.2.0 - NOT_TESTED case_setup_func fail
test case 3.2 (spdm_test_case_algorithms_version_mismatch) - teardown enter
test case 3.2 (spdm_test_case_algorithms_version_mismatch) - teardown exit
spdm_test_case_algorithms_setup_version_capabilities
This function initializes data for Get Version and Get Capabilities operations.
The function libspdm_set_data() sets the capability flags with Data32 = 0x73C6, where the chunk flag is disabled.
Later, libspdm_try_get_capabilities() sends the requestor’s capability data to the responder.
When constructing the Get Capabilities request, the code calls libspdm_mask_capability_flags(), which applies the same flags (Data32 = 0x73C6).
Subsequently, the code attempts to set Data Transfer Size and Max SPDM Size to different values (Not Equal values).
According to the Capabilities test cases (Section 2.4), the responder must return Invalid Request if the (Chunk capability is disabled) and (DataTransferSize and MaxSPDMmsgSize are not equal)

The responder consistently returns INVALID_REQUEST (05 12 7F 01 00), causing the SPDM-EMU test setup to fail and skip the test case.