Skip to content

proposal: crypto/cipher: expose NewGCMWithCounterNonce #73110

@wadey

Description

@wadey

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    LibraryProposalIssues describing a requested change to the Go standard library or x/ libraries, but not to a toolProposalProposal-CryptoProposal related to crypto packages or other security issues

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions