Commit 8782fd04 authored by Iskander Sharipov's avatar Iskander Sharipov Committed by Filippo Valsorda

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/+/164937Reviewed-by: default avatarEmmanuel Odeke <emm.odeke@gmail.com>
parent 359fb4a9
......@@ -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)
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment