BN_num_bits

Return the size of a in bits (index of the highest set bit plus one).

Synopsis

Declared in <openssl/bn.h>

int
BN_num_bits(BIGNUM const* a);

Return Value

Number of significant bits in the absolute value of a.

Parameters

NameDescription
aBIGNUM to measure; zero yields 0.