Compute a reciprocal r = 2^len / m for BN_div-style quotient estimation.
Declared in <openssl/bn.h>
int
BN_reciprocal(
BIGNUM* r,
BIGNUM const* m,
int len,
BN_CTX* ctx);
len on success, or -1 on error.
| Name | Description |
|---|---|
| r | Destination reciprocal. |
| m | Divisor. |
| len | Bit precision of the reciprocal. |
| ctx | BN_CTX scratch space. |