@itemize
@item Added mode argument to @code{pygost.gost3410_vko.kek_34102012256},
because 256-bit private keys can be used with that algorithm too.
+ @item Fix incorrect degree sanitizing in
+ @code{pygost.gost3410.GOST3410Curve.exp} preventing using of
+ @code{UKM=1} in @code{pygost.gost3410_vko.kek_*} functions.
@end itemize
@anchor{Release 3.11}
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)