X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=pygost%2Fgost3410.py;h=8103af0641ae929b30bce50beeb9355256f45dd9;hb=21a30721c31912c296e1faced73e2fd0db191be9;hp=84881b699a2ac5e56b47b19d8d2c459035928d7e;hpb=9b43fc211fc6f4d2ee95d5716fc7e010dd800a26;p=pygost.git diff --git a/pygost/gost3410.py b/pygost/gost3410.py index 84881b6..8103af0 100644 --- a/pygost/gost3410.py +++ b/pygost/gost3410.py @@ -1,6 +1,6 @@ # coding: utf-8 # PyGOST -- Pure Python GOST cryptographic functions library -# Copyright (C) 2015-2016 Sergey Matveev +# Copyright (C) 2015-2019 Sergey Matveev # # 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 @@ -162,9 +162,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)