Re: [openpgp] Question on computing v5 signatures

"Neal H. Walfield" <neal@walfield.org> Thu, 02 May 2019 06:35 UTC

Return-Path: <neal@walfield.org>
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 A802F12017E for <openpgp@ietfa.amsl.com>; Wed, 1 May 2019 23:35:47 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bqR35zjTrazu for <openpgp@ietfa.amsl.com>; Wed, 1 May 2019 23:35:45 -0700 (PDT)
Received: from mail.dasr.de (mail.dasr.de [217.69.77.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 77D83120052 for <openpgp@ietf.org>; Wed, 1 May 2019 23:35:45 -0700 (PDT)
Received: from p57b22663.dip0.t-ipconnect.de ([87.178.38.99] helo=grit.huenfield.org.walfield.org) by mail.dasr.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.86_2) (envelope-from <neal@walfield.org>) id 1hM5Jm-00020K-Mp; Thu, 02 May 2019 06:35:42 +0000
Date: Thu, 02 May 2019 08:35:42 +0200
Message-ID: <877eb9wegx.wl-neal@walfield.org>
From: "Neal H. Walfield" <neal@walfield.org>
To: Heiko Stamer <HeikoStamer@gmx.net>
Cc: OpenPGP WG <openpgp@ietf.org>
In-Reply-To: <cdf3ec1d-25b5-0244-459d-11774c22b161@gmx.net>
References: <cdf3ec1d-25b5-0244-459d-11774c22b161@gmx.net>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (Gojō) APEL/10.8 EasyPG/1.0.0 Emacs/24.5 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset="US-ASCII"
Archived-At: <https://mailarchive.ietf.org/arch/msg/openpgp/Wd0uRL-FIZ64ovAA8cefT4-0RY4>
Subject: Re: [openpgp] Question on computing v5 signatures
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.29
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: <https://mailarchive.ietf.org/arch/browse/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: Thu, 02 May 2019 06:35:48 -0000

Hi Heiko,

On Wed, 01 May 2019 21:29:09 +0200,
Heiko Stamer wrote:
> regarding compution of v5 signatures we have the following lines
> in section 5.2.4 of the current draft RFC 4880bis-06:
> 
>   "a eight-octet big-endian number that is the length of the
>    hashed data from the Signature packet stopping right before the
>    0x05, 0xff octets."
> 
> I am wondering why a number of eight-octet size is used here. The
> biggest field

I don't know about this.

> , AFAIS i.e. the hashed subpacket data area, is limited
> by the included two-octet hashed subpacket length. So why 64 bit?

Actually, the MPIs can be larger.  They take up the remainder of the
packet.  In practice, the MPIs are just a few kilobytes today, but
with post-quantum crypto, they could get very large.

:) Neal