X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fmgm.py;h=aabce95bbd04ad9504505352350cee8cff53179b;hb=refs%2Ftags%2F5.7;hp=49c478dc2619b5a00bc40de3e5c3dc5f4294453f;hpb=21b8b8f77caa2b719748ba28d36edba9e220d2a7;p=pygost.git 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