• G
    By adding a BN_CTX parameter to the 'rsa_mod_exp' callback, private key · 46ef873f
    Geoff Thorpe 提交于
    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.
    46ef873f
rsa_eay.c 18.8 KB