Re: [Cfrg] Ed448 hash choice

"Dang, Quynh" <quynh.dang@nist.gov> Tue, 20 October 2015 14:21 UTC

Return-Path: <quynh.dang@nist.gov>
X-Original-To: cfrg@ietfa.amsl.com
Delivered-To: cfrg@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 72F651A1BA2 for <cfrg@ietfa.amsl.com>; Tue, 20 Oct 2015 07:21:51 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.902
X-Spam-Level:
X-Spam-Status: No, score=-1.902 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_PASS=-0.001, 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 AF2VULisD_8V for <cfrg@ietfa.amsl.com>; Tue, 20 Oct 2015 07:21:48 -0700 (PDT)
Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1bon0744.outbound.protection.outlook.com [IPv6:2a01:111:f400:fc10::1:744]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CE7C81A1B8C for <cfrg@irtf.org>; Tue, 20 Oct 2015 07:21:44 -0700 (PDT)
Received: from BN1PR09MB124.namprd09.prod.outlook.com (10.255.200.27) by BN1PR09MB123.namprd09.prod.outlook.com (10.255.200.25) with Microsoft SMTP Server (TLS) id 15.1.300.14; Tue, 20 Oct 2015 14:21:23 +0000
Received: from BN1PR09MB124.namprd09.prod.outlook.com ([10.255.200.27]) by BN1PR09MB124.namprd09.prod.outlook.com ([10.255.200.27]) with mapi id 15.01.0300.010; Tue, 20 Oct 2015 14:21:23 +0000
From: "Dang, Quynh" <quynh.dang@nist.gov>
To: Dan Brown <dbrown@certicom.com>
Thread-Topic: [Cfrg] Ed448 hash choice
Thread-Index: AQHRB/YYRqqwEoEREkabEtOMaOZIPZ5uOBKAgABUjwCAALwFMoAALY4AgAN/5ICAABZUAIAAEZgAgAE+84mAABYisA==
Date: Tue, 20 Oct 2015 14:21:23 +0000
Message-ID: <BN1PR09MB124E81F777D1F1625E2151FF3390@BN1PR09MB124.namprd09.prod.outlook.com>
References: <87twprupdy.fsf@latte.josefsson.org> <20151016150447.GW15070@mournblade.imrryr.org> <562158FE.8010800@akr.io> <87h9lquflm.fsf@latte.josefsson.org> <20151017100326.GA21377@LK-Perkele-V2.elisa-laajakaista.fi> <56250C75.5070708@st.com> <20151019164952.GA31869@LK-Perkele-V2.elisa-laajakaista.fi>, <810C31990B57ED40B2062BA10D43FBF5E71B2A@XMB116CNC.rim.net>, <BN1PR09MB124964395861CACF21F1177F3390@BN1PR09MB124.namprd09.prod.outlook.com>
In-Reply-To: <BN1PR09MB124964395861CACF21F1177F3390@BN1PR09MB124.namprd09.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov;
x-originating-ip: [129.6.226.69]
x-microsoft-exchange-diagnostics: 1; BN1PR09MB123; 5:vLBSQJgC8pHjEOatDRfLGRGraLrILIw+2mOHMeoFpB8Dx9Az6jNK26N20MSW8pT43+OZLB6GeDY5vj814GHNJyblbcUsiqXJRlBD3r8wHY9v4UzGx35cVRQ0VfgX5o0Odd7HNoyTzQmh5ATnvtYwkg==; 24:xNWqqFZEc4TTn7zFM9cYZhaDpqrfzPOWe/0OckCmV6f/SIxodq7SF1AGvUMDnJ80oGmNKBIzvv07EHvoMuyOW9QVoOYGCTS9LEOvADOBaRo=; 20:QsFpNl9O3OVuCHYTHi6g0S2/BlaUMl2v3XquizG2FNvTJ9wM22jS26ZO+t3T0WMS9GFRfqmbcNeQkQbsAruFsg==
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN1PR09MB123;
x-microsoft-antispam-prvs: <BN1PR09MB123230EC2F1F1B20F0B4506F3390@BN1PR09MB123.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(601004)(2401047)(5005006)(520078)(8121501046)(3002001); SRVR:BN1PR09MB123; BCL:0; PCL:0; RULEID:; SRVR:BN1PR09MB123;
x-forefront-prvs: 073515755F
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(377454003)(189002)(199003)(74316001)(5008740100001)(10400500002)(50986999)(19580405001)(122556002)(86362001)(19580395003)(11100500001)(46102003)(54356999)(106116001)(105586002)(40100003)(106356001)(5004730100002)(76176999)(101416001)(99286002)(92566002)(5001960100002)(81156007)(64706001)(189998001)(93886004)(5001920100001)(561944003)(5007970100001)(97736004)(66066001)(87936001)(2950100001)(77096005)(15975445007)(5002640100001)(2900100001)(76576001)(33656002)(5003600100002)(102836002)(110136002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR09MB123; H:BN1PR09MB124.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en;
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:23
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 20 Oct 2015 14:21:23.3115 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR09MB123
Archived-At: <http://mailarchive.ietf.org/arch/msg/cfrg/vHXEJRGGmEwBxs5Uxa1fzLQdjeY>
Cc: "'cfrg@irtf.org'" <cfrg@irtf.org>
Subject: Re: [Cfrg] Ed448 hash choice
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.15
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, 20 Oct 2015 14:21:51 -0000

To clarify my previous message, If you successfully find a collision on the hash value, then the extension property does not happen. However, if you successfully find a collision on the c bits of the permutation, then the extension property happens. But, this is 2^256 work factor for SHAKE256.  

Regards,
Quynh. 

________________________________________
From: Cfrg <cfrg-bounces@irtf.org> on behalf of Dang, Quynh <quynh.dang@nist.gov>
Sent: Tuesday, October 20, 2015 9:01 AM
To: Dan Brown
Cc: 'cfrg@irtf.org'
Subject: Re: [Cfrg] Ed448 hash choice

Hi Dan,

SHAKE256 if being used as 512-bit hash function is a wide-pipe hash function: the rate r is (1600 - 512) 1088 bits, but the hash output is only 512 bits.

Regards,
Quynh.

________________________________________
From: Cfrg <cfrg-bounces@irtf.org> on behalf of Dan Brown <dbrown@certicom.com>
Sent: Monday, October 19, 2015 1:52 PM
To: 'ilariliusvaara@welho.com'; 'gilles.vanassche@st.com'
Cc: 'cfrg@irtf.org'
Subject: Re: [Cfrg] Ed448 hash choice

Clarifying my preferred hash for Ed448:

1) For message digesting, i.e. all the hashing done by the verifier:
Pre-hash = internal hash = H = SHA3-512
So both the signer and verifier compute H(R,H(M))

2) For key derivation, i.e. secret integers computed by the signer:
PRF-hash = SHAKE256

Of the above, 1 is a strong preference, while 2 is a weak preference.

Why I recommend different hashes for the different tasks:

In the message digesting, no inputs are secrets, yet resisting forgery
depends on the security of H.  For these types of no-secret security
properties, I feel that the extra-large pipe of 1024 in SHA3-512 is a
reasonable security cushion for the hash, i.e. compensation for the lack of
a secret input.

Sorry if I'm being a bit harsh on hashes here. But when I recall the MD5 and
SHA1 collision and length extension attacks, and the novel ways in which we
are relying on hashes, I gravitate to a security buffer.

For key derivation, there are secret inputs, so I see less need for the
extra-wide pipe.  But there is more need for proper expansion, and SHAKE256
is already established for this.    Possible alternatives: HKDF or the
various methods in the generalized EdDSA proposal (applied to SHA3-512, or
some other Keccak).

Sorry for my earlier mistake of recommending SHAKE256 for the internal hash:
I was misinterpreting what the EdDSA internal hash to mean the key
derivation steps.  This correction should now align pretty much with what I
recommended in my ECDSA_CFRG proposal, so at least I am not contradicting
myself.

_______________________________________________
Cfrg mailing list
Cfrg@irtf.org
https://www.irtf.org/mailman/listinfo/cfrg