Re: ElGamal, EME-PKCS1-v1_5

"Daniel A. Nagy" <nagydani@epointsystem.org> Thu, 24 June 2010 21:17 UTC

Received: from hoffman.proper.com (localhost [127.0.0.1]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id o5OLHWVn094338 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Jun 2010 14:17:32 -0700 (MST) (envelope-from owner-ietf-openpgp@mail.imc.org)
Received: (from majordom@localhost) by hoffman.proper.com (8.14.4/8.13.5/Submit) id o5OLHWpo094337; Thu, 24 Jun 2010 14:17:32 -0700 (MST) (envelope-from owner-ietf-openpgp@mail.imc.org)
X-Authentication-Warning: hoffman.proper.com: majordom set sender to owner-ietf-openpgp@mail.imc.org using -f
Received: from mail-ew0-f43.google.com (mail-ew0-f43.google.com [209.85.215.43]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id o5OLHUJs094332 for <ietf-openpgp@imc.org>; Thu, 24 Jun 2010 14:17:31 -0700 (MST) (envelope-from nagydani@epointsystem.org)
Received: by ewy9 with SMTP id 9so571247ewy.16 for <ietf-openpgp@imc.org>; Thu, 24 Jun 2010 14:17:29 -0700 (PDT)
Received: by 10.87.30.35 with SMTP id h35mr6145278fgj.73.1277414249305; Thu, 24 Jun 2010 14:17:29 -0700 (PDT)
Received: from [10.77.0.151] (78-131-55-134.static.hdsnet.hu [78.131.55.134]) by mx.google.com with ESMTPS id 3sm15999316fge.5.2010.06.24.14.17.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 24 Jun 2010 14:17:28 -0700 (PDT)
Message-ID: <4C23CB67.3000703@epointsystem.org>
Date: Thu, 24 Jun 2010 23:17:27 +0200
From: "Daniel A. Nagy" <nagydani@epointsystem.org>
User-Agent: Thunderbird 2.0.0.24 (X11/20100317)
MIME-Version: 1.0
To: Brian Lewis <brian@monetra.com>
CC: ietf-openpgp@imc.org
Subject: Re: ElGamal, EME-PKCS1-v1_5
References: <20100624173119.GJ25604@brian.internal.monetra.com>
In-Reply-To: <20100624173119.GJ25604@brian.internal.monetra.com>
X-Enigmail-Version: 0.95.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="------------enig292AE4AE63723EB91C7C45D9"
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>

Hello,

Brian Lewis wrote:
> So I need m = EME-PKCS1-v1_5(...). According to
> http://tools.ietf.org/html/rfc3447#section-7.2.1, PS is k - mLen
> - 3 random nonzero bytes, where k is the length of RSA n in bytes. But I
> don't have RSA n. I have ElGamal p, g, and y.
> 
> In EME-PKCS1-v1_5, what is k if I'm using ElGamal?

You should use the length of ElGamal p.

-- 
Daniel