//
// 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 TestVKO2012256(t *testing.T) {
- c, _ := NewCurveFromParams(CurveParamsGostR34102012TC26ParamSetA)
+ c := CurveIdtc26gost341012512paramSetA()
ukmRaw, _ := hex.DecodeString("1d80603c8544c727")
ukm := NewUKM(ukmRaw)
prvRawA, _ := hex.DecodeString("c990ecd972fce84ec4db022778f50fcac726f46708384b8d458304962d7147f8c2db41cef22c90b102f2968404f9b9be6d47c79692d81826b32b8daca43cb667")
}
func TestRandomVKO2012256(t *testing.T) {
- c, _ := NewCurveFromParams(CurveParamsGostR34102012TC26ParamSetA)
+ c := CurveIdtc26gost341012512paramSetA()
f := func(prvRaw1 [64]byte, prvRaw2 [64]byte, ukmRaw [8]byte) bool {
prv1, err := NewPrivateKey(c, Mode2012, prvRaw1[:])
if err != nil {
}
func TestVKO2012512(t *testing.T) {
- c, _ := NewCurveFromParams(CurveParamsGostR34102012TC26ParamSetA)
+ c := CurveIdtc26gost341012512paramSetA()
ukmRaw, _ := hex.DecodeString("1d80603c8544c727")
ukm := NewUKM(ukmRaw)
prvRawA, _ := hex.DecodeString("c990ecd972fce84ec4db022778f50fcac726f46708384b8d458304962d7147f8c2db41cef22c90b102f2968404f9b9be6d47c79692d81826b32b8daca43cb667")
}
func TestRandomVKO2012512(t *testing.T) {
- c, _ := NewCurveFromParams(CurveParamsGostR34102012TC26ParamSetA)
+ c := CurveIdtc26gost341012512paramSetA()
f := func(prvRaw1 [64]byte, prvRaw2 [64]byte, ukmRaw [8]byte) bool {
prv1, err := NewPrivateKey(c, Mode2012, prvRaw1[:])
if err != nil {