hasher := gost34112012256.New()
_, err := hasher.Write(data)
dgst := hasher.Sum(nil)
- curve := gost3410.CurveIdtc26gost34102012256paramSetB()
+ curve := gost3410.CurveIdtc26gost341012256paramSetB()
prvRaw := make([]byte, int(32))
_, err = io.ReadFull(rand.Reader, prvRaw)
prv, err := gost3410.NewPrivateKey(curve, prvRaw)
You can read about GOST algorithms more: http://www.gost.cypherpunks.ru/
Please send questions, bug reports and patches to
-https://lists.cypherpunks.ru/mailman/listinfo/gost
-mailing list. Announcements also go to this mailing list.
+http://lists.cypherpunks.ru/gost.html mailing list.
+Announcements also go to this mailing list.
Development Git source code repository currently is located here:
http://www.git.cypherpunks.ru/?p=gogost.git;a=summary