-
Notifications
You must be signed in to change notification settings - Fork 108
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
LIBSPDM_MAX_MESSAGE_VCA_BUFFER_SIZE seems to need larger size. #2302
Comments
@IamSukwonKim, this is valid point. Thanks! So far, we do not see any Ext use case, and libspdm does not support Ext algorithm at all. Would you please share with us what use case you will have to support Ext Algorithm? |
@jyao1, It’s my pleasure. Thank you :)
We don' have any use cases for Ext. Algorithm, too. What I'm trying to say is that the responder can't be sure that there will be no Ext Algorithm in the future, because of the specification.
If there are no use case, why don't we get rid of the fields. So, that we can save memory. |
Even if an endpoint does not support the ext algorithms they'll still end up in the transcript. The memory allocation for |
Of course, if we're sure by considering backward compatibility, code complexity or something else, we might remove it from the spec. first, and then from the code. |
@IamSukwonKim, can we assign to you, then you can propose a patch? |
First, PR is not possible in my work environment. Second, I'm not sure if I'm allowed to PR outside of my workspace, and third, even if I could, it would take a long time because I'm so busy these days. I want to do the work. If I find out a way, I'll let you know again. |
LIBSPDM_MAX_MESSAGE_VCA_BUFFER_SIZE
is defined based on a below statement.libspdm/include/library/spdm_common_lib.h
Lines 212 to 224 in f5e8613
This value assumes that there are no
ExtAsymCount
and noExtHashCount
. However, in point of responder's view, It doesn't know how long the NEGOTIATION_ALGORITHMS will be until receive it. So, It would be better to allocate additional 80 bytes to reserve Maximum length, 128 bytes.And also, It can be required additional space for fields which include
ExtAsymSel
,ExtHashSel
and eachAlgExternal
for ALGORITHMS. However, we can remain these for configurable value, in my opinion.The text was updated successfully, but these errors were encountered: