]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Implement the Montgomery technique for speeding up modular
authorSimon Tatham <anakin@pobox.com>
Fri, 18 Feb 2011 08:25:38 +0000 (08:25 +0000)
committerSimon Tatham <anakin@pobox.com>
Fri, 18 Feb 2011 08:25:38 +0000 (08:25 +0000)
commit61875b87e38604ab15ea27332ae19bd82abf35f2
tree7e45015a4aa9d41075c428b00e592a97c75d7779
parentd9c3353176215ae4d2f0e470e439bca24c52e947
Implement the Montgomery technique for speeding up modular
exponentiation by replacing the modulo operation by a cleverly chosen
multiplication. This was not worth doing in the previous state of the
code (because my multiply was about as slow as my modulo), but now
that multiplication has been sped up by the Karatsuba optimisation,
Montgomery becomes worthwhile.

[originally from svn r9094]
sshbn.c