Richard Levitte - VMS Whacker wrote:
> 
> I tried to constify the BIGNUM arguments to a few BN functions, among
> others BN_mul() (all but r).  However, in BN_mul(), there's the
> BN_RECURSION case that will only occur when the lengths of a and b are
> 1 word from each other (if I understand correctly), and where a and b
> get expanded so the get the same length.
> 
> I wonder, how much do we gain from BN_RECURSION?  Could the whole
> thing be done in a way that doesn't need expanding a or b, so they can
> be const?

Woah! Let's not get carried away - unless they gain is actually zero,
then constification is not justification, in itself, for doing this.
Note, you could have a constified version that either didn't do
BN_RECURSION or copied instead of expanding.

Cheers,

Ben.

--
http://www.apache-ssl.org/ben.html

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit."

Robert Woodruff
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to