From 8782fd04319e16b372852ae8572b8c90f56e01ae Mon Sep 17 00:00:00 2001 From: Iskander Sharipov Date: Sat, 2 Mar 2019 09:51:44 +0300 Subject: [PATCH] crypto/cipher: fix duplicated arguments to bytes.Equal in test Args were duplicated by a mistake. Found using static analysis tools. Change-Id: I2f61e09844bc409b1f687d654767332d93dd39a2 Reviewed-on: https://go-review.googlesource.com/c/go/+/164937 Reviewed-by: Emmanuel Odeke --- src/crypto/cipher/cfb_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/cipher/cfb_test.go b/src/crypto/cipher/cfb_test.go index ecb716df01..72f62e69d3 100644 --- a/src/crypto/cipher/cfb_test.go +++ b/src/crypto/cipher/cfb_test.go @@ -81,7 +81,7 @@ func TestCFBVectors(t *testing.T) { plaintextCopy := make([]byte, len(ciphertext)) cfbdec.XORKeyStream(plaintextCopy, ciphertext) - if !bytes.Equal(plaintextCopy, plaintextCopy) { + if !bytes.Equal(plaintextCopy, plaintext) { t.Errorf("#%d: wrong plaintext: got %x, expected %x", i, plaintextCopy, plaintext) } } -- 2.50.0