-
Enhancement
-
Resolution: Fixed
-
P4
-
17, 20
-
b20
Some BigInteger and curve point operations used in EC calculations can be rewritten in a more performant manner:
- coefficient * 2^power is equivalent to coefficient << power
- number mod 2^n is equivalent to number & (2^n-1)
- pair of IntegerModuloP operations:
t2 = t1+t1
t1=t1+t2
is equivalent to t1=t1*3, which can be implemented more efficiently
- coefficient * 2^power is equivalent to coefficient << power
- number mod 2^n is equivalent to number & (2^n-1)
- pair of IntegerModuloP operations:
t2 = t1+t1
t1=t1+t2
is equivalent to t1=t1*3, which can be implemented more efficiently