proposal: crypto/cipher: expose NewGCMWithCounterNonce #73110
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
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.The text was updated successfully, but these errors were encountered: