]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/gost3410_vko.py
Digest size for 34.10 does not depend on 2001/2012 implementations
[pygost.git] / pygost / gost3410_vko.py
index 4326677c00b7ec7a29f8a99b181e73cd7040eea3..e8bc13f9dbdb7e1cac74e97573b199f1e87313ec 100644 (file)
@@ -1,7 +1,7 @@
 from pygost.gost3410 import pub_marshal
-from pygost.gost3411_2012_256 import GOST34112012256
-from pygost.gost3411_2012_512 import GOST34112012512
-from pygost.gost3411_94 import GOST341194
+from pygost.gost34112012256 import GOST34112012256
+from pygost.gost34112012512 import GOST34112012512
+from pygost.gost341194 import GOST341194
 from pygost.utils import bytes2long
 
 
@@ -23,7 +23,7 @@ def vko_34102001(curve, private_key, pubkey, ukm):
     """
     key = curve.exp(private_key, pubkey[0], pubkey[1])
     key = curve.exp(bytes2long(24 * b"\x00" + ukm), key[0], key[1])
-    return GOST341194(pub_marshal(key), "GostR3411_94_CryptoProParamSet").digest()[::-1]
+    return GOST341194(pub_marshal(key), "GostR3411_94_CryptoProParamSet").digest()
 
 
 def vko_34102012256(curve, private_key, pubkey, ukm=b"\x00\x00\x00\x00\x00\x00\x00\01"):