Odpowiedz automatyczna:
Do 5 maja przebywam na zasluzonym urlopie.
W pilnych sprawach prosze o kontakt z Kamilem Kilinskim.
Z powazaniem,
Michal Trojnara
>>> "[EMAIL PROTECTED]" 04/29/00 19:33 >>>
Cristina Nita <[EMAIL PROTECTED]>:
> I am using the BN interface from libcrypto and I noticed that
> BN_mod does not work correctly for negative numbers.
> I did a very very simple test where I tried to compute
> -6 mod 5. The result was -1
BN_div rounds to zero, and accordingly the remainder, which is what
BN_mod returns, may be negative. This is not incorrect, although
returning non-negative results is more appropriate for many
applications. (The explanation for this behaviour is that often
negative numbers are not needed at all, so there's no extra code for
this.) Just add the modulus if you get a negative result.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]