]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/gost34112012512.py
Use curve's cofactor during VKO calculations
[pygost.git] / pygost / gost34112012512.py
index 4cbdbd4586f6d3ab0c0167351e1a3c789b9e999b..707397da0245e5fa5f75e8dc7be5ad5856f107c7 100644 (file)
@@ -4,7 +4,8 @@ This is implementation of :rfc:`6986`. Most function and variable names are
 taken according to specification's terminology.
 """
 
-from gost34112012 import GOST34112012
+from pygost.gost34112012 import GOST34112012
+from pygost.pbkdf2 import pbkdf2 as pbkdf2_base
 
 
 class GOST34112012512(GOST34112012):
@@ -14,3 +15,7 @@ class GOST34112012512(GOST34112012):
 
 def new(data=b''):
     return GOST34112012512(data)
+
+
+def pbkdf2(password, salt, iterations, dklen):
+    return pbkdf2_base(GOST34112012512, password, salt, iterations, dklen)