X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fmgm.py;h=aabce95bbd04ad9504505352350cee8cff53179b;hp=49c478dc2619b5a00bc40de3e5c3dc5f4294453f;hb=ade04d6c0456bb39793e8b3547ac99aeffe8af73;hpb=21b8b8f77caa2b719748ba28d36edba9e220d2a7 diff --git a/pygost/mgm.py b/pygost/mgm.py index 49c478d..aabce95 100644 --- a/pygost/mgm.py +++ b/pygost/mgm.py @@ -58,7 +58,7 @@ class MGM(object): """ if bs not in (8, 16): raise ValueError("Only 64/128-bit blocksizes allowed") - self.tag_size = bs if tag_size is None else bs + self.tag_size = bs if tag_size is None else tag_size if self.tag_size < 4 or self.tag_size > bs: raise ValueError("Invalid tag_size") self.encrypter = encrypter