
BN_cmp(3)  BIGNUM comparison and test functions

BN_cmp() compares the numbers a and b. BN_ucmp() compares their absolute values. BN_is_zero(), BN_is_one() and BN_is_word() test if a equals 0, 1, or w respectively. BN_is_odd() tests if a is odd. BN_... 
bn_cmp_words(3)  BIGNUM library internal functions

This page documents the internal functions used by the OpenSSL BIGNUM implementation. They are described here to facilitate debugging and extending the library. They are not to be used by applications... 
BN_copy(3)  copy BIGNUMs

BN_copy() copies from to to. BN_dup() creates a new BIGNUM containing the value from. 
BN_CTX_end(3)  use temporary BIGNUM variables

These functions are used to obtain temporary BIGNUM variables from a BN_CTX (which can been created by using BN_CTX_new(3)) in order to save the overhead of repeatedly creating and freeing BIGNUMs in ... 
BN_CTX_free(3)  allocate and free BN_CTX structures

A BN_CTX is a structure that holds BIGNUM temporary variables used by library functions. Since dynamic memory allocation to create BIGNUMs is rather expensive when used in conjunction with repeated su... 
BN_CTX_get(3)  use temporary BIGNUM variables

These functions are used to obtain temporary BIGNUM variables from a BN_CTX (which can been created by using BN_CTX_new(3)) in order to save the overhead of repeatedly creating and freeing BIGNUMs in ... 
BN_CTX_init(3)  allocate and free BN_CTX structures

A BN_CTX is a structure that holds BIGNUM temporary variables used by library functions. Since dynamic memory allocation to create BIGNUMs is rather expensive when used in conjunction with repeated su... 
BN_CTX_new(3)  allocate and free BN_CTX structures

A BN_CTX is a structure that holds BIGNUM temporary variables used by library functions. Since dynamic memory allocation to create BIGNUMs is rather expensive when used in conjunction with repeated su... 
BN_CTX_start(3)  use temporary BIGNUM variables

These functions are used to obtain temporary BIGNUM variables from a BN_CTX (which can been created by using BN_CTX_new(3)) in order to save the overhead of repeatedly creating and freeing BIGNUMs in ... 
BN_dec2bn(3)  format conversions

BN_bn2bin() converts the absolute value of a into bigendian form and stores it at to. to must point to BN_num_bytes(a) bytes of memory. BN_bin2bn() converts the positive integer in bigendian form of ... 
BN_div(3)  arithmetic operations on BIGNUMs

BN_add() adds a and b and places the result in r ("r=a+b"). r may be the same BIGNUM as a or b. BN_sub() subtracts b from a and places the result in r ("r=ab"). BN_mul() multiplies a and b and pl... 
BN_div_recp(3)  modular multiplication using reciprocal

BN_mod_mul_reciprocal() can be used to perform an efficient BN_mod_mul(3) operation when the operation will be performed repeatedly with the same modulus. It computes r=(a*b)%m using recp=1/m, which i... 
BN_div_word(3)  arithmetic functions on BIGNUMs with integers

These functions perform arithmetic operations on BIGNUMs with unsigned integers. They are much more efficient than the normal BIGNUM arithmetic operations. BN_add_word() adds w to a ("a+=w"). BN_sub... 