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

Daniel Van Geest <Daniel.VanGeest@isara.com> Tue, 02 October 2018 16:41 UTC

Return-Path: <Daniel.VanGeest@isara.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 98882130E71 for <cfrg@ietfa.amsl.com>; Tue, 2 Oct 2018 09:41:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no
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 FX5SFOkP6ssU for <cfrg@ietfa.amsl.com>; Tue, 2 Oct 2018 09:41:10 -0700 (PDT)
Received: from esa2.isaracorp.com (esa2.isaracorp.com [207.107.152.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AFFA3130E52 for <cfrg@ietf.org>; Tue, 2 Oct 2018 09:41:10 -0700 (PDT)
Received: from unknown (HELO V0501WEXGPR01.isaracorp.com) ([10.5.8.20]) by ip2.isaracorp.com with ESMTP; 02 Oct 2018 16:40:59 +0000
Received: from V0501WEXGPR01.isaracorp.com (10.5.8.20) by V0501WEXGPR01.isaracorp.com (10.5.8.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1466.3; Tue, 2 Oct 2018 12:40:58 -0400
Received: from V0501WEXGPR01.isaracorp.com ([fe80::d802:5aec:db34:beba]) by V0501WEXGPR01.isaracorp.com ([fe80::d802:5aec:db34:beba%7]) with mapi id 15.01.1466.003; Tue, 2 Oct 2018 12:40:58 -0400
From: Daniel Van Geest <Daniel.VanGeest@isara.com>
To: "Scott Fluhrer (sfluhrer)" <sfluhrer@cisco.com>, "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: [Cfrg] I-D Action: draft-mcgrew-hash-sigs-13.txt
Thread-Index: AQHURgd0Wlc1oDVkL0im/uX/5JYnL6TjyDEAgAAr1AD///FlAIAo0IGA
Date: Tue, 02 Oct 2018 16:40:58 +0000
Message-ID: <17F09E9B-91F6-4180-A10F-C5A83EC38D53@isara.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>
In-Reply-To: <ef30838fb11f40d8b6e6ae0d8e6023d6@XCH-RTP-006.cisco.com>
Accept-Language: en-CA, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.5.17.10]
Content-Type: text/plain; charset="utf-8"
Content-ID: <D9EBEB0CC33D1042897A068C2728CF6F@isara.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/CSjdmfhpPKlIr7illFMeKkfrVLM>
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 16:41:13 -0000

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.

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?

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.