X-Git-Url: http://www.git.cypherpunks.ru/?p=pygost.git;a=blobdiff_plain;f=pygost%2Fgost3410.py;h=f6089128d9571ce606ef518dc2c9885c56c86868;hp=50de4796077ee85f646331a8e9a3a61827b70e5e;hb=8e4df72ed17eebfcf9ba782bf8b8bf4def619608;hpb=daafb8be30dc1991de044e2f5f95d1232969e88a diff --git a/pygost/gost3410.py b/pygost/gost3410.py index 50de479..f608912 100644 --- a/pygost/gost3410.py +++ b/pygost/gost3410.py @@ -164,9 +164,9 @@ class GOST3410Curve(object): y = y or self.y tx = x ty = y - degree -= 1 if degree == 0: raise ValueError("Bad degree value") + degree -= 1 while degree != 0: if degree & 1 == 1: tx, ty = self._add(tx, ty, x, y)