We cache a montgomery form for 'n' if the PUBLIC flag is set, not PRIVATE.
authorGeoff Thorpe <geoff@openssl.org>
Sat, 15 Feb 2003 00:18:38 +0000 (00:18 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Sat, 15 Feb 2003 00:18:38 +0000 (00:18 +0000)
commitb12753dffcf096c7d7110397ea9905b07a2ed573
treee7d3379059e13d1b15f07f1c9ac86905157fb568
parent79221bc26587c2f58c7198cc73d89eda6bdd6025
We cache a montgomery form for 'n' if the PUBLIC flag is set, not PRIVATE.

Also, I've added handling for other mod_exp calls that were not using any
cached montgomery forms. These cases matter only for special RSA keys (eg.
ones that are missing information) so are unlikely to be used in normal
circumstances.
crypto/rsa/rsa_eay.c