------_=_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>"Integer Divide by Zero"</FONT>
</P>
<P><FONT SIZE=3D2>The problem is here: file "bn\bn_asm.c" =
(line 255, +)</FONT>
</P>
<P> =
<FONT SIZE=3D2>if =
((h>>BN_BITS4) =3D=3D dh)</FONT>
<BR> =
=
<FONT =
SIZE=3D2>q=3DBN_MASK2l;</FONT>
<BR> =
<FONT SIZE=3D2>else</FONT>
<BR> =
=
<FONT =
SIZE=3D2>q=3Dh/dh;</FONT>
</P>
<P><FONT SIZE=3D2>And "dh" 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