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

Name

Description

r

Result BIGNUM.

a

Value to shift.

m

Modulus.

ctx

BN_CTX for temporaries.

Created with MrDocs