VERSION | 2 +- install.texi | 2 +- news.texi | 7 +++++++ pygost/__init__.py | 2 +- pygost/gost28147.py | 2 +- diff --git a/VERSION b/VERSION index b04853bccaead31689c8948e5da3af2db7fd4b8fb121891bacdea52d83bab5ff..c228ab57ed0d95dbe9c9d8a37f590862f41f073fa643b27c5e8ec74450875208 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.5 +4.6 diff --git a/install.texi b/install.texi index fd64ab91cf248083605475e4d75a46b032d6c791734ccba3fa65ddd9eb3beb37..59d871b9aa129eb46c82d5333d8ce04fc74fe4c34af7321aa4389ed87b4c793c 100644 --- a/install.texi +++ b/install.texi @@ -1,7 +1,7 @@ @node Download @unnumbered Download -@set VERSION 4.5 +@set VERSION 4.6 No additional dependencies except Python 2.7/3.x interpreter are required. diff --git a/news.texi b/news.texi index a1999e14d567705f6c84fd8febabd7dc913af994dd3d62f9626dff69df56cf88..0f945ab43d3db39ec0f824869777d6210cf43bc2937b8b534eec3ab3d3894b0a 100644 --- a/news.texi +++ b/news.texi @@ -3,6 +3,13 @@ @unnumbered News @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 diff --git a/pygost/__init__.py b/pygost/__init__.py index bb0b239e9f1d594c7c240dd35a585028226dd6cb03c8695d5014ae9e920f923a..18cc6f5c085a2987706a041ff8615206f4a8e6dec9a6cafbb0b0989a836940b5 100644 --- a/pygost/__init__.py +++ b/pygost/__init__.py @@ -3,4 +3,4 @@ PyGOST is free software: see the file COPYING for copying conditions. """ -__version__ = "4.5" +__version__ = "4.6" diff --git a/pygost/gost28147.py b/pygost/gost28147.py index 290754aefe75b43b2d15e26c972e054a6d6b25aaf9525fe4ee8620d14725e5a9..c36e2919c9404313611a32294925e8073271fcee9747f0bf3b95676fc325ab4e 100644 --- a/pygost/gost28147.py +++ b/pygost/gost28147.py @@ -190,7 +190,7 @@ def addmod(x, y, mod=2 ** 32): """ 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):