Re: [Cfrg] I-D Action: draft-mcgrew-hash-sigs-13.txt

"Scott Fluhrer (sfluhrer)" <sfluhrer@cisco.com> Tue, 02 October 2018 17:58 UTC

Return-Path: <sfluhrer@cisco.com>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DB8B6130F8E for <cfrg@ietfa.amsl.com>; Tue, 2 Oct 2018 10:58:38 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 mW3XP_02PPbn for <cfrg@ietfa.amsl.com>; Tue, 2 Oct 2018 10:58:36 -0700 (PDT)
Received: from rcdn-iport-8.cisco.com (rcdn-iport-8.cisco.com [173.37.86.79]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E5A39130EAA for <cfrg@ietf.org>; Tue, 2 Oct 2018 10:58:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5046; q=dns/txt; s=iport; t=1538503115; x=1539712715; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=DNPSM8szczWiwrhDNMNP2OHsEmeedlSj+rMVJ8V1bVE=; b=JLjkAt+j/Ru9OReaAXMqScri4Iq7Tt2MTAthpJCQ6fv70HDqCV0g0y/X m3LWap/bUxrAQ7njJ+1fnsCfUrGSK1Lg72D74Pi26DJFbIvHGB3afAwlU VnqaM8b5hWrzZfsXssiQ0y+xuRDbF4mySVQlYfab2KyGhCXVrjagrhiK0 w=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AeAABusbNb/49dJa1bGQEBAQEBAQEBAQEBAQcBAQEBAQGBUYIOZn8oCoNqiBWMG4INgz2TH4F6Cx+ETQIXg3chNBgBAwEBAgEBAm0cDIU4AQEBAQEBASMRUQQCAQgRBAEBAQICJgICAjAVCAgCBAESCIMagXkID6dNgS6EKwGFZwWBC4l4F4FBP4ESgxKDGwOBZxAjgkeCVwKIZJQIUAkChkaJaB+PWowQiQkCERSBJR04gVVwFYMngX4kAhiIWoU+bwGMCCuBAYEfAQE
X-IronPort-AV: E=Sophos;i="5.54,332,1534809600"; d="scan'208";a="458470541"
Received: from rcdn-core-7.cisco.com ([173.37.93.143]) by rcdn-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Oct 2018 17:58:29 +0000
Received: from XCH-RTP-007.cisco.com (xch-rtp-007.cisco.com [64.101.220.147]) by rcdn-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id w92HwTMJ023841 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 2 Oct 2018 17:58:29 GMT
Received: from xch-rtp-006.cisco.com (64.101.220.146) by XCH-RTP-007.cisco.com (64.101.220.147) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Tue, 2 Oct 2018 13:58:28 -0400
Received: from xch-rtp-006.cisco.com ([64.101.220.146]) by XCH-RTP-006.cisco.com ([64.101.220.146]) with mapi id 15.00.1395.000; Tue, 2 Oct 2018 13:58:28 -0400
From: "Scott Fluhrer (sfluhrer)" <sfluhrer@cisco.com>
To: Daniel Van Geest <Daniel.VanGeest@isara.com>, "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: [Cfrg] I-D Action: draft-mcgrew-hash-sigs-13.txt
Thread-Index: AQHURgd3fOg22U/UAEOKIlyDg6XrN6TjhLJggABNyoD//8mKYIAo+F0A///QhWA=
Date: Tue, 02 Oct 2018 17:58:28 +0000
Message-ID: <3c898276f3d94bdca6def7324e4885a8@XCH-RTP-006.cisco.com>
References: <153625508014.11624.7422048043039435025@ietfa.amsl.com> <006c15b806634cc980aea19ac5a8daa8@XCH-RTP-006.cisco.com> <F4D0516F-44CB-4598-85ED-512C0D593371@isara.com> <ef30838fb11f40d8b6e6ae0d8e6023d6@XCH-RTP-006.cisco.com> <17F09E9B-91F6-4180-A10F-C5A83EC38D53@isara.com>
In-Reply-To: <17F09E9B-91F6-4180-A10F-C5A83EC38D53@isara.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.98.2.57]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Outbound-SMTP-Client: 64.101.220.147, xch-rtp-007.cisco.com
X-Outbound-Node: rcdn-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/KXSfIiMEpsNrYcbzGf1L_DW8xIs>
Subject: Re: [Cfrg] I-D Action: draft-mcgrew-hash-sigs-13.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Crypto Forum Research Group <cfrg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/options/cfrg>, <mailto:cfrg-request@irtf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/cfrg/>
List-Post: <mailto:cfrg@irtf.org>
List-Help: <mailto:cfrg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/cfrg>, <mailto:cfrg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 02 Oct 2018 17:58:39 -0000

> -----Original Message-----
> From: Daniel Van Geest <Daniel.VanGeest@isara.com>
> Sent: Tuesday, October 02, 2018 12:41 PM
> To: Scott Fluhrer (sfluhrer) <sfluhrer@cisco.com>; cfrg@ietf.org
> Subject: Re: [Cfrg] I-D Action: draft-mcgrew-hash-sigs-13.txt
> 
> Hi Scott,
> 
> That is a good savings.  We have implemented HSS and are interested in the
> 192-bit hash optimization.  If it was included we would definitely implement
> it.

My current thinking is that this isn't the time to add new parameter sets.  Instead, I was thinking about going an RFC with the current draft, and then do a follow-up RFC to define additional parameter sets (both truncated SHA-256, and also for SHA-512, which others have asked for).

Does the Research Group agree with this strategy?  If the Research Group generally agreed that the draft should reflect some or all of these additional parameter sets, we could certainly add them.

> 
> I'm also told by a colleague who implemented HSS that w=1 in the
> parameters doesn't give any speed advantage but has a large signature size
> disadvantage.  It takes (2^w)*p hashes to create a leaf node (including the
> hashing required to turn the a seed into the first node of a chain).  Thus per
> the parameters in the draft we have:
> w=1, p=265 => # hashes = 530
> w=2, p=133 => # hashes = 532
> On average the number of hashes for signature creation will be half those
> values.
> 
> So those two winternitz values are effectively equivalent in speed for both
> node and signature creation (in addition to the math, I've seen this
> confirmed in benchmarking).  But w=1 gives 8480 byte signatures and w=2
> gives 4256 byte signatures.
> 
> Given this, is there a reason not to remove w=1 from the parameters?

Actually, there's another use case where W=1 makes sense; FPGA image validation.

When an FPGA loads an image, we have a need to verify that the image is what the manufacturer intended.  One possibility is to use LMS to sign the image; have the public key burned into on-FPGA fuses, and have some hardware on the FPGA validate the image.  In this case, W=1 makes this validation logic simpler (and we don't really care much about the computation, or the signature size).

> 
> Thanks,
> Daniel
> 
> 
> On 2018-09-06, 9:24 PM, "Scott Fluhrer (sfluhrer)" <sfluhrer@cisco.com>
> wrote:
> 
> 
>     > -----Original Message-----
>     > From: Daniel Van Geest <Daniel.VanGeest@isara.com>
>     > Sent: Thursday, September 06, 2018 2:17 PM
>     > To: Scott Fluhrer (sfluhrer) <sfluhrer@cisco.com>; cfrg@ietf.org
>     > Subject: Re: [Cfrg] I-D Action: draft-mcgrew-hash-sigs-13.txt
>     >
>     > On the topic of options (and the possible addition of more, sorry), Scott
>     > wrote this paper https://eprint.iacr.org/2017/811.pdf (Grover's algorithm
>     > doesn't parallelize well, so it is possible to truncate hashes and still
> maintain
>     > 128 bits of quantum security).  The results could be used to reduce a
> Sphincs
>     > signature from 41000 bytes to about 23k.  How would it affect HSS
> signature
>     > sizes?
> 
>     Reduces it by perhaps 40%.  For example, for H=20 (W=8, single level), it
> reduces the signature size from 1776 bytes to 1144 bytes.
> 
>     >
>     > If it has a significant effect, is it worth adding as an option?
>     >
>     > What does CFRG think of the paper's results?  Are they worth applying to
>     > XMSS or any future hash-based signature algorithms which come through
>     > here?
> 
>     BTW: Sphincs+ already uses this; for their "NIST Level 3" parameter sets,
> they use 192 bit hashes.
> 
> 
>