Compute r = (a - b) mod m assuming 0 <= a,b < m.
Declared in <openssl/bn.h>
int
BN_mod_sub_quick(
BIGNUM* r,
BIGNUM const* a,
BIGNUM const* b,
BIGNUM const* m);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| r | Destination (may alias a or b). |
| a | Minuend already reduced modulo m. |
| b | Subtrahend already reduced modulo m. |
| m | Modulus (must be positive). |