Folks, Trying to resolve a problem with the BIGNUM divide routine BN_div; could someone check the code below and let me know if there is anything wrong with code...
The code below is from openssl version 9.6B int BN_div(......) { BIGNUM *snum; BN_ULONG *wnump; /* a word number pointer ?? */ /* pointer to the 'top' of snum */ wnump = &(snum->d[num_n-1]); for (i=0; i<loop-1; i++) { BN_ULONG n0, n1,rem=0; n0=wnump[0]; n1=wnump[-1]; /* THIS ASSIGNMENT... WHAT DOES IT MEAN ?? */ #ifndef REMAINDER_IS_ALREADY_CALCULATED rem = (n1-q*d0)&BN_MASK2; /* >>>>>>> RUN TIME ERROR HERE !!! */ #endif : : >>>>> some code <<<<<<< : wnump--; /* CAN THIS BE DONE ON THE ARRAY OF LONGS IN A BIGNUM ? */ } >>>> end of source >>>>>> ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]