(no subject)
"Lance James" <[email protected]> Wed, 27 Aug 2003 10:13:32 -0700
| Newsgroups | gmane.comp.security.invisiblenet.iip.devel |
|---|---|
| Message-ID | <006201c36cbe$8f0129b0$ca42420a@lancexp> |
This is a multi-part message in MIME format. ------=_NextPart_000_0055_01C36C83.DE5BF570 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Thnx Shardy! Lance ----- I'd crawl over an acre of "Visual This++" and "Integrated Development That" to get to gcc, Emacs, and gdb. Thank you. ------=_NextPart_000_0055_01C36C83.DE5BF570 Content-Type: message/rfc822; name="fix to ElGamalEngine.java.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fix to ElGamalEngine.java.eml" Return-Path: <[email protected]> X-Original-To: [email protected] Delivered-To: [email protected] Received: by longhorn.lerfjhax.com (Postfix, from userid 2001) id 780C02049D1; Wed, 27 Aug 2003 03:48:38 -0500 (CDT) Received: from judecca.aculei.net (judecca.aculei.net [216.158.24.200]) by longhorn.lerfjhax.com (Postfix) with SMTP id EAB812049D5 for <[email protected]>; Wed, 27 Aug 2003 03:48:06 -0500 (CDT) Received: (qmail 7235 invoked by uid 2000); 27 Aug 2003 08:48:01 -0000 Date: Wed, 27 Aug 2003 04:48:01 -0400 From: Seth Hardy <[email protected]> To: [email protected] Cc: [email protected] Subject: fix to ElGamalEngine.java Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline X-Spam-Status: No, hits=-2.5 required=7.0 tests=PGP_SIGNATURE_2 autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable well, it's not really a "fix" as it was working the whole time. it's all=20 a matter of representation. I'd send this direct to thecrypto too, but I don't have an address...=20 hopefully this will reach someone that it matters to. :) hope this helps, /s. <shardy> oh and by the way <shardy> I see what the problem is :) <shardy> the end results ARE the same <shardy> the decrypted version just has a couple of leading zeroes <shardy> so if you strip off those leading zeroes you should be fine <shardy> so instead of the part that goes <shardy> if (!DataHelper.eq(decr,buf)) { <shardy> .. <shardy> put in the following: <shardy> int xx =3D 0, yy =3D 0; <shardy> while( buf[xx++] =3D=3D 0 && xx < buf.length ); <shardy> while( decr[yy++] =3D=3D 0 && yy < decr.length ); <shardy> while( buf[xx++] =3D=3D decr[yy++] && xx < buf.length && yy <=20 decr.length ); <shardy> if( xx !=3D buf.length || y !=3D buf.length )=20 System.out.println("FAILED test " + i); <shardy> else System.out.println("PASSED test " + i); <shardy> then it passes every test :) <shardy> hopefully someone will get this in their buffer, as thecrypto=20 left <shardy> as did nop <shardy> so jrand0m, I'm counting on you to report it to everyone if=20 you're here before I get back <shardy> well, I think I'll email this out <shardy> just in case --=20 seth hardy: [email protected] * 508.450.5227 * www.aculei.net/~shardy (gpg - 0x5E345628): BF63 A0A7 3BCA 1D7D EDE1 63BF 46FB 95D9 5E34 5628 "God is not on the side of the heavy battalion, but on the side of the best shot." -- Voltaire --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (OpenBSD) Comment: yes, I am signing all my messages now. iD8DBQE/THBARvuV2V40VigRAg1zAJ9RBqKv6DuhVofvgCgj7V4raGHN7ACfdoft /1teufITSzvLHHq2jgPFyRU= =CEWB -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh-- ------=_NextPart_000_0055_01C36C83.DE5BF570 Content-Type: message/rfc822; name="fix to ElGamalEngine.java.eml" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="fix to ElGamalEngine.java.eml" Return-Path: <[email protected]> X-Original-To: [email protected] Delivered-To: [email protected] Received: by longhorn.lerfjhax.com (Postfix, from userid 2001) id DB3422049D6; Wed, 27 Aug 2003 03:48:38 -0500 (CDT) Received: from judecca.aculei.net (judecca.aculei.net [216.158.24.200]) by longhorn.lerfjhax.com (Postfix) with SMTP id E97252049D2 for <[email protected]>; Wed, 27 Aug 2003 03:48:06 -0500 (CDT) Received: (qmail 7235 invoked by uid 2000); 27 Aug 2003 08:48:01 -0000 Date: Wed, 27 Aug 2003 04:48:01 -0400 From: Seth Hardy <[email protected]> To: [email protected] Cc: [email protected] Subject: fix to ElGamalEngine.java Message-ID: <[email protected]> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NzB8fVQJ5HfG6fxh" Content-Disposition: inline X-Spam-Status: No, hits=-2.5 required=7.0 tests=PGP_SIGNATURE_2 version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) --NzB8fVQJ5HfG6fxh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable well, it's not really a "fix" as it was working the whole time. it's all=20 a matter of representation. I'd send this direct to thecrypto too, but I don't have an address...=20 hopefully this will reach someone that it matters to. :) hope this helps, /s. <shardy> oh and by the way <shardy> I see what the problem is :) <shardy> the end results ARE the same <shardy> the decrypted version just has a couple of leading zeroes <shardy> so if you strip off those leading zeroes you should be fine <shardy> so instead of the part that goes <shardy> if (!DataHelper.eq(decr,buf)) { <shardy> .. <shardy> put in the following: <shardy> int xx =3D 0, yy =3D 0; <shardy> while( buf[xx++] =3D=3D 0 && xx < buf.length ); <shardy> while( decr[yy++] =3D=3D 0 && yy < decr.length ); <shardy> while( buf[xx++] =3D=3D decr[yy++] && xx < buf.length && yy <=20 decr.length ); <shardy> if( xx !=3D buf.length || y !=3D buf.length )=20 System.out.println("FAILED test " + i); <shardy> else System.out.println("PASSED test " + i); <shardy> then it passes every test :) <shardy> hopefully someone will get this in their buffer, as thecrypto=20 left <shardy> as did nop <shardy> so jrand0m, I'm counting on you to report it to everyone if=20 you're here before I get back <shardy> well, I think I'll email this out <shardy> just in case --=20 seth hardy: [email protected] * 508.450.5227 * www.aculei.net/~shardy (gpg - 0x5E345628): BF63 A0A7 3BCA 1D7D EDE1 63BF 46FB 95D9 5E34 5628 "God is not on the side of the heavy battalion, but on the side of the best shot." -- Voltaire --NzB8fVQJ5HfG6fxh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (OpenBSD) Comment: yes, I am signing all my messages now. iD8DBQE/THBARvuV2V40VigRAg1zAJ9RBqKv6DuhVofvgCgj7V4raGHN7ACfdoft /1teufITSzvLHHq2jgPFyRU= =CEWB -----END PGP SIGNATURE----- --NzB8fVQJ5HfG6fxh-- ------=_NextPart_000_0055_01C36C83.DE5BF570 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ iip-dev mailing list [email protected] http://lists.invisiblenet.net/mailman/listinfo/iip-dev ------=_NextPart_000_0055_01C36C83.DE5BF570--