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...
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...
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...
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...
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...
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=...
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...
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...
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...
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...
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...
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...