@node Download
@unnumbered Download
-@set VERSION 4.5
+@set VERSION 4.6
No additional dependencies except Python 2.7/3.x interpreter are required.
@table @strong
+@anchor{Release 4.6}
+@item 4.6
+ @itemize
+ @item Fix invalid @code{gost28147.addmod}'s behaviour with much
+ bigger values than the modulo
+ @end itemize
+
@anchor{Release 4.5}
@item 4.5
@itemize
PyGOST is free software: see the file COPYING for copying conditions.
"""
-__version__ = "4.5"
+__version__ = "4.6"
""" Modulo adding of two integers
"""
r = x + y
- return r if r < mod else r - mod
+ return r if r < mod else r % mod
def _shift11(x):