diff options
| author | cui fliter <imcusg@gmail.com> | 2022-09-16 09:30:45 +0000 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2022-09-19 17:36:07 +0000 |
| commit | 35f4265a4bc0c3c52524765c293aced1e60f06b7 (patch) | |
| tree | 30dbafb6715acd58076103adda1b088328bb1484 /ssh/cipher.go | |
| parent | c86fa9a7ed909e2f2a8ab8298254fca727aba16a (diff) | |
| download | go-x-crypto-35f4265a4bc0c3c52524765c293aced1e60f06b7.tar.xz | |
all: replace io/ioutil with io and os package
For golang/go#45557
Change-Id: I447530cc66896aef7a8d528ccb8d095b80e3cf47
GitHub-Last-Rev: 5f385ff46487ac318bd1147cdbbd26bb0ffd0426
GitHub-Pull-Request: golang/crypto#230
Reviewed-on: https://go-review.googlesource.com/c/crypto/+/430797
Auto-Submit: Ian Lance Taylor <iant@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Meng Zhuo <mzh@golangcn.org>
Run-TryBot: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'ssh/cipher.go')
| -rw-r--r-- | ssh/cipher.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ssh/cipher.go b/ssh/cipher.go index 770e8a6..c3062cf 100644 --- a/ssh/cipher.go +++ b/ssh/cipher.go @@ -15,7 +15,6 @@ import ( "fmt" "hash" "io" - "io/ioutil" "golang.org/x/crypto/chacha20" "golang.org/x/crypto/internal/poly1305" @@ -497,7 +496,7 @@ func (c *cbcCipher) readCipherPacket(seqNum uint32, r io.Reader) ([]byte, error) // data, to make distinguishing between // failing MAC and failing length check more // difficult. - io.CopyN(ioutil.Discard, r, int64(c.oracleCamouflage)) + io.CopyN(io.Discard, r, int64(c.oracleCamouflage)) } } return p, err |
