]> Cypherpunks.ru repositories - pygost.git/blobdiff - pygost/mgm.py
Raise copyright years
[pygost.git] / pygost / mgm.py
index 340fae6eb9617f311cf13114b5512181d5a0de51..fb513432fbb321af607e2eac4a6e477b22e4f9a7 100644 (file)
@@ -1,6 +1,6 @@
 # coding: utf-8
 # PyGOST -- Pure Python GOST cryptographic functions library
-# Copyright (C) 2015-2020 Sergey Matveev <stargrave@stargrave.org>
+# Copyright (C) 2015-2023 Sergey Matveev <stargrave@stargrave.org>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -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