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

proposal: crypto/cipher: expose NewGCMWithCounterNonce #73110

Open
wadey opened this issue Mar 31, 2025 · 1 comment
Open

proposal: crypto/cipher: expose NewGCMWithCounterNonce #73110

wadey opened this issue Mar 31, 2025 · 1 comment
Labels
LibraryProposal Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool Proposal Proposal-Crypto Proposal related to crypto packages or other security issues
Milestone

Comments

@wadey
Copy link
Contributor

wadey commented Mar 31, 2025

Proposal Details

The internal method crypto.internal.fips140.aes.gcm.NewGCMWithCounterNonce was added in go1.24. This method would be nice to expose for users that want to use it for FIPS-140 compliance reasons.

Outside of FIPS reasons, this method is also nice because it asserts your GCM nonces are non-repeating (when you are using a counter).

NewGCMWithRandomNonce was exposed in crypto/cipher with #69981, so I imagine it could be exposed in a similar way.

@wadey wadey added the Proposal label Mar 31, 2025
@gopherbot gopherbot added this to the Proposal milestone Mar 31, 2025
@seankhliao seankhliao added the Proposal-Crypto Proposal related to crypto packages or other security issues label Mar 31, 2025
@gabyhelp
Copy link

Related Issues

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@gabyhelp gabyhelp added the LibraryProposal Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LibraryProposal Issues describing a requested change to the Go standard library or x/ libraries, but not to a tool Proposal Proposal-Crypto Proposal related to crypto packages or other security issues
Projects
None yet
Development

No branches or pull requests

4 participants