|
bitstring(3) -- bit-string manipulation macros
|
These macros operate on strings of bits. The macro bit_alloc() returns a pointer of type ``bitstr_t *'' to sufficient space to store nbits bits, or NULL if no space is available. The macro bit_decl(... |
bm(3) -- Boyer-Moore string search
|
These routines implement an efficient mechanism to find an occurrence of a byte string within another byte string. bm_comp() evaluates the patlen bytes starting at pattern, and returns a pointer to a ... |
|
bm_comp(3) -- Boyer-Moore string search
|
These routines implement an efficient mechanism to find an occurrence of a byte string within another byte string. bm_comp() evaluates the patlen bytes starting at pattern, and returns a pointer to a ... |
bm_exec(3) -- Boyer-Moore string search
|
These routines implement an efficient mechanism to find an occurrence of a byte string within another byte string. bm_comp() evaluates the patlen bytes starting at pattern, and returns a pointer to a ... |
bm_free(3) -- Boyer-Moore string search
|
These routines implement an efficient mechanism to find an occurrence of a byte string within another byte string. bm_comp() evaluates the patlen bytes starting at pattern, and returns a pointer to a ... |
BN_add(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=a-b'). BN_mul() multiplies a and b and plac... |
BN_add_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_... |
BN_bn2bin(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 big-endian form of ... |
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_copy(3) -- copy BIGNUMs
|
BN_copy() copies from to to. BN_dup() creates a new BIGNUM containing the value from. |
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 pseudo-random 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... |