Conversation
maddeleine
commented
Feb 16, 2026
| /* "default_fips" */ | ||
| { | ||
| const struct s2n_security_policy *versioned_policies[] = { | ||
| &security_policy_20240416, |
Contributor
Author
There was a problem hiding this comment.
So, if you're wondering what's happening here, basically, this security policy only advertises support for two signature curves, p256 and p384. And this test checks all cert permutations, which means that it will try to negotiate with a p521 curve, which now fails. Unfortunately s2n_test_cert_chains_set_supported doesn't allow you to mark specific curve types as being not supported. I'm not really sure if it's worth the effort to add that in.
jmayclin
reviewed
Feb 17, 2026
jmayclin
approved these changes
Feb 17, 2026
CarolYeh910
approved these changes
Feb 18, 2026
9177536 to
50fb922
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Goal
Adds additional verification checks to ECDSA curves.
Why
s2n-tls did not verify which specific curve was used in a cert verify/key exchange message. We consider this a bug rather than a security issue given how unrealistic signature spoofing would be within the timeframe of a TLS handshake.
How
Adds checks to make sure that we are correctly verifying which curve is used for a peer's signature in the TLS1.2 and TLS.13 codepaths.
Callouts
There exists a slight mismatch here, an s2n-tls server will still use whichever certificate it has on hand, as long as the signature type is supported by the peer. We probably should fix that behavior as well on the server side.
Testing
Adds unit tests for both TLS1.2 and TLS1.3
Related
release summary: s2n-tls now errors if a peer sent an ECDSA signature with a mislabeled curve.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.