Skip to content
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

fix the salt value in export/import function. #2319

Merged
merged 2 commits into from
Sep 1, 2023
Merged

fix the salt value in export/import function. #2319

merged 2 commits into from
Sep 1, 2023

Conversation

jyao1
Copy link
Member

@jyao1 jyao1 commented Aug 19, 2023

Fix #2318

@jyao1 jyao1 force-pushed the aead branch 4 times, most recently from 1ffb961 to 9deb023 Compare August 19, 2023 10:13
@steven-bellock
Copy link
Contributor

Why not keep the salt and sequence number in libspdm_secure_session_keys_struct_t completely separate and only combine them, locally, when encrypting / decrypting?

@steven-bellock steven-bellock added the bug Something isn't working label Aug 22, 2023
@jyao1
Copy link
Member Author

jyao1 commented Aug 25, 2023

Looking at the history, I think we want to prevent the data leakage in stack...

Agree this could be a simpler way.

@jyao1 jyao1 merged commit b8b48ae into DMTF:main Sep 1, 2023
90 checks passed
@jyao1 jyao1 deleted the aead branch September 1, 2023 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

libspdm_secured_message_export_session_keys() does not export salt correctly.
2 participants