X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fgost34112012512.py;h=f02b061b548ea2706c49284185991e3ddb2868bd;hb=5e92533267cb41c42af1243592c530304d18bff5;hp=961a459c69334249cfaf477e72c818104cb7313a;hpb=5c53e91593183ddac146dfeb629defedebe29a29;p=pygost.git diff --git a/pygost/gost34112012512.py b/pygost/gost34112012512.py index 961a459..f02b061 100644 --- a/pygost/gost34112012512.py +++ b/pygost/gost34112012512.py @@ -5,12 +5,17 @@ taken according to specification's terminology. """ from pygost.gost34112012 import GOST34112012 +from pygost.pbkdf2 import pbkdf2 as pbkdf2_base class GOST34112012512(GOST34112012): - def __init__(self, data=b''): + def __init__(self, data=b""): super(GOST34112012512, self).__init__(data, digest_size=64) -def new(data=b''): +def new(data=b""): return GOST34112012512(data) + + +def pbkdf2(password, salt, iterations, dklen): + return pbkdf2_base(GOST34112012512, password, salt, iterations, dklen)