Re: [openpgp] Fingerprints

Phillip Hallam-Baker <phill@hallambaker.com> Wed, 06 May 2015 22:14 UTC

Return-Path: <hallam@gmail.com>
X-Original-To: openpgp@ietfa.amsl.com
Delivered-To: openpgp@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8D1611B2A25 for <openpgp@ietfa.amsl.com>; Wed, 6 May 2015 15:14:39 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.278
X-Spam-Level:
X-Spam-Status: No, score=-3.278 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, GB_I_LETTER=-2, SPF_PASS=-0.001] autolearn=ham
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 r0SVaiNCx0Dm for <openpgp@ietfa.amsl.com>; Wed, 6 May 2015 15:14:37 -0700 (PDT)
Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (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 5B64A1B29DA for <openpgp@ietf.org>; Wed, 6 May 2015 15:14:37 -0700 (PDT)
Received: by lbcga7 with SMTP id ga7so18028570lbc.1 for <openpgp@ietf.org>; Wed, 06 May 2015 15:14:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Yoo8VsQihaqUvcwsREo5ZN8xSTtcToqD45w+JtWfBgc=; b=JhNgqZsFMLSITHrpD7aGyHNTPD/1UoUKKh6HE8/N+/qJE3EFil7e0VXTpNW+XVgbMH JwIySlpd3pLS6F/jmtDW1n+LUXo9y8Ll+67AmGb1YScYTwfJ8usuKkm7HTb0lZr+GnYZ R8tAmhiQfh9iTtzFX12lHfVP0QTZt27cNqa5n/sQLeQUsUo9v/vpeIlyqLaZU8alTxP0 ulYMJ0c8xDrBia1GlNXqLj15TnYAOIMvsowU89IZ0JPtuM2U00L4iMV+vZeD1e6xCJs+ dMb2vRpdUhzqwVbEkbAymdLTXqhMyMlCJnjX3MtSJDRS924p+ntgutrtBPHrBly/65/l NyRA==
MIME-Version: 1.0
X-Received: by 10.152.179.39 with SMTP id dd7mr638281lac.118.1430950475880; Wed, 06 May 2015 15:14:35 -0700 (PDT)
Sender: hallam@gmail.com
Received: by 10.112.203.163 with HTTP; Wed, 6 May 2015 15:14:35 -0700 (PDT)
In-Reply-To: <1430947872.28399.206.camel@scientia.net>
References: <CAMm+LwhbB+-MnGRBCvprgAGOuu+5CJ2rgod7EBGOQR5UNVrspQ@mail.gmail.com> <87d232lkb6.fsf@alice.fifthhorseman.net> <sjmlhhmakxp.fsf@securerf.ihtfp.org> <871tiupupe.fsf@littlepip.fritz.box> <1430869683.28399.109.camel@scientia.net> <CAMm+LwgE0eOD1JgLYUwA_4Gh+pm-vGGd9hPX9KoUqQ9=RHBygg@mail.gmail.com> <1430937492.28399.127.camel@scientia.net> <CAMm+Lwh2J6mMuDouc1PtBpfTU5Pcwj=+KNDehi6nwRabivoOrg@mail.gmail.com> <1430947872.28399.206.camel@scientia.net>
Date: Wed, 06 May 2015 18:14:35 -0400
X-Google-Sender-Auth: pqqcvQYxJoJ8rA4SE69eAgPZ81E
Message-ID: <CAMm+LwjdY2bQ5c_Jiss_JO2xdXxmXtAdytriC7c_=GdB-Vv-bg@mail.gmail.com>
From: Phillip Hallam-Baker <phill@hallambaker.com>
To: Christoph Anton Mitterer <calestyo@scientia.net>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <http://mailarchive.ietf.org/arch/msg/openpgp/Y2LHzrMb3_YFLaGLQktqt4pP6Qw>
Cc: IETF OpenPGP <openpgp@ietf.org>
Subject: Re: [openpgp] Fingerprints
X-BeenThere: openpgp@ietf.org
X-Mailman-Version: 2.1.15
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: Wed, 06 May 2015 22:14:39 -0000

On Wed, May 6, 2015 at 5:31 PM, Christoph Anton Mitterer
<calestyo@scientia.net> wrote:
> On Wed, 2015-05-06 at 16:38 -0400, Phillip Hallam-Baker wrote:
>> One of the reasons I suggested the code numbers for SHA-2 and SHA-3
>> that I did earlier is they guarantee that the first letter of the
>> fingerprint will be M (SHA-2 'Merkle') or S (SHA-3 'Spongeworthy').
>> Thus ensuring that they are distinct from SHA1 fingerprints.
>
>
>> The leading byte gives both the method of constructing the hash and
>> the algorithm to use. I suggest we define code points for SHA-2 and
>> SHA-3 using an identical construction approach.
> In principle I'd like to see that both algos can generally be used with
> a future OpenPGP, given the different class (Merkle-Damgard vs Sponge),
> generally for the FP and other areas.
>
> But I guess the majority here would want to have only one algorithm, at
> least for the FP.
> Is there any broad consensus already about SHA2 vs. SHA3 (except the
> traditionalist argument)?

The folk I have spoken to were of the opinion that the SHA3 contest
actually confirmed people's confidence in SHA2. So I don't see a need
to jump to the next bright shiny object.

SHA3 is supported in pretty much every stack now, SHA3 is still a bit
of a work in progress.

So I would suggest that SHA-2-512 be REQUIRED and SHA-3-512 be RECOMMENDED.



>
>
>> I think we can go even simpler:
>>
>> Fingerprint = Base32ify (BinaryFP)
>>
>> BinaryFP = ID + H( HashedValue)
>> HashedValue =  <Content-Type> ':' <Data>

> Isn't that what I've said? Or what is ID in your text?
>
> At least I think the user should directly see the algorithm/version
> without needing to decode the baseXXX.

Yes, and this should hold for both the base32 version and when doing a
hex dump of a binary fingerprint. So the ID should be a byte and the
top 5 bits should result in a letter in the range G-Z.


>> All the PGP related information would go in the <Data> field, so that
>> would include the PGP format version identifier, algorithm code, etc,
>> etc.
> Nah... that's bad IMHO... I really would want to know which algo I use
> without turning on some BASExx decoder (which doesn't mean that one
> cannot include it there as well).

The hash algorithm id is in the <BinaryFP>. The <data> field needs to
have the algorithm of the public key.


> And what's the content-type then in your thinking, if it's not the algo?
> Just the information "this is a OpenPGP fingerprint"?

yes.

> Then as I've said previously,.. I think this doesn't need to be part of
> the core standard of OpenPGP,... but if it would be really just a
> handful of MIME types e.g. one for "OpenPGP fingerprint" I would neither
> strongly oppose this.

I think the OpenPGP system would end up using at least two codes, one
would be 'OpenPGP fingerprint' and the other would be for 'Something
like TRANS that does not have ASN.1'.

Fixing key signatures in time has a lot of security value that I can
demonstrate in terms of work function.