]> Cypherpunks.ru repositories - gogost.git/blobdiff - gost341264/cipher_test.go
Use more modern Go version
[gogost.git] / gost341264 / cipher_test.go
index 1bcf3c8b1c6dd5a0bfdc9dd1b3bf7d1cb1ddf4f5..9272770894789f547701e6e07517ddd80d593770 100644 (file)
@@ -37,11 +37,11 @@ func TestVector(t *testing.T) {
        c := NewCipher(key)
        dst := make([]byte, BlockSize)
        c.Encrypt(dst, pt[:])
-       if bytes.Compare(dst, ct[:]) != 0 {
+       if !bytes.Equal(dst, ct[:]) {
                t.FailNow()
        }
        c.Decrypt(dst, dst)
-       if bytes.Compare(dst, pt[:]) != 0 {
+       if !bytes.Equal(dst, pt[:]) {
                t.FailNow()
        }
 }