Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

RSA problem: int divide by 0!

0 views
Skip to first unread message

Bossi Camille

unread,
Mar 19, 2001, 11:08:29 AM3/19/01
to
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C0B08E.01BC6A20
Content-Type: text/plain;
charset="iso-8859-1"

Hello,

I'm using the openssl sources for a project. I try to use the rsa key part
but when I compile and run the test (rsa\rsa_test.c) the program stop with:
"Integer Divide by Zero"

The problem is here: file "bn\bn_asm.c" (line 255, +)

if ((h>>BN_BITS4) == dh)
q=BN_MASK2l;
else
q=h/dh;

And "dh" is always 0.

Do I do something wrong? Is it a known problem? Is there a solution?

Many thanks for informations.

--
Camille B.
bo...@nagra.com

------_=_NextPart_001_01C0B08E.01BC6A20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2650.12">
<TITLE>RSA problem: int divide by 0!</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hello,</FONT>
</P>

<P><FONT SIZE=3D2>I'm using the openssl sources for a project. I try to =
use the rsa key part but when I compile and run the test =
(rsa\rsa_test.c) the program stop with:</FONT></P>

<P><FONT SIZE=3D2>&quot;Integer Divide by Zero&quot;</FONT>
</P>

<P><FONT SIZE=3D2>The problem is here: file &quot;bn\bn_asm.c&quot; =
(line 255, +)</FONT>
</P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>if =
((h&gt;&gt;BN_BITS4) =3D=3D dh)</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>q=3DBN_MASK2l;</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=3D2>else</FONT>
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT =
SIZE=3D2>q=3Dh/dh;</FONT>
</P>

<P><FONT SIZE=3D2>And &quot;dh&quot; is always 0.</FONT>
</P>

<P><FONT SIZE=3D2>Do I do something wrong? Is it a known problem? Is =
there a solution?</FONT>
</P>

<P><FONT SIZE=3D2>Many thanks for informations.</FONT>
</P>

<P><FONT SIZE=3D2>--</FONT>
<BR><FONT SIZE=3D2>Camille B.</FONT>
<BR><FONT SIZE=3D2>bo...@nagra.com</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C0B08E.01BC6A20--
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

0 new messages