-
Notifications
You must be signed in to change notification settings - Fork 104
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
question on RSA/ECDSA signature endianness in SPDM 1.0/1.1 #2151
Comments
Ideally there should be no byte-swapping, as that was the intent starting with 1.0. |
According to the SPDM WG, SPDM 1.0/1.1 allows big or little endian, chosen by implementation. As such, I propose that:
Understood this will not intercept libspdm3.0.0, but later. Please assign Rich Kong to it. @richkong88 |
I think we need define a set of MACRO to control the different behavior:
|
@jyao1 These would be defines in spdm_lib_config.h right?
|
Requesters may want this to be runtime configurable. If signature verification fails with one endianness it may try with another endianness. |
Is a good place to put the logic changes in spdm_crypt_lib\libspdm_crypt_asm.c in the functions:
|
@richkong88 , here is discussion result between @steven-bellock and me.
|
Current signature endianness is clarified in SPDM 1.2.1.
But SPDM 1.0/1.1 does not include the clarification.
SPDM issue: https://github.com/DMTF/SPDM-WG/issues/2929
The text was updated successfully, but these errors were encountered: