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: lazily create the AEAD used for Retry #4916

Merged
merged 3 commits into from
Jan 23, 2025

Conversation

juliens
Copy link
Contributor

@juliens juliens commented Jan 23, 2025

This PR changes the init for retry to a sync.Once, like this, ciphers are only init if you use it.

Linked to #4894

Copy link

codecov bot commented Jan 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 83.65%. Comparing base (88501cc) to head (d46c68b).
Report is 17 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4916      +/-   ##
==========================================
+ Coverage   83.55%   83.65%   +0.11%     
==========================================
  Files         151      152       +1     
  Lines       16223    16254      +31     
==========================================
+ Hits        13554    13597      +43     
+ Misses       2138     2132       -6     
+ Partials      531      525       -6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

)

func init() {
func initRetry() {
Copy link
Member

Choose a reason for hiding this comment

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

Please add a comment here, explaining why this isn't done in init. It's probably also a good idea to link to your issue.

@marten-seemann marten-seemann changed the title Change init to sync.Once to handle fips-only setup. handshake: lazily create the AEAD used for Retry Jan 23, 2025
@marten-seemann marten-seemann linked an issue Jan 23, 2025 that may be closed by this pull request
@marten-seemann marten-seemann merged commit c385cd1 into quic-go:master Jan 23, 2025
20 checks passed
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.

FIPS Compliance Issues with Go 1.24
3 participants