BN_rshift

Compute r = a >> n (right shift by n bits).

Synopsis

Declared in <openssl/bn.h>

int
BN_rshift(
    BIGNUM* r,
    BIGNUM const* a,
    int n);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
rResult BIGNUM.
aValue to shift.
nNumber of bits to shift (non-negative).