From c8b2d178e5315f14a31ef82454b3ce36bd4e7f7d Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 27 Dec 2019 13:47:00 +0300 Subject: [PATCH] Let's example signature comply with most implementations --- www.texi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www.texi b/www.texi index 4248b50..c2e0207 100644 --- a/www.texi +++ b/www.texi @@ -74,7 +74,7 @@ Example 34.10-2012 keypair generation, signing and verifying: >>> print "Public key is:", hexenc(pub_marshal(pub)) >>> from pygost import gost34112012256 >>> data_for_signing = b"some data" ->>> dgst = gost34112012256.new(data_for_signing).digest() +>>> dgst = gost34112012256.new(data_for_signing).digest()[::-1] >>> from pygost.gost3410 import sign >>> signature = sign(curve, prv, dgst, mode=2012) >>> from pygost.gost3410 import verify -- 2.50.0