HP Open Source Security for OpenVMS Volume 2: HP SSL for OpenVMS > CRYPTO Application
Programming Interface (API) ReferenceBN_add_word
NAMEBN_add_word, BN_sub_word, BN_mul_word, BN_div_word, BN_mod_word — arithmetic functions on BIGNUMs with integers Synopsis#include <openssl/bn.h> DESCRIPTIONThese 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_word() subtracts w from a (a-=w). BN_mul_word() multiplies a and w (a*=b). BN_div_word() divides a by w (a/=w) and returns the remainder. BN_mod_word() returns the remainder of a divided by w (a%m). For BN_div_word() and BN_mod_word(), w must not be 0. |