X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fgost28147%2Fcfb_test.go;h=5647663f812c2c366129c61fabbbc221b772561a;hb=91562b3cf4aad503c493aa7b69abfbb07b46e63a;hp=fd0e18699076d29035af15947b0f1a578acc217f;hpb=69e668f3499122e0b1140f3bd927de41ad279b94;p=gogost.git diff --git a/src/cypherpunks.ru/gogost/gost28147/cfb_test.go b/src/cypherpunks.ru/gogost/gost28147/cfb_test.go index fd0e186..5647663 100644 --- a/src/cypherpunks.ru/gogost/gost28147/cfb_test.go +++ b/src/cypherpunks.ru/gogost/gost28147/cfb_test.go @@ -3,8 +3,7 @@ // // 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 -// the Free Software Foundation, either version 3 of the License, or -// (at your option) any later version. +// the Free Software Foundation, version 3 of the License. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -45,12 +44,12 @@ func TestCFBCryptomanager(t *testing.T) { fe := c.NewCFBEncrypter(iv) fe.XORKeyStream(tmp, pt) if bytes.Compare(tmp, ct) != 0 { - t.Fail() + t.Fatal("encryption failed") } fd := c.NewCFBDecrypter(iv) fd.XORKeyStream(tmp, ct) if bytes.Compare(tmp, pt) != 0 { - t.Fail() + t.Fatal("decryption failed") } }