Re: [openpgp] Fingerprint schemes versus what to fingerprint
Bryan Ford <brynosaurus@gmail.com> Thu, 07 April 2016 14:56 UTC
Return-Path: <brynosaurus@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 9D45F12D9AB for <openpgp@ietfa.amsl.com>; Thu, 7 Apr 2016 07:56:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level:
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 D3m1H5bBbCOv for <openpgp@ietfa.amsl.com>; Thu, 7 Apr 2016 07:56:38 -0700 (PDT)
Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (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 7651B12D558 for <openpgp@ietf.org>; Thu, 7 Apr 2016 07:44:35 -0700 (PDT)
Received: by mail-qk0-x22d.google.com with SMTP id k135so27722972qke.0 for <openpgp@ietf.org>; Thu, 07 Apr 2016 07:44:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=Y4xid66+F7jSQ3GSdBw84L+C3i4dGLl2905Vtw49j4Q=; b=Y34SUcUvbNksIRWKrWfT7R1vA8jaZAEkzkjjmtMV5ejJcV2aT+t2yEqb+Dw8gl8YKY kzcIDMdjQwlesbtAqY/mmeImWjcEmFpCY2GMYaL/fXdlP+27gWpz0jLGh5NDQzDYkWUz 5qQET+En7P6M5RDfySTAf/DiNlvPdzF7kJ6H2d/xHxIaFk4s7iSDY8lRrdGkdTXsllVZ osQwPot3UTkElBFSDaajVCqYsLLc5RFUxGTfmEB/z1hadyeJqGoSA1V63HxO2zR5PXvg iJhZ+4kkWazdyilnFjT6/nqMAI+KT6pa/2Zkeih/VTA8uh+XUddFFmaLYzkPOTP+52RH j2Ew==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=Y4xid66+F7jSQ3GSdBw84L+C3i4dGLl2905Vtw49j4Q=; b=SEYvHXib6t9VRIbquz9ZNr159NXHudHZELe6WjlkcgC9MNB6WSjBoUhSb91ifYzSW4 VBLrRAnnQWbGntm2dzY2c2b4bzUsC8fSXlptfLI1fWyGh2nb7VkEVcfSI+xY2UrDC9Pc ksCri+OaKnBddLVa9Sv3Z1pYXa1PrFndRR7Ew4U1ubbNRYDA/VF0rjJvWm4upVyEP2WC rCRKVflsUQOTQyKGIusJlb2YzmSm3ux8DjC4b81wPjrnTWs756eFmY2In0zKmWhI+V4w 5qC0Poe+HGDI6GfY82cwjghe7+gFVnMLK+JNtuqi5knY/3pHpETrit4j5b8HEq1YLKuh Lp2g==
X-Gm-Message-State: AD7BkJJox2d3LRC0nuvkDbZckBpedplH1vRhd875b2gkAMytFtq9KIPBN2CbwDkJIGtktA==
X-Received: by 10.55.82.6 with SMTP id g6mr4185936qkb.40.1460040274590; Thu, 07 Apr 2016 07:44:34 -0700 (PDT)
Received: from [192.168.1.194] ([201.177.50.160]) by smtp.gmail.com with ESMTPSA id u63sm594967qhu.18.2016.04.07.07.44.27 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Apr 2016 07:44:33 -0700 (PDT)
Content-Type: multipart/signed; boundary="Apple-Mail=_714D4858-8321-453A-BCF1-3D1F6DAF23A8"; protocol="application/pkcs7-signature"; micalg="sha1"
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
From: Bryan Ford <brynosaurus@gmail.com>
In-Reply-To: <87egahvs5i.fsf@wheatstone.g10code.de>
Date: Thu, 07 Apr 2016 11:44:11 -0300
Message-Id: <333ABB52-E84C-4039-80AE-01ABE65A91D7@gmail.com>
References: <43986BDA-010F-4DBF-8989-53E71B74E66A@gmail.com> <20151110021943.GH3896@vauxhall.crustytoothpaste.net> <72665D15-F685-41F6-A477-8E65DBBC5A04@gmail.com> <87egahvs5i.fsf@wheatstone.g10code.de>
To: Werner Koch <wk@gnupg.org>
X-Mailer: Apple Mail (2.3124)
Archived-At: <http://mailarchive.ietf.org/arch/msg/openpgp/g7ptiq-oboxsWp3koeYieik1bZw>
Cc: openpgp@ietf.org
Subject: Re: [openpgp] Fingerprint schemes versus what to fingerprint
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.17
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, 07 Apr 2016 14:56:40 -0000
> On Apr 7, 2016, at 3:39 AM, Werner Koch <wk@gnupg.org> wrote: > > On Wed, 6 Apr 2016 20:15, brynosaurus@gmail.com said: > >> 1. What fingerprint scheme(s) should OpenPGP move to going forward? > > A SHA-256 hash of the artificial OpenPGP key packet as we use it right > now. The open question is whether to > > - include a creation timestamp, > - a timestamp but fixed to 0 (as Google End-to-End does), > - some other static info data to surely separate that fingerprint from > other protocols fingerprint using the same key (i.e. token based) > - no creation timestamp > > The rationale for SHA-256 is that this is the only fast algorithm on all > platforms. What about Blake2? If OpenPGP will be using Argon2 for password hashing, then all implementations will need to have a Blake2 implementation anyway because Argon2 builds on Blake2. > A related question is how to identify the new fingerprint scheme in > OpenPGP objects which store a fingerprint: > > - Implicit by the length of the fingerprint, > - or by a prefix byte with the hash algorithm, > - or by a prefix byte with the key version number, > - or by a prefix byte with the length of the fingerprint. This is tricky: a further related question is how OpenPGP implementations decide what “kind” of fingerprint to produce, or present to the user, or expect to get, when doing something with a particular public key. As many people have pointed out, it will be terrible for user experience if users have to start juggling “new-style” and “old-style” fingerprints for the same public key: e.g., you sent me your pub key and I want to verify it but your OpenPGP implementation defaulted to the new fingerprint but mine is giving me an old-style fingerprint to compare against. A couple possible solutions occur: - Define each pub key scheme as having one and only one corresponding fingerprint scheme. i.e., all existing/legacy pub key schemes remain stuck with old SHA1 fingerprints and only new pubkeys generated under a new pub key scheme will get new-style fingerprints. This would have the desirable property of ensuring that users never confusingly see two different legitimate fingerprints for the same public key - but it might mean that we never get to use new fingerprints with RSA/DSA key pairs etc, which may be a non-starter. - Add a “preferred fingerprint scheme” field of some kind to the self-signed cert that public keys are created with, so it becomes a property like E-mail address etc. Benefit: users still only ever see one fingerprint for a given public key, SHA1 for old public keys or SHA256 (or whatever) for newly-created public keys, even if the new public key uses an “old” pub key scheme like RSA/DSA. Drawbacks: implementation complexity; users need to regenerate (or at least re-self-sign) their keys if they want to get a new-style fingerprint for their pre-existing public keys. > >> 2. What exactly should the OpenPGP “application” fingerprint with that scheme? >> >> To clarify, I propose to define a “fingerprint scheme” as an algorithm >> that takes a raw octet string and produces an ASCII string of some > > You describe how a fingerprint is presented to the user. This has been > out of scope for OpenPGP. Implementations have settled for a de-facto > standard outside of the protocol. I think we should keep it this way > and at best give only a suggestion for a human readable format. > > Humans are bad at comparing fingerprints; this should in general be left > to the software and additional protocols to establish a connection > between an identity and a key/fingerprint. Although it might be good enough to rely in practice on “de facto” standards for fingerprint presentation, it would suck if two users with different OpenPGP implementations had no way at all of comparing/verifying fingerprints because one uses presentation X and the other uses presentation Y and there’s no common ground. Wouldn’t it at least be worth recommending at least one “common” fingerprint presentation format be supported for cross-implementation verifiability, even if individual implementations might have their own “preferred” presentation/verification mechanism for when both users are using the same implementation? B > > > Shalom-Salam, > > Werner > > -- > Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz. >
- [openpgp] Keyholder-configurable fingerprint sche… Bryan Ford
- Re: [openpgp] Keyholder-configurable fingerprint … ianG
- Re: [openpgp] Keyholder-configurable fingerprint … ianG
- Re: [openpgp] Keyholder-configurable fingerprint … brian m. carlson
- [openpgp] Fingerprint schemes versus what to fing… Bryan Ford
- Re: [openpgp] Fingerprint schemes versus what to … Werner Koch
- Re: [openpgp] Fingerprint schemes versus what to … Bryan Ford
- Re: [openpgp] Fingerprint schemes versus what to … Werner Koch
- Re: [openpgp] Fingerprint schemes versus what to … Bryan Ford
- Re: [openpgp] Fingerprint schemes versus what to … Bill Frantz
- Re: [openpgp] Fingerprint schemes versus what to … Werner Koch
- Re: [openpgp] Fingerprint schemes versus what to … Peter Gutmann
- Re: [openpgp] Fingerprint schemes versus what to … Werner Koch
- Re: [openpgp] Fingerprint schemes versus what to … Derek Atkins
- Re: [openpgp] Fingerprint schemes versus what to … Peter Gutmann
- Re: [openpgp] Fingerprint schemes versus what to … Derek Atkins
- Re: [openpgp] [FORGED] RE: Fingerprint schemes ve… Peter Gutmann
- Re: [openpgp] [FORGED] RE: Fingerprint schemes ve… Derek Atkins
- Re: [openpgp] [FORGED] RE: [FORGED] RE: Fingerpri… Peter Gutmann
- Re: [openpgp] Fingerprint schemes versus what to … Derek Atkins
- Re: [openpgp] [FORGED] RE: Fingerprint schemes ve… Peter Gutmann
- Re: [openpgp] Fingerprint schemes versus what to … Derek Atkins
- Re: [openpgp] [FORGED] RE: Fingerprint schemes ve… Mark D. Baushke
- Re: [openpgp] [FORGED] RE: Fingerprint schemes ve… Werner Koch