According to my reading of BN_add.pod, BN_sub() does not allow its result argument to be the same BIGNUM as one of the input values, in particular, each of the following expressions will need a temporary BIGNUM according to the documentation:
a -= b; a = a - b; a = b - a; In contrast, BN_add() does allow this, so none of the following need a temporary bignum: a += b; a = a + b; a = b + a; Is this true, or is this a documentation error? (Note: Using the openssl 1.0.0a documentation) ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org