X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fgost28147%2Fcfb_test.go;h=cd30d86f8e42db1ee3a66ed8569054e1c0673226;hb=1f35967fa918c1653dfa787818ce4f3559283ff5;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..cd30d86 100644 --- a/src/cypherpunks.ru/gogost/gost28147/cfb_test.go +++ b/src/cypherpunks.ru/gogost/gost28147/cfb_test.go @@ -45,12 +45,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") } }