X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fgost341194%2Fpbkdf2_test.go;h=a4088e0efa9b1df2e96f60a7d0243bf68713cb76;hb=1f35967fa918c1653dfa787818ce4f3559283ff5;hp=8f280224f0ba72c8a37f58a190f1c99c2a011f0c;hpb=69e668f3499122e0b1140f3bd927de41ad279b94;p=gogost.git diff --git a/src/cypherpunks.ru/gogost/gost341194/pbkdf2_test.go b/src/cypherpunks.ru/gogost/gost341194/pbkdf2_test.go index 8f28022..a4088e0 100644 --- a/src/cypherpunks.ru/gogost/gost341194/pbkdf2_test.go +++ b/src/cypherpunks.ru/gogost/gost341194/pbkdf2_test.go @@ -44,7 +44,7 @@ func TestPBKDF2Vectors(t *testing.T) { 0xb7, 0x34, 0x45, 0xd0, 0x7f, 0x24, 0x1b, 0xed, 0x87, 0x28, 0x82, 0xda, 0x21, 0x66, 0x2d, 0x58, }) != 0 { - t.Fail() + t.FailNow() } if bytes.Compare(pbkdf2.Key( []byte("password"), @@ -58,7 +58,7 @@ func TestPBKDF2Vectors(t *testing.T) { 0x9f, 0x2d, 0xb3, 0x4f, 0xef, 0x25, 0xf2, 0x74, 0x37, 0x88, 0x72, 0xfe, 0xd7, 0xed, 0x1b, 0xb3, }) != 0 { - t.Fail() + t.FailNow() } if bytes.Compare(pbkdf2.Key( []byte("password"), @@ -72,7 +72,7 @@ func TestPBKDF2Vectors(t *testing.T) { 0xa9, 0x74, 0x67, 0xf3, 0xb3, 0x11, 0x16, 0xa5, 0xa7, 0xc1, 0xaf, 0xff, 0x9d, 0xea, 0xda, 0xfe, }) != 0 { - t.Fail() + t.FailNow() } /* It takes too long if bytes.Compare(pbkdf2.Key( @@ -87,7 +87,7 @@ func TestPBKDF2Vectors(t *testing.T) { 0x51, 0x00, 0x93, 0x8a, 0x59, 0xb1, 0xb5, 0xc3, 0xf7, 0x81, 0x09, 0x10, 0xd0, 0x5f, 0xcd, 0x97, }) != 0 { - t.Fail() + t.FailNow() } */ if bytes.Compare(pbkdf2.Key( @@ -103,7 +103,7 @@ func TestPBKDF2Vectors(t *testing.T) { 0xd5, 0x6f, 0x32, 0x6b, 0x49, 0xc8, 0x50, 0x47, 0xb7, 0x63, 0x8a, 0xcb, 0x47, 0x64, 0xb1, 0xfd, }) != 0 { - t.Fail() + t.FailNow() } if bytes.Compare(pbkdf2.Key( []byte("pass\x00word"), @@ -116,6 +116,6 @@ func TestPBKDF2Vectors(t *testing.T) { 0x25, 0x24, 0x23, 0x73, 0x12, 0x7e, 0xdf, 0x9c, 0x8e, 0x9c, 0x32, 0x91, }) != 0 { - t.Fail() + t.FailNow() } }