
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_generate_prime(3)  generate primes and test for primality

BN_generate_prime() generates a pseudorandom prime number of num bits. If ret is not NULL, it will be used to store the number. If callback is not NULL, it is called as follows: o callback(0, i, cb_a... 
BN_mod_inverse(3)  compute inverse modulo n

BN_mod_inverse() computes the inverse of a modulo n places the result in r (`(a*r)%n==1'). If r is NULL, a new BIGNUM is created. ctx is a previously allocated BN_CTX used for temporary variables. r ... 
BN_mod_mul_montgomery(3)  Montgomery multiplication

These functions implement Montgomery multiplication. They are used automatically when BN_mod_exp(3) is called with suitable input, but they may be useful when several operations are to be performed us... 
BN_mod_mul_reciprocal(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_new(3)  allocate and free BIGNUMs

BN_new() allocated and initializes a BIGNUM structure. BN_init() initializes an existing uninitialized BIGNUM. BN_clear() is used to destroy sensitive data such as keys when they are no longer needed.... 
BN_num_bytes(3)  get BIGNUM size

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. 
BN_rand(3)  generate pseudorandom number

BN_rand() generates a cryptographically strong pseudorandom number of bits bits in length and stores it in rnd. If top is 1, the most significant bit of the random number can be zero. If top is 0, i... 
BN_set_bit(3)  bit operations on BIGNUMs

BN_set_bit() sets bit n in a to 1 (`a=(1< 
BN_zero(3)  BIGNUM assignment operations

BN_zero(), BN_one() and BN_set_word() set a to the values 0, 1 and w respectively. BN_zero() and BN_one() are macros. BN_value_one() returns a BIGNUM constant of value 1. This constant is useful for u... 
bsearch(3)  binary search of a sorted table

The bsearch() function searches an array of nmemb objects, the initial member of which is pointed to by base, for a member that matches the object pointed to by key. The size of each member of the arr... 
bstring(3)  byte string operations

These functions operate on variable length strings of bytes. They do not check for terminating null bytes as the routines listed in string(3) do. See the specific manual pages for more information. 
bswap(3)  byteorder swapping functions

The bswap16(), bswap32(), and bswap64() functions return the value of their argument with the bytes inverted. They can be used to convert 16, 32 or 64 bits integers from little to big endian, or vice... 
bswap16(3)  byteorder swapping functions

The bswap16(), bswap32(), and bswap64() functions return the value of their argument with the bytes inverted. They can be used to convert 16, 32 or 64 bits integers from little to big endian, or vice... 