Left-shift then reduce quickly: r = (a << n) mod m (assumes 0 <= a < m).
Declared in <openssl/bn.h>
int
BN_mod_lshift_quick(
BIGNUM* r,
BIGNUM const* a,
int n,
BIGNUM const* m);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| r | Destination. |
| a | Value already reduced modulo m. |
| n | Number of bits to shift left (non-negative). |
| m | Modulus. |