X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=src%2Fcypherpunks.ru%2Fgogost%2Fgost3410%2Fvko2001_test.go;h=fd6d5e78d3aabc5314b2ca1c89456cfc94cd4898;hb=650711d1eae869487d96c4de9bb4c2f9c68ca5ca;hp=d0c50425a9a489fa171d2807692bdad376fbf9f1;hpb=014be6ab0719643d1e2996a360ab0619124b7e0e;p=gogost.git diff --git a/src/cypherpunks.ru/gogost/gost3410/vko2001_test.go b/src/cypherpunks.ru/gogost/gost3410/vko2001_test.go index d0c5042..fd6d5e7 100644 --- a/src/cypherpunks.ru/gogost/gost3410/vko2001_test.go +++ b/src/cypherpunks.ru/gogost/gost3410/vko2001_test.go @@ -1,5 +1,5 @@ // GoGOST -- Pure Go GOST cryptographic functions library -// Copyright (C) 2015-2017 Sergey Matveev +// Copyright (C) 2015-2019 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 @@ -24,7 +24,7 @@ import ( ) func TestVKO2001(t *testing.T) { - c, _ := NewCurveFromParams(CurveParamsGostR34102001Test) + c := CurveIdGostR34102001TestParamSet() ukmRaw, _ := hex.DecodeString("5172be25f852a233") ukm := NewUKM(ukmRaw) prvRaw1, _ := hex.DecodeString("1df129e43dab345b68f6a852f4162dc69f36b2f84717d08755cc5c44150bf928") @@ -45,7 +45,7 @@ func TestVKO2001(t *testing.T) { } func TestRandomVKO2001(t *testing.T) { - c, _ := NewCurveFromParams(CurveParamsGostR34102001Test) + c := CurveIdGostR34102001TestParamSet() f := func(prvRaw1 [32]byte, prvRaw2 [32]byte, ukmRaw [8]byte) bool { prv1, err := NewPrivateKey(c, Mode2001, prvRaw1[:]) if err != nil {