This is a bug. I somehow missed the earlier report. I've fixed it in CVS, 
and here's the fix:

diff -r1.9 rsa.cpp
173c173
<               while (a != -1)
---
>               while (a != n-1)

On Mon, May 03, 2004 at 04:09:50PM +0200, Hendrik Brandenburger wrote:
> Hello All,
> First, i want to thank Wei for his help with my last problems.
> After solving my error in my implementation, i have now the problem that 
> some key throw an DivideByZeroException if i call Initialize(Modulus, 
> PublicExponent, PrivateExponent). I searched the archiv of the list and 
> found something about this issue in the thread
> DivideByZero exception from InvertibleRSAFunction(n, e, d) 
> <http://www.escribe.com/software/crypto/m3580.html>
> But there is no solution for this problem. Has somoeone solved this 
> problem, or is it solved in the cvs or is there a workaround other then 
> discribed in the old thread?
> 
> Greets and thanks
> Hendrik

Reply via email to