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

Name

Description

r

Result BIGNUM.

a

Value to shift.

Created with MrDocs