BIGNUM *BN_value_one();
BN_MONT_CTX *BN_MONT_CTX_new();
int BN_from_montgomery(r, a, mont, ctx)
BIGNUM *r;
BIGNUM *a;
BN_MONT_CTX *mont;
BN_CTX *ctx;
void BN_MONT_CTX_free(mont)
BN_MONT_CTX *mont;
int BN_MONT_CTX_set(mont, modulus, ctx)
BN_MONT_CTX *mont;
BIGNUM *modulus;
BN_CTX *ctx;
The following macro is provided as a convenience for the user:
#define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(r,a,(mont)->RR,(mont),ctx)