diff options
| author | cui fliter <imcusg@gmail.com> | 2023-10-12 18:08:04 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-10-13 17:09:47 +0000 |
| commit | a0da9c00aeb51261b9845a46fbc9878870884ab6 (patch) | |
| tree | 1d18f8a34a9dea37cb1e04dc425208f3b1376445 /src/crypto/cipher/ctr.go | |
| parent | 14c347f5ce924b5a0f05ec5737984cfeb294d9ac (diff) | |
| download | go-a0da9c00aeb51261b9845a46fbc9878870884ab6.tar.xz | |
crypto: add available godoc link
Change-Id: Ifc669399dde7d6229c6ccdbe29611ed1f8698fb1
Reviewed-on: https://go-review.googlesource.com/c/go/+/534778
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/crypto/cipher/ctr.go')
| -rw-r--r-- | src/crypto/cipher/ctr.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/cipher/ctr.go b/src/crypto/cipher/ctr.go index 3ac0ff74d0..eac8e266cf 100644 --- a/src/crypto/cipher/ctr.go +++ b/src/crypto/cipher/ctr.go @@ -34,8 +34,8 @@ type ctrAble interface { NewCTR(iv []byte) Stream } -// NewCTR returns a Stream which encrypts/decrypts using the given Block in -// counter mode. The length of iv must be the same as the Block's block size. +// NewCTR returns a [Stream] which encrypts/decrypts using the given [Block] in +// counter mode. The length of iv must be the same as the [Block]'s block size. func NewCTR(block Block, iv []byte) Stream { if ctr, ok := block.(ctrAble); ok { return ctr.NewCTR(iv) |
