|
BN_is_one(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_is_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_is_prime_fasttest(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_is_word(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_is_zero(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_lshift(3) -- bit operations on BIGNUMs
|
BN_set_bit() sets bit n in a to 1 ("a|=(1< |
BN_lshift1(3) -- bit operations on BIGNUMs
|
BN_set_bit() sets bit n in a to 1 ("a|=(1< |
BN_mask_bits(3) -- bit operations on BIGNUMs
|
BN_set_bit() sets bit n in a to 1 ("a|=(1< |
BN_mod(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 pl... |
BN_mod_exp(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 pl... |
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(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 pl... |
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... |