By adding a BN_CTX parameter to the 'rsa_mod_exp' callback, private key
authorGeoff Thorpe <geoff@openssl.org>
Thu, 25 Mar 2004 02:52:04 +0000 (02:52 +0000)
committerGeoff Thorpe <geoff@openssl.org>
Thu, 25 Mar 2004 02:52:04 +0000 (02:52 +0000)
commit46ef873f0b3c04b6415cddac5d4a7b27b53cc482
treed045819aeac3f9d4665713eb6917a5f351ca9bf9
parent2d2a5ba32a6da293bbe290529293c485d36e1c19
By adding a BN_CTX parameter to the 'rsa_mod_exp' callback, private key
operations no longer require two distinct BN_CTX structures. This may put
more "strain" on the current BN_CTX implementation (which has a fixed limit
to the number of variables it will hold), but so far this limit is not
triggered by any of the tests pass and I will be changing BN_CTX in the
near future to avoid this problem anyway.

This also changes the default RSA implementation code to use the BN_CTX in
favour of initialising some of its variables locally in each function.
CHANGES
crypto/rsa/rsa.h
crypto/rsa/rsa_eay.c
engines/e_aep.c
engines/e_atalla.c
engines/e_cswift.c
engines/e_ncipher.c
engines/e_nuron.c
engines/e_ubsec.c