Closed Sc00bz closed 5 years ago
This is a great enhancement. Tested with own tests as well and delivers a significant increase in speed. I have reviewed it to my ability and found no problems with the code, how can we get it merged?
I'm pretty sure SJCL is no longer updated unless there's a bug like the fix for v1.0.8. We could try pinging the maintainers.
Instead of doing 14 field inverts it does 1 field invert and 39 field multiplies.
I ran benchmarks and it's 1.8x faster on P-256 and 2.3x faster on P-521. Basically ran this multiple times on the old and new code and took averages.