Re: [openpgp] SHA3 algorithm ids.

Peter Gutmann <pgut001@cs.auckland.ac.nz> Tue, 11 August 2015 16:39 UTC

Return-Path: <pgut001@cs.auckland.ac.nz>
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 226BE1ACD7A for <openpgp@ietfa.amsl.com>; Tue, 11 Aug 2015 09:39:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, T_RP_MATCHES_RCVD=-0.01] 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 cJHJSctcyfeH for <openpgp@ietfa.amsl.com>; Tue, 11 Aug 2015 09:39:25 -0700 (PDT)
Received: from mx4.auckland.ac.nz (mx4.auckland.ac.nz [130.216.125.248]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C094F1ACD79 for <openpgp@ietf.org>; Tue, 11 Aug 2015 09:39:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=mail; t=1439311164; x=1470847164; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=a4BRpbiFly9zl2tt2QUEYMX6wjaF8McyJL2fBQ6Sz1k=; b=HFniPp1KhvknfmiTp1O92YZ5QbxdLEv3Nkzvtz4Qv5pxh3SUjhrT0wya AZvus9wHj9OGVNX+JlzOCP+rVkHdxRi+nkntn9DE3bnHVq9iZ2+d4YhLa nrTI9WcJ5qDpFY7lCjl+kK3JaeTM/JufCzwmxCyFzk7QDac7Ge7uwWoe0 Di6uBkzWXHedVy+AjkYZMOevnQ36UW6MAfTROuAulLaBJiuJkjCQEZRRH lDauUtbnpvLWv1C03MblVzKaF79l2sRQYXCrC8NDf6ui5inciXjd8LXIo YSy0IWFmS0srMR9LuBWG96KV7ms7p9wY33a7GJJEzega5jQTv+bYslYlF w==;
X-IronPort-AV: E=Sophos;i="5.15,654,1432555200"; d="scan'208";a="34432483"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 130.216.4.112 - Outgoing - Outgoing
Received: from uxchange10-fe1.uoa.auckland.ac.nz ([130.216.4.112]) by mx4-int.auckland.ac.nz with ESMTP/TLS/AES128-SHA; 12 Aug 2015 04:39:22 +1200
Received: from UXCN10-5.UoA.auckland.ac.nz ([169.254.5.48]) by uxchange10-fe1.UoA.auckland.ac.nz ([130.216.4.112]) with mapi id 14.03.0174.001; Wed, 12 Aug 2015 04:39:22 +1200
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Daniel Kahn Gillmor <dkg@fifthhorseman.net>, Phillip Hallam-Baker <phill@hallambaker.com>, Derek Atkins <derek@ihtfp.com>
Thread-Topic: [openpgp] SHA3 algorithm ids.
Thread-Index: AQHQ0bwwjUQponxgXEGSKRaVthfi2J4BQviAgACi0QCAA3eZy///kmAAgAHdvqr//2dhgIAAz/XS
Date: Tue, 11 Aug 2015 16:39:21 +0000
Message-ID: <9A043F3CF02CD34C8E74AC1594475C73F4AD7F8E@uxcn10-5.UoA.auckland.ac.nz>
References: <87y4hmi19i.fsf@vigenere.g10code.de> <7540C7A9-2830-4A63-8310-B684796DA279@nohats.ca> <55C681FC.9010100@iang.org> <sjma8tztbgo.fsf@securerf.ihtfp.org> <CAMm+Lwj7SxXTn+KD-eQSeZHwJB36tCgD1t0bodVsp3ovOaZ8mw@mail.gmail.com> <9A043F3CF02CD34C8E74AC1594475C73F4AD7C72@uxcn10-5.UoA.auckland.ac.nz>, <87io8lpzu4.fsf@alice.fifthhorseman.net>
In-Reply-To: <87io8lpzu4.fsf@alice.fifthhorseman.net>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [130.216.158.4]
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <http://mailarchive.ietf.org/arch/msg/openpgp/sHfm5ejagUirzibW4cEZ_FulZ3Y>
Cc: IETF OpenPGP <openpgp@ietf.org>, ianG <iang@iang.org>
Subject: Re: [openpgp] SHA3 algorithm ids.
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: Tue, 11 Aug 2015 16:39:32 -0000

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

>Is your concern CPU time or bandwidth (network/storage) or something else?

Yes.

>If it's CPU time: on some architectures SHA-512 implementations are faster
>than SHA-256 implementations (except for digests of very short messages):

A huge number of devices, and in particular ones with less CPU power, are
still 32-bit, and will remain so for a long time, probably more or less
indefinitely.

In addition from the original post it was unclear whether -512 referred to
SHA2 or SHA3 (which is why I qualified my reply as SHA2-256 and SHA3-512),
SHA3 will be ever worse than SHA2-512 in speed terms.

In terms of network/storage, there's the unnecessary use of 64-byte hashes
that I've already mentioned.  For TLS and SSH you really don't need more than
maybe 64 bits (not bytes), and certainly 64 bytes is nothing more than a
pointless waste of space when you're sending lots of small data quantities
back and forth.

Peter.