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

handshake: use the correct hash function for TLS_AES_256_GCM_SHA384 #4031

Merged
merged 1 commit into from Aug 16, 2023

Conversation

marten-seemann
Copy link
Member

@marten-seemann marten-seemann commented Aug 16, 2023

TLS_AES_128_GCM_SHA256 and TLS_CHACHA20_POLY1305_SHA256 work fine, but if TLS happens to select TLS_AES_256_GCM_SHA384 during the handshake, we're deriving the wrong keys, causing a handshake failure.

Thanks to @MarcoPolo for discovering this when interop-ing with zig-libp2p.

@codecov
Copy link

codecov bot commented Aug 16, 2023

Codecov Report

Merging #4031 (d36bd5e) into master (70f3f44) will not change coverage.
Report is 1 commits behind head on master.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4031   +/-   ##
=======================================
  Coverage   82.83%   82.83%           
=======================================
  Files         147      147           
  Lines       14785    14785           
=======================================
  Hits        12247    12247           
  Misses       2037     2037           
  Partials      501      501           

@marten-seemann
Copy link
Member Author

@mholt Yet another (and this time, very stupid copy-paste) bug introduced when switching to crypto/tls. Sorry for creating so much churn. Will ship v0.37.5 later today.

Lesson learned: We need some interop tests with a different QUIC implementation in this repo, running in CI.

@marten-seemann marten-seemann merged commit bda01bc into master Aug 16, 2023
29 checks passed
@mholt
Copy link
Contributor

mholt commented Aug 16, 2023

No worries 😊 I don't know of any impacts our users experienced.

@marten-seemann marten-seemann deleted the fix-aes-256-gcm-sha384-hash branch August 18, 2023 05:37
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.

None yet

3 participants