diff options
Diffstat (limited to 'src/crypto/cipher/ctr.go')
| -rw-r--r-- | src/crypto/cipher/ctr.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/crypto/cipher/ctr.go b/src/crypto/cipher/ctr.go index 2b434ef832..3ac0ff74d0 100644 --- a/src/crypto/cipher/ctr.go +++ b/src/crypto/cipher/ctr.go @@ -13,6 +13,7 @@ package cipher import ( + "bytes" "crypto/internal/alias" "crypto/subtle" ) @@ -48,7 +49,7 @@ func NewCTR(block Block, iv []byte) Stream { } return &ctr{ b: block, - ctr: dup(iv), + ctr: bytes.Clone(iv), out: make([]byte, 0, bufSize), outUsed: 0, } |
