mirror of https://github.com/golang/go.git
crypto/cipher: fix link to crypto/aes
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>
This commit is contained in:
parent
ef60769b46
commit
8ed23a2936
|
|
@ -82,7 +82,7 @@ func newGCM(cipher Block, nonceSize, tagSize int) (AEAD, error) {
|
||||||
|
|
||||||
// NewGCMWithRandomNonce returns the given cipher wrapped in Galois Counter
|
// NewGCMWithRandomNonce returns the given cipher wrapped in Galois Counter
|
||||||
// Mode, with randomly-generated nonces. The cipher must have been created by
|
// 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,
|
// 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,
|
// and is extracted from the ciphertext by Open. The NonceSize of the AEAD is zero,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue