Descriptioncrypto/rsa: don't correct private exponent unless needed.
At some point in the past, I believe the GCD algorithm was setting d to
be negative. The RSA code has been correcting that ever since but, now,
it appears to have changed and the correction isn't needed.
Having d be too large is harmless, it's just a little odd and I
happened to notice.
Patch Set 1 #Patch Set 2 : code review 7948044: crypto/rsa: don't correct private exponent unless needed. #Patch Set 3 : diff -r e1a94ec9f285 https://code.google.com/p/go/ #Patch Set 4 : diff -r e1a94ec9f285 https://code.google.com/p/go/ #Patch Set 5 : diff -r 49bee4257d78 https://code.google.com/p/go/ #MessagesTotal messages: 5
|