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

libspdm: responder: Support PSK with ResponderContext #93

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

alistair23
Copy link
Collaborator

We currently advertise that we support

Pre-Shared Key but does not provide ResponderContext for session key derivation.

Let's update this to instead advertise

Pre-Shared Key and provides ResponderContext for session key derivation

As the SPDM spec states that:

the Responder is required to use ResponderContext if it can generate a nonce

which we can, so let's advertise ResponderContext.

This also allows the libspdm function libspdm_get_response_psk_finish() to work correctly.

We currently advertise that we support

    Pre-Shared Key but does not provide ResponderContext for session key derivation.

Let's update this to instead advertise

    Pre-Shared Key and provides ResponderContext for session key derivation

The SPDM spec states that:

     the Responder is required to use ResponderContext if it can generate a nonce

which we can, so let's adertise ResponderContext.

This also allows the libspdm function libspdm_get_response_psk_finish() to
work correctly.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
@alistair23 alistair23 merged commit d254ace into master Jul 29, 2024
2 checks passed
@alistair23 alistair23 deleted the alistair/context branch July 29, 2024 04:00
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