]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/gost28147_mac.py
Move hexdigest implementation to common PEP247 class
[pygost.git] / pygost / gost28147_mac.py
index 5f1ce69b78a3d93e2a891a105982c8d00b2d02e7..164abcb6be67dc984304368057122f927d0ccadf 100644 (file)
@@ -29,7 +29,6 @@ from pygost.gost28147 import validate_sbox
 from pygost.gost28147 import xcrypt
 from pygost.gost3413 import pad1
 from pygost.iface import PEP247
-from pygost.utils import hexenc
 from pygost.utils import strxor
 from pygost.utils import xrange
 
@@ -96,9 +95,6 @@ class MAC(PEP247):
             )[::-1]
         return ns2block(prev)
 
-    def hexdigest(self):
-        return hexenc(self.digest())
-
 
 def new(key, data=b"", iv=8 * b"\x00", sbox=DEFAULT_SBOX):
     return MAC(key, data, iv, sbox)