// GoGOST -- Pure Go GOST cryptographic functions library
-// Copyright (C) 2015-2016 Sergey Matveev <stargrave@stargrave.org>
+// Copyright (C) 2015-2019 Sergey Matveev <stargrave@stargrave.org>
//
// 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
)
func TestVKO2001(t *testing.T) {
- c, _ := NewCurveFromParams(CurveParamsGostR34102001Test)
+ c := CurveIdGostR34102001TestParamSet()
ukmRaw, _ := hex.DecodeString("5172be25f852a233")
ukm := NewUKM(ukmRaw)
prvRaw1, _ := hex.DecodeString("1df129e43dab345b68f6a852f4162dc69f36b2f84717d08755cc5c44150bf928")
}
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 {