Power function PGP math library?
Kimmo Mäkeläinen <spider-41@hotmail.com> Fri, 17 June 2005 06:20 UTC
Received: from above.proper.com (above.proper.com [208.184.76.39]) by ietf.org (8.9.1a/8.9.1a) with ESMTP id CAA14809 for <openpgp-archive@lists.ietf.org>; Fri, 17 Jun 2005 02:20:14 -0400 (EDT)
Received: from above.proper.com (localhost.vpnc.org [127.0.0.1]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5H5tGIt020792; Thu, 16 Jun 2005 22:55:16 -0700 (PDT) (envelope-from owner-ietf-openpgp@mail.imc.org)
Received: (from majordom@localhost) by above.proper.com (8.12.11/8.12.9/Submit) id j5H5tG14020791; Thu, 16 Jun 2005 22:55:16 -0700 (PDT)
X-Authentication-Warning: above.proper.com: majordom set sender to owner-ietf-openpgp@mail.imc.org using -f
Received: from hotmail.com (bay18-f3.bay18.hotmail.com [65.54.187.53]) by above.proper.com (8.12.11/8.12.9) with ESMTP id j5H5tF72020725 for <ietf-openpgp@imc.org>; Thu, 16 Jun 2005 22:55:15 -0700 (PDT) (envelope-from spider-41@hotmail.com)
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 16 Jun 2005 22:55:10 -0700
Message-ID: <BAY18-F349DEB902B40CD35684C9FEF40@phx.gbl>
Received: from 193.210.155.190 by by18fd.bay18.hotmail.msn.com with HTTP; Fri, 17 Jun 2005 05:55:10 GMT
X-Originating-IP: [193.210.155.190]
X-Originating-Email: [spider-41@hotmail.com]
X-Sender: spider-41@hotmail.com
From: Kimmo Mäkeläinen <spider-41@hotmail.com>
To: ietf-openpgp@imc.org
Subject: Power function PGP math library?
Date: Fri, 17 Jun 2005 08:55:10 +0300
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"; format="flowed"
X-OriginalArrivalTime: 17 Jun 2005 05:55:10.0634 (UTC) FILETIME=[1F3F70A0:01C57301]
Sender: owner-ietf-openpgp@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/ietf-openpgp/mail-archive/>
List-Unsubscribe: <mailto:ietf-openpgp-request@imc.org?body=unsubscribe>
List-ID: <ietf-openpgp.imc.org>
Hey, I need to verify the DSA signature in my application, and the verifier has to compute these parameters, which are defined in the DSS (Digital Signature Standard). w = (s')^-1 mod q u1 = ((SHA(M')w) mod q u2 = ((r')w) mod q v = (((g)^u1 * (y^u2) mod p) mod q I'm using PGP math library in calculation. The problem is how to calculate parameter v. The parameters g (power to u1) and y (power to u2) should be calculated first and then these factors should be calculated together and so on. But there isn't a function in the math library to calculate powers. The calculation could be done with mp_mult, but it is very slow way to do it. Best regards, Kimmo _________________________________________________________________ Nopea ja hauska tapa lähettää viestejä reaaliaikaisesti - MSN Messenger. http://messenger.msn.fi
- Power function PGP math library? Kimmo Mäkeläinen
- Re: Power function PGP math library? Konrad Rosenbaum
- Re: Power function PGP math library? "Hal Finney"
- Re: Power function PGP math library? Peter Gutmann
- Re: Power function PGP math library? Ben Laurie
- Re: Power function PGP math library? Peter Gutmann