Support ECDSA with brainpool in TLS 1.3 - #5771
Merged
reneme merged 1 commit intoJul 30, 2026
Merged
Conversation
Owner
|
CI is failing, but yeah seems fine. BTW 3.13.0 would normally be Aug 4 but I pushed it a week so that any findings from Patch The Planet can get addressed prior to the release, rather than right after a release. So should be plenty of time to get this in. |
reneme
force-pushed
the
rene/tls13_support_ecdsa_brainpool
branch
from
July 29, 2026 07:33
2e587e8 to
0faecba
Compare
Collaborator
Author
Looks better now. It failed because |
reneme
marked this pull request as ready for review
July 29, 2026 09:19
Collaborator
Author
|
I'm happy with this patch as-is for now. A few lessons learned:
All of the above are probably worth further investigation. |
This was referenced Jul 29, 2026
reneme
added a commit
to Rohde-Schwarz/botan
that referenced
this pull request
Jul 29, 2026
TLS 1.3 explicitly means ECDSA on the NIST curves when using these code points. Other code points exist for the Brainpool curves (GH randombit#5771). In contrast, for TLS 1.2 these code points meant the usage of ECDSA on any curve paired with the specified hash function. To reflect this distinction in the code base, this introduces aliases in the Signature_Scheme enum accordingly.
reneme
added a commit
to Rohde-Schwarz/botan
that referenced
this pull request
Jul 29, 2026
TLS 1.3 explicitly means ECDSA on the NIST curves when using these code points. Other code points exist for the Brainpool curves (GH randombit#5771). In contrast, for TLS 1.2 these code points meant the usage of ECDSA on any curve paired with the specified hash function. To reflect this distinction in the code base, this introduces aliases in the Signature_Scheme enum accordingly.
reneme
added a commit
to Rohde-Schwarz/botan
that referenced
this pull request
Jul 29, 2026
TLS 1.3 explicitly means ECDSA on the NIST curves when using these code points. Other code points exist for the Brainpool curves (GH randombit#5771). In contrast, for TLS 1.2 these code points meant the usage of ECDSA on any curve paired with the specified hash function. To reflect this distinction in the code base, this introduces aliases in the Signature_Scheme enum accordingly.
reneme
force-pushed
the
rene/tls13_support_ecdsa_brainpool
branch
2 times, most recently
from
July 29, 2026 14:28
d198bc6 to
d28b387
Compare
reneme
added a commit
to Rohde-Schwarz/botan
that referenced
this pull request
Jul 29, 2026
TLS 1.3 explicitly means ECDSA on the NIST curves when using these code points. Other code points exist for the Brainpool curves (GH randombit#5771). In contrast, for TLS 1.2 these code points meant the usage of ECDSA on any curve paired with the specified hash function. To reflect this distinction in the code base, this introduces aliases in the Signature_Scheme enum accordingly.
... as described in RFC 8734. Closes randombit#3811
reneme
force-pushed
the
rene/tls13_support_ecdsa_brainpool
branch
from
July 29, 2026 14:39
d28b387 to
cb68be5
Compare
Collaborator
Author
|
Rebased after #5773 got merged (and adapted |
randombit
approved these changes
Jul 30, 2026
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.
This is described in RFC 8734 and is essentially straight-forward: Adding explicit code points for ECDSA with Brainpool, similar to the additions in #5691. As before I wouldn't restrict those code points for usage in TLS 1.3 explicitly. Perhaps we shouldn't enable them by default, though.
Currently, that's really just a prove of concept (which succeeds in performing a handshake against a Bouncycastle server that is configured with a brainpool-based certificate). I need to go through this RFC and RFC 8446 once more to see if anything else has to be done (such as restricting the standard ECDSA code points to the NIST curves).
It would be nice to land that before Botan 3.13, if possible.
Closes #3811