]> Cypherpunks.ru repositories - gogost.git/blobdiff - gost3410/private_test.go
Raise copyright years
[gogost.git] / gost3410 / private_test.go
index 7b8e75af12aa8976a80424403bab589db032a60c..ecb2659d584016c58d4d1f4f5c8edb09da0cdf72 100644 (file)
@@ -1,5 +1,5 @@
 // GoGOST -- Pure Go GOST cryptographic functions library
-// Copyright (C) 2015-2019 Sergey Matveev <stargrave@stargrave.org>
+// Copyright (C) 2015-2023 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
@@ -22,9 +22,9 @@ import (
 )
 
 func TestSignerInterface(t *testing.T) {
-       prvRaw := make([]byte, int(Mode2001))
+       prvRaw := make([]byte, 32)
        rand.Read(prvRaw)
-       prv, err := NewPrivateKey(CurveIdGostR34102001TestParamSet(), Mode2001, prvRaw)
+       prv, err := NewPrivateKey(CurveIdGostR34102001TestParamSet(), prvRaw)
        if err != nil {
                t.FailNow()
        }