Skip to content

Add TLS13-KDF support for openssl backend#1654

Merged
dagood merged 2 commits intomicrosoft:microsoft/mainfrom
nicholasberlin:microsoft/main
Apr 28, 2025
Merged

Add TLS13-KDF support for openssl backend#1654
dagood merged 2 commits intomicrosoft:microsoft/mainfrom
nicholasberlin:microsoft/main

Conversation

@nicholasberlin
Copy link
Copy Markdown
Contributor

@nicholasberlin nicholasberlin commented Apr 24, 2025

Relevant issue: #1626

Add TLS13-KDF support

  • Update golang-fips to c494c21
  • Use new functions in openssl backend
  • Add stub functions for other backends
  • Minor documentation fix

@nicholasberlin nicholasberlin requested a review from a team as a code owner April 24, 2025 14:00
+// the underlying functions because the TLS 1.3 KDF does not have a standard of
+// its own.
+
+func checkFIPS140Only[Hash hash.Hash](h func() Hash, key []byte) error {
Copy link
Copy Markdown
Contributor Author

@nicholasberlin nicholasberlin Apr 24, 2025

Choose a reason for hiding this comment

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

this function is copy-pasted from ./src/crypto/hkdf/hkdf.go

any refactoring suggestions? export the function?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

tls13.ExpandLabel is an internal API that's not reachable by the user, but only by crypto/tls. That package only uses FIPS-compliant parameters when calling tls13.ExpandLabel, so there is nothing to check here. You can remove this function.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks, force pushed an update: c765878

@nicholasberlin
Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree company="Elastic"

Copy link
Copy Markdown
Member

@qmuntal qmuntal left a comment

Choose a reason for hiding this comment

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

Almost good, thanks!

- Update golang-fips to c494c21
- Use new functions in openssl backend
- Add stub functions for other backends
@nicholasberlin
Copy link
Copy Markdown
Contributor Author

Ok, managed to "rebase".

@karianna karianna requested review from dagood and qmuntal April 26, 2025 03:56
Copy link
Copy Markdown
Member

@qmuntal qmuntal left a comment

Choose a reason for hiding this comment

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

LGTHM, thanks!

@dagood dagood merged commit 74b993f into microsoft:microsoft/main Apr 28, 2025
34 checks passed
@dagood
Copy link
Copy Markdown
Member

dagood commented Apr 28, 2025

In case that merge commit looks odd to anyone else--rest assured, it's a merge commit. I think I just got bit by a GitHub UI bug that applied the squash-style message to a merge commit. 😕

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