BN_set_bit

Set bit n of BIGNUM a (expanding the value if needed).

Synopsis

Declared in <openssl/bn.h>

int
BN_set_bit(
    BIGNUM* a,
    int n);

Return Value

1 on success, or 0 on error.

Parameters

NameDescription
aBIGNUM to modify.
nZero-based bit index to set.