Re: [openpgp] Followup on fingerprints

Derek Atkins <derek@ihtfp.com> Wed, 05 August 2015 17:16 UTC

Return-Path: <derek@ihtfp.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 32E7F1A87B2 for <openpgp@ietfa.amsl.com>; Wed, 5 Aug 2015 10:16:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1] 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 hM5iagQSM2lw for <openpgp@ietfa.amsl.com>; Wed, 5 Aug 2015 10:16:02 -0700 (PDT)
Received: from mail2.ihtfp.org (mail2.ihtfp.org [IPv6:2001:4830:143:1::3a11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6A6091A87AB for <openpgp@ietf.org>; Wed, 5 Aug 2015 10:16:02 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by mail2.ihtfp.org (Postfix) with ESMTP id E6BAAE2036; Wed, 5 Aug 2015 13:16:00 -0400 (EDT)
Received: from mail2.ihtfp.org ([127.0.0.1]) by localhost (mail2.ihtfp.org [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 27670-08; Wed, 5 Aug 2015 13:15:58 -0400 (EDT)
Received: from securerf.ihtfp.org (unknown [IPv6:fe80::ea2a:eaff:fe7d:235]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mocana.ihtfp.org", Issuer "IHTFP Consulting Certification Authority" (verified OK)) by mail2.ihtfp.org (Postfix) with ESMTPS id 71709E2035; Wed, 5 Aug 2015 13:15:58 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ihtfp.com; s=default; t=1438794958; bh=VfZ/IdxikTTRFPVRorUSLI7nKI3+eW3cqByUiyqa2Po=; h=From:To:Cc:Subject:References:Date:In-Reply-To; b=ckpAWW7k0gngCr/X54ItvASFDyA8aEOozUVxLeMPW0hKqYHbeFbYPZVB9RRnEUo7y Uqo8VYSQpf1QrnJVXVkuvXS7AW7lJjZN6ex5pL20x9KAddqg0/uomMKjrld+FurwnE w7xzRY0FRZLv/L665Agd1cwYX2QVeR6oaCoKUhCo=
Received: (from warlord@localhost) by securerf.ihtfp.org (8.14.8/8.14.8/Submit) id t75HFvS7002948; Wed, 5 Aug 2015 13:15:57 -0400
From: Derek Atkins <derek@ihtfp.com>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
References: <87twsn2wcz.fsf@vigenere.g10code.de> <CAMm+LwgRJX-SvydmpUAJMmN3yysi4zzGSpO2yY4JAMhD-9xLgQ@mail.gmail.com> <87zj2ecmv8.fsf@alice.fifthhorseman.net> <CAMm+LwgKmcTes=V7uS3MjCQixWCo-i7PY=VE7eCHSqt3Ho3OSg@mail.gmail.com> <87a8udd4u6.fsf@alice.fifthhorseman.net> <sjm61503182.fsf@securerf.ihtfp.org> <CAMm+LwgEVySpfL-iN2uzX-4tu7R+isDkHE9D8uAeLTxxd4VxqQ@mail.gmail.com> <sjmwpxc1kbv.fsf@securerf.ihtfp.org> <CAAS2fgR6LYck+km5Ze6S9z65ZgsR61d8md2CqojDaceZ0OrZrw@mail.gmail.com> <9c2c8c5df67c83925d7e3c21fe943483.squirrel@mail2.ihtfp.org> <20150803173231.GG3067@straylight.m.ringlet.net> <2439a89a6c4eb70044e144406a732482.squirrel@mail2.ihtfp.org> <87io8v7uqt.fsf@littlepip.fritz.box> <87h9of7p0e.fsf@littlepip.fritz.box> <87wpxbtuwk.fsf@vigenere.g10code.de> <CAAu18hez49oVhTwRLqv=3rifbg5q5+EqsSvBO0c-ezq+M_Qmyw@mail.gmail.com> <87614u4u7q.fsf@alice.fifthhorseman.net>
Date: Wed, 05 Aug 2015 13:15:57 -0400
In-Reply-To: <87614u4u7q.fsf@alice.fifthhorseman.net> (Daniel Kahn Gillmor's message of "Tue, 04 Aug 2015 17:30:49 -0400")
Message-ID: <sjm37zxy7ua.fsf@securerf.ihtfp.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Virus-Scanned: Maia Mailguard 1.0.2a
Archived-At: <http://mailarchive.ietf.org/arch/msg/openpgp/eGzBXrDa5CuIVsPBXDdwrEQ8VVo>
Cc: IETF OpenPGP <openpgp@ietf.org>, Nicholas Cole <nicholas.cole@gmail.com>
Subject: Re: [openpgp] Followup on 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: <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: Wed, 05 Aug 2015 17:16:05 -0000

Daniel Kahn Gillmor <dkg@fifthhorseman.net> writes:

> The current OpenPGP fingerprint mechanism (in RFC 4880) uses SHA-1,
> which is a 160-bit digest.  SHA-1's collision resistance is believed to
> be weaker than the 2^80 work factor that an ideal 160-bit digest should
> have.  But that doesn't mean that it is necessarily "broken" for
> OpenPGP, if there is no way to exploit a collision atack on fingerprints
> in general.

Indeed, while the SHA-1 collision resistance appears to be less than
2^80, there does not seem to be any known attacks that would make a
preimage attack any easier, which means the way OpenPGP uses SHA-1 for
fingerprints is still, technically, secure.

The real issue is one of education.  It's probably easier to move to
SHA2 than explain why the OpenPGP use of SHA-1 for fingerprints isn't
broken.

> That said, the general cryptographic advice on SHA-1 is "don't use it",
> so while sticking with SHA-1 may not be a problem for this specific
> case, it is a distraction from the cryptanalysis to have to have this
> kind of discussion ("actually, maybe it's ok in this particular use")
> whenever it comes up.
>
> Our constraints in the WG here are also bound by UI concerns -- the
> fingerprint mechanism is one used by humans, and humans have a limited
> capacity to process and handle long high-entropy bitstrings (regardless
> of their representation).  So we're really trying to navigate a
> multidimensional design space here when we talk about what to do for
> fingerprints.
>
> I'll try to start a new thread that identifies those choices more
> clearly, and ask people to weigh in on simpler questions about
> fingerprints rather than having everything tangled up.
>
>              --dkg

-derek

-- 
       Derek Atkins                 617-623-3745
       derek@ihtfp.com             www.ihtfp.com
       Computer and Internet Security Consultant