Compute r = (a << n) mod m (left-shift then reduce).
Declared in <openssl/bn.h>
int
BN_mod_lshift(
BIGNUM* r,
BIGNUM const* a,
int n,
BIGNUM const* m,
BN_CTX* ctx);
1 on success, or 0 on error.
| Name | Description |
|---|---|
| r | Destination for the result. |
| a | Value to shift. |
| n | Number of bits to shift left; must be non-negative. |
| m | Modulus; must be non-zero. |
| ctx | BN_CTX for temporary storage. |