|
BN_is_prime_fasttest(3) -- Generate primes and test for primality
|
The BN_generate_prime() function 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: callback... |
BN_is_word(3) -- BIGNUM comparison and test functions
|
The BN_cmp() function compares the numbers a and b. The BN_ucmp() function compares their absolute values. The BN_is_zero(), BN_is_one(), and BN_is_word() test if a equals 0, 1, or w respectively. The... |
BN_is_zero(3) -- BIGNUM comparison and test functions
|
The BN_cmp() function compares the numbers a and b. The BN_ucmp() function compares their absolute values. The BN_is_zero(), BN_is_one(), and BN_is_word() test if a equals 0, 1, or w respectively. The... |
BN_lshift(3) -- Bit operations on BIGNUMs
|
The BN_set_bit() function sets bit n in a to 1 (a|=(1< |
BN_lshift1(3) -- Bit operations on BIGNUMs
|
The BN_set_bit() function sets bit n in a to 1 (a|=(1< |
BN_mask_bits(3) -- Bit operations on BIGNUMs
|
The BN_set_bit() function sets bit n in a to 1 (a|=(1< |
BN_mod(3) -- Arithmetic operations on BIGNUMs
|
The BN_add() function adds a and b and places the result in r (r=a+b). The r value can be the same BIGNUM as a or b. The BN_sub() function subtracts b from a and places the result in r (r=a-b). The BN... |
BN_mod_exp(3) -- Arithmetic operations on BIGNUMs
|
The BN_add() function adds a and b and places the result in r (r=a+b). The r value can be the same BIGNUM as a or b. The BN_sub() function subtracts b from a and places the result in r (r=a-b). The BN... |
BN_mod_inverse(3) -- Compute inverse modulo n
|
The BN_mod_inverse() function computes the inverse of a modulo n and places the result in r ((a*r)%n==1). If r is NULL, a new BIGNUM is created. The ctx is a previously allocated BN_CTX used for tempo... |
BN_mod_mul(3) -- Arithmetic operations on BIGNUMs
|
The BN_add() function adds a and b and places the result in r (r=a+b). The r value can be the same BIGNUM as a or b. The BN_sub() function subtracts b from a and places the result in r (r=a-b). The BN... |
BN_mod_mul_montgomery(3) -- Montgomery multiplication
|
These functions implement Montgomery multiplication. They are used automatically when BN_mod_exp() is called with suitable input, but they may be useful when several operations are performed using the... |
BN_mod_mul_reciprocal(3) -- Modular multiplication using reciprocal
|
The BN_mod_mul_reciprocal() function can be used to perform an efficient BN_mod_mul() operation when the operation will be performed repeatedly with the same modulus. It computes r=(a*b)%m using recp=... |
BN_mod_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. The BN_add_word() function adds w to a (a+=w... |