skip book previous and next navigation links
go up to top of book: HP Open Source Security for OpenVMS Volume 2:... HP Open Source Security for OpenVMS Volume 2:...
go to beginning of reference: CRYPTO Application Programming Interface (API)... CRYPTO Application Programming Interface (API)...
go to previous page: BN_new BN_new
go to next page: BN_randBN_rand
end of book navigation links


BN_num_bits
Description
Return Values
See Also
History
 

NAME

BN_num_bits, BN_num_bytes, BN_num_bits_word - get BIGNUM size

Synopsis  

#include <openssl/bn.h>
int BN_num_bytes(const BIGNUM *a);
int BN_num_bits(const BIGNUM *a);
int BN_num_bits_word(BN_ULONG w);


return to top DESCRIPTION  

These functions return the size of a BIGNUM in bytes or bits, and the size of an unsigned integer in bits.

BN_num_bytes() is a macro.


return to top RETURN VALUES  

The size.


return to top SEE ALSO  

bn(3)


return to top HISTORY  

BN_num_bytes(), BN_num_bits() and BN_num_bits_word() are available in all versions of SSLeay and OpenSSL.
go to previous page: BN_new BN_new
go to next page: BN_randBN_rand