Convert a from Montgomery representation to a normal residue modulo mont‐>N.
Synopsis
Declared in <openssl/bn.h>
int
BN_from_montgomery(
BIGNUM* r,
BIGNUM const* a,
BN_MONT_CTX* mont,
BN_CTX* ctx);
Return Value
1 on success, or 0 on error.
Parameters
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. |
Created with MrDocs