[openpgp] calculating PGP signature on a public key

George Lind <glind98@gmail.com> Mon, 30 July 2012 20:15 UTC

Return-Path: <glind98@gmail.com>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7661411E810D for <openpgp@ietfa.amsl.com>; Mon, 30 Jul 2012 13:15:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.598
X-Spam-Level:
X-Spam-Status: No, score=-3.598 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iZffaHyM-QpA for <openpgp@ietfa.amsl.com>; Mon, 30 Jul 2012 13:15:12 -0700 (PDT)
Received: from mail-vb0-f44.google.com (mail-vb0-f44.google.com [209.85.212.44]) by ietfa.amsl.com (Postfix) with ESMTP id D75F711E80F6 for <openpgp@ietf.org>; Mon, 30 Jul 2012 13:15:11 -0700 (PDT)
Received: by vbbez10 with SMTP id ez10so5396854vbb.31 for <openpgp@ietf.org>; Mon, 30 Jul 2012 13:15:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=R6/BI1YPr7wejY02bFbJD7fe+dqcljJv4218ZVaZ3RI=; b=n7fr4x5ZLGHLHtXU4BBBktGw0xQ86Lrkuaqk9fBy4gnQ5EmFMxRh9/Nxe9Vkj195YX F0dHSyy1Zp/AydZO7/89HUaKR7iNSxmf7cysffwSPNAYpJPmvA0cOBtlGYsrUappc/Kj u+ZPq8S7EP6tIh8qqjLd0moNYwdjl7J3Kk7xPo7hWh2B/72PPeONBn6N+pws7RuJZKlR H9UwLCvrrFxMyXKyZIPk6Ifb5LTRcUN9PQVKyyHr7UvCAciLZz4E9bPXJHlL+Cl+BOMS fkrOpgkIeKdYhOHaGykL+wdUcRPIBubXsrABIKZXOmzEivrN7m2mD1YsLNbF6hkYOmIp Zurg==
MIME-Version: 1.0
Received: by 10.52.99.138 with SMTP id eq10mr10783723vdb.25.1343679311353; Mon, 30 Jul 2012 13:15:11 -0700 (PDT)
Received: by 10.58.23.165 with HTTP; Mon, 30 Jul 2012 13:15:11 -0700 (PDT)
Date: Mon, 30 Jul 2012 16:15:11 -0400
Message-ID: <CAOfLfKxJ-1=zk_Fdk8vzWCbGRB0yNrFOfgWvxA4B3Wn16yi+cQ@mail.gmail.com>
From: George Lind <glind98@gmail.com>
To: openpgp@ietf.org
Content-Type: multipart/alternative; boundary="20cf3071cc4a0b991f04c611b8db"
Subject: [openpgp] calculating PGP signature on a public key
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: "Ongoing discussion of OpenPGP issues." <openpgp.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/openpgp>, <mailto:openpgp-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/openpgp>
List-Post: <mailto:openpgp@ietf.org>
List-Help: <mailto:openpgp-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/openpgp>, <mailto:openpgp-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Jul 2012 20:15:12 -0000

I am trying to figure out from the RFC exactly which fields get hashed when
calculating the public key signature.

The public key including the packet header and body
The user id including the packet header and body
signature version
signature type
public key algorithm
hashing algorithm
length of the hashed subpackets
all the hashed subpackets

Can anyone confirm if these are correct?