Skip to content

Explicitly state Signature_Scheme::ECDSA_SECPxxxR1_TLS13_SHAxxx - #5772

Draft
reneme wants to merge 2 commits into
randombit:masterfrom
Rohde-Schwarz:rene/tls13_ecdsa_code_point_aliases
Draft

Explicitly state Signature_Scheme::ECDSA_SECPxxxR1_TLS13_SHAxxx#5772
reneme wants to merge 2 commits into
randombit:masterfrom
Rohde-Schwarz:rene/tls13_ecdsa_code_point_aliases

Conversation

@reneme

@reneme reneme commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator

For TLS 1.3 the implemented signature scheme codepoints for ECDSA imply "on the NIST curves" explicitly. Other concrete code points exist for ECDSA on the Brainpool curves (GH #5771) paired with the respective hash functions.

In contrast, for TLS 1.2 these code points are interpreted as ECDSA "on any curve" paired with the specified hash function. I think it makes sense to reflect this distinction in the Signature_Scheme enum definition. However, since we are continuing to support TLS 1.2 we can't really deprecate the existing enum entries, in my opinion. Instead I just introduced aliases and some documentation explaining this mess...

I mean this as a suggestion, addressing one of the points here, hence the "draft" status. I'm definitely open for better suggestions.

@reneme
reneme requested a review from randombit July 29, 2026 10:14
@reneme reneme self-assigned this Jul 29, 2026
@reneme
reneme force-pushed the rene/tls13_ecdsa_code_point_aliases branch 3 times, most recently from 4c23d39 to 08ffe8f Compare July 29, 2026 14:17
@reneme

reneme commented Jul 29, 2026

Copy link
Copy Markdown
Collaborator Author

Rebased after #5773 was merged. Also saw another opportunity to simplify the RFC8448 test case.

reneme added 2 commits July 29, 2026 16:35
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
reneme force-pushed the rene/tls13_ecdsa_code_point_aliases branch from 386d047 to 40141a9 Compare July 29, 2026 14:35
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.

1 participant