]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/cipher: fix link to crypto/aes
authorSean Liao <sean@liao.dev>
Fri, 20 Jun 2025 11:04:22 +0000 (12:04 +0100)
committerSean Liao <sean@liao.dev>
Fri, 20 Jun 2025 18:09:26 +0000 (11:09 -0700)
Fixes #74309

Change-Id: I4d97514355d825124a8d879c2590b45b039f5fd1
Reviewed-on: https://go-review.googlesource.com/c/go/+/682596
Reviewed-by: Daniel McCarney <daniel@binaryparadox.net>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

src/crypto/cipher/gcm.go

index 5580f96d55a0fb7e5766992e7fcce77d8afda696..73493f6cd2311b02fdc5edc813579fe17c6171c7 100644 (file)
@@ -82,7 +82,7 @@ func newGCM(cipher Block, nonceSize, tagSize int) (AEAD, error) {
 
 // NewGCMWithRandomNonce returns the given cipher wrapped in Galois Counter
 // Mode, with randomly-generated nonces. The cipher must have been created by
-// [aes.NewCipher].
+// [crypto/aes.NewCipher].
 //
 // It generates a random 96-bit nonce, which is prepended to the ciphertext by Seal,
 // and is extracted from the ciphertext by Open. The NonceSize of the AEAD is zero,