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

Support TLS 1.3 in fipstls mode #1121

Merged
merged 3 commits into from
Jan 31, 2024
Merged

Support TLS 1.3 in fipstls mode #1121

merged 3 commits into from
Jan 31, 2024

Conversation

qmuntal
Copy link
Contributor

@qmuntal qmuntal commented Jan 30, 2024

This PR adds support for TLS 1.3 when running in fipstls mode.

The changes have been taken from https://go-review.googlesource.com/c/go/+/558796 and put in its own patch file so they are easier to revert once upstream finally support TLS 1.3 in fipstls mode.

This will have to be ported to the go1.22 release branch.

Updates #1119.

Copy link
Member

@dagood dagood left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! I like this approach, keeping our implementation intact rather than simply following upstream and removing it altogether.

+ return VersionTLS13
}

// default defaultFIPSCurvePreferences is the FIPS-allowed curves,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the var here, var defaultFIPSCurvePreferences = []CurveID{CurveP256, CurveP384, CurveP521}, the CurveP521 entry is still there--this is good, per golang/go#62372 (comment).

(Just taking a note on what's different here vs. the reverted upstream changes.)

@dagood
Copy link
Member

dagood commented Jan 30, 2024

This will have to be ported to the go1.22 release branch.

Also go1.20/go1.21, right? (Although it's only practical to actually do it once golang/go#65322 and golang/go#65323 get merged.)

@qmuntal qmuntal merged commit f055b85 into microsoft/main Jan 31, 2024
19 checks passed
@qmuntal qmuntal deleted the dev/qmuntal/tls13 branch January 31, 2024 13: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.

3 participants