BN_rshift1

Compute r = a >> 1 (right shift by one bit).

Synopsis

Declared in <openssl/bn.h>

int
BN_rshift1(
    BIGNUM* r,
    BIGNUM const* a);

Return Value

1 on success, or 0 on failure.

Parameters

NameDescription
rResult BIGNUM.
aValue to shift.