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

Update s2n_connection_get_kem_group_name() to work with ClientHelloRe… #4652

Merged
merged 1 commit into from
Jul 18, 2024

Conversation

alexw91
Copy link
Contributor

@alexw91 alexw91 commented Jul 16, 2024

…tries

Resolved issues:

N/A

Description of changes:

Updates s2n_connection_get_kem_group_name() to return the Hybrid PQ KemGroup that the server negotiated (not the one that the client preferred and sent in it's ClientHello) in the event that a 2-RTT PQ Handshake occurs.

Before #4526 these two values would have always been the same, but after this change (if a 2-RTT occurs where the server selects a PQ KemGroup that the Client didn't include a KeyShare for in the ClientHello) these values could differ.

Call-outs:

None

Testing:

How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer?

New unit tests added to check for this case.

Is this a refactor change? No

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@alexw91 alexw91 requested review from lrstewart and jmayclin July 16, 2024 19:26
@alexw91 alexw91 force-pushed the fix-2-rtt-kemgroup-getter branch from 57d895d to 85a7a8c Compare July 16, 2024 21:08
@lrstewart lrstewart added this pull request to the merge queue Jul 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 18, 2024
@lrstewart lrstewart added this pull request to the merge queue Jul 18, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to no response for status checks Jul 18, 2024
@dougch dougch added this pull request to the merge queue Jul 18, 2024
Merged via the queue into aws:main with commit 533b502 Jul 18, 2024
34 checks passed
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.

4 participants