BN_mod_lshift1

Compute r = (a << 1) mod m.

Synopsis

Declared in <openssl/bn.h>

int
BN_mod_lshift1(
    BIGNUM* r,
    BIGNUM const* a,
    BIGNUM const* m,
    BN_CTX* ctx);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
rResult BIGNUM.
aValue to shift.
mModulus.
ctxBN_CTX for temporaries.