BN_is_bit_set

Test whether bit n of a BIGNUM is set.

Synopsis

Declared in <openssl/bn.h>

int
BN_is_bit_set(
    BIGNUM const* a,
    int n);

Return Value

1 if the bit is set, or 0 otherwise.

Parameters

NameDescription
aValue to test.
nBit index (0 is the least-significant bit).