Montgomery multiply a and b modulo mont's modulus into r.
Declared in <openssl/bn.h>
int
BN_mod_mul_montgomery(
BIGNUM* r,
BIGNUM const* a,
BIGNUM const* b,
BN_MONT_CTX* mont,
BN_CTX* ctx);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| r | Destination product in the Montgomery domain (or ordinary form depending on inputs). |
| a | First factor (typically already in Montgomery form). |
| b | Second factor (typically already in Montgomery form). |
| mont | Montgomery context from BN_MONT_CTX_set(). |
| ctx | BN_CTX scratch space. |