X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fgost34112012256.py;h=82c947e0037575b0601cdcbfa8f8760b52d9a79b;hb=31b08d5a78505f0ae1a144e58d023d84eda2cc6e;hp=bfb84485a491d872746ee396a1a354439201ce5e;hpb=c8f1dd2e8e0c1fe29d13b7f34dcb480079190ec0;p=pygost.git diff --git a/pygost/gost34112012256.py b/pygost/gost34112012256.py index bfb8448..82c947e 100644 --- a/pygost/gost34112012256.py +++ b/pygost/gost34112012256.py @@ -1,16 +1,16 @@ -""" GOST R 34.11-2012 (Streebog) 256-bit hash function +"""GOST R 34.11-2012 (Streebog) 256-bit hash function 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 class GOST34112012256(GOST34112012): - def __init__(self, data=b''): + def __init__(self, data=b""): super(GOST34112012256, self).__init__(data, digest_size=32) -def new(data=b''): +def new(data=b""): return GOST34112012256(data)