X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=gost34112012256%2Fkdf_test.go;h=2e835d73e539a16aac3120541333d6c1d8044cc6;hb=HEAD;hp=e6bd01162af0df58f68dfa2dbf7b13b13b3031ae;hpb=c40d1e5634cf6d540d908a57423f4b504e39f186;p=gogost.git diff --git a/gost34112012256/kdf_test.go b/gost34112012256/kdf_test.go index e6bd011..ab97dff 100644 --- a/gost34112012256/kdf_test.go +++ b/gost34112012256/kdf_test.go @@ -1,5 +1,5 @@ // GoGOST -- Pure Go GOST cryptographic functions library -// Copyright (C) 2015-2020 Sergey Matveev +// Copyright (C) 2015-2024 Sergey Matveev // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by @@ -32,12 +32,12 @@ func TestKDFGOSTR34112012256(t *testing.T) { []byte{0x26, 0xbd, 0xb8, 0x78}, []byte{0xaf, 0x21, 0x43, 0x41, 0x45, 0x65, 0x63, 0x78}, ) - if bytes.Compare(derived, []byte{ + if !bytes.Equal(derived, []byte{ 0xa1, 0xaa, 0x5f, 0x7d, 0xe4, 0x02, 0xd7, 0xb3, 0xd3, 0x23, 0xf2, 0x99, 0x1c, 0x8d, 0x45, 0x34, 0x01, 0x31, 0x37, 0x01, 0x0a, 0x83, 0x75, 0x4f, 0xd0, 0xaf, 0x6d, 0x7c, 0xd4, 0x92, 0x2e, 0xd9, - }) != 0 { + }) { t.FailNow() } }