]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/gost3410_vko.py
Explicit mention of 34.10-related endianness
[pygost.git] / pygost / gost3410_vko.py
index 046df9e1212cfaafe6712cbb7b80f2cd2e1f16d2..6ffc9537014f0b570399fed4d3042fa7708530d1 100644 (file)
@@ -26,7 +26,7 @@ from pygost.utils import bytes2long
 def ukm_unmarshal(ukm):
     """Unmarshal UKM value
 
-    :type ukm: bytes
+    :type ukm: little-endian bytes
     :rtype: long
     """
     return bytes2long(ukm[::-1])
@@ -55,7 +55,7 @@ def kek_34102001(curve, prv, pub, ukm):
     """
     return GOST341194(
         kek(curve, prv, pub, ukm, mode=2001),
-        "id-GostR3411-94-CryptoProParamSet",
+        sbox="id-GostR3411-94-CryptoProParamSet",
     ).digest()