Initialize a Montgomery context for modulus mod.
Declared in <openssl/bn.h>
int
BN_MONT_CTX_set(
BN_MONT_CTX* mont,
BIGNUM const* mod,
BN_CTX* ctx);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| mont | Context to configure. |
| mod | Odd modulus m. |
| ctx | BN_CTX for temporary storage. |