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

Name

Description

a

BIGNUM to measure; zero yields 0.

Created with MrDocs