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 sender can not receive err msg after key update fail #79

Merged

Conversation

OuyangHang33
Copy link
Collaborator

Ref: #7
When SPDM-rs Requester create new keys and send wrong KeyUpdate operation, it can't receive Err msg from responder.

Solution:
When meet Generic failure, try backup keys before aborting. Retry decoding message with backup Requester key.

Tested with Rust SPDM emulator:
Requester send wrong UpdateAllKeys operation request and update responder key. responder send [12, 7F, 01, 00] err message, and requester can receive this message.

@OuyangHang33 OuyangHang33 changed the title Key update fix receive err msg Fix sender can not receive err msg after key update fail Apr 21, 2024
@OuyangHang33 OuyangHang33 reopened this Apr 22, 2024
@jyao1 jyao1 merged commit 76addaf into ccc-spdm-tools:main Apr 22, 2024
98 of 102 checks passed
@OuyangHang33 OuyangHang33 deleted the key_update_fix_receive_err_msg branch April 28, 2024 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants