X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fiface.py;h=e2d6a4c89d5c9c1234726d420ecad54d8977cf57;hb=c60e57615ac5dc348178acbb01a60cbda983d6d7;hp=887d69f35793da7322215342dd09217732095c90;hpb=557a8dc9902c888ccd7f9b7622308f5a4d0d53ad;p=pygost.git diff --git a/pygost/iface.py b/pygost/iface.py index 887d69f..e2d6a4c 100644 --- a/pygost/iface.py +++ b/pygost/iface.py @@ -1,6 +1,8 @@ from abc import ABCMeta from abc import abstractmethod +from pygost.utils import hexenc + # This function is taken from six package as is def add_metaclass(metaclass): @@ -42,7 +44,7 @@ class PEP247(object): """Return the hash value as a string containing 8-bit data. """ - @abstractmethod def hexdigest(self): """Return the hash value as a string containing hexadecimal digits. """ + return hexenc(self.digest())