Ton Hospel wrote:
...
Gives:
Floating point exception (core dumped)
Reason: unlike in BN_div_word, in BN_mod_word w is not checked for being 0
ok
PS:
these functions are really bad in that you can't distinguish
between failure and a real 0 result. Maybe they should be
returning (BN_ULONG) -1, since that value is impossible as normal output
agree, returning 0 in case of an error isn't really optimal here
and (BN_ULONG)-1 is the only value that can't be the result of a
normal operation. Actually the return value in case of an error
isn't even specified in the manpage so setting it to (BN_ULONG)-1
shouldn't be too problematic.
I will commit a patch soon.
Thanks,
Nils
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List openssl-dev@openssl.org
Automated List Manager [EMAIL PROTECTED]