]> asedeno.scripts.mit.edu Git - PuTTY.git/commit
Fix SSH-1 RSA key handling in Pageant.
authorSimon Tatham <anakin@pobox.com>
Wed, 6 May 2015 19:49:07 +0000 (20:49 +0100)
committerSimon Tatham <anakin@pobox.com>
Wed, 6 May 2015 19:49:07 +0000 (20:49 +0100)
commit5e2443ff1f07cb8cd7e6dd7d8cb044283c788478
tree381b9feb735b27ac3b3511eb4ae9b1a925658f89
parentbc4066e454f38358f17860e3d4244f63b930f994
Fix SSH-1 RSA key handling in Pageant.

The auxiliary values (the two primes and the inverse of one mod the
other) were being read into the key structure wrongly, causing
crt_modpow() in sshrsa.c to give the wrong answers where straight
modpow would not have.

This must have been broken ever since I implemented the RSA CRT
optimisation in 2011. And nobody has noticed, which is a good sign for
the phasing out of SSH-1 :-) I only spotted it myself because I was
testing all the Pageant message types in the course of implementing
the new logging.
pageant.c