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

Name

Description

r

Result BIGNUM.

a

Value to shift.

n

Number of bits to shift (non‐negative).

Created with MrDocs