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_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() 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_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_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() 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_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...
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() 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...
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...
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...
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...