Convert a from Montgomery representation to a normal residue modulo mont->N.
Declared in <openssl/bn.h>
int
BN_from_montgomery(
BIGNUM* r,
BIGNUM const* a,
BN_MONT_CTX* mont,
BN_CTX* ctx);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| r | Destination for the converted value. |
| a | Value in Montgomery form. |
| mont | Montgomery context from BN_MONT_CTX_set(). |
| ctx | BN_CTX scratch space. |