BN_mod_lshift_quick

Left-shift then reduce quickly: r = (a << n) mod m (assumes 0 <= a < m).

Synopsis

Declared in <openssl/bn.h>

int
BN_mod_lshift_quick(
    BIGNUM* r,
    BIGNUM const* a,
    int n,
    BIGNUM const* m);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
rDestination.
aValue already reduced modulo m.
nNumber of bits to shift left (non-negative).
mModulus.