X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fgost28147_mac.py;h=4a257c56f4536169a85622d4729873513851f711;hp=64712c6da5090e5d9e9cf86e9c26a82fcec92459;hb=31b08d5a78505f0ae1a144e58d023d84eda2cc6e;hpb=82af8726ef5d5e2752089a45750e56c9910398c7 diff --git a/pygost/gost28147_mac.py b/pygost/gost28147_mac.py index 64712c6..4a257c5 100644 --- a/pygost/gost28147_mac.py +++ b/pygost/gost28147_mac.py @@ -13,7 +13,7 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . -""" GOST 28147-89 MAC +"""GOST 28147-89 MAC """ from copy import copy @@ -39,7 +39,7 @@ SEQ_MAC = ( class MAC(PEP247): - """ GOST 28147-89 MAC mode of operation + """GOST 28147-89 MAC mode of operation >>> m = MAC(key=key) >>> m.update("some data") @@ -70,12 +70,12 @@ class MAC(PEP247): return MAC(self.key, copy(self.data), self.iv, self.sbox) def update(self, data): - """ Append data that has to be authenticated + """Append data that has to be authenticated """ self.data += data def digest(self): - """ Get MAC tag of supplied data + """Get MAC tag of supplied data You have to provide at least single byte of data. If you want to produce tag length of 3 bytes, then