]> Cypherpunks.ru repositories - gogost.git/blobdiff - gost28147/cbc_test.go
Use more modern Go version
[gogost.git] / gost28147 / cbc_test.go
index ae019b2112f63fb5e03de4e29e0567962860dc57..06cd020f27e794045a857bb3979ee47dd295b16e 100644 (file)
@@ -33,7 +33,7 @@ func TestCBCCrypter(t *testing.T) {
                e.CryptBlocks(ct, pt)
                d := cipher.NewCBCDecrypter(c, iv[:])
                d.CryptBlocks(ct, ct)
-               return bytes.Compare(pt, ct) == 0
+               return bytes.Equal(pt, ct)
        }
        if err := quick.Check(f, nil); err != nil {
                t.Error(err)