-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Validator test case 3.5.15 #138
Comments
The same argument goes for test case 3.6.15 as well. |
That |
@tmarkey64 if this resolves your issue please close this issue. |
Thanks Steven, I have closed this issue. |
Hi Steven,
The responder in this case selected from the AlgSupported field, but the responder's capability flags did not include the MUT_AUTH_CAP, so it fails here (spdm_responder_test3_algorithms.c), where req_base_asym_alg is set to 0x80, which is included in the requesters bit map of supported assymetric algorithms above.
|
That is correct. If Responder's |
Hi Steven, Thanks for the clarification. I see now that this clarification was added in the 1.2 version of the specification. "If the Responder is generating the signature, the selected cryptographic signing algorithm is indicated in exactly one of BaseAsymSel or ExtAsymSel in ALGORITHMS message. If the Requester is generating the signature, the selected cryptographic signing algorithm is indicated in ReqBaseAsymAlg of RespAlgStruct in ALGORITHMS message.". I will go ahead and close the issue again. |
Issue has clarified and resolved. |
Hi @steven-bellock . Currently, Validator will process the following test scenario as fail.
Lines 1380 to 1389 in 626dfbd
I have two questions related to the test scenario above.
|
@jyao1 @chanss-park this is a bug in the validator. Requester's Lines 56 to 65 in 626dfbd
|
Hi Steven, thank you for checking. |
Yes. I agree it is a bug. If MUT_AUTH_CAP is 0, requester should set 0 to ReqBaseAsymAlg, or make it absent. |
That is apparently a complicated question. Let me review the specification(s), as |
Requester cannot set it
Yes, that should be an error. Interestingly libspdm does not handle it that way precisely. I will file an issue against libspdm. |
Hi Steven, |
The Validator will flag an error for 3.5.15 if the capabilities MUT_AUTH_CAP is not set and baseAsymAlg is not zero, but the baseAsymAlg is set to the signature algorithm for the purpose of signature generation and verification. There is not requirement in the specification that this be zero if mutual authentication is not supported. Signature generation and verification is also used for Challenge and Measurements.
The text was updated successfully, but these errors were encountered: