X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=gost28147%2Fcbc_test.go;fp=gost28147%2Fcbc_test.go;h=06cd020f27e794045a857bb3979ee47dd295b16e;hb=285c03431192ff6ffbfa7470652fd545f06e0b00;hp=ae019b2112f63fb5e03de4e29e0567962860dc57;hpb=43a544f46528f2faa5b9555a9d97ceed4bcf500f;p=gogost.git diff --git a/gost28147/cbc_test.go b/gost28147/cbc_test.go index ae019b2..06cd020 100644 --- a/gost28147/cbc_test.go +++ b/gost28147/cbc_test.go @@ -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)