
From nobody Wed Feb  1 18:24:53 2017
Return-Path: <stephen.farrell@cs.tcd.ie>
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 CEF5F1295C9 for <cfrg@ietfa.amsl.com>; Wed,  1 Feb 2017 18:24:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.5
X-Spam-Level: 
X-Spam-Status: No, score=-7.5 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_MED=-2.3, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cs.tcd.ie
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 InRJPAyXklVN for <cfrg@ietfa.amsl.com>; Wed,  1 Feb 2017 18:24:50 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C6B5D129613 for <Cfrg@irtf.org>; Wed,  1 Feb 2017 18:24:50 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 3BF41BE58 for <Cfrg@irtf.org>; Thu,  2 Feb 2017 02:24:48 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id drMb-rPXEAOd for <Cfrg@irtf.org>; Thu,  2 Feb 2017 02:24:45 +0000 (GMT)
Received: from [10.87.48.75] (95-45-153-252-dynamic.agg2.phb.bdt-fng.eircom.net [95.45.153.252]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id DB39ABE3E for <Cfrg@irtf.org>; Thu,  2 Feb 2017 02:24:44 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.tcd.ie; s=mail; t=1486002285; bh=eD8Y9xjnbjUTstIvIsRlr9XWFH0KyE1TmgzXRM0WdfE=; h=To:From:Subject:Date:From; b=FIwkSHJJQkhBftQoqJP/J8OUhesk1CvUWIBrUkTBZJGZ2cYPZmrwjOOWUOOEZNbcL F+0oVSJqheFsrVPkQ9oXsayvHvlslBsb6tyxL1YxeKfeppQFo2z+1apeXsO5Tk90lX 0hVM9wCHTgfXeS2daf36l8GVqyAOK/SdMvltu7S4=
To: "cfrg@irtf.org" <Cfrg@irtf.org>
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Openpgp: id=D66EA7906F0B897FB2E97D582F3C8736805F8DA2; url=
Message-ID: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>
Date: Thu, 2 Feb 2017 02:24:44 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms060606010303070404050103"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/hxj9UM2LdBy2eipAJX2idjQuxhk>
Subject: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 02:24:53 -0000

This is a cryptographically signed message in MIME format.

--------------ms060606010303070404050103
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Hiya,

There's an erratum posted for hmac [1] where I'd be
interested in what folks here think.

I'm unsure if this is a real problem, esp given that
there are I guess a lot of implementations.

And even if it were a real problem, I'm not sure we'd
want that fix.

Opinions welcome...

Thanks,
S.

[1]
https://www.rfc-editor.org/errata_search.php?rfc=3D2104&eid=3D4809&rec_st=
atus=3D15&area_acronym=3D&errata_type=3D&wg_acronym=3D&submitter_name=3D&=
stream_name=3D&submit_date=3D&presentation=3Drecords


--------------ms060606010303070404050103
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
CvIwggUIMIID8KADAgECAhBPzaE7pzYviUJyhmHTFBdnMA0GCSqGSIb3DQEBCwUAMHUxCzAJ
BgNVBAYTAklMMRYwFAYDVQQKEw1TdGFydENvbSBMdGQuMSkwJwYDVQQLEyBTdGFydENvbSBD
ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEjMCEGA1UEAxMaU3RhcnRDb20gQ2xhc3MgMSBDbGll
bnQgQ0EwHhcNMTYwMjA5MDkyODE1WhcNMTcwMjA5MDkyODE1WjBOMSIwIAYDVQQDDBlzdGVw
aGVuLmZhcnJlbGxAY3MudGNkLmllMSgwJgYJKoZIhvcNAQkBFhlzdGVwaGVuLmZhcnJlbGxA
Y3MudGNkLmllMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtuC0rYze/2JinSra
C9F2RjGdQZjNALLcW9C3WKTwYII3wBslobmH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
hkiG9w0BAQEFAASCAQCcXZ9AJWHhy48FB3cKp+7vDfm7XNpTkqK5k/mZUiMclJ/mnfqhZs1+
XrYR5YjO//exEIu8wdoeZEtnC14JqbTdrdY7dZF4/ClWyHSrlbRuziivgAcVoqYbSgb+Yij4
ZyGR3snd7rUM2ilZ/jeiODLIVdA19BtAe1wnd807Gr7w4oMrk8/sYYZKocE2aMkZhaH4KydC
Eljycui0gkGEPivyk1/+jZtTBqz21Y6XiAYC9OVgVSQZ0TMeK5r7LkAh5WFI4qpJWtwwCcOE
HA237qfMJvMWGBMI7mg6sCiu813Yo41p6leDpmBnwQ++uX+CFxfk8SLSj6nTw0x1a3Q752E2
AAAAAAAA
--------------ms060606010303070404050103--


From nobody Thu Feb  2 05:21:48 2017
Return-Path: <svanru@gmail.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 DBF44129444 for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 05:21:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.899
X-Spam-Level: 
X-Spam-Status: No, score=0.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SORBS_WEB=3.599, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 vwPLwGElg5Vj for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 05:21:45 -0800 (PST)
Received: from mail-lf0-x236.google.com (mail-lf0-x236.google.com [IPv6:2a00:1450:4010:c07::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 47BD3129438 for <Cfrg@irtf.org>; Thu,  2 Feb 2017 05:21:45 -0800 (PST)
Received: by mail-lf0-x236.google.com with SMTP id z134so8368673lff.3 for <Cfrg@irtf.org>; Thu, 02 Feb 2017 05:21:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-transfer-encoding:thread-index:content-language; bh=Iosnjglxd0xmwBzairWarnNY9u5MMWWWp3/7AKY7fwc=; b=bVyCW/pS8VgYu2dELcD+0xyYerQzoAiPxYPsSCeA3ZDHs3SUVMz3fvb7M44N5MADNI JQOkPqPBe4vGMyoaix1lfidkKyGCgZjlgCh9NehnG4AcsMQqxBKxaSjeccsFJtmdu1iQ 2Z7mYu5dteY8cx+3jtoVm1n1hCba9QyduufqV+qJfmtX2soKUJI1kyBCsdlfzBhM7goZ dVuOC/IKd/kG6jA1hqQHqtqsGtZQAv42bHvoYJRrIIFcJIF7FkSZsBRF1U9ekS9TFjSJ Y4aomMdMRgeajuyzcljuP7453RHZHliKmJO2GXwk7NErl9qeMb9WmI47GTNXti35vof8 Hjkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:references:in-reply-to:subject:date :message-id:mime-version:content-transfer-encoding:thread-index :content-language; bh=Iosnjglxd0xmwBzairWarnNY9u5MMWWWp3/7AKY7fwc=; b=KzTNt+5xDCFgDWcEHTHRofkjFP3dsErq90MgC4w/iMMwNqTmeFIANkeMMHSJD2lQyG Y8i+SqM2dCXuEzmqk5Yflo/i/Jxi5vt3yq6k9hVGWee5eTkt5jFQhTAc1UsERycQL8vh 4szK79s3hulUVHcRsAchLzttiUuul3P0zTG/jDh/CnnzOvQCDFunOYjU2o4ugKlgQfWT M67iNdkNVFGYxnSXB1XkiIUsR4hTsUnYlyLNlHe8xgyqV3OEfeBX7qJyodLPOVyvBOSW TT9roVL1YnQJzSTwZkzmNNS5dL/vlRrVdJTKQdaDo2CPes3u9hpU36NFel6MzhuJh4m/ 0uKQ==
X-Gm-Message-State: AIkVDXIO9ABiid74tuIuqH0ABNtwbpd9EiYlqLpczK72jfVYOYGqx42QMidRNufxF5547Q==
X-Received: by 10.25.208.20 with SMTP id h20mr3153721lfg.150.1486041703348; Thu, 02 Feb 2017 05:21:43 -0800 (PST)
Received: from buildpc ([82.138.51.4]) by smtp.gmail.com with ESMTPSA id s63sm6639965lja.49.2017.02.02.05.21.42 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 02 Feb 2017 05:21:42 -0800 (PST)
From: "Valery Smyslov" <svanru@gmail.com>
To: "'Stephen Farrell'" <stephen.farrell@cs.tcd.ie>, "'cfrg@irtf.org'" <Cfrg@irtf.org>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>
In-Reply-To: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>
Date: Thu, 2 Feb 2017 16:21:43 +0300
Message-ID: <0f8701d27d57$4c802920$e5807b60$@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQISJ/kYuhxy1GvJcY7laVpklrAigqDWS8TQ
Content-Language: ru
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/i1HbUOW-nOLx53K2XCgJUKGxp0I>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 13:21:47 -0000

Hi Stephen,

I would let cryptographers decide whether it is a real problem
(I'm not a cryptographer), but the proposed resolution 
will break existing standards and implementations.
For example, in IKEv2 there is a requirement that 
PRFs MUST accept keys of any length and HMAC is widely
used as PRF (e.g. PRF_HMAC_SHA1 is currently MTI).
And since nonces are used as a PRF key for SKEYSEED 
computation in IKEv2, the key may be quite long. 
So, regardless whether this is a real problem,
the proposed resolution looks bad.

Regards,
Valery Smyslov.


> Hiya,
> 
> There's an erratum posted for hmac [1] where I'd be
> interested in what folks here think.
> 
> I'm unsure if this is a real problem, esp given that
> there are I guess a lot of implementations.
> 
> And even if it were a real problem, I'm not sure we'd
> want that fix.
> 
> Opinions welcome...
> 
> Thanks,
> S.
> 
> [1]
> https://www.rfc-
> editor.org/errata_search.php?rfc=2104&eid=4809&rec_status=15&area_acronym=&errata_type=&wg_ac
> ronym=&submitter_name=&stream_name=&submit_date=&presentation=records



From nobody Thu Feb  2 06:07:56 2017
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 50F0C129435 for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 06:07:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level: 
X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 GLDy_wUWZEgZ for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 06:07:53 -0800 (PST)
Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50048.outbound.protection.outlook.com [40.107.5.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 84EFA1293D9 for <Cfrg@irtf.org>; Thu,  2 Feb 2017 06:07:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Gm3wbhXH9nwzDba/pIIUAh07S98e6UEqlJSu74350D8=; b=c76w3Dms+8tn3PV+n+4bMaXZpWUUMcInHeGBXykBfz4RbuboW2gq16FV7jIVIR6VU+bANGomunCzCNBqVksKaNfcdeyjDnWDFUrNVvD3209EDgCwgmw+coHlH10//bC97c5rfGjWUV1IDiyLxxHSuRuyrS930YYwwG0UM0rmGbo=
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com (10.168.2.156) by AM4PR0301MB1905.eurprd03.prod.outlook.com (10.168.2.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Thu, 2 Feb 2017 14:07:50 +0000
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) by AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) with mapi id 15.01.0860.027; Thu, 2 Feb 2017 14:07:50 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>, "cfrg@irtf.org" <Cfrg@irtf.org>
Thread-Topic: [Cfrg] erratum for hmac what do we think...
Thread-Index: AQHSfPuUfS5Ckg60qEyDX+TNu0OdxKFVwe6A
Date: Thu, 2 Feb 2017 14:07:49 +0000
Message-ID: <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>
In-Reply-To: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [134.219.227.30]
x-microsoft-exchange-diagnostics: 1; AM4PR0301MB1905; 7:SfRy5I0YMMEe/N0rHFmmPive6UzTo75uZXFAueKzmpGqxQlRw1iJ0EbWcWC1V4byOedA+OdwtVA4eXJtmlxrJuJ8w5lUrCAVP/lQDZrAJlzAKLC3V47YnRXbz97ChP14sc9yf/Jc4KZL3aHhOUY6wQ1rEnBxddhW4x+7aA9tLVdXakSKfzAMBETcIU9TTMV7eajLcb/U92C8IBg2+bRpLx9IYU8raswvep0Wx2aKK5xjOtIpQrRzs+aYTj2wxWIXJzEYlL65BZfy7BhDJUMuWkSP1rQbd2LlhnYiriBnD+x3IyDPqfWgRQJW1qDCRv84jDsnynmgeTbk2iwpsjsTSSIBQpZ/P9VftaJt5Z9ltAM+ruigek2bmu8sF3YLOsyWYsZHuTfzFhxGuG97FY25MibC68wM64QxLVTEEqALEQDk94GmVt9xNuKy+nGVmE39gqBG1l1+6CGzFoNgBPcurApPbkRfpY12TqBpYuqbvKRx316tkdN6KPx2wsPo5hvwSlIAoNFRJi8Nb8gCznBZn2CAnmN/UDJ9PYfuPaCAoXSXZNcueD7zJ9YJgx70IMyj
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(189002)(24454002)(199003)(38730400001)(77096006)(6486002)(36756003)(6436002)(5660300001)(6506006)(8936002)(81156014)(81166006)(16799955002)(8676002)(3660700001)(74482002)(99286003)(6116002)(3846002)(83506001)(2950100002)(3280700002)(25786008)(2906002)(42882006)(2501003)(6306002)(6512007)(102836003)(229853002)(4001350100001)(101416001)(305945005)(5001770100001)(97736004)(53936002)(189998001)(107886002)(122556002)(92566002)(86362001)(7736002)(2900100001)(50986999)(76176999)(68736007)(105586002)(106116001)(106356001)(66066001)(54356999); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB1905; H:AM4PR0301MB1906.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
x-ms-office365-filtering-correlation-id: e5a9a6a4-22fb-4d94-fe28-08d44b74df41
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR0301MB1905; 
x-microsoft-antispam-prvs: <AM4PR0301MB1905AD0D70D3B1A8380386FDBC4C0@AM4PR0301MB1905.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(32856632585715);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123560025)(20161123558025)(20161123564025)(20161123555025)(20161123562025)(6072148); SRVR:AM4PR0301MB1905; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0301MB1905; 
x-forefront-prvs: 02065A9E77
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <746E5EC2B5C3A2428068C43B8E3CCFC7@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2017 14:07:49.7753 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB1905
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/4omtChECLktNs_RlZQHEtl-46Z4>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 14:07:55 -0000

RGVhciBDRlJHLA0KDQpJdCdkIGJlIGdyZWF0IGlmIHNvbWUgSE1BQyBleHBlcnRzIGNvdWxkIHRh
a2UgYSBsb29rIGF0IHRoaXMgcHJvcG9zZWQNCmVycmF0dW0gYW5kIGdpdmUgYSB2aWV3IG9uIGl0
Lg0KDQpJIGxvb2tlZCBxdWlja2x5IG15c2VsZi4gSXQncyBhbiB1bmRlc2lyYWJsZSBwcm9wZXJ0
eSwgYnV0IEkgZG9uJ3QgdGhpbmsNCml0J3MgZGlzYXN0cm91cyAoeWVzLCBJIGNvdWxkIGludmVu
dCBzY2VuYXJpb3Mgd2hlcmUgb25lIGNvdWxkIGNvbWUNCnVuc3R1Y2sgYmVjYXVzZSBvZiBpdCku
IEl0IHJlbWluZHMgbWUgc29tZXdoYXQgb2YgdGhlIHdlbGwta25vd24sIGFuZA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F0ZT0mcHJlc2VudGF0aW9uPXJlY29yZHMNCj4NCg0K


From nobody Thu Feb  2 06:20:10 2017
Return-Path: <quynh.dang@nist.gov>
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 443E7129648 for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 06:20:08 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 fyOjo9aJGoIg for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 06:20:05 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0100.outbound.protection.outlook.com [23.103.200.100]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C6C01293E9 for <Cfrg@irtf.org>; Thu,  2 Feb 2017 06:20:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FxRrp+JX8YqpX/42+KVFBNfAXWN7B3deEQFp3dLS8zw=; b=kfy4YIAK1JLbPJTO2fHYy3h+jQM16DdAAUPaguvwK7NwwsLvWKKXlfwV4zudrUhXavSVx1wAGg0noYVlWxTsxdmDsAfEmCfgEqwvbYICLK/iv7oQpGGze/tdZqslg9Y3mi5k7z0YmGDzSRjUyhxrcRKMEg8usBE0jihod5EtcyM=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Thu, 2 Feb 2017 14:20:03 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.020; Thu, 2 Feb 2017 14:20:03 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Stephen Farrell <stephen.farrell@cs.tcd.ie>, "cfrg@irtf.org" <Cfrg@irtf.org>
Thread-Topic: [Cfrg] erratum for hmac what do we think...
Thread-Index: AQHSfPuTQmuL3UqM9EiFUsuWG7TDaaFVwYGAgAACtTw=
Date: Thu, 2 Feb 2017 14:20:03 +0000
Message-ID: <CY4PR09MB14645E105002D056B27D9DA4F34C0@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>, <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>
In-Reply-To: <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>
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-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.218.222]
x-ms-office365-filtering-correlation-id: 016cf595-9c65-416a-cbf0-08d44b769488
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1464; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1464; 7:IhxBxh3rKldV8RXig4jPa1HGNgJSnPTDZ2k0DdT1oJRDvF1dW/KH6NDREiSK4JCB6mtUnBbl69ZRK5+VlNBHurmLCoiEQM6A2dAQuzOEJ9CNsv38/+ltwXaOtrDCBWzkXgyatO7dkItjIRnDErhqQXhrwU8YXpKXa73wErivUmqJjpuhGkTXb7jxA4PE1UKuV6+WA8Ntea5Ladn0eUfuU03Y1itOcVQXzu7YBxq4QyVvexMjr76JUo939Zpmi+HMFDJbaeEujjpoJTC0LocWjmCGEIBNjEvGRF6g7HT9JkKnmg1Et3zBrhlBPmtraJ2C6nh0Xp7s6FiB00YFcOtUCNIObvSDlrky6hzVtVqZcL0NfDnfUlN9hpuUkOdgYBjVBoKT8PsxPNk47+Z8YH6ZwrhOHP0o69RNJwBOJEr8FrUt/Ym2Nr0rxy075j64uLSW8Fb4YZAdYJJqlQPN2JdmspPHyrHQgnIw6tGOeOBL97yqPgpMl8x7WDHFYRRBCxWRimXjdCMyUkzQSiN6qwOTqA==
x-microsoft-antispam-prvs: <CY4PR09MB14644736C9C66434C6F40577F34C0@CY4PR09MB1464.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(32856632585715);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123558025)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148); SRVR:CY4PR09MB1464; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1464; 
x-forefront-prvs: 02065A9E77
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39450400003)(39410400002)(39840400002)(39850400002)(39860400002)(24454002)(199003)(377454003)(189002)(33656002)(3280700002)(122556002)(101416001)(2950100002)(6606003)(7906003)(3660700001)(50986999)(3900700001)(7696004)(2906002)(53936002)(5660300001)(7736002)(74316002)(76176999)(54356999)(16799955002)(189998001)(81166006)(6306002)(54896002)(55016002)(81156014)(99286003)(2900100001)(8936002)(105586002)(102836003)(6116002)(3846002)(106356001)(9686003)(236005)(106116001)(92566002)(25786008)(19627405001)(6506006)(6436002)(107886002)(606005)(68736007)(2501003)(8676002)(8656002)(77096006)(66066001)(86362001)(38730400001)(229853002)(5001770100001)(97736004); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1464; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR09MB14645E105002D056B27D9DA4F34C0CY4PR09MB1464namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2017 14:20:03.4448 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1464
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/5JChFxNZKf0WC2le75alSClzcIM>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 14:20:08 -0000

--_000_CY4PR09MB14645E105002D056B27D9DA4F34C0CY4PR09MB1464namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Kenny just made a great point that HMAC is not a PRF: it is trivial to find=
 2 keys which produce the same HMAC output.


Quynh.


________________________________
From: Cfrg <cfrg-bounces@irtf.org> on behalf of Paterson, Kenny <Kenny.Pate=
rson@rhul.ac.uk>
Sent: Thursday, February 2, 2017 9:07 AM
To: Stephen Farrell; cfrg@irtf.org
Subject: Re: [Cfrg] erratum for hmac what do we think...

Dear CFRG,

It'd be great if some HMAC experts could take a look at this proposed
erratum and give a view on it.

I looked quickly myself. It's an undesirable property, but I don't think
it's disastrous (yes, I could invent scenarios where one could come
unstuck because of it). It reminds me somewhat of the well-known, and
again somewhat unfortunate, fact that HMAC keys of different lengths can
end up being padded to form colliding keys.

Cheers,

Kenny

On 02/02/2017 02:24, "Cfrg on behalf of Stephen Farrell"
<cfrg-bounces@irtf.org on behalf of stephen.farrell@cs.tcd.ie> wrote:

>
>Hiya,
>
>There's an erratum posted for hmac [1] where I'd be
>interested in what folks here think.
>
>I'm unsure if this is a real problem, esp given that
>there are I guess a lot of implementations.
>
>And even if it were a real problem, I'm not sure we'd
>want that fix.
>
>Opinions welcome...
>
>Thanks,
>S.
>
>[1]
>https://www.rfc-editor.org/errata_search.php?rfc=3D2104&eid=3D4809&rec_sta=
tus=3D
>15&area_acronym=3D&errata_type=3D&wg_acronym=3D&submitter_name=3D&stream_n=
ame=3D&sub
>mit_date=3D&presentation=3Drecords
>

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

--_000_CY4PR09MB14645E105002D056B27D9DA4F34C0CY4PR09MB1464namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<p>Kenny just made a great point that HMAC is not a PRF: it is trivial to f=
ind 2 keys which produce the same HMAC output.</p>
<p><br>
</p>
<p>Quynh.&nbsp;</p>
<br>
<br>
<div style=3D"color: rgb(0, 0, 0);">
<div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Cfrg &lt;cfrg-bounc=
es@irtf.org&gt; on behalf of Paterson, Kenny &lt;Kenny.Paterson@rhul.ac.uk&=
gt;<br>
<b>Sent:</b> Thursday, February 2, 2017 9:07 AM<br>
<b>To:</b> Stephen Farrell; cfrg@irtf.org<br>
<b>Subject:</b> Re: [Cfrg] erratum for hmac what do we think...</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText">Dear CFRG,<br>
<br>
It'd be great if some HMAC experts could take a look at this proposed<br>
erratum and give a view on it.<br>
<br>
I looked quickly myself. It's an undesirable property, but I don't think<br=
>
it's disastrous (yes, I could invent scenarios where one could come<br>
unstuck because of it). It reminds me somewhat of the well-known, and<br>
again somewhat unfortunate, fact that HMAC keys of different lengths can<br=
>
end up being padded to form colliding keys.<br>
<br>
Cheers,<br>
<br>
Kenny <br>
<br>
On 02/02/2017 02:24, &quot;Cfrg on behalf of Stephen Farrell&quot;<br>
&lt;cfrg-bounces@irtf.org on behalf of stephen.farrell@cs.tcd.ie&gt; wrote:=
<br>
<br>
&gt;<br>
&gt;Hiya,<br>
&gt;<br>
&gt;There's an erratum posted for hmac [1] where I'd be<br>
&gt;interested in what folks here think.<br>
&gt;<br>
&gt;I'm unsure if this is a real problem, esp given that<br>
&gt;there are I guess a lot of implementations.<br>
&gt;<br>
&gt;And even if it were a real problem, I'm not sure we'd<br>
&gt;want that fix.<br>
&gt;<br>
&gt;Opinions welcome...<br>
&gt;<br>
&gt;Thanks,<br>
&gt;S.<br>
&gt;<br>
&gt;[1]<br>
&gt;<a href=3D"https://www.rfc-editor.org/errata_search.php?rfc=3D2104&amp;=
eid=3D4809&amp;rec_status=3D" id=3D"LPlnk760158" previewremoved=3D"true">ht=
tps://www.rfc-editor.org/errata_search.php?rfc=3D2104&amp;eid=3D4809&amp;re=
c_status=3D</a><br>
&gt;15&amp;area_acronym=3D&amp;errata_type=3D&amp;wg_acronym=3D&amp;submitt=
er_name=3D&amp;stream_name=3D&amp;sub<br>
&gt;mit_date=3D&amp;presentation=3Drecords<br>
&gt;<br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
Cfrg@irtf.org<br>
<a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" id=3D"LPlnk754745" p=
reviewremoved=3D"true">https://www.irtf.org/mailman/listinfo/cfrg</a><br>
</div>
</span></font></div>
</div>
</body>
</html>

--_000_CY4PR09MB14645E105002D056B27D9DA4F34C0CY4PR09MB1464namp_--


From nobody Thu Feb  2 06:22:37 2017
Return-Path: <quynh.dang@nist.gov>
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 3C41D12940E for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 06:22:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 gegjD7uHTFG5 for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 06:22:34 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0135.outbound.protection.outlook.com [23.103.200.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2EAD1129408 for <Cfrg@irtf.org>; Thu,  2 Feb 2017 06:22:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=pSnCRIHprVsMljU7YTwYI5+V4rvODUWgdLIqeoIwRHU=; b=D0z3vmC0CL/e9qnBZjL/pewDW9xV6oDzW3DZ9YAfWSvFPDBes4F5gGrEt5el73dCE5naKlRfx0aX4/P4l2Z+SN0X9hRfdj2VPsY560PHp7ckd02qJi7C0XpxoCcyUEWx69uuz1TD6AGjUEKR0Vg7wJJ5TwT7S6m5MNGAXM+s0es=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Thu, 2 Feb 2017 14:22:32 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.020; Thu, 2 Feb 2017 14:22:32 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Stephen Farrell <stephen.farrell@cs.tcd.ie>, "cfrg@irtf.org" <Cfrg@irtf.org>
Thread-Topic: [Cfrg] erratum for hmac what do we think...
Thread-Index: AQHSfPuTQmuL3UqM9EiFUsuWG7TDaaFVwYGAgAACtTyAAAEWOg==
Date: Thu, 2 Feb 2017 14:22:32 +0000
Message-ID: <CY4PR09MB1464453C2AE6265E43011C6BF34C0@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>, <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>, <CY4PR09MB14645E105002D056B27D9DA4F34C0@CY4PR09MB1464.namprd09.prod.outlook.com>
In-Reply-To: <CY4PR09MB14645E105002D056B27D9DA4F34C0@CY4PR09MB1464.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.218.222]
x-ms-office365-filtering-correlation-id: e145b334-1b4d-44da-ae01-08d44b76ed76
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1464; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1464; 7:ZrlYxSEbMCqEbg99u56Wtc54F/VX4UL+7JIkMmBBsacQji+pDQk37X7HatI+9qNjtkVVdwSG7ITzoy+FVljdemj/WLseTX4uyO5xEcWikCets8A0/K8tqgqSca7jYunsepOn/VaQnR+qCThuPTryFhhVRWbmKdUUO6dL9QdoIYxQUq+zJu/UCttfpNT9NCHj4+DN/qSF4n9MfFB1FOxnMTM5dl1EMRxKXc1RMyVAPJCa29Sy0zUyS2IHZBTOmXnDug/kS49kfKhdGnhiFfN7YBw2FOAi3kIpO5a5rWfDXkckidiZLYm812tByJunntDioo0QxLfrTVevVW+MLRIwuJYkgbYh951eEstthW2laonUYECeFbz6V9C/YcNjZe/i7XgRnCCzT5VDNETUrwccuGAQmhq46XM6jqmYYLZ9HE/7OkjJgF+MnItTb+yjuDoPNnyYQ6HyVwsgnROIQOflQ8/aoYOonOBsYNzzCSlHYmkOTPNvfmETn0wo9eceBukB7T86TiROSd27Z1QbY6CnnA==
x-microsoft-antispam-prvs: <CY4PR09MB1464A80372F2D3A4B8878DCAF34C0@CY4PR09MB1464.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(32856632585715)(65766998875637);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123558025)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(6072148); SRVR:CY4PR09MB1464; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1464; 
x-forefront-prvs: 02065A9E77
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39860400002)(39850400002)(39840400002)(39410400002)(39450400003)(377454003)(189002)(24454002)(199003)(606005)(6506006)(19627405001)(107886002)(6436002)(8676002)(8656002)(77096006)(2501003)(68736007)(6116002)(102836003)(105586002)(8936002)(81156014)(99286003)(2900100001)(106116001)(25786008)(92566002)(3846002)(236005)(106356001)(9686003)(5001770100001)(97736004)(86362001)(66066001)(229853002)(38730400001)(2950100002)(50986999)(3660700001)(7906003)(3280700002)(33656002)(122556002)(101416001)(54356999)(16799955002)(76176999)(74316002)(55016002)(6306002)(54896002)(81166006)(189998001)(2906002)(7696004)(53936002)(3900700001)(5660300001)(7736002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1464; H:CY4PR09MB1464.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:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR09MB1464453C2AE6265E43011C6BF34C0CY4PR09MB1464namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2017 14:22:32.6523 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1464
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/jFv9uCUW4WqzdJFfKSszChYzYtU>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 14:22:36 -0000

--_000_CY4PR09MB1464453C2AE6265E43011C6BF34C0CY4PR09MB1464namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

One way to fix that is always hash the key.


Quynh.

________________________________
From: Cfrg <cfrg-bounces@irtf.org> on behalf of Dang, Quynh (Fed) <quynh.da=
ng@nist.gov>
Sent: Thursday, February 2, 2017 9:20:03 AM
To: Paterson, Kenny; Stephen Farrell; cfrg@irtf.org
Subject: Re: [Cfrg] erratum for hmac what do we think...


Kenny just made a great point that HMAC is not a PRF: it is trivial to find=
 2 keys which produce the same HMAC output.


Quynh.


________________________________
From: Cfrg <cfrg-bounces@irtf.org> on behalf of Paterson, Kenny <Kenny.Pate=
rson@rhul.ac.uk>
Sent: Thursday, February 2, 2017 9:07 AM
To: Stephen Farrell; cfrg@irtf.org
Subject: Re: [Cfrg] erratum for hmac what do we think...

Dear CFRG,

It'd be great if some HMAC experts could take a look at this proposed
erratum and give a view on it.

I looked quickly myself. It's an undesirable property, but I don't think
it's disastrous (yes, I could invent scenarios where one could come
unstuck because of it). It reminds me somewhat of the well-known, and
again somewhat unfortunate, fact that HMAC keys of different lengths can
end up being padded to form colliding keys.

Cheers,

Kenny

On 02/02/2017 02:24, "Cfrg on behalf of Stephen Farrell"
<cfrg-bounces@irtf.org on behalf of stephen.farrell@cs.tcd.ie> wrote:

>
>Hiya,
>
>There's an erratum posted for hmac [1] where I'd be
>interested in what folks here think.
>
>I'm unsure if this is a real problem, esp given that
>there are I guess a lot of implementations.
>
>And even if it were a real problem, I'm not sure we'd
>want that fix.
>
>Opinions welcome...
>
>Thanks,
>S.
>
>[1]
>https://www.rfc-editor.org/errata_search.php?rfc=3D2104&eid=3D4809&rec_sta=
tus=3D
>15&area_acronym=3D&errata_type=3D&wg_acronym=3D&submitter_name=3D&stream_n=
ame=3D&sub
>mit_date=3D&presentation=3Drecords
>

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

--_000_CY4PR09MB1464453C2AE6265E43011C6BF34C0CY4PR09MB1464namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<p>One way to fix that is always hash the key.</p>
<p><br>
</p>
<p>Quynh.&nbsp;</p>
</div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Cfrg &lt;cfrg-bounces=
@irtf.org&gt; on behalf of Dang, Quynh (Fed) &lt;quynh.dang@nist.gov&gt;<br=
>
<b>Sent:</b> Thursday, February 2, 2017 9:20:03 AM<br>
<b>To:</b> Paterson, Kenny; Stephen Farrell; cfrg@irtf.org<br>
<b>Subject:</b> Re: [Cfrg] erratum for hmac what do we think...</font>
<div>&nbsp;</div>
</div>
<div>
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<p>Kenny just made a great point that HMAC is not a PRF: it is trivial to f=
ind 2 keys which produce the same HMAC output.</p>
<p><br>
</p>
<p>Quynh.&nbsp;</p>
<br>
<br>
<div style=3D"color: rgb(0, 0, 0);">
<div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Cfrg &lt;cfrg-bounc=
es@irtf.org&gt; on behalf of Paterson, Kenny &lt;Kenny.Paterson@rhul.ac.uk&=
gt;<br>
<b>Sent:</b> Thursday, February 2, 2017 9:07 AM<br>
<b>To:</b> Stephen Farrell; cfrg@irtf.org<br>
<b>Subject:</b> Re: [Cfrg] erratum for hmac what do we think...</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText">Dear CFRG,<br>
<br>
It'd be great if some HMAC experts could take a look at this proposed<br>
erratum and give a view on it.<br>
<br>
I looked quickly myself. It's an undesirable property, but I don't think<br=
>
it's disastrous (yes, I could invent scenarios where one could come<br>
unstuck because of it). It reminds me somewhat of the well-known, and<br>
again somewhat unfortunate, fact that HMAC keys of different lengths can<br=
>
end up being padded to form colliding keys.<br>
<br>
Cheers,<br>
<br>
Kenny <br>
<br>
On 02/02/2017 02:24, &quot;Cfrg on behalf of Stephen Farrell&quot;<br>
&lt;cfrg-bounces@irtf.org on behalf of stephen.farrell@cs.tcd.ie&gt; wrote:=
<br>
<br>
&gt;<br>
&gt;Hiya,<br>
&gt;<br>
&gt;There's an erratum posted for hmac [1] where I'd be<br>
&gt;interested in what folks here think.<br>
&gt;<br>
&gt;I'm unsure if this is a real problem, esp given that<br>
&gt;there are I guess a lot of implementations.<br>
&gt;<br>
&gt;And even if it were a real problem, I'm not sure we'd<br>
&gt;want that fix.<br>
&gt;<br>
&gt;Opinions welcome...<br>
&gt;<br>
&gt;Thanks,<br>
&gt;S.<br>
&gt;<br>
&gt;[1]<br>
&gt;<a href=3D"https://www.rfc-editor.org/errata_search.php?rfc=3D2104&amp;=
eid=3D4809&amp;rec_status=3D" id=3D"LPlnk760158" previewremoved=3D"true">ht=
tps://www.rfc-editor.org/errata_search.php?rfc=3D2104&amp;eid=3D4809&amp;re=
c_status=3D</a><br>
&gt;15&amp;area_acronym=3D&amp;errata_type=3D&amp;wg_acronym=3D&amp;submitt=
er_name=3D&amp;stream_name=3D&amp;sub<br>
&gt;mit_date=3D&amp;presentation=3Drecords<br>
&gt;<br>
<br>
_______________________________________________<br>
Cfrg mailing list<br>
Cfrg@irtf.org<br>
<a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" id=3D"LPlnk754745" p=
reviewremoved=3D"true">https://www.irtf.org/mailman/listinfo/cfrg</a><br>
</div>
</span></font></div>
</div>
</div>
</body>
</html>

--_000_CY4PR09MB1464453C2AE6265E43011C6BF34C0CY4PR09MB1464namp_--


From nobody Thu Feb  2 07:21:44 2017
Return-Path: <rsalz@akamai.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 BBFF0129663 for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 07:21:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.9
X-Spam-Level: 
X-Spam-Status: No, score=-5.9 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_LOW=-0.7, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=akamai.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 iDiAljldIHPY for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 07:21:37 -0800 (PST)
Received: from prod-mail-xrelay05.akamai.com (prod-mail-xrelay05.akamai.com [23.79.238.179]) by ietfa.amsl.com (Postfix) with ESMTP id A18AE129662 for <Cfrg@irtf.org>; Thu,  2 Feb 2017 07:21:37 -0800 (PST)
Received: from prod-mail-xrelay05.akamai.com (localhost.localdomain [127.0.0.1]) by postfix.imss70 (Postfix) with ESMTP id A74CF4334AC; Thu,  2 Feb 2017 15:21:36 +0000 (GMT)
Received: from prod-mail-relay11.akamai.com (prod-mail-relay11.akamai.com [172.27.118.250]) by prod-mail-xrelay05.akamai.com (Postfix) with ESMTP id 90E9B43341C; Thu,  2 Feb 2017 15:21:36 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=akamai.com; s=a1; t=1486048896; bh=G+fRMHMA7umeYVS6NnuEB7nxDuZeHKoeVH4gxYlOgXk=; l=324; h=From:To:Date:References:In-Reply-To:From; b=wj8A0Wv8xrDLQcOlBHkZunUWnu169mgr+ZMgFyZO9zGs2DymrPCmVYD0OlR50fM7V 76JwLlYjsTxghgHc2bNcVvZpFWGOs2TLaZLYWQNPyMD7pVx3WuflaL2NEGRegsClY8 og+ZAi86eME0ik3+eDhdiiGoV4QaR/K4i1HDkvDs=
Received: from email.msg.corp.akamai.com (usma1ex-cas1.msg.corp.akamai.com [172.27.123.30]) by prod-mail-relay11.akamai.com (Postfix) with ESMTP id 8D75D1FC88; Thu,  2 Feb 2017 15:21:36 +0000 (GMT)
Received: from USMA1EX-DAG1MB3.msg.corp.akamai.com (172.27.123.103) by usma1ex-dag1mb4.msg.corp.akamai.com (172.27.123.104) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Thu, 2 Feb 2017 10:21:36 -0500
Received: from USMA1EX-DAG1MB3.msg.corp.akamai.com ([172.27.123.103]) by usma1ex-dag1mb3.msg.corp.akamai.com ([172.27.123.103]) with mapi id 15.00.1178.000; Thu, 2 Feb 2017 10:21:36 -0500
From: "Salz, Rich" <rsalz@akamai.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Stephen Farrell <stephen.farrell@cs.tcd.ie>, "cfrg@irtf.org" <Cfrg@irtf.org>
Thread-Topic: [Cfrg] erratum for hmac what do we think...
Thread-Index: AQHSfQSjLR5A9wxQCUyU4vgAZUrraqFWFUCA///AcnA=
Date: Thu, 2 Feb 2017 15:21:35 +0000
Message-ID: <f4d4f7170d5849e9a2fc532160bff698@usma1ex-dag1mb3.msg.corp.akamai.com>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>
In-Reply-To: <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>
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: [172.19.46.204]
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/XF3M-o0H5-vOd9b4eFEuf-GLXyk>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 15:21:39 -0000

> I looked quickly myself. It's an undesirable property, but I don't think =
it's
> disastrous

If this is accurate (paging Hugo... :) then I think the best reply to this =
is a couple of sentences in the security considerations advising applicatio=
ns that are concerned to limit keys to B bytes instead of hashing.



From nobody Thu Feb  2 07:26:47 2017
Return-Path: <danibrown@blackberry.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 6AB1512965D for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 07:26:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.8
X-Spam-Level: 
X-Spam-Status: No, score=-5.8 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001] 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 yV89BkPBHUis for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 07:26:43 -0800 (PST)
Received: from smtp-p02.blackberry.com (smtp-p02.blackberry.com [208.65.78.89]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 73B8712946B for <Cfrg@irtf.org>; Thu,  2 Feb 2017 07:26:43 -0800 (PST)
Received: from xct105cnc.rim.net ([10.65.161.205]) by mhs215cnc.rim.net with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Feb 2017 10:26:41 -0500
Received: from XCT112CNC.rim.net (10.65.161.212) by XCT105CNC.rim.net (10.65.161.205) with Microsoft SMTP Server (TLS) id 14.3.319.2; Thu, 2 Feb 2017 10:26:40 -0500
Received: from XMB116CNC.rim.net ([fe80::45d:f4fe:6277:5d1b]) by XCT112CNC.rim.net ([::1]) with mapi id 14.03.0319.002; Thu, 2 Feb 2017 10:26:40 -0500
From: Dan Brown <danibrown@blackberry.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Stephen Farrell <stephen.farrell@cs.tcd.ie>, "cfrg@irtf.org" <Cfrg@irtf.org>
Thread-Topic: [Cfrg] erratum for hmac what do we think...
Thread-Index: AQHSfPuN6HvCHp+9s0S4RLJsKwPOB6FWFVKA///CNeA=
Date: Thu, 2 Feb 2017 15:26:39 +0000
Message-ID: <20170202152629.98033754.871.9639@blackberry.com>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>, <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>
In-Reply-To: <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>
Accept-Language: en-US, en-CA
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/UhtW44qZ_bbImbmQ723d10SxNVo>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 15:26:45 -0000

http://ia.cr/2013/382

might be relevant, theoretically, but I'm no expert...



Sent from my BlackBerry 10 smartphone on the Rogers network.
  Original Message
From: Paterson, Kenny
Sent: Thursday, February 2, 2017 9:08 AM
To: Stephen Farrell; cfrg@irtf.org
Subject: Re: [Cfrg] erratum for hmac what do we think...


Dear CFRG,

It'd be great if some HMAC experts could take a look at this proposed
erratum and give a view on it.

I looked quickly myself. It's an undesirable property, but I don't think
it's disastrous (yes, I could invent scenarios where one could come
unstuck because of it). It reminds me somewhat of the well-known, and
again somewhat unfortunate, fact that HMAC keys of different lengths can
end up being padded to form colliding keys.

Cheers,

Kenny

On 02/02/2017 02:24, "Cfrg on behalf of Stephen Farrell"
<cfrg-bounces@irtf.org on behalf of stephen.farrell@cs.tcd.ie> wrote:

>
>Hiya,
>
>There's an erratum posted for hmac [1] where I'd be
>interested in what folks here think.
>
>I'm unsure if this is a real problem, esp given that
>there are I guess a lot of implementations.
>
>And even if it were a real problem, I'm not sure we'd
>want that fix.
>
>Opinions welcome...
>
>Thanks,
>S.
>
>[1]
>https://www.rfc-editor.org/errata_search.php?rfc=3D2104&eid=3D4809&rec_sta=
tus=3D
>15&area_acronym=3D&errata_type=3D&wg_acronym=3D&submitter_name=3D&stream_n=
ame=3D&sub
>mit_date=3D&presentation=3Drecords
>

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


From nobody Thu Feb  2 07:52:57 2017
Return-Path: <xander.sherry@gmail.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 F3A89129686 for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 07:52:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 tEBvt6buCVIp for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 07:52:49 -0800 (PST)
Received: from mail-ot0-x22f.google.com (mail-ot0-x22f.google.com [IPv6:2607:f8b0:4003:c0f::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AB4EF12968D for <Cfrg@irtf.org>; Thu,  2 Feb 2017 07:52:49 -0800 (PST)
Received: by mail-ot0-x22f.google.com with SMTP id f9so14821795otd.1 for <Cfrg@irtf.org>; Thu, 02 Feb 2017 07:52:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=BHgHzyoWuRrhb1R2BNVxgY4YRg1lMd4HJwjql0tFsqs=; b=Xlm1enJX6WPIuANOHnQb8KhMS8ZpWa2hLmz3n0v7elbI9TIMPfMm2al/N8QoL6ILvY D2bQFCTQMLgWoCTCTeFx16F6zXRGQ/HWR+AqcAt16jcLMv1iOBvJyhERq4Opod2jkTO/ oI+UQosahXS86uJZl2bDMA7UeKyw9pNBQXcfPKS7Bu6GaNdLCB6U6GcnSrIDb622AWXE Rs4cNyuw/4Ljnx3oBM23pA7/3uFkV1a3Ofr16OeIHoV65gjfMNHphI4voOUmfz40rEZ6 FALMz5Iu0BCsSpB1/CoKVvSkK4XBTguARJR3BOp63RpbSe15igP6zZt43rFWxXjXJhlb b7yw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=BHgHzyoWuRrhb1R2BNVxgY4YRg1lMd4HJwjql0tFsqs=; b=DWYhJxO0lZxoSbRB9czTpkbTmv1HvuhCuHX3SnlLGC6Oa4bq3QRuxh+V20kj2wHYC/ kbAcxd0PuYP4aM/WXl8EFJlkn0o6ytL2ekykGbbkdk7nFLuoZRKNCBtmJBrC+nHKHxLW zWJiijEdHtgfrl4xRzKB6xqalkVT0h1aMuY4UYEolwmVj68IsqhDUjI01pKJ2DiSO/KY 0+6m3wvumg86fCuL6500Wdi+lmw6qes66zE7v3jlfAX9Azb8iCtB8Z3Vdx1xCDe49pUH x+EsWWMbdG/q3774TbEI1kfPRqZ7Q/Pdn2ciC9i7N8RB8in4fRHJsGzkX675NhDWIhbx of+Q==
X-Gm-Message-State: AIkVDXLHj7dmvM9Yv9I+DcecKW5NI8nCAt/24pFERmvsMtXPMpRaaKa9C2Fip7lJsCJ31ed0bAClC81WoPybxQ==
X-Received: by 10.157.47.141 with SMTP id r13mr3984394otb.203.1486050768879; Thu, 02 Feb 2017 07:52:48 -0800 (PST)
MIME-Version: 1.0
Received: by 10.157.45.15 with HTTP; Thu, 2 Feb 2017 07:52:48 -0800 (PST)
In-Reply-To: <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk>
From: Xander Sherry <xander.sherry@gmail.com>
Date: Thu, 2 Feb 2017 10:52:48 -0500
Message-ID: <CAAQpVOhTHLHFKgWYFnhpW7fHju1i5N83yzaR3x4+Ea1+M5hzbQ@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: multipart/alternative; boundary=001a113d15dc329e7105478e28e3
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/5ovmC4buNBjEu2qEXPLyvW7tSSo>
Cc: "cfrg@irtf.org" <Cfrg@irtf.org>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 15:52:53 -0000

--001a113d15dc329e7105478e28e3
Content-Type: text/plain; charset=UTF-8

Speaking not as an HMAC expert but as an application security guy, while I
agree that the ares where the design of HMAC could be improved, the
vulnerability described in the proposed errata is, in my opinion, less a
security issue with HMAC, and more a security issue with a badly designed
system.  I can immediately think of several ways to mitigate the threat,
not the least of which is simply not to build a system that stores
plaintext hashes of bare keys.

As we all well know, virtually any cryptographic design can (and will!) be
implemented badly in ways that introduce vulnerability, when the
implementer doesn't understand the system he or she is implementing, which
is exactly what the scenario in question seems to be.   Generally speaking,
I think HMAC is easier than most to implement reasonably securely, and even
where it is not, this particular case is not where it is likeliest to fail.
  Short colliding keys as Kenny mentioned are certainly a bigger issue, and
weak keys and non-constant-time comparison are other issues I see regularly
in real systems.

On a tangent, purely as personal opinion, errata is a great tool for fixing
mistakes and adding clarification.  It's a lousy way to propose a
fundamental breaking change to an RFC that's been published for 19 years
and is already baked into who-knows-how-many systems in its current
specification.

Best regards,

-Xander Sherry


On Thu, Feb 2, 2017 at 9:07 AM, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
wrote:

> Dear CFRG,
>
> It'd be great if some HMAC experts could take a look at this proposed
> erratum and give a view on it.
>
> I looked quickly myself. It's an undesirable property, but I don't think
> it's disastrous (yes, I could invent scenarios where one could come
> unstuck because of it). It reminds me somewhat of the well-known, and
> again somewhat unfortunate, fact that HMAC keys of different lengths can
> end up being padded to form colliding keys.
>
> Cheers,
>
> Kenny
>
> On 02/02/2017 02:24, "Cfrg on behalf of Stephen Farrell"
> <cfrg-bounces@irtf.org on behalf of stephen.farrell@cs.tcd.ie> wrote:
>
> >
> >Hiya,
> >
> >There's an erratum posted for hmac [1] where I'd be
> >interested in what folks here think.
> >
> >I'm unsure if this is a real problem, esp given that
> >there are I guess a lot of implementations.
> >
> >And even if it were a real problem, I'm not sure we'd
> >want that fix.
> >
> >Opinions welcome...
> >
> >Thanks,
> >S.
> >
> >[1]
> >https://www.rfc-editor.org/errata_search.php?rfc=2104&
> eid=4809&rec_status=
> >15&area_acronym=&errata_type=&wg_acronym=&submitter_name=&
> stream_name=&sub
> >mit_date=&presentation=records
> >
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg
>

--001a113d15dc329e7105478e28e3
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Speaking not as an HMAC expert but as an application secur=
ity guy, while I agree that the ares where the design of HMAC could be impr=
oved, the vulnerability described in the proposed errata is, in my opinion,=
 less a security issue with HMAC, and more a security issue with a badly de=
signed system.=C2=A0 I can immediately think of several ways to mitigate th=
e threat, not the least of which is simply not to build a system that store=
s plaintext hashes of bare keys.<div><br><div>As we all well know, virtuall=
y any cryptographic design can (and will!) be implemented badly in ways tha=
t introduce vulnerability, when the implementer doesn&#39;t understand the =
system he or she is implementing, which is exactly what the scenario in que=
stion seems to be. =C2=A0 Generally speaking, I think HMAC is easier than m=
ost to implement reasonably securely, and even where it is not, this partic=
ular case is not where it is likeliest to fail. =C2=A0 Short colliding keys=
 as Kenny mentioned are certainly a bigger issue, and weak keys and non-con=
stant-time comparison are other issues I see regularly in real systems. =C2=
=A0</div><div><br></div><div>On a tangent, purely as personal opinion, erra=
ta is a great tool for fixing mistakes and adding clarification.=C2=A0 It&#=
39;s a lousy way to propose a fundamental breaking change to an RFC that&#3=
9;s been published for 19 years and is already baked into who-knows-how-man=
y systems in its current specification.<br><br></div><div>Best regards,</di=
v><div><br></div><div>-Xander Sherry</div><div>=C2=A0</div></div></div><div=
 class=3D"gmail_extra"><br><div class=3D"gmail_quote">On Thu, Feb 2, 2017 a=
t 9:07 AM, Paterson, Kenny <span dir=3D"ltr">&lt;<a href=3D"mailto:Kenny.Pa=
terson@rhul.ac.uk" target=3D"_blank">Kenny.Paterson@rhul.ac.uk</a>&gt;</spa=
n> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;b=
order-left:1px #ccc solid;padding-left:1ex">Dear CFRG,<br>
<br>
It&#39;d be great if some HMAC experts could take a look at this proposed<b=
r>
erratum and give a view on it.<br>
<br>
I looked quickly myself. It&#39;s an undesirable property, but I don&#39;t =
think<br>
it&#39;s disastrous (yes, I could invent scenarios where one could come<br>
unstuck because of it). It reminds me somewhat of the well-known, and<br>
again somewhat unfortunate, fact that HMAC keys of different lengths can<br=
>
end up being padded to form colliding keys.<br>
<br>
Cheers,<br>
<br>
Kenny<br>
<br>
On 02/02/2017 02:24, &quot;Cfrg on behalf of Stephen Farrell&quot;<br>
&lt;<a href=3D"mailto:cfrg-bounces@irtf.org">cfrg-bounces@irtf.org</a> on b=
ehalf of <a href=3D"mailto:stephen.farrell@cs.tcd.ie">stephen.farrell@cs.tc=
d.ie</a>&gt; wrote:<br>
<br>
&gt;<br>
&gt;Hiya,<br>
&gt;<br>
&gt;There&#39;s an erratum posted for hmac [1] where I&#39;d be<br>
&gt;interested in what folks here think.<br>
&gt;<br>
&gt;I&#39;m unsure if this is a real problem, esp given that<br>
&gt;there are I guess a lot of implementations.<br>
&gt;<br>
&gt;And even if it were a real problem, I&#39;m not sure we&#39;d<br>
&gt;want that fix.<br>
&gt;<br>
&gt;Opinions welcome...<br>
&gt;<br>
&gt;Thanks,<br>
&gt;S.<br>
&gt;<br>
&gt;[1]<br>
&gt;<a href=3D"https://www.rfc-editor.org/errata_search.php?rfc=3D2104&amp;=
eid=3D4809&amp;rec_status=3D" rel=3D"noreferrer" target=3D"_blank">https://=
www.rfc-editor.org/<wbr>errata_search.php?rfc=3D2104&amp;<wbr>eid=3D4809&am=
p;rec_status=3D</a><br>
&gt;15&amp;area_acronym=3D&amp;errata_type=3D<wbr>&amp;wg_acronym=3D&amp;su=
bmitter_name=3D&amp;<wbr>stream_name=3D&amp;sub<br>
&gt;mit_date=3D&amp;presentation=3D<wbr>records<br>
&gt;<br>
<br>
______________________________<wbr>_________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.irtf.org/mailman/<wbr>listinfo/cfrg</a><br>
</blockquote></div><br></div>

--001a113d15dc329e7105478e28e3--


From nobody Thu Feb  2 08:10:59 2017
Return-Path: <msj@nthpermutation.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 32965129696 for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 08:10:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level: 
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=nthpermutation-com.20150623.gappssmtp.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 4-i5SYIVi8Tl for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 08:10:57 -0800 (PST)
Received: from mail-qt0-x22a.google.com (mail-qt0-x22a.google.com [IPv6:2607:f8b0:400d:c0d::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9386B129490 for <cfrg@irtf.org>; Thu,  2 Feb 2017 08:10:57 -0800 (PST)
Received: by mail-qt0-x22a.google.com with SMTP id k15so38080066qtg.3 for <cfrg@irtf.org>; Thu, 02 Feb 2017 08:10:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nthpermutation-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=AoqA0CrDOXPwqVg+Qbg1fTkx3n0Frk+HUHjH9dMDoV4=; b=kESWMpOxfWuQDs+865WLhnHOCk04/RccWNuh3esn8XPur8ksZSJTipQTJ+2q3PfUMO ro04Ya3dMLITk9mhUAGMybsi5KW62DUCuUZhLDbYUx59WvnpGebqnJ8ugYroGxFx55YO FTiVZYQm/yC5w8p0KYUoAWonhdFGRv9+KCBt1j4m4Hwvz2NkxvnGwQaRmJYV+2DAhMON P7W8Hfu2bb/ZRCn/TdaxAsVKxXmA5ltN54XKm8N8Uf4y+NeU39kcscj3iff3l/9DO1kt Xa3G9UpYfgIZCa0ri82EIJyw+huRXkvCl0of3XnqsNCVlmZXeiT7ohNpb9ZWJUIqGg+q /g1A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=AoqA0CrDOXPwqVg+Qbg1fTkx3n0Frk+HUHjH9dMDoV4=; b=elOTZZtHQ5ukSvfdJoVNdJAlSYxV3rrOcX1pbj5YpHqY83NJsAkRz+4NVIdfZqeJvR DNkBFmU8jM42+64dvgwcZWVKnNWXibLvIV+1yiQOV6zgjTFiU5dfrT9/MlqXT7ny4aE6 PrQJrIpRvNj/u/uBwkpAMTZKgGJAvLvWcx+9KZX4/Rz1+SWnY09mvOFAWmfPIAJ4uwPR s1Tdj3TFZeusvrW+/Z+i6ba/zCRK0U8Kv2rRNbA1jP6h/OmDUYfULo8M3jOHSQAlCPhc +xs8G9tXPDZpH0sRzUBh2Gjle27glNbQAvDe/inYVpWR1lfGGOi+NsqqnUeraXcff8zE UQCg==
X-Gm-Message-State: AIkVDXK/IMQKBG614KKDitFbhYkKrGQSInnSRALRj6NSJ9udR3i7trYXJh9xjv4vhtzYxQ==
X-Received: by 10.237.62.44 with SMTP id l41mr9570789qtf.16.1486051855994; Thu, 02 Feb 2017 08:10:55 -0800 (PST)
Received: from ?IPv6:2601:152:4400:9b5f:c8f0:67e5:88b1:2975? ([2601:152:4400:9b5f:c8f0:67e5:88b1:2975]) by smtp.gmail.com with ESMTPSA id q145sm21823318qke.37.2017.02.02.08.10.54 for <cfrg@irtf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 02 Feb 2017 08:10:55 -0800 (PST)
To: cfrg@irtf.org
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>
From: Michael StJohns <msj@nthpermutation.com>
Message-ID: <c3818f91-baef-cb4b-5504-81fe4d55502c@nthpermutation.com>
Date: Thu, 2 Feb 2017 11:10:59 -0500
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>
Content-Type: multipart/alternative; boundary="------------BF1D8B98402EF4780EF84109"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/BF928ercnjrJG3y36MJj0jLkKTk>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 16:10:59 -0000

This is a multi-part message in MIME format.
--------------BF1D8B98402EF4780EF84109
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

Inline.

On 2/1/2017 9:24 PM, Stephen Farrell wrote:
> Hiya,
>
> There's an erratum posted for hmac [1] where I'd be
> interested in what folks here think.
>
> I'm unsure if this is a real problem, esp given that
> there are I guess a lot of implementations.
>
> And even if it were a real problem, I'm not sure we'd
> want that fix.

I think it's probably a bogus erratum.   Basically, there are a lot of 
ways to calculate check values for secret keys - hashing the key as 
suggested in this report - is not the one I would suggest for HMAC 
keys.  Instead, doing an HMAC over a known value - HMAC (K, 
'0000000000000000'b) to get a check value might be a better choice.

I think this report boils down to a "I came up with a way to use this 
mechanism in a way that may have security weaknesses".  If he'd said 
that IPSEC uses this and its bad, then I'd say the report was actionable 
- with respect to IPSEC.  As it stands, I'd reject the report.  
Alternately, I might say "Applications MUST not use keys longer than 8 
bytes, where the hash of the key (with the same hash as used in the 
HMAC) is also used as a public value (a key identifier or check value)".

And given that AFAICT RFC 2104 was really a feeder document for the 
NIST  FIPS 198-1 submission  (compare if you will the abstract of the 
RFC with the NIST document Introduction), I would suggest that any 
changes to HMAC be fed in to NIST rather than being accepted as updates 
to this informational document.

Mike









>
> Opinions welcome...
>
> Thanks,
> S.
>
> [1]
> https://www.rfc-editor.org/errata_search.php?rfc=2104&eid=4809&rec_status=15&area_acronym=&errata_type=&wg_acronym=&submitter_name=&stream_name=&submit_date=&presentation=records
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg



--------------BF1D8B98402EF4780EF84109
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Inline.<br>
      <br>
      On 2/1/2017 9:24 PM, Stephen Farrell wrote:<br>
    </div>
    <blockquote
      cite="mid:666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie"
      type="cite">
      <pre wrap="">
Hiya,

There's an erratum posted for hmac [1] where I'd be
interested in what folks here think.

I'm unsure if this is a real problem, esp given that
there are I guess a lot of implementations.

And even if it were a real problem, I'm not sure we'd
want that fix.</pre>
    </blockquote>
    <br>
    I think it's probably a bogus erratum.   Basically, there are a lot
    of ways to calculate check values for secret keys - hashing the key
    as suggested in this report - is not the one I would suggest for
    HMAC keys.  Instead, doing an HMAC over a known value - HMAC (K,
    '0000000000000000'b) to get a check value might be a better choice.<br>
    <br>
    I think this report boils down to a "I came up with a way to use
    this mechanism in a way that may have security weaknesses".  If he'd
    said that IPSEC uses this and its bad, then I'd say the report was
    actionable - with respect to IPSEC.  As it stands, I'd reject the
    report.  Alternately, I might say "Applications MUST not use keys
    longer than 8 bytes, where the hash of the key (with the same hash
    as used in the HMAC) is also used as a public value (a key
    identifier or check value)".<br>
    <br>
    And given that AFAICT RFC 2104 was really a feeder document for the
    NIST  FIPS 198-1 submission  (compare if you will the abstract of
    the RFC with the NIST document Introduction), I would suggest that
    any changes to HMAC be fed in to NIST rather than being accepted as
    updates to this informational document.<br>
    <br>
    Mike<br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <br>
    <blockquote
      cite="mid:666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie"
      type="cite">
      <pre wrap="">

Opinions welcome...

Thanks,
S.

[1]
<a class="moz-txt-link-freetext" href="https://www.rfc-editor.org/errata_search.php?rfc=2104&amp;eid=4809&amp;rec_status=15&amp;area_acronym=&amp;errata_type=&amp;wg_acronym=&amp;submitter_name=&amp;stream_name=&amp;submit_date=&amp;presentation=records">https://www.rfc-editor.org/errata_search.php?rfc=2104&amp;eid=4809&amp;rec_status=15&amp;area_acronym=&amp;errata_type=&amp;wg_acronym=&amp;submitter_name=&amp;stream_name=&amp;submit_date=&amp;presentation=records</a>

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cfrg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a>
<a class="moz-txt-link-freetext" href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>

--------------BF1D8B98402EF4780EF84109--


From nobody Thu Feb  2 08:22:59 2017
Return-Path: <hugokraw@gmail.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 63F59129458 for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 08:22:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.876
X-Spam-Level: 
X-Spam-Status: No, score=-0.876 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, MISSING_HEADERS=1.021, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 M6Tvi4t8Qedm for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 08:22:56 -0800 (PST)
Received: from mail-yb0-x241.google.com (mail-yb0-x241.google.com [IPv6:2607:f8b0:4002:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9F75C12943F for <Cfrg@irtf.org>; Thu,  2 Feb 2017 08:22:56 -0800 (PST)
Received: by mail-yb0-x241.google.com with SMTP id j82so862810ybg.2 for <Cfrg@irtf.org>; Thu, 02 Feb 2017 08:22:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:cc; bh=8oZ4MFmYkDd4CfMBO/X16BvlPn7kPyfEZUH7EmhmuUE=; b=AVed+ilnXTBZ+mu4p1GAOK4CnOc3Rz4Uqks5LP7+/+2nc8sekkCk10Q0IeBiTozFIB W3fC5EOYDL0MR86mX2qksLCsGoxB9xpgddo94ZjKNdlzEyaLBQuBpLLNnX7wyGPqaUkr o4A/jr6C8GNybErEtXo5ujEXsW8sUk2Jj6pPTQFmIOC4hB1orTcB2XFBgE66GMJ8V5uD bjSIb8xUD4s7z0OZw/JtdkCp9eRgILKJG4sMbTk9HidJAtghQSS/axjI547k06+ETRhH 3id17aoA/hTZGg24+haEm843oTzaN5eAkFY8bP0aU83ctDnd0d78s4CMNeHgT9Y9fydq JE7A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:cc; bh=8oZ4MFmYkDd4CfMBO/X16BvlPn7kPyfEZUH7EmhmuUE=; b=QhJJLbQ1H/IEy102OaNH87/wa+T+oAiJQKla/M6jYNme3mg0+B8EJ3PdsVFY9QJwJN kPtuZxmTMIJ7579Kv9drsLPTuPWI1yeqCYPqnj6ImmF6gJoWNJGb06nWNnWrkBnQFuew M1JDx6PIeuOVwN5Bm8QQEP3K/EZcONr0hYreVbW52f2z9WaEWuPyhbReQG4phEnxOtS+ zNNhBaA1yNXwITav2MWkYeCwieBMfZ/PhzUXAnHJtHsCjnWajz883IG64q3WRitiAbiV DNjNkqOC+2GQAJHeSBjn0FehEv4GSDEUjh0VoHU2gZt6XR+p16QiINRbYqRyltVgWvue azWw==
X-Gm-Message-State: AIkVDXIcjHb7wl+h48S2CZs+nAgFKJlXFSvUb6pI31VC+mAeR3zF2NzQtVSgGJns7J6qVI79Mmb/C206JtcyiA==
X-Received: by 10.37.61.199 with SMTP id k190mt3262295yba.147.1486052575751; Thu, 02 Feb 2017 08:22:55 -0800 (PST)
MIME-Version: 1.0
Sender: hugokraw@gmail.com
Received: by 10.37.44.82 with HTTP; Thu, 2 Feb 2017 08:22:25 -0800 (PST)
In-Reply-To: <CAAQpVOhTHLHFKgWYFnhpW7fHju1i5N83yzaR3x4+Ea1+M5hzbQ@mail.gmail.com>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk> <CAAQpVOhTHLHFKgWYFnhpW7fHju1i5N83yzaR3x4+Ea1+M5hzbQ@mail.gmail.com>
From: Hugo Krawczyk <hugo@ee.technion.ac.il>
Date: Thu, 2 Feb 2017 11:22:25 -0500
X-Google-Sender-Auth: d2j_dIGK1rKiCJrhLXlPxC061vA
Message-ID: <CADi0yUNCXneU4CbWT=KZ6CckR0Dv93XKoAUwRVsskE+MRijOZw@mail.gmail.com>
Content-Type: multipart/alternative; boundary=001a114bd0c6e59f0305478e9310
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/qNfXqwavhEPvOYR_wVrKhEZGtO4>
Cc: "cfrg@irtf.org" <Cfrg@irtf.org>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 16:22:58 -0000

--001a114bd0c6e59f0305478e9310
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

=E2=80=8BThese cases of  related key setting=E2=80=8Bs are well known and c=
an indeed be
seen as a weakness of HMAC. They are part of the engineering trade-offs you
have to do for accommodating a design to the real world (and requirements
from often chaotic IETF discussions). There were things we would have liked
to do differently such as avoiding the longer-than-block keys or having
different keys for the inner and outer hash applications, but that would
have made the design problematic in different ways. The particular issue of
not disallowing keys longer than a block came at least from an IKE
requirement. For example, people wanted to use unlimited passphrases, and
between having people truncate long keys or hash them first, the latter
seemed the more robust solution. (BTW, the right way to deal with these
issues using HMAC is to use HKDF.)

Anyway, over the years I heard some rare instances where this led to a
weakness (I have myself shown such cases) but either these were theoretical
settings or some forms of bad practice (e.g. making the hash of a secret
key public). The paper cited earlier by Dan Brown also notes that this
property makes HMAC with long keys non-indifferentiable from a random
oracle. Again, not the nicest property but hardly something to worry much
about in practice. Also, contrary to what Quin said, this property does not
contradict HMAC being a PRF (PRFs can have related key weaknesses).

After 20 years of widespread use, it seems to me that (again) the
engineering considerations (not breaking existing implementations) are more
significant than the potential problems of such related key issues.

Hugo

--001a114bd0c6e59f0305478e9310
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_default" st=
yle=3D"font-family:verdana,sans-serif;font-size:small">=E2=80=8BThese cases=
 of =C2=A0related key setting=E2=80=8Bs are well known and can indeed be se=
en as a weakness of HMAC. They are part of the engineering trade-offs you h=
ave to do for accommodating a design to the real world (and requirements fr=
om often chaotic IETF discussions). There were things we would have liked t=
o do differently such as avoiding the longer-than-block keys or having diff=
erent keys for the inner and outer hash applications, but that would have m=
ade the design problematic in different ways. The particular issue of not d=
isallowing keys longer than a block came at least from an IKE requirement. =
For example, people wanted to use unlimited passphrases, and between having=
 people truncate long keys or hash them first, the latter seemed the more r=
obust solution. (BTW, the right way to deal with these issues using HMAC is=
 to use HKDF.)</div><div class=3D"gmail_default" style=3D"font-family:verda=
na,sans-serif;font-size:small"><br></div><div class=3D"gmail_default" style=
=3D"font-family:verdana,sans-serif;font-size:small">Anyway, over the years =
I heard some rare instances where this led to a weakness (I have myself sho=
wn such cases) but either these were theoretical settings or some forms of =
bad practice (e.g. making the hash of a secret key public). The paper cited=
 earlier by Dan Brown also notes that this property makes HMAC with long ke=
ys non-indifferentiable from a random oracle. Again, not the nicest propert=
y but hardly something to worry much about in practice. Also, contrary to w=
hat Quin said, this property does not contradict HMAC being a PRF (PRFs can=
 have related key weaknesses).</div><div class=3D"gmail_default" style=3D"f=
ont-family:verdana,sans-serif;font-size:small"><br></div><div class=3D"gmai=
l_default" style=3D"font-family:verdana,sans-serif;font-size:small">After 2=
0 years of widespread use, it seems to me that (again) the engineering cons=
iderations (not breaking existing implementations) are more significant tha=
n the potential problems of such related key issues.=C2=A0</div><div class=
=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-size:small"=
><br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-s=
erif;font-size:small">Hugo</div><div class=3D"gmail_default" style=3D"font-=
family:verdana,sans-serif;font-size:small"><br></div><div class=3D"gmail_de=
fault" style=3D"font-family:verdana,sans-serif;font-size:small"><br></div><=
div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-si=
ze:small"><br></div><div class=3D"gmail_default" style=3D"font-family:verda=
na,sans-serif;font-size:small"><br></div><br><br></div></div>

--001a114bd0c6e59f0305478e9310--


From nobody Thu Feb  2 10:05:37 2017
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 02A201294D8 for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 10:05:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.057
X-Spam-Level: 
X-Spam-Status: No, score=-3.057 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.156, SPF_HELO_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 C0Nir1zHs3XL for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 10:05:33 -0800 (PST)
Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40072.outbound.protection.outlook.com [40.107.4.72]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 28AFB1294EE for <cfrg@irtf.org>; Thu,  2 Feb 2017 10:05:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=jQL+q7XiOYxJsnbZAAbTuSrqcs1T1/he9PtmNmuExcc=; b=m+88lIjwmqLWJ0mxuPCtsKhIGjnnKWG7VD3NkfZRjDL3CSvmWfnDQXp5qnw8AwsdiPVAKo0RYHQaXdpM53qtahkOsL2GUE9gZj+/HXTYi8cQ2ADxO03/w/KxRxUIefLBkDdzEydF3tQskGjXm5yQ/OI4D6H5G/yb5lqIAZcYmgQ=
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com (10.168.2.156) by AM4PR0301MB1905.eurprd03.prod.outlook.com (10.168.2.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Thu, 2 Feb 2017 18:05:28 +0000
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) by AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) with mapi id 15.01.0860.027; Thu, 2 Feb 2017 18:05:28 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: Rev RFC 7539?
Thread-Index: AQHSfX7vEznckYOcA0y0r8Mn+cCAng==
Date: Thu, 2 Feb 2017 18:05:28 +0000
Message-ID: <D4B92461.84206%kenny.paterson@rhul.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [78.146.76.254]
x-microsoft-exchange-diagnostics: 1; AM4PR0301MB1905; 7:lvw3ZDIq1ZOKJj2bQuWGrb/Mw8e43Njh6w+uswrq3PdmMDaEVG74z7o1rfzu8aAPVM1RsRZCVpIb0nZqm45YoSwhanAl7r7P6MZ70Ow9nRvuaQCqDncuG0T/gaB59y3h0lXOG9gYI9NSNbcJIdJE7K2MssHn2tsc6IBhfSygD6sWZ48XDtwKGMnH6Pw62cikhIZT+Vm1ej6fRzz/GlPI3lE9+KlNSzgTuiqwgZ/4/qPy9OoL88miIqGGXm1Cj8es5T2Qrd60HwMZrLogz4/FBkmxrG/kv+H1ZdZKAwETvtZAFJEco/3w6QQitd3OxhTFCIOFvSLbIb4EdZR8JaZeTkaLWQrZfb0sMaFSMHhm16lgtZvC1+Sibu/GyqLCIEqJs3MsMXuT8qgjpaf2EEMZR0OneMd4VcZWjAvuX2eQQf749f+CUKXz7d9RMAoau6bmDlvKL14uFhyLuQwQ1Ic8BGW2pI6HngXHQjOdgqbogQhpfDksnscdI/6R0c8pRUI2wZOqujYnWcWNYvT2AFy8E1XUmn4d+0KzY+7VS1efEi/rF9Pr4T5RXHIVeFDTqPag
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(189002)(377424004)(24454002)(199003)(45984002)(77096006)(38730400001)(36756003)(6486002)(6436002)(6506006)(7116003)(8936002)(81156014)(81166006)(8676002)(1730700003)(3660700001)(74482002)(5660300001)(6116002)(99286003)(3846002)(68196006)(3280700002)(25786008)(5640700003)(83506001)(2906002)(42882006)(110136003)(2501003)(6916009)(6306002)(6512007)(102836003)(229853002)(4001350100001)(101416001)(305945005)(97736004)(53936002)(189998001)(107886002)(122556002)(92566002)(86362001)(7736002)(2900100001)(2351001)(68736007)(50986999)(105586002)(106116001)(106356001)(66066001)(54356999)(450100001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB1905; H:AM4PR0301MB1906.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 66883298-0c46-4a9d-0a27-08d44b961216
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR0301MB1905; 
x-microsoft-antispam-prvs: <AM4PR0301MB1905173196A9E1C71FC48261BC4C0@AM4PR0301MB1905.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123560025)(20161123558025)(20161123564025)(20161123555025)(20161123562025)(6072148); SRVR:AM4PR0301MB1905; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0301MB1905; 
x-forefront-prvs: 02065A9E77
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <CD2E37A1BB008A42925627FE31BADE92@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2017 18:05:28.4572 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB1905
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/WqzIp_W_HHXDJnf5hh4nEdKtsTM>
Subject: Re: [Cfrg] Rev RFC 7539?
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 18:05:36 -0000

RGVhciBDRlJHLA0KDQpZb2F2IE5pciBoYXMgdXBkYXRlZCBoaXMgZHJhZnQgZm9yIHRoZSBwcm9w
b3NlZCByZXZpc2lvbiBvZiBSRkM3NTM5IGluDQpyZXNwb25zZSB0byBmZWVkYmFjayByZWNlaXZl
ZCBmcm9tIHRoZSBDRlJHIGNyeXB0byBwYW5lbC4NCg0KVGhlIG5ldyB2ZXJzaW9uLCAwMSwgaXMg
YXZhaWxhYmxlIGhlcmU6DQoNCglodHRwczovL3Rvb2xzLmlldGYub3JnL2h0bWwvZHJhZnQtbmly
LWNmcmctcmZjNzUzOWJpcy0wMQ0KDQoNClRoaXMgdmVyc2lvbiBoYXMgbm93IGJlZW4gcmV2aWV3
ZWQgYnkgdGhlIHNhbWUgQ0ZSRyBjcnlwdG8gcGFuZWwgbWVtYmVycw0Kd2hvIGxvb2tlZCBhdCB2
ZXJzaW9uIDAwLCBhbmQgZGVjbGFyZWQgZ29vZCB0byBnby4gU2VlIGJlbG93IGZvciB0aGUNCmUt
bWFpbCB0cmFpbC4NCg0KV2Ugd291bGQgbm93IHdlbGNvbWUgYW55IGFkZGl0aW9uYWwgcmVtYXJr
cyBvbiB0aGlzIGRyYWZ0IGZyb20gdGhlIHdpZGVyDQpDRlJHIGNvbW11bml0eS4NCg0KQmVzdCB3
aXNoZXMsDQoNCktlbm55IChmb3IgdGhlIGNoYWlycykNCg0KDQoNCk9uIDAyLzAyLzIwMTcgMTc6
NTMsICJTdGFuaXNsYXYgVi4gU215c2hseWFldiIgPHNteXNoc3ZAZ21haWwuY29tPiB3cm90ZToN
Cg0KPuKAjkRlYXIgS2VubnkgYW5kIFlvYXYsDQo+DQo+SW4gbXkgb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2lkZXJhdGlvbnMpDQo+KiBBIGZldyBtb3JlIGVkaXRvcmlhbCBmaXhlcw0KPg0KPg0KPg0K
Pg0KPmh0dHBzOi8vdG9vbHMuaWV0Zi5vcmcvaHRtbC9kcmFmdC1uaXItY2ZyZy1yZmM3NTM5Ymlz
LTAxDQo+DQo+DQo+WW9hdg0KPg0KDQoNCg0KDQo=


From nobody Thu Feb  2 13:57:02 2017
Return-Path: <campbell@mumble.net>
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 0DBB71299FD for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 13:57:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.1
X-Spam-Level: 
X-Spam-Status: No, score=-5.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001] 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 ZRLvQEuIvi9e for <cfrg@ietfa.amsl.com>; Thu,  2 Feb 2017 13:56:59 -0800 (PST)
Received: from jupiter.mumble.net (jupiter.mumble.net [74.50.56.165]) (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 171A4129A18 for <cfrg@irtf.org>; Thu,  2 Feb 2017 13:56:33 -0800 (PST)
Received: by jupiter.mumble.net (Postfix, from userid 1014) id 7D72A60AA2; Thu,  2 Feb 2017 21:56:31 +0000 (UTC)
From: Taylor R Campbell <campbell+cfrg@mumble.net>
To: Stephen Farrell <stephen.farrell@cs.tcd.ie>
In-reply-to: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> (stephen.farrell@cs.tcd.ie)
Date: Thu, 2 Feb 2017 21:56:31 +0000
Sender: Taylor R Campbell <campbell@mumble.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20170202215631.7D72A60AA2@jupiter.mumble.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/9iYAAXn0KbH2NzesleyL9GgLO1w>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 02 Feb 2017 21:57:01 -0000

> Date: Thu, 2 Feb 2017 02:24:44 +0000
> From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
> 
> There's an erratum posted for hmac [1] where I'd be
> interested in what folks here think.

Fix hash function H with block size b.  The alleged problem is that
for a key k, if |k| > b and h = H(k), then HMAC-H_h = HMAC-H_k.

What protocol would ever use HMAC-H with related keys of different
lengths like this for the same purpose?  What protocol would ever use
HMAC-H with keys of different lengths at all for the same purpose?

Needless flexibility like that strikes me as more likely to indicate a
deeper problem -- e.g., one reason that might happen is that the
protocol foolishly uses a password verbatim as an HMAC key.


From nobody Fri Feb  3 00:16:15 2017
Return-Path: <tibor.jager@gmail.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 75E6B12951F for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 00:16:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level: 
X-Spam-Status: No, score=-2.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 GXokcmhvLyow for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 00:16:13 -0800 (PST)
Received: from mail-qt0-x22f.google.com (mail-qt0-x22f.google.com [IPv6:2607:f8b0:400d:c0d::22f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D5767129BCC for <cfrg@irtf.org>; Fri,  3 Feb 2017 00:16:12 -0800 (PST)
Received: by mail-qt0-x22f.google.com with SMTP id w20so22700530qtb.1 for <cfrg@irtf.org>; Fri, 03 Feb 2017 00:16:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to;  bh=F1UpM6dP35eBJ9FLUDNlHwevEK5cgz++HBUdSFk7bEc=; b=rHwuNuZpvOYn3WiJflMDS9lTGL4otAnjUWAJoSvH1+sDN6mhesTVlkdzcDcvj4KWf7 6J00SErW+eKH+xLQsRxNp9VAbmT7UuEd3fgpDbO5Hu7jPlR0kMRrjplp4RkGo+go30Ro OWh0QhFEB3qp/im16rl+UveO9XYI+6AtFGMDzW5RG6OpBaJIaKTGtvC0wykR1BPslder q3yJfynt5qObHaNQHSCxIJxWUl9FBUdtLexM9P0zq25AkuB1nDrR/FMMhAJrmbGF8vxV bf3rg2i9+v1EbyeFLgBEc9SPtlQ1eEa0T60ltt+ssX9nkWJ749IXaQPtmb6tqH8hbzVe Yw2A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=F1UpM6dP35eBJ9FLUDNlHwevEK5cgz++HBUdSFk7bEc=; b=neTop3U1/9ee9TCYamcC2y54H1qWWEoXuFEMQsLFN2cMpnaFnShvEtRl48dZyfyhf+ NRyFW+OOu8AvoZyRsWz/I30M3ZQvgCKsegFVqfNZfxKSNlnVZmlv4DDXWoggtRvLoubv wks2PaApAQHfdyWkTv/oWtaHVjdU8BfT/WnqZ+MyxpWxiDz06HCefh3Qn/dPEIpz4vRo oFn1z+ufYIavxSfALB1uTRKBHD/BzgH+joL9kkdZYxC/nBOm9FKdv2vphcQncsqVdGW2 AlYxJyozfNmbkakyEH7AChbN6EW77tFUwoul9q4Gc0TbzNO21N3fRr2KKTh0aZRML+37 iV8w==
X-Gm-Message-State: AMke39kT5npDiERzOK48QKEg2LBKf/NEOSLt6yCmKi0vqy22s7wYWqsOYjjJro0bnRz/Z4bKiM0GkPtalOvrKA==
X-Received: by 10.55.17.10 with SMTP id b10mr13255574qkh.64.1486109771879; Fri, 03 Feb 2017 00:16:11 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.31.75 with HTTP; Fri, 3 Feb 2017 00:16:11 -0800 (PST)
In-Reply-To: <D4B4D5E4.82A6D%kenny.paterson@rhul.ac.uk>
References: <20170116200948.6535.qmail@cr.yp.to> <5eeb3d4d-1fc0-35ba-6f47-87fa0d808edc@cs.tcd.ie> <AA42E783-43FC-4C9B-A387-623B5B18B4FB@gmail.com> <708C8E8E-37AE-4B8F-9843-B0F8CDB29229@gmail.com> <CACsn0cm22h8_61CEZjKYyHfnd7vvnC39ZMjhusjWcZKu_Z0zhw@mail.gmail.com> <DA141A39-05C2-4B87-92FA-AE8C5421E104@gmail.com> <0435210f-0aa4-1c34-89d6-0f7a2aef0621@cs.tcd.ie> <D4B4D5E4.82A6D%kenny.paterson@rhul.ac.uk>
From: Tibor Jager <tibor.jager@gmail.com>
Date: Fri, 3 Feb 2017 09:16:11 +0100
Message-ID: <CA+yVaTxTbqDUBbX2oTgC6BT2LprOz8uqAbhTRukuqfZD124kSA@mail.gmail.com>
To: cfrg@irtf.org
Content-Type: multipart/alternative; boundary=001a113ad4460cdcfb05479be582
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/oR8DtiFYIuzInZq2hL8Z-d9gUao>
Subject: Re: [Cfrg] Help with the use of contexts
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 08:16:14 -0000

--001a113ad4460cdcfb05479be582
Content-Type: text/plain; charset=UTF-8

On 30 January 2017 at 12:40, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
wrote:

>
> So: does anyone else want to offer an opinion on the question of contexts?
>
>
Contexts are a clean and relatively simple way to prevent cross-protocol
attacks, in particular when implemented in an as simple way as proposed
by Adam and Dan.

The cross-protocol attacks we have seen so far were mostly rather
academic and not too practical. However, with an increasing number of
cryptographic protocols in use the occurrence of practical
cross-protocol attacks becomes much more likely, as the number of
possible combinations grows quadratically. At some point it will become
infeasible to analyze all possible combinations thoroughly enough.

I think at some point in the future we will have to deal with the
prevention of cross-protocol attacks by using contexts, and doing this
as early as possible is a good idea - following the "better safe than
sorry" principle is always a good idea when designing security protocols.

--001a113ad4460cdcfb05479be582
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><br><br>On 30 January 2017 at 12:40, Paterson, Kenny <span=
 dir=3D"ltr">&lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk" target=3D"_bl=
ank">Kenny.Paterson@rhul.ac.uk</a>&gt;</span> wrote:<br><blockquote class=
=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg=
b(204,204,204);padding-left:1ex"><br>
So: does anyone else want to offer an opinion on the question of contexts?<=
br><br></blockquote><br><pre>Contexts are a clean and relatively simple way=
 to prevent cross-protocol
attacks, in particular when implemented in an as simple way as proposed
by Adam and Dan.

The cross-protocol attacks we have seen so far were mostly rather
academic and not too practical. However, with an increasing number of
cryptographic protocols in use the occurrence of practical
cross-protocol attacks becomes much more likely, as the number of
possible combinations grows quadratically. At some point it will become
infeasible to analyze all possible combinations thoroughly enough.

I think at some point in the future we will have to deal with the
prevention of cross-protocol attacks by using contexts, and doing this
as early as possible is a good idea - following the &quot;better safe than
sorry&quot; principle is always a good idea when designing security protoco=
ls.</pre></div>

--001a113ad4460cdcfb05479be582--


From nobody Fri Feb  3 02:23:49 2017
Return-Path: <a.yousar@informatik.hu-berlin.de>
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 12800129BCB for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 02:23:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.499
X-Spam-Level: 
X-Spam-Status: No, score=-7.499 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_MED=-2.3, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=informatik.hu-berlin.de
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 lJ9052GhIa6g for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 02:23:46 -0800 (PST)
Received: from mailout1.informatik.hu-berlin.de (mailout1.informatik.hu-berlin.de [141.20.20.101]) (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 56938129BDF for <cfrg@irtf.org>; Fri,  3 Feb 2017 02:23:42 -0800 (PST)
Received: from mailbox.informatik.hu-berlin.de (mailbox [141.20.20.63]) by mail.informatik.hu-berlin.de (8.14.7/8.14.7/INF-2.0-MA-SOLARIS-2.10-25) with ESMTP id v13ANcOx011221 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <cfrg@irtf.org>; Fri, 3 Feb 2017 11:23:39 +0100 (MET)
Received: from [192.168.178.106] (p5085BC75.dip0.t-ipconnect.de [80.133.188.117]) (authenticated bits=0) by mailbox.informatik.hu-berlin.de (8.14.7/8.14.7/INF-2.0-MA-SOLARIS-2.10-AUTH-26-465-587) with ESMTP id v13ANaXn011205 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for <cfrg@irtf.org>; Fri, 3 Feb 2017 11:23:38 +0100 (MET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=informatik.hu-berlin.de; s=mailbox; t=1486117418; bh=zmOODTSxwKiJQRhwD+dzZsAzdekFm0kosA6mdYC7Ebw=; h=Subject:To:References:From:Date:In-Reply-To; b=AZVoJ5kHPHZrdLgNnCA6EDGU7Argq6AoOkCQIqCS9jnYYkG1wgNylaEOtp4dDkIqb 0IL+cbpNkvISOoVuBXYjgnQIotu4F1Y8a06L0zD7KnIWSrRyMhqzTcU2LLAhnKYvlg l25nOiGcEY9cBLcdSFcswvRL0dE1BwvkHtvZkjK8=
To: cfrg@irtf.org
References: <20170202215631.7D72A60AA2@jupiter.mumble.net>
From: Ann <a.yousar@informatik.hu-berlin.de>
Message-ID: <58945A2E.7000606@informatik.hu-berlin.de>
Date: Fri, 3 Feb 2017 11:23:42 +0100
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2
MIME-Version: 1.0
In-Reply-To: <20170202215631.7D72A60AA2@jupiter.mumble.net>
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 7bit
X-Virus-Scanned: clamav-milter 0.98.4 at mailbox
X-Virus-Status: Clean
X-Greylist: Sender succeeded STARTTLS authentication, not delayed by milter-greylist-4.5.1 (mail.informatik.hu-berlin.de [141.20.20.50]); Fri, 03 Feb 2017 11:23:39 +0100 (MET)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/aVvJ5h87Mxlxtbx678yFqFrx52c>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 10:23:48 -0000

Anyway, the actual text is prone to HMACcollisions:
Given |k|<b one can find easily another k' with HMAC-H_h = HMAC-H_k.
Why not accept this issue as an erratum of the RFC?

Not sure that the prosed correction is necessary. You gave some
considerations to reject it.
My 2 cents: you should write "MUST NOT" instead of "MUST not" ;-)

Regards,
/Ann.


Am 02.02.2017 um 22:56 schrieb Taylor R Campbell:
>> Date: Thu, 2 Feb 2017 02:24:44 +0000
>> From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
>>
>> There's an erratum posted for hmac [1] where I'd be
>> interested in what folks here think.
> Fix hash function H with block size b.  The alleged problem is that
> for a key k, if |k| > b and h = H(k), then HMAC-H_h = HMAC-H_k.
>
> What protocol would ever use HMAC-H with related keys of different
> lengths like this for the same purpose?  What protocol would ever use
> HMAC-H with keys of different lengths at all for the same purpose?
>
> Needless flexibility like that strikes me as more likely to indicate a
> deeper problem -- e.g., one reason that might happen is that the
> protocol foolishly uses a password verbatim as an HMAC key.
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg


From nobody Fri Feb  3 02:24:13 2017
Return-Path: <pgut001@cs.auckland.ac.nz>
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 8C726129BE8 for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 02:24:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.398
X-Spam-Level: 
X-Spam-Status: No, score=-7.398 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-3.199, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=auckland.ac.nz
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 vvAe-b5UHlz5 for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 02:24:09 -0800 (PST)
Received: from mx4.auckland.ac.nz (mx4.auckland.ac.nz [130.216.125.248]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 61CBB129BDA for <Cfrg@irtf.org>; Fri,  3 Feb 2017 02:24:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=mail; t=1486117449; x=1517653449; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=iVsQJ1mxI6FFhi/DlE/WkHPo+JOM0GgqS5+MkLtq4NU=; b=4lGsIrXaUovsUY5FdVxyIZUgKYsEVbX0UpbW4oGxMn3rBywUdeoYWxiz id0Mjf8uD/eOrqyxOcmjMywg7uLkj/0JPlXPbm8Balv9fO1Vf8BgWUnmM DfVsDl0SKgdKYn5b8rcG/7Yq7hkae1XqfF/LjGf2Lmb6gYylNpr/wuqb/ Rf4xY9OEY2PUhJWEfB9+Tbv21Rty6GGDDrPCj0OT6q3tpcGtKnpzOlORP El86mC/BeOKSLL5G2dWiGBYeH2zxkhfFQ2OTzmg5CjFsA3Xj/Dm7t8J/B +GyAdWgKY/FzyfyAql3TUWf5onVDdJ4wYuyi+ngTEZU1WBLiakawEOrfK g==;
X-IronPort-AV: E=Sophos;i="5.33,328,1477911600"; d="scan'208";a="133196915"
X-Ironport-HAT: MAIL-SERVERS - $RELAYED
X-Ironport-Source: 10.6.2.2 - Outgoing - Outgoing
Received: from smtp.uoa.auckland.ac.nz (HELO uxcn13-ogg-a.UoA.auckland.ac.nz) ([10.6.2.2]) by mx4-int.auckland.ac.nz with ESMTP/TLS/AES256-SHA; 03 Feb 2017 23:24:06 +1300
Received: from uxcn13-ogg-d.UoA.auckland.ac.nz (10.6.2.5) by uxcn13-ogg-a.UoA.auckland.ac.nz (10.6.2.2) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Fri, 3 Feb 2017 23:24:06 +1300
Received: from uxcn13-ogg-d.UoA.auckland.ac.nz ([10.6.2.25]) by uxcn13-ogg-d.UoA.auckland.ac.nz ([10.6.2.25]) with mapi id 15.00.1178.000; Fri, 3 Feb 2017 23:24:06 +1300
From: Peter Gutmann <pgut001@cs.auckland.ac.nz>
To: Hugo Krawczyk <hugo@ee.technion.ac.il>
Thread-Topic: [Cfrg] erratum for hmac what do we think...
Thread-Index: AQHSfP9DHMx13a6CPEKiiWX18/QaD6FU54uAgAAdVQCAAAhHgIACCACa
Date: Fri, 3 Feb 2017 10:24:06 +0000
Message-ID: <1486117441931.10734@cs.auckland.ac.nz>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk> <CAAQpVOhTHLHFKgWYFnhpW7fHju1i5N83yzaR3x4+Ea1+M5hzbQ@mail.gmail.com>, <CADi0yUNCXneU4CbWT=KZ6CckR0Dv93XKoAUwRVsskE+MRijOZw@mail.gmail.com>
In-Reply-To: <CADi0yUNCXneU4CbWT=KZ6CckR0Dv93XKoAUwRVsskE+MRijOZw@mail.gmail.com>
Accept-Language: en-NZ, en-GB, en-US
Content-Language: en-NZ
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [130.216.158.4]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/ZwoApaagi7nDx-MvgURN7wJ_nE0>
Cc: "cfrg@irtf.org" <Cfrg@irtf.org>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 10:24:11 -0000

Hugo Krawczyk <hugo@ee.technion.ac.il> writes:=0A=
=0A=
>For example, people wanted to use unlimited passphrases, and between havin=
g=0A=
>people truncate long keys or hash them first, the latter seemed the more=
=0A=
>robust solution. (BTW, the right way to deal with these issues using HMAC =
is=0A=
>to use HKDF.)=0A=
=0A=
Another solution to the fact that there are two external-format keys that m=
ap=0A=
to a single internal-format key (i.e. the > blocksize key and its hash) wou=
ld=0A=
be to reserve the first bit of the internal-format key to denote hashed vs.=
=0A=
non-hashed.=A0 OTOH then people would complain about losing one bit of stre=
ngth,=0A=
or someone would propose an attack based on knowing that the first bit will=
=0A=
almost always be zero (for non-hashed), or something similar.=A0 You can't =
win=0A=
:-).=0A=
=0A=
Peter.=0A=
=0A=
     =


From nobody Fri Feb  3 04:55:40 2017
Return-Path: <ilariliusvaara@welho.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 02F111204D9 for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 04:55:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.098
X-Spam-Level: 
X-Spam-Status: No, score=-5.098 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-3.199, URIBL_BLOCKED=0.001] 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 rr7MZR1BXGoO for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 04:55:37 -0800 (PST)
Received: from welho-filter1.welho.com (welho-filter1.welho.com [83.102.41.23]) by ietfa.amsl.com (Postfix) with ESMTP id DAA43129629 for <cfrg@irtf.org>; Fri,  3 Feb 2017 04:55:36 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by welho-filter1.welho.com (Postfix) with ESMTP id E28E81EDAC; Fri,  3 Feb 2017 14:55:34 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp3.welho.com ([IPv6:::ffff:83.102.41.86]) by localhost (welho-filter1.welho.com [::ffff:83.102.41.23]) (amavisd-new, port 10024) with ESMTP id dtS5i5kRCc4w; Fri,  3 Feb 2017 14:55:34 +0200 (EET)
Received: from LK-Perkele-V2 (87-92-51-204.bb.dnainternet.fi [87.92.51.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp3.welho.com (Postfix) with ESMTPSA id 81A8E2310; Fri,  3 Feb 2017 14:55:34 +0200 (EET)
Date: Fri, 3 Feb 2017 14:55:33 +0200
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: Tibor Jager <tibor.jager@gmail.com>
Message-ID: <20170203125533.GA11515@LK-Perkele-V2.elisa-laajakaista.fi>
References: <20170116200948.6535.qmail@cr.yp.to> <5eeb3d4d-1fc0-35ba-6f47-87fa0d808edc@cs.tcd.ie> <AA42E783-43FC-4C9B-A387-623B5B18B4FB@gmail.com> <708C8E8E-37AE-4B8F-9843-B0F8CDB29229@gmail.com> <CACsn0cm22h8_61CEZjKYyHfnd7vvnC39ZMjhusjWcZKu_Z0zhw@mail.gmail.com> <DA141A39-05C2-4B87-92FA-AE8C5421E104@gmail.com> <0435210f-0aa4-1c34-89d6-0f7a2aef0621@cs.tcd.ie> <D4B4D5E4.82A6D%kenny.paterson@rhul.ac.uk> <CA+yVaTxTbqDUBbX2oTgC6BT2LprOz8uqAbhTRukuqfZD124kSA@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CA+yVaTxTbqDUBbX2oTgC6BT2LprOz8uqAbhTRukuqfZD124kSA@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: ilariliusvaara@welho.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/gxhOA2PnYYSKkXh3naVqJXooO48>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Help with the use of contexts
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 12:55:39 -0000

On Fri, Feb 03, 2017 at 09:16:11AM +0100, Tibor Jager wrote:
> On 30 January 2017 at 12:40, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
> wrote:
> 
> >
> > So: does anyone else want to offer an opinion on the question of contexts?
> >
> >
> Contexts are a clean and relatively simple way to prevent cross-protocol
> attacks, in particular when implemented in an as simple way as proposed
> by Adam and Dan.

Unfortunately, in practice those are anything but clean and simple.

Yes, the theoretical notion is pretty simple (where (context,message)
tuple replaces the message in standard notion of signature security).

The biggest practical problem: Backwards compatiblity, the ever-present
nemsis of security.

There are basically two major problems:

- Non-contextualized schemes, which leave the system wide open for
  any possible attacks. Hopefully nothing major.
- The standard signature API can't accomodiate contexts.

When it comes to TLS, AFAIK the most significant target for possible
cross-protocol attacks is PKIX CSR mechanism.


What I think it would take to deploy contextualization to TLS and
closely associated technologies (PKIX mainly):

- New RSA-PSS (possibly original RSA-PSS), ECDSA and EdDSA signature
  schemes (X.509 algorithms) that are contextualized.
- New RSA and ECDSA key types (X.509 key types; EdDSA can reuse keys) 
- New TLS SignatureScheme values to go with these.

One advantage of having different RSA key type would be that the old
standard one has been jinxed by the broken RSA-PKCS#1v1.5 encryption.
However, there is already standard RSA-PSS key type, which does not
have the same problem AFAIK.


-Ilari


From nobody Fri Feb  3 06:41:43 2017
Return-Path: <natanael.l@gmail.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 49ACB129D9D for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 06:41:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 ygVaaGhp-gxY for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 06:41:39 -0800 (PST)
Received: from mail-yb0-x242.google.com (mail-yb0-x242.google.com [IPv6:2607:f8b0:4002:c09::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6B0B2129D9B for <cfrg@irtf.org>; Fri,  3 Feb 2017 06:41:39 -0800 (PST)
Received: by mail-yb0-x242.google.com with SMTP id w194so872767ybe.1 for <cfrg@irtf.org>; Fri, 03 Feb 2017 06:41:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=682bxI7RpYAiCNYu62huJLhJ6J8yyK80hWj0x5xQxNU=; b=BmPgByPQpHxv7HgL7/nr53ZlyDA3z828xbrXLCyHE79svnKht3ztMAJHoRYT+eN9lb 4kcmBP/0Y2Klx4N+pQq57b4Q9SNxoJNmbqXjb/HUO3VUj9u5kkROkztqFuYB4BsHG/h6 hxAALf9gQktLDjOJelrlr5PdTHPHwP9pnJ12fXvZ7zT2+zfI7eb1p3G5w7EDQpCou4q5 8h/Y29BfIbnpkqIFfYwO94Oe4fBykUCxIgL0kNOhm8wY28B5B0pBDFdPGtKA9XvBJdRf bnhLnT5u7O7zbDkyj17Af3lPyw5KXNaIUUQQHXpPUMVSvY/aoVYVYu0aE4keBIGg916W UIFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=682bxI7RpYAiCNYu62huJLhJ6J8yyK80hWj0x5xQxNU=; b=DRG7G6KCHEXx84QLvu18n/f7pvPhyfRp1Lq4aGFhi2MVSgrd5bHz+8xrlVElrWj9rq h05uK4H3um7aC3EDuztKxfBQ3gsdb+qTxp9IYRWPlJWu7o9lsy76Cji6erT5k0FFJrf5 7SmrG2k0cT2LzP6+shDiCSuZPKVVIYWeyIGRkdSdVq9h075FK2+UzQXjWUfyj4w/m8BB 7UvemSbfrrHBq7xwukSb5/Q/xUcWn2cQY68+TZM7DfJ5izMsxTdcFg/o4WanE/cRCVCa J4bKLK2R3Br5LbLze91Sqdh9uHbmGPRJ1qwt6X+lYtwGkfXMmYTmhIDi64Da9sg8sidR CKsA==
X-Gm-Message-State: AIkVDXLqZeGc/aYPguexHEu5V5gFSLSu+X7dTHCbxSBbJIW+SEfNeRLhByPj3Jn5iWyp0QVPrrXeNFNiAoscIg==
X-Received: by 10.37.31.85 with SMTP id f82mr5802923ybf.188.1486132898548; Fri, 03 Feb 2017 06:41:38 -0800 (PST)
MIME-Version: 1.0
Received: by 10.37.75.67 with HTTP; Fri, 3 Feb 2017 06:41:37 -0800 (PST)
Received: by 10.37.75.67 with HTTP; Fri, 3 Feb 2017 06:41:37 -0800 (PST)
In-Reply-To: <20170203125533.GA11515@LK-Perkele-V2.elisa-laajakaista.fi>
References: <20170116200948.6535.qmail@cr.yp.to> <5eeb3d4d-1fc0-35ba-6f47-87fa0d808edc@cs.tcd.ie> <AA42E783-43FC-4C9B-A387-623B5B18B4FB@gmail.com> <708C8E8E-37AE-4B8F-9843-B0F8CDB29229@gmail.com> <CACsn0cm22h8_61CEZjKYyHfnd7vvnC39ZMjhusjWcZKu_Z0zhw@mail.gmail.com> <DA141A39-05C2-4B87-92FA-AE8C5421E104@gmail.com> <0435210f-0aa4-1c34-89d6-0f7a2aef0621@cs.tcd.ie> <D4B4D5E4.82A6D%kenny.paterson@rhul.ac.uk> <CA+yVaTxTbqDUBbX2oTgC6BT2LprOz8uqAbhTRukuqfZD124kSA@mail.gmail.com> <20170203125533.GA11515@LK-Perkele-V2.elisa-laajakaista.fi>
From: Natanael <natanael.l@gmail.com>
Date: Fri, 3 Feb 2017 15:41:37 +0100
Message-ID: <CAAt2M18=P3WyA-NBZ9S8VS9Q7LsVyOu39+bGFKZbVP5k5AjsKg@mail.gmail.com>
To: Ilari Liusvaara <ilariliusvaara@welho.com>
Content-Type: multipart/alternative; boundary=001a1143e93281d3bb0547a147e7
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/FrwVWC7n7qeNUFZwvSQz3f8af1E>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Help with the use of contexts
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 14:41:41 -0000

--001a1143e93281d3bb0547a147e7
Content-Type: text/plain; charset=UTF-8

Den 3 feb. 2017 13:55 skrev "Ilari Liusvaara" <ilariliusvaara@welho.com>:

On Fri, Feb 03, 2017 at 09:16:11AM +0100, Tibor Jager wrote:
> On 30 January 2017 at 12:40, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
> wrote:

> > So: does anyone else want to offer an opinion on the question of
contexts?
> >
> Contexts are a clean and relatively simple way to prevent cross-protocol
> attacks, in particular when implemented in an as simple way as proposed
> by Adam and Dan.

Unfortunately, in practice those are anything but clean and simple.

Yes, the theoretical notion is pretty simple (where (context,message)
tuple replaces the message in standard notion of signature security).

The biggest practical problem: Backwards compatiblity, the ever-present
nemsis of security.

There are basically two major problems:

- Non-contextualized schemes, which leave the system wide open for
  any possible attacks. Hopefully nothing major.
- The standard signature API can't accomodiate contexts.


Couldn't we go the other way and suggest that people don't simply use the
raw signature primitive, and instead only use a message format that
includes room for contexts? Because in general, only cryptographers should
deal with the raw primitives.

Can anybody find a flaw with the following?

Sign(<private key>;
    SHAKE256(<output length parameter>;
        <[hexadecimal encoded output length in bits],
        [Base64(Signature algorithm + format identifier],
        [Base64(Context identifier)],
        [hexadecimal encoded message hash]>))

= message signature, context

You feed in the message, key and context, the rest is hardcoded in the
context aware software.

Question: should the public key be included among the above inputs?
Depending on the signature scheme it may not always be formatted as
expected by the verifier (malleability, etc), and must thus be forwarded
along with every message.
This could perhaps be algorithm specific, since those algorithms with a
deterministic public key encoding can hash it without publishing it with
the message, and still validate.

The signature algorithm description could use predefined ciphersuite
identifiers (much like TLS does), defining the exact choices in use.

The above SHAKE256 inputs should also be encoded with prefixes like a null
byte to guarantee there can be no manufactured collision spanning across
them.



This should in theory provide a context-equipped signature that will not
collide accidentally with context-less messages, and will not collide
across unique signature algorithms/formats, and in particular will not
collide across contexts.

It should also resist most imaginable attacks including length extension
attacks and similar, while also naturally being able to generate arbitary
length hashes (SHAKE256) for the signing primitives (which may use unusual
input lengths). It even achieves this without truncation or padding!
Another question, should we prefix the SHAKE256 output? Is there any
attacks that would stop?

This format should also stop context-unaware software (which can be
presumed to be intended to NOT be able to parse these message) from being
able to validate these signatures, preventing these signatures from
enabling cross-protocol attacks elsewhere.
While one could verify the signature of the raw SHAKE256 output, it would
be meaningless to most unaware software.

Software only expecting signatures with contexts also wouldn't accept
context-less signatures, as they would be extremely unlikely to validate
(assuming SHAKE256 is secure).
The exception is if a context-less program would be insecure and behave as
a signature oracle or even be malicious and thus could be manipulated to
generate such a SHAKE256 output to be signed, to be used against context
aware software.

(Sorry if anything is incoherent, my phone keyboard app Swiftkey bugged out
and started deleting text. Had to rewrite a lot.)

--001a1143e93281d3bb0547a147e7
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div data-smartmail=3D"gmail_signature" dir=3D"auto"><br>=
</div><div class=3D"gmail_extra" dir=3D"auto"><div class=3D"gmail_quote">De=
n 3 feb. 2017 13:55 skrev &quot;Ilari Liusvaara&quot; &lt;<a href=3D"mailto=
:ilariliusvaara@welho.com">ilariliusvaara@welho.com</a>&gt;:<br type=3D"att=
ribution"><blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-lef=
t:1px #ccc solid;padding-left:1ex"><div class=3D"quoted-text">On Fri, Feb 0=
3, 2017 at 09:16:11AM +0100, Tibor Jager wrote:<br>
&gt; On 30 January 2017 at 12:40, Paterson, Kenny &lt;<a href=3D"mailto:Ken=
ny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt;<br>
&gt; wrote:</div></blockquote></div></div><div class=3D"gmail_extra" dir=3D=
"auto"><div class=3D"gmail_quote"><blockquote class=3D"quote" style=3D"marg=
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=3D"qu=
oted-text">
&gt; &gt; So: does anyone else want to offer an opinion on the question of =
contexts?<br>
&gt; &gt;<br>
&gt; Contexts are a clean and relatively simple way to prevent cross-protoc=
ol<br>
&gt; attacks, in particular when implemented in an as simple way as propose=
d<br>
&gt; by Adam and Dan.<br>
<br>
</div>Unfortunately, in practice those are anything but clean and simple.<b=
r>
<br>
Yes, the theoretical notion is pretty simple (where (context,message)<br>
tuple replaces the message in standard notion of signature security).<br>
<br>
The biggest practical problem: Backwards compatiblity, the ever-present<br>
nemsis of security.<br>
<br>
There are basically two major problems:<br>
<br>
- Non-contextualized schemes, which leave the system wide open for<br>
=C2=A0 any possible attacks. Hopefully nothing major.<br>
- The standard signature API can&#39;t accomodiate contexts.<br></blockquot=
e></div></div><div dir=3D"auto"><br></div><div dir=3D"auto">Couldn&#39;t we=
 go the other way and suggest that people don&#39;t simply use the raw sign=
ature primitive, and instead only use a message format that includes room f=
or contexts? Because in general, only cryptographers should deal with the r=
aw primitives.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Can anybo=
dy find a flaw with the following?=C2=A0</div><div dir=3D"auto"><br></div><=
div dir=3D"auto">Sign(&lt;private key&gt;;</div><div dir=3D"auto">=C2=A0 =
=C2=A0 SHAKE256(&lt;output length parameter&gt;;</div><div dir=3D"auto">=C2=
=A0 =C2=A0 =C2=A0 =C2=A0 &lt;[hexadecimal encoded output length in bits],=
=C2=A0</div><div dir=3D"auto">=C2=A0 =C2=A0 =C2=A0 =C2=A0 [Base64(Signature=
 algorithm + format identifier],=C2=A0</div><div dir=3D"auto">=C2=A0 =C2=A0=
 =C2=A0 =C2=A0 [Base64(Context identifier)],=C2=A0</div><div dir=3D"auto">=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 [hexadecimal encoded message hash]&gt;))=C2=A0<=
/div><div dir=3D"auto"><br></div><div dir=3D"auto">=3D message signature, c=
ontext=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">You feed in=
 the message, key and context, the rest is hardcoded in the context aware s=
oftware.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Question: shoul=
d the public key be included among the above inputs?=C2=A0</div><div dir=3D=
"auto">Depending on the signature scheme it may not always be formatted as =
expected by the verifier (malleability, etc), and must thus be forwarded al=
ong with every message.=C2=A0</div><div dir=3D"auto">This could perhaps be =
algorithm specific, since those algorithms with a deterministic public key =
encoding can hash it without publishing it with the message, and still vali=
date.</div><div dir=3D"auto"><br></div><div dir=3D"auto"><span style=3D"fon=
t-family:sans-serif">The signature algorithm description could use predefin=
ed ciphersuite identifiers (much like TLS does), defining the exact choices=
 in use.=C2=A0</span><br></div><div dir=3D"auto"><br></div><div dir=3D"auto=
">The above SHAKE256 inputs should also be encoded with prefixes like a nul=
l byte to guarantee there can be no manufactured collision spanning across =
them.=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto"><br></div><d=
iv dir=3D"auto"><br></div><div dir=3D"auto">This should in theory provide a=
 context-equipped signature that will not collide accidentally with context=
-less messages, and will not collide across unique signature algorithms/for=
mats, and in particular will not collide across contexts.=C2=A0</div><div d=
ir=3D"auto"><br></div><div dir=3D"auto">It should also resist most imaginab=
le attacks including length extension attacks and similar, while also natur=
ally being able to generate arbitary length hashes (SHAKE256) for the signi=
ng primitives (which may use unusual input lengths). It even achieves this =
without truncation or padding!=C2=A0</div><div dir=3D"auto">Another questio=
n, should we prefix the SHAKE256 output? Is there any attacks that would st=
op?=C2=A0</div><div dir=3D"auto"><br></div><div dir=3D"auto">This format sh=
ould also stop context-unaware software (which can be presumed to be intend=
ed to NOT be able to parse these message) from being able to validate these=
 signatures, preventing these signatures from enabling cross-protocol attac=
ks elsewhere.=C2=A0</div><div dir=3D"auto">While one could verify the signa=
ture of the raw SHAKE256 output, it would be meaningless to most unaware so=
ftware.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Software only ex=
pecting signatures with contexts also wouldn&#39;t accept context-less sign=
atures, as they would be extremely unlikely to validate (assuming SHAKE256 =
is secure).=C2=A0</div><div dir=3D"auto">The exception is if a context-less=
 program would be insecure and behave as a signature oracle or even be mali=
cious and thus could be manipulated to generate such a SHAKE256 output to b=
e signed, to be used against context aware software.</div><div dir=3D"auto"=
><br></div><div dir=3D"auto">(Sorry if anything is incoherent, my phone key=
board app Swiftkey bugged out and started deleting text. Had to rewrite a l=
ot.)</div><div class=3D"gmail_extra" dir=3D"auto"><div class=3D"gmail_quote=
"><blockquote class=3D"quote" style=3D"margin:0 0 0 .8ex;border-left:1px #c=
cc solid;padding-left:1ex"></blockquote></div></div></div>

--001a1143e93281d3bb0547a147e7--


From nobody Fri Feb  3 08:15:17 2017
Return-Path: <dmjacobson@sbcglobal.net>
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 E1038129C19 for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 08:15:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 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_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sbcglobal.net
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 jU6UkCp8mG5T for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 08:15:15 -0800 (PST)
Received: from nm24-vm2.access.bullet.mail.bf1.yahoo.com (nm24-vm2.access.bullet.mail.bf1.yahoo.com [216.109.115.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3192712946F for <Cfrg@irtf.org>; Fri,  3 Feb 2017 08:06:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1486137980; bh=58vP7/T4Z/Rrh37svUerLRiXjZ+R2GjtKYEyUSHyKDM=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=Z/t50zIpC2TKrrA8gn1csGd1EuSCoHtRz/8svMQAJ3dv7YKjihnPOCDVUcCwJjFFl6Z8k8mLdfnylvs+RrmIMxTSzArc1Xx94xX5uhbnx5tkmrjbRKakfzg2lnnAhZBe9SrIvN2DCNLj407RWfYUnQNbZ0mJ5xxJULV7FV4uNOwHpRTLZJQRMlqP+iJc21ZZlORLuFSDd8LUFuK506NhBbMRb5Uw3Le9SZsfY3Rt5CTbnXDC0MIbtY4rfxeAIsrk7DP3xBhJrGJqUtH+AkAonxPcL2PUqJYmrH/I8lTCN6X2Jfdy0YH70G6cVxj5CB2/Y1zTvJP1iNdoWVJsHm8d1w==
Received: from [66.196.81.158] by nm24.access.bullet.mail.bf1.yahoo.com with NNFMP; 03 Feb 2017 16:06:20 -0000
Received: from [98.138.104.98] by tm4.access.bullet.mail.bf1.yahoo.com with NNFMP; 03 Feb 2017 16:06:20 -0000
Received: from [127.0.0.1] by smtp118.sbc.mail.ne1.yahoo.com with NNFMP; 03 Feb 2017 16:06:20 -0000
X-Yahoo-Newman-Id: 222935.53514.bm@smtp118.sbc.mail.ne1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: hSEZXvQVM1mfQ6de5Sc6YO4A3l6gYt1D2T3tXnmnwf6vc0o .PHUK4gX8xXaFHz6yg8oT3YG8TRwI0149vApSY4YQIOUkcbNTDNgZudtI.v8 csT0gziw25F_eKf85t7XKMpXl7dDXVibqPMDGs_avuIhtkudk5YcDxOcXKq_ LjNEjwvLo35nvQk_EguRcEF8eQESre6BMwXfX8ySZnAkAhAfnpXRVfW1AJ6B RTP5yeZWu27M6NE1Bjx944XLBgQfGrvv8k9PpyGFERcdyEtNIoDXVJRdsT47 5yZJyn5gWFoOWJYvwUQfDAO4Z67e3.8PD33m88Djd8O6xNmkcDJNK2Dzk_tp WlbavO8xMY_iljZn8Jz1xRzIUJ6jAwcnTV9omC.adxFzzpiyNXQIMFXxMJcn drK7n796OUl2mZ1grcnVvC0rMbJerQPSZfeh5RJ5tEILeJ34qae1LBCRAAVw Xq54XCK1nCn4x..PgRd3Cr7z.7MV.CfinCvjX3lKH7tGxozXsampi3N3FHUg 529ZNxN7vyByMD6p7PSPMD7NMEEwPNPAKhmfBHxWx2mYF.jIYgK38d6QYUCz mCoGYRZuqLQ--
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
To: Peter Gutmann <pgut001@cs.auckland.ac.nz>, Hugo Krawczyk <hugo@ee.technion.ac.il>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk> <CAAQpVOhTHLHFKgWYFnhpW7fHju1i5N83yzaR3x4+Ea1+M5hzbQ@mail.gmail.com> <CADi0yUNCXneU4CbWT=KZ6CckR0Dv93XKoAUwRVsskE+MRijOZw@mail.gmail.com> <1486117441931.10734@cs.auckland.ac.nz>
From: David Jacobson <dmjacobson@sbcglobal.net>
Message-ID: <3af52483-3793-91cc-54e4-dc383748e713@sbcglobal.net>
Date: Fri, 3 Feb 2017 08:06:18 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <1486117441931.10734@cs.auckland.ac.nz>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/7sQ7BGtbdx7f0NVEYSNs5ufVAvs>
Cc: "cfrg@irtf.org" <Cfrg@irtf.org>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 16:15:16 -0000

On 2/3/17 2:24 AM, Peter Gutmann wrote:
> Hugo Krawczyk <hugo@ee.technion.ac.il> writes:
>
>> For example, people wanted to use unlimited passphrases, and between having
>> people truncate long keys or hash them first, the latter seemed the more
>> robust solution. (BTW, the right way to deal with these issues using HMAC is
>> to use HKDF.)
> Another solution to the fact that there are two external-format keys that map
> to a single internal-format key (i.e. the > blocksize key and its hash) would
> be to reserve the first bit of the internal-format key to denote hashed vs.
> non-hashed.  OTOH then people would complain about losing one bit of strength,
> or someone would propose an attack based on knowing that the first bit will
> almost always be zero (for non-hashed), or something similar.  You can't win
> :-).
>
> Peter.
Okay, we're off on a tangent and into hypotheticals about what could be 
done, so I'll make two suggestions.  They could be used separately or 
together.

1.  The present scheme uses an OPAD of 3636...  .  Instead use 3636... 
when no hashing is done and, say, a9a9... when hashing is done.

2.  In addition to XORing the key with the OPAD, also XOR (at the right 
of the first block) with the length of the key in in bits (or bytes).

    --David Jacobson



From nobody Fri Feb  3 10:28:21 2017
Return-Path: <stephen.farrell@cs.tcd.ie>
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 E773C1294B5 for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 10:28:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.499
X-Spam-Level: 
X-Spam-Status: No, score=-7.499 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_MED=-2.3, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cs.tcd.ie
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 JBgl9_pJJaMt for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 10:28:18 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ACAD21293FB for <Cfrg@irtf.org>; Fri,  3 Feb 2017 10:28:18 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id C5F33BE56 for <Cfrg@irtf.org>; Fri,  3 Feb 2017 18:28:16 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8N9AEU86mESd for <Cfrg@irtf.org>; Fri,  3 Feb 2017 18:28:15 +0000 (GMT)
Received: from [10.87.48.75] (95-45-153-252-dynamic.agg2.phb.bdt-fng.eircom.net [95.45.153.252]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 02AA4BE55 for <Cfrg@irtf.org>; Fri,  3 Feb 2017 18:28:14 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.tcd.ie; s=mail; t=1486146495; bh=m2X0oYwKqe/YcBsZFs6iln2vbqujMUb5RjMVB7XsTeE=; h=Subject:To:References:From:Date:In-Reply-To:From; b=ReasdSS4WerrCySQqwBg1av/ubGk1BifhG80grRdwzZN0QEOnObUcaXsLa0Y5tBRZ 8J9k6CWfPvMiZjHDJHcYa5E9kv89iYij+VsON0GjUdMIucih1vvPHpX1Ma9PE8Avh2 hn/e0zjDOinv7PeYGEBcy1jf3cNFjwNEYZEZHddc=
To: "cfrg@irtf.org" <Cfrg@irtf.org>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Openpgp: id=D66EA7906F0B897FB2E97D582F3C8736805F8DA2; url=
Message-ID: <52b3065b-bb20-9b2b-30da-78b09aace9cb@cs.tcd.ie>
Date: Fri, 3 Feb 2017 18:28:14 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms020108080300050803000304"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/DEXSsJQ62_jy3E46b0MRGh-QNKM>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 18:28:21 -0000

This is a cryptographically signed message in MIME format.

--------------ms020108080300050803000304
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable


Thanks all,

My reading of that thread leads me to conclude there there's consensus
to not verify the erratum on the basis that the threat isn't that
significant and a backwards incompatible change as would be required is
not justified. However, if HMAC were to be updated in a manner that
didn't require backwards compatibility then one would likely consider
this. Hence I've marked this as "hold for document update"

Cheers,
S.

On 02/02/17 02:24, Stephen Farrell wrote:
>=20
> Hiya,
>=20
> There's an erratum posted for hmac [1] where I'd be
> interested in what folks here think.
>=20
> I'm unsure if this is a real problem, esp given that
> there are I guess a lot of implementations.
>=20
> And even if it were a real problem, I'm not sure we'd
> want that fix.
>=20
> Opinions welcome...
>=20
> Thanks,
> S.
>=20
> [1]
> https://www.rfc-editor.org/errata_search.php?rfc=3D2104&eid=3D4809&rec_=
status=3D15&area_acronym=3D&errata_type=3D&wg_acronym=3D&submitter_name=3D=
&stream_name=3D&submit_date=3D&presentation=3Drecords
>=20
>=20
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg
>=20


--------------ms020108080300050803000304
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExDzANBglghkgBZQMEAgEFADCABgkqhkiG9w0BBwEAAKCC
CvIwggUIMIID8KADAgECAhBPzaE7pzYviUJyhmHTFBdnMA0GCSqGSIb3DQEBCwUAMHUxCzAJ
BgNVBAYTAklMM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SUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSMw
IQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQQIQT82hO6c2L4lCcoZh0xQXZzCB
nAYLKoZIhvcNAQkQAgsxgYyggYkwdTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29t
IEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSMwIQYD
VQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQQIQT82hO6c2L4lCcoZh0xQXZzANBgkq
hkiG9w0BAQEFAASCAQCbe6jZEbScFsFefwtZ50McwoQe7DRc5U1a+u6lJ1AspXK0LtxmccBI
vUhKhEGxObocEYtFBXzby25eHGqra1pSbH8pdZ1qcuNT0MkvDsLo6sK0FZPrVJxoUOzJN9f3
Os4XxHG5CkMkwekfiWMJEL3uQ6vDRHscORandzlILAa8NcZt933ZXZZZ/5yrz0IXe81R5Ouq
mCjWI7J5G/16xkHmeDCEwOVtaEU3e5b4VVC+zW3XiJe0oSs9J/TAom4IuomgWRI+kgF8wHXw
OuMsKKzX+0KO56f5g6DPEA5BnAmgB2oGuqLA2l1os+9l8zpl2WPHyfDnJj20fIvnlnHW+KCv
AAAAAAAA
--------------ms020108080300050803000304--


From nobody Fri Feb  3 11:47:41 2017
Return-Path: <quynh.dang@nist.gov>
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 83EC012952B for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 11:47:39 -0800 (PST)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 71Y-p0gDZ_eb for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 11:47:37 -0800 (PST)
Received: from gcc01-dm2-obe.outbound.protection.outlook.com (mail-dm2gcc01on0123.outbound.protection.outlook.com [23.103.201.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8EB3212950C for <Cfrg@irtf.org>; Fri,  3 Feb 2017 11:47:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XFjIAmUcO7ovIU4SrMtHq7Fty5EuJ2Lt2t6Qs1d2wQc=; b=lCFRWEq8vlcLWRuNZ76+KuIunoNNcpb6sLX/1ObHoj2dfW02OQeME1tPkNlxy2okxCnuADdZT8XSbDluNh7ZLNturA+sWwTEkbgiX3LG6uiNUEwCFoyGOYGmOcYftYGvxmFu014NZHX83Zj4vh4g88ufQYU/Ph1dzQNhu5CGbo0=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1463.namprd09.prod.outlook.com (10.173.191.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 3 Feb 2017 19:47:36 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.020; Fri, 3 Feb 2017 19:47:36 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Hugo Krawczyk <hugo@ee.technion.ac.il>
Thread-Topic: [Cfrg] erratum for hmac what do we think...
Thread-Index: AQHSfPuTQmuL3UqM9EiFUsuWG7TDaaFVwYGAgAAdVQCAAAhGgIABxWDP
Date: Fri, 3 Feb 2017 19:47:35 +0000
Message-ID: <CY4PR09MB1464ED9008BCF397A0228C00F34F0@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk> <CAAQpVOhTHLHFKgWYFnhpW7fHju1i5N83yzaR3x4+Ea1+M5hzbQ@mail.gmail.com>, <CADi0yUNCXneU4CbWT=KZ6CckR0Dv93XKoAUwRVsskE+MRijOZw@mail.gmail.com>
In-Reply-To: <CADi0yUNCXneU4CbWT=KZ6CckR0Dv93XKoAUwRVsskE+MRijOZw@mail.gmail.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-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-ms-office365-filtering-correlation-id: 54035ea6-6bbe-4822-bb93-08d44c6d80af
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1463; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1463; 7:6iAc78m866ngcXcBTd1XRaVPkyKmm0G1PVbsaHAMC6DV8v7na86Rvpx1Vfdn37+jJdzQltfLXstCRJ7u4Wi9UhlCCTrmDozYd3+9/mPSB9Bjg1jgXM3XLJOKdmVnq0tL9BebVkYxf7C4GmbeuxvHh6nYvQD73NwTKUVsa9vYRNCQ+weickQ7ma6G1zeqEz59KzOiLAmb8IAr2Qvu7A5Gum+Tzh+Jhyk98jqN3mCdDl5daI3GDLtM6RT78fSRobmq3mQySxc9ueg9YUgIQ/WpmWoH/rZ5y4357WVTZ0J3BFip6iPU8zHS7J0nug+w4KV2eLr3qphfSXc6+w+iXBsxo3gzplxpakBHauEMjzVfyQ/t80SNKAq4Nbcceed/XrlBCujMWr6uyPDy0OLphGfr+bM0oNFNvLtLitPRVNGUrKHFEj9oPOlids0gvlXH9ZsDbRwPKBaek7lUZv/mtOrAtc+wk3iRtkEgqmSMeVEOQnjCC8jvfKhdbi9Kc/op95xbkv6C7Vc1KvNAsA3gG5bERA==
x-microsoft-antispam-prvs: <CY4PR09MB1463984A1AE549E2542CAB34F34F0@CY4PR09MB1463.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(278428928389397);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123555025)(20161123560025)(20161123558025)(20161123564025)(6072148); SRVR:CY4PR09MB1463; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1463; 
x-forefront-prvs: 02070414A1
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39860400002)(39850400002)(39840400002)(39410400002)(39450400003)(52314003)(377454003)(189002)(199003)(6116002)(102836003)(4326007)(3846002)(3660700001)(25786008)(77096006)(6436002)(189998001)(54896002)(9686003)(3280700002)(93886004)(99286003)(53936002)(55016002)(2900100001)(6506006)(66066001)(2906002)(2950100002)(68736007)(38730400001)(33656002)(345774005)(229853002)(8936002)(5660300001)(19627405001)(76176999)(122556002)(7696004)(110136003)(92566002)(101416001)(54356999)(8676002)(50986999)(6246003)(7736002)(97736004)(74316002)(86362001)(106356001)(106116001)(6916009)(81156014)(81166006)(105586002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1463; H:CY4PR09MB1464.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:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR09MB1464ED9008BCF397A0228C00F34F0CY4PR09MB1464namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Feb 2017 19:47:35.8567 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1463
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/V2GAOS95ZfzqpQJIo5G6R8FMlOE>
Cc: "cfrg@irtf.org" <Cfrg@irtf.org>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 19:47:39 -0000

--_000_CY4PR09MB1464ED9008BCF397A0228C00F34F0CY4PR09MB1464namp_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

SGkgSHVnbywNCg0KDQpUaGFuayB5b3UgZm9yIGNhbGxpbmcgbWUgYSBuaWNlIG5hbWUgIlF1aW4i
IQ0KDQoNCklu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zYW5z
LXNlcmlmO2ZvbnQtc2l6ZTpzbWFsbCI+DQo8YnI+DQo8L2Rpdj4NCjxkaXYgY2xhc3M9ImdtYWls
X2RlZmF1bHQiIHN0eWxlPSJmb250LWZhbWlseTp2ZXJkYW5hLHNhbnMtc2VyaWY7Zm9udC1zaXpl
OnNtYWxsIj4NCjxicj4NCjwvZGl2Pg0KPGRpdiBjbGFzcz0iZ21haWxfZGVmYXVsdCIgc3R5bGU9
ImZvbnQtZmFtaWx5OnZlcmRhbmEsc2Fucy1zZXJpZjtmb250LXNpemU6c21hbGwiPg0KPGJyPg0K
PC9kaXY+DQo8YnI+DQo8YnI+DQo8L2Rpdj4NCjwvZGl2Pg0KPC9kaXY+DQo8L2JvZHk+DQo8L2h0
bWw+DQo=

--_000_CY4PR09MB1464ED9008BCF397A0228C00F34F0CY4PR09MB1464namp_--


From nobody Fri Feb  3 11:49:15 2017
Return-Path: <msj@nthpermutation.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 6B79812950C for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 11:49:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=nthpermutation-com.20150623.gappssmtp.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 goVIli6yAiBk for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 11:49:11 -0800 (PST)
Received: from mail-qt0-x230.google.com (mail-qt0-x230.google.com [IPv6:2607:f8b0:400d:c0d::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0B0BD129535 for <cfrg@irtf.org>; Fri,  3 Feb 2017 11:49:11 -0800 (PST)
Received: by mail-qt0-x230.google.com with SMTP id v23so50611004qtb.0 for <cfrg@irtf.org>; Fri, 03 Feb 2017 11:49:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nthpermutation-com.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to; bh=7gvkxxf5MiEY745LuKu9Z16e7E172r5Mv/6I1R6cl80=; b=Y1jdJB7GG3uSnmHKs+Hxso763We0oladliPpHcWg3D8gSMYbnOZdELQHo9xhrUtTJG egOe6/cdOEOn/hoCN5KOB/iB9PPaR9XKaZjy5Jo+oL20jxjydvJ/zwGM20holku/oiL+ kkxyGQwdhOSbIeiGZ0jqa4DPbYwpFltmh1MdHUzE2NYIiTWakKfH5iUzAg2iyhjOQcJ8 Apw+OT3aGJxWPj/YKf3A/RwqArT35izoLkyeSJ9tkn0gvuiFPzNqPhTmqKM2F9xYzEy2 ErRiE2G/xvor0wGlVgoHukRNVnbAs34rA25B6gNR+ph87dMgzFWlboWBRcUlunMaS/mb /SpQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to; bh=7gvkxxf5MiEY745LuKu9Z16e7E172r5Mv/6I1R6cl80=; b=X6Vrvx7Tv+S6IS93txZA938c2iZ9kW4p1sfCdVsedUOteyyTIBFsQUxIoMqdRDIG6S Gqfol/hlDGg9qddeOf+hp0W26civhAXZ/EFh6atazteu1x6KRT5M4fuKQd519bdVtLzw 5bJkvR+trcwRMcsb1ogCdURGrlmJMZEUP1a8d2XxZYQan0P7w8/at0HfbrcF1xV8cMFq 3P4RDGOm7vuycVu+WEZxzgbie8RoD88YYHOqAdSIg9ieJmtV4DXWt8HZ+qjM86gQ53Oo k3ItN8ItxZgDNZgF5524947hT6wL5T8PlUYM/WQhRc5ux76msnUF7MjoGa7vHvYVmKdM dIhQ==
X-Gm-Message-State: AMke39kuso6aDWZPjwwcOpscyvXbQnuF0DpyORlJCzWGwzyy9xMvQC1EcBMDPwhgHdAANg==
X-Received: by 10.55.80.136 with SMTP id e130mr16286043qkb.52.1486151349691; Fri, 03 Feb 2017 11:49:09 -0800 (PST)
Received: from ?IPv6:2601:152:4400:9b5f:1139:d049:134:71bb? ([2601:152:4400:9b5f:1139:d049:134:71bb]) by smtp.gmail.com with ESMTPSA id i132sm25299903qke.44.2017.02.03.11.49.08 for <cfrg@irtf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Feb 2017 11:49:08 -0800 (PST)
To: cfrg@irtf.org
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> <52b3065b-bb20-9b2b-30da-78b09aace9cb@cs.tcd.ie>
From: Michael StJohns <msj@nthpermutation.com>
Message-ID: <f548bd9e-5aa9-9dec-a203-02bc7ef6687f@nthpermutation.com>
Date: Fri, 3 Feb 2017 14:49:14 -0500
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <52b3065b-bb20-9b2b-30da-78b09aace9cb@cs.tcd.ie>
Content-Type: multipart/alternative; boundary="------------EBE595310E1F8F2DED6A1B08"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/Ni1W3iJQDb30Y8rTnWMOS2H8NCA>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 19:49:13 -0000

This is a multi-part message in MIME format.
--------------EBE595310E1F8F2DED6A1B08
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

On 2/3/2017 1:28 PM, Stephen Farrell wrote:
> Thanks all,
>
> My reading of that thread leads me to conclude there there's consensus
> to not verify the erratum on the basis that the threat isn't that
> significant and a backwards incompatible change as would be required is
> not justified. However, if HMAC were to be updated in a manner that
> didn't require backwards compatibility then one would likely consider
> this. Hence I've marked this as "hold for document update"

I'd like to reiterate that RFC 2104 (or substantially similar text) was 
a feeder/submission for the FIPS 198-1 standard.  Its also old enough 
that it doesn't have the boilerplate we've since added that would allow 
for any changes/errata.  In that mode, its similar to the original 
publications of PKCS1, 7 and 12 as informational RFCs and we required a 
grant of rights to be able to gain change control over them.

Instead of making changes here to a document that's been OBEd by first 
being published as a FIPS  (FIPS 198) and second by an update in 2008 
(FIPS 198-1), let me suggest that comments should be bundled up and 
addressed to that document instead.

It looks like FIPS 198 is up for review in 2018 and changes might be 
applied then.

Perhaps I'm wrong about this, but we - the IETF - do not own change 
control over every RFC.

Mike


>
> Cheers,
> S.
>
> On 02/02/17 02:24, Stephen Farrell wrote:
>> Hiya,
>>
>> There's an erratum posted for hmac [1] where I'd be
>> interested in what folks here think.
>>
>> I'm unsure if this is a real problem, esp given that
>> there are I guess a lot of implementations.
>>
>> And even if it were a real problem, I'm not sure we'd
>> want that fix.
>>
>> Opinions welcome...
>>
>> Thanks,
>> S.
>>
>> [1]
>> https://www.rfc-editor.org/errata_search.php?rfc=2104&eid=4809&rec_status=15&area_acronym=&errata_type=&wg_acronym=&submitter_name=&stream_name=&submit_date=&presentation=records
>>
>>
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> https://www.irtf.org/mailman/listinfo/cfrg
>>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg



--------------EBE595310E1F8F2DED6A1B08
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 2/3/2017 1:28 PM, Stephen Farrell
      wrote:<br>
    </div>
    <blockquote
      cite="mid:52b3065b-bb20-9b2b-30da-78b09aace9cb@cs.tcd.ie"
      type="cite">
      <pre wrap="">
Thanks all,

My reading of that thread leads me to conclude there there's consensus
to not verify the erratum on the basis that the threat isn't that
significant and a backwards incompatible change as would be required is
not justified. However, if HMAC were to be updated in a manner that
didn't require backwards compatibility then one would likely consider
this. Hence I've marked this as "hold for document update"</pre>
    </blockquote>
    <br>
    I'd like to reiterate that RFC 2104 (or substantially similar text)
    was a feeder/submission for the FIPS 198-1 standard.  Its also old
    enough that it doesn't have the boilerplate we've since added that
    would allow for any changes/errata.  In that mode, its similar to
    the original publications of PKCS1, 7 and 12 as informational RFCs
    and we required a grant of rights to be able to gain change control
    over them.  <br>
     <br>
    Instead of making changes here to a document that's been OBEd by
    first being published as a FIPS  (FIPS 198) and second by an update
    in 2008 (FIPS 198-1), let me suggest that comments should be bundled
    up and addressed to that document instead.<br>
    <br>
    It looks like FIPS 198 is up for review in 2018 and changes might be
    applied then.<br>
    <br>
    Perhaps I'm wrong about this, but we - the IETF - do not own change
    control over every RFC.  <br>
    <br>
    Mike<br>
    <br>
    <br>
    <blockquote
      cite="mid:52b3065b-bb20-9b2b-30da-78b09aace9cb@cs.tcd.ie"
      type="cite">
      <pre wrap="">

Cheers,
S.

On 02/02/17 02:24, Stephen Farrell wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">
Hiya,

There's an erratum posted for hmac [1] where I'd be
interested in what folks here think.

I'm unsure if this is a real problem, esp given that
there are I guess a lot of implementations.

And even if it were a real problem, I'm not sure we'd
want that fix.

Opinions welcome...

Thanks,
S.

[1]
<a class="moz-txt-link-freetext" href="https://www.rfc-editor.org/errata_search.php?rfc=2104&amp;eid=4809&amp;rec_status=15&amp;area_acronym=&amp;errata_type=&amp;wg_acronym=&amp;submitter_name=&amp;stream_name=&amp;submit_date=&amp;presentation=records">https://www.rfc-editor.org/errata_search.php?rfc=2104&amp;eid=4809&amp;rec_status=15&amp;area_acronym=&amp;errata_type=&amp;wg_acronym=&amp;submitter_name=&amp;stream_name=&amp;submit_date=&amp;presentation=records</a>



_______________________________________________
Cfrg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a>
<a class="moz-txt-link-freetext" href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a>

</pre>
      </blockquote>
      <pre wrap="">
</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cfrg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a>
<a class="moz-txt-link-freetext" href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>

--------------EBE595310E1F8F2DED6A1B08--


From nobody Fri Feb  3 12:33:06 2017
Return-Path: <hugokraw@gmail.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 5D6CB12996D for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 12:33:05 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level: 
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 IOYta66PtUpv for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 12:33:03 -0800 (PST)
Received: from mail-yb0-x235.google.com (mail-yb0-x235.google.com [IPv6:2607:f8b0:4002:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E1C5A129521 for <Cfrg@irtf.org>; Fri,  3 Feb 2017 12:33:02 -0800 (PST)
Received: by mail-yb0-x235.google.com with SMTP id o65so9554192ybo.2 for <Cfrg@irtf.org>; Fri, 03 Feb 2017 12:33:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=UHxNliFWwYgFInpCZxcrGdnXdOJK/HhGCr7xu2y02UI=; b=vWXfvF9spP2hC0jwqexhjeOc9Z2xJ+5U7Uj7Tkpl3N0nPGI20iQMMCNd3dnrLMqnGr GJBzGP9H1SOixpo4kbhr5nrI1qqAIRlqNx9KEUgaAHT/sKY1jIYYsdjQxDBmszMvMOBi HJSTeoM978m+BrILJen0q7eEHs47WpFgk/oD8fnM27MsNqNJls2rI3sJXju/83ZGAcCc YhbytWIhrDyBPlxoVg1DILbKa53BWHHprZ9DUUpoBwvLIRr6BZja/omyPNKlbvahEZZr Z1meM6javBcZz9mi7y596zxmK7NVd1AtmfPUqBx+R+isPBhBFJLPzrvm0tSdbj5VRf8I uG6Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=UHxNliFWwYgFInpCZxcrGdnXdOJK/HhGCr7xu2y02UI=; b=rUi96aqkIHIiE+qgA7v2yFD0Qf6dI3VnllrlDD9ZPtRPoOe/5hoT8Qj2GovNUjIC8M QHs1yMuUWzf3A+WZMJt+/baHFlGX3Yam6D0iLDJ2NxS7ovccLJnFBsCgbeNihWEhBMZT R5r2F24jnY4xatyzvaLhF6XUGAzGJ/I0qzMAM5j0qS3uwgeBJ+oRN4hAOlnhMGSLCA0y pjOmyrip+MMxA+aCcoDEScwLWWX6g/HcbvEtIYeB6aB6LurCQGZGVRBQvjiJSfUghpTF cAM+8qCaWV41yjISQ/DUcWDhpuseREe8BHmAe4IyJfphnrnAErufuthRnF4QNEFkRGFA gyHQ==
X-Gm-Message-State: AIkVDXJPlJTgH+IuzNezXhSDjZNq4tv9f647cQ2qQqqojs/f3DGbSwLxt8OcokTbhNBtPj/Jp7KF8jUPYDUCNA==
X-Received: by 10.37.45.19 with SMTP id t19mr7441754ybt.177.1486153981990; Fri, 03 Feb 2017 12:33:01 -0800 (PST)
MIME-Version: 1.0
Sender: hugokraw@gmail.com
Received: by 10.37.44.82 with HTTP; Fri, 3 Feb 2017 12:32:31 -0800 (PST)
In-Reply-To: <CY4PR09MB1464ED9008BCF397A0228C00F34F0@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> <D4B8ED5B.83EFC%kenny.paterson@rhul.ac.uk> <CAAQpVOhTHLHFKgWYFnhpW7fHju1i5N83yzaR3x4+Ea1+M5hzbQ@mail.gmail.com> <CADi0yUNCXneU4CbWT=KZ6CckR0Dv93XKoAUwRVsskE+MRijOZw@mail.gmail.com> <CY4PR09MB1464ED9008BCF397A0228C00F34F0@CY4PR09MB1464.namprd09.prod.outlook.com>
From: Hugo Krawczyk <hugo@ee.technion.ac.il>
Date: Fri, 3 Feb 2017 15:32:31 -0500
X-Google-Sender-Auth: p12PHl7nbXUu9VBzjD3dJhdfSx8
Message-ID: <CADi0yUO4hp_-4nxVCXy_8e_w7s0xyh+Jq0Bgw5Rmr0B0jt7iww@mail.gmail.com>
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
Content-Type: multipart/alternative; boundary=94eb2c1b0ba02dae1e0547a630f0
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/m8rKTuyGYoduFOznrjgIzYXx1LM>
Cc: "cfrg@irtf.org" <Cfrg@irtf.org>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 20:33:05 -0000

--94eb2c1b0ba02dae1e0547a630f0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Sorry Quin ;-)

I knew I had to go look at the spelling but was rushing too much... Let's
see how you spell my last name from memory :-)

To the technical point: regardless of what could have been the best
resolution to variable length keys, neither of these considerations
invalidate HMAC as a PRF. Your statement "HMAC is not a PRF" is wrong (and
can add unjustified and unwanted confusion).

As I said, practice constraints us in different ways and produce
sub-optimal results. But in the case of HMAC, really, it is hard to argue
with 20 years of widespread and robust use. If this was a real issue, it
would have come in some significant practical situations but it hasn't. I
see no justification to change the standard after (exactly) 20 years.

Hugo


On Fri, Feb 3, 2017 at 2:47 PM, Dang, Quynh (Fed) <quynh.dang@nist.gov>
wrote:

> Hi Hugo,
>
>
> Thank you for calling me a nice name "Quin"!
>
>
> In the HMAC paper, the key length is the IV length (the length of the has=
h
> function output). But in the RFC specification of the HMAC, the key is
> "any" length.
>
>
> I am sure you saw that b bits of  (key||00000....) created the situation
> that many keys produced the same output from the function HMAC for the sa=
me
> message input when the key's length was not a fixed value. If you wanted =
a
> variable key length, you would have had at least 2 options: (1) adding
> encoding for key length and put some restriction on key length so that th=
e
> key and its length encoding did not get longer than the hash function inp=
ut
> block (avoiding one hash function call to improve performance) or (2)
> always hashing the key to produce the exact length L for the key.
>
>
> Quynh.
> ------------------------------
> *From:* Cfrg <cfrg-bounces@irtf.org> on behalf of Hugo Krawczyk <
> hugo@ee.technion.ac.il>
> *Sent:* Thursday, February 2, 2017 11:22:25 AM
> *Cc:* cfrg@irtf.org
> *Subject:* Re: [Cfrg] erratum for hmac what do we think...
>
> =E2=80=8BThese cases of  related key setting=E2=80=8Bs are well known and=
 can indeed be
> seen as a weakness of HMAC. They are part of the engineering trade-offs y=
ou
> have to do for accommodating a design to the real world (and requirements
> from often chaotic IETF discussions). There were things we would have lik=
ed
> to do differently such as avoiding the longer-than-block keys or having
> different keys for the inner and outer hash applications, but that would
> have made the design problematic in different ways. The particular issue =
of
> not disallowing keys longer than a block came at least from an IKE
> requirement. For example, people wanted to use unlimited passphrases, and
> between having people truncate long keys or hash them first, the latter
> seemed the more robust solution. (BTW, the right way to deal with these
> issues using HMAC is to use HKDF.)
>
> Anyway, over the years I heard some rare instances where this led to a
> weakness (I have myself shown such cases) but either these were theoretic=
al
> settings or some forms of bad practice (e.g. making the hash of a secret
> key public). The paper cited earlier by Dan Brown also notes that this
> property makes HMAC with long keys non-indifferentiable from a random
> oracle. Again, not the nicest property but hardly something to worry much
> about in practice. Also, contrary to what Quin said, this property does n=
ot
> contradict HMAC being a PRF (PRFs can have related key weaknesses).
>
> After 20 years of widespread use, it seems to me that (again) the
> engineering considerations (not breaking existing implementations) are mo=
re
> significant than the potential problems of such related key issues.
>
> Hugo
>
>
>
>
>
>
>

--94eb2c1b0ba02dae1e0547a630f0
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:verdana,=
sans-serif;font-size:small">Sorry Quin ;-)</div><div class=3D"gmail_default=
" style=3D"font-family:verdana,sans-serif;font-size:small"><br></div><div c=
lass=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-size:sm=
all">I knew I had to go look at the spelling but was rushing too much... Le=
t&#39;s see how you spell my last name from memory :-)</div><div class=3D"g=
mail_default" style=3D"font-family:verdana,sans-serif;font-size:small"><br>=
</div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;=
font-size:small">To the technical point: regardless of what could have been=
 the best resolution to variable length keys, neither of these consideratio=
ns invalidate HMAC as a PRF. Your statement &quot;HMAC is not a PRF&quot; i=
s wrong (and can add unjustified and unwanted confusion).</div><div class=
=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-size:small"=
><br></div><div class=3D"gmail_default" style=3D"font-family:verdana,sans-s=
erif;font-size:small">As I said, practice constraints us in different ways =
and produce sub-optimal results. But in the case of HMAC, really, it is har=
d to argue with 20 years of widespread and robust use. If this was a real i=
ssue, it would have come in some significant practical situations but it ha=
sn&#39;t. I see no justification to change the standard after (exactly) 20 =
years.=C2=A0</div><div class=3D"gmail_default" style=3D"font-family:verdana=
,sans-serif;font-size:small"><br></div><div class=3D"gmail_default" style=
=3D"font-family:verdana,sans-serif;font-size:small">Hugo</div><div class=3D=
"gmail_default" style=3D"font-family:verdana,sans-serif;font-size:small"><b=
r></div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">On =
Fri, Feb 3, 2017 at 2:47 PM, Dang, Quynh (Fed) <span dir=3D"ltr">&lt;<a hre=
f=3D"mailto:quynh.dang@nist.gov" target=3D"_blank">quynh.dang@nist.gov</a>&=
gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 =
0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>

<div id=3D"m_-5253717784021949490divtagdefaultwrapper" style=3D"font-size:1=
2pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif" dir=3D"lt=
r">
<p>Hi Hugo,</p>
<p><br>
</p>
<p>Thank you for calling me a nice name &quot;Quin&quot;!</p>
<p><br>
</p>
<p>In the HMAC paper, the key length is the IV length (the length of the ha=
sh function output). But in the RFC specification of the HMAC, the key is &=
quot;any&quot; length.</p>
<p><br>
</p>
<p>I am sure you saw that b bits of =C2=A0(key||00000....) created the situ=
ation that many keys produced the same output from the function HMAC for th=
e same message input when the=C2=A0key&#39;s length was not a fixed value. =
If you wanted a variable key length, you would
 have had at least 2 options: (1)=C2=A0adding encoding for key length and p=
ut some restriction on key length so that the key and its length encoding d=
id not get longer than the hash function input block (avoiding one hash fun=
ction call to improve performance) or
 (2) always hashing the key to produce the exact length L for the key.=C2=
=A0</p>
<p><br>
</p>
<p>Quynh. =C2=A0</p>
</div>
<hr style=3D"display:inline-block;width:98%">
<div id=3D"m_-5253717784021949490divRplyFwdMsg" dir=3D"ltr"><font face=3D"C=
alibri, sans-serif" style=3D"font-size:11pt" color=3D"#000000"><b>From:</b>=
 Cfrg &lt;<a href=3D"mailto:cfrg-bounces@irtf.org" target=3D"_blank">cfrg-b=
ounces@irtf.org</a>&gt; on behalf of Hugo Krawczyk &lt;<a href=3D"mailto:hu=
go@ee.technion.ac.il" target=3D"_blank">hugo@ee.technion.ac.il</a>&gt;<br>
<b>Sent:</b> Thursday, February 2, 2017 11:22:25 AM<br>
<b>Cc:</b> <a href=3D"mailto:cfrg@irtf.org" target=3D"_blank">cfrg@irtf.org=
</a><span class=3D""><br>
<b>Subject:</b> Re: [Cfrg] erratum for hmac what do we think...</span></fon=
t>
<div>=C2=A0</div>
</div><div><div class=3D"h5">
<div>
<div dir=3D"ltr">
<div class=3D"gmail_extra">
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
=E2=80=8BThese cases of =C2=A0related key setting=E2=80=8Bs are well known =
and can indeed be seen as a weakness of HMAC. They are part of the engineer=
ing trade-offs you have to do for accommodating a design to the real world =
(and requirements from often chaotic IETF discussions).
 There were things we would have liked to do differently such as avoiding t=
he longer-than-block keys or having different keys for the inner and outer =
hash applications, but that would have made the design problematic in diffe=
rent ways. The particular issue
 of not disallowing keys longer than a block came at least from an IKE requ=
irement. For example, people wanted to use unlimited passphrases, and betwe=
en having people truncate long keys or hash them first, the latter seemed t=
he more robust solution. (BTW, the
 right way to deal with these issues using HMAC is to use HKDF.)</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
<br>
</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
Anyway, over the years I heard some rare instances where this led to a weak=
ness (I have myself shown such cases) but either these were theoretical set=
tings or some forms of bad practice (e.g. making the hash of a secret key p=
ublic). The paper cited earlier
 by Dan Brown also notes that this property makes HMAC with long keys non-i=
ndifferentiable from a random oracle. Again, not the nicest property but ha=
rdly something to worry much about in practice. Also, contrary to what Quin=
 said, this property does not contradict
 HMAC being a PRF (PRFs can have related key weaknesses).</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
<br>
</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
After 20 years of widespread use, it seems to me that (again) the engineeri=
ng considerations (not breaking existing implementations) are more signific=
ant than the potential problems of such related key issues.=C2=A0</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
<br>
</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
Hugo</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
<br>
</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
<br>
</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
<br>
</div>
<div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-s=
ize:small">
<br>
</div>
<br>
<br>
</div>
</div>
</div>
</div></div></div>

</blockquote></div><br></div>

--94eb2c1b0ba02dae1e0547a630f0--


From nobody Fri Feb  3 12:41:28 2017
Return-Path: <stephen.farrell@cs.tcd.ie>
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 9714C1294DD for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 12:41:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.499
X-Spam-Level: 
X-Spam-Status: No, score=-7.499 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_MED=-2.3, RP_MATCHES_RCVD=-3.199, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cs.tcd.ie
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 8YU9qNPi6s_9 for <cfrg@ietfa.amsl.com>; Fri,  3 Feb 2017 12:41:24 -0800 (PST)
Received: from mercury.scss.tcd.ie (mercury.scss.tcd.ie [134.226.56.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D55CF129474 for <cfrg@irtf.org>; Fri,  3 Feb 2017 12:41:23 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by mercury.scss.tcd.ie (Postfix) with ESMTP id 78D55BDCC; Fri,  3 Feb 2017 20:41:21 +0000 (GMT)
X-Virus-Scanned: Debian amavisd-new at scss.tcd.ie
Received: from mercury.scss.tcd.ie ([127.0.0.1]) by localhost (mercury.scss.tcd.ie [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FFOCnLRdYypR; Fri,  3 Feb 2017 20:41:19 +0000 (GMT)
Received: from [10.87.48.75] (95-45-153-252-dynamic.agg2.phb.bdt-fng.eircom.net [95.45.153.252]) by mercury.scss.tcd.ie (Postfix) with ESMTPSA id 92669BE50; Fri,  3 Feb 2017 20:41:18 +0000 (GMT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.tcd.ie; s=mail; t=1486154479; bh=OneTi0f9mWL17yDwXcvBpDCAn2RIRNgPNFKMpRVfNNQ=; h=Subject:To:References:From:Date:In-Reply-To:From; b=nsD0npTbk9iXh9ellGU834UXRb2g53Gjb24HmWwaYuTetHVxsmaoG6Y8gjUzRR+L2 +UD1IOTxWtVxYBZBffn9mIpCr7UKOAW40bYIIm9EX/MW98sLrbxHPPlK3QcK8HboF1 QFw3gUkBaCXiIE2wrjEnoH35DlWZs3Y2xUl9gY7U=
To: Michael StJohns <msj@nthpermutation.com>, cfrg@irtf.org
References: <666efaf7-b660-e20b-8a8a-8949a64e9bed@cs.tcd.ie> <52b3065b-bb20-9b2b-30da-78b09aace9cb@cs.tcd.ie> <f548bd9e-5aa9-9dec-a203-02bc7ef6687f@nthpermutation.com>
From: Stephen Farrell <stephen.farrell@cs.tcd.ie>
Openpgp: id=D66EA7906F0B897FB2E97D582F3C8736805F8DA2; url=
Message-ID: <40ae1271-71ba-2fd2-c539-eadd993c3a7b@cs.tcd.ie>
Date: Fri, 3 Feb 2017 20:41:17 +0000
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <f548bd9e-5aa9-9dec-a203-02bc7ef6687f@nthpermutation.com>
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="------------ms020208050802090702000203"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/QO4rKgKtdhPWExqnklTMf2mDJiw>
Subject: Re: [Cfrg] erratum for hmac what do we think...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 03 Feb 2017 20:41:26 -0000

This is a cryptographically signed message in MIME format.

--------------ms020208050802090702000203
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable



On 03/02/17 19:49, Michael StJohns wrote:
> On 2/3/2017 1:28 PM, Stephen Farrell wrote:
>> Thanks all,
>>
>> My reading of that thread leads me to conclude there there's consensus=

>> to not verify the erratum on the basis that the threat isn't that
>> significant and a backwards incompatible change as would be required i=
s
>> not justified. However, if HMAC were to be updated in a manner that
>> didn't require backwards compatibility then one would likely consider
>> this. Hence I've marked this as "hold for document update"
>=20
> I'd like to reiterate that RFC 2104 (or substantially similar text) was=

> a feeder/submission for the FIPS 198-1 standard.  Its also old enough
> that it doesn't have the boilerplate we've since added that would allow=

> for any changes/errata.  In that mode, its similar to the original
> publications of PKCS1, 7 and 12 as informational RFCs and we required a=

> grant of rights to be able to gain change control over them.
>=20
> Instead of making changes here to a document that's been OBEd by first
> being published as a FIPS  (FIPS 198) and second by an update in 2008
> (FIPS 198-1), let me suggest that comments should be bundled up and
> addressed to that document instead.
>=20
> It looks like FIPS 198 is up for review in 2018 and changes might be
> applied then.
>=20
> Perhaps I'm wrong about this, but we - the IETF - do not own change
> control over every RFC.

I don't think we need worry about process nits like that tbh. The
distinction between a rejected erratum, a hold-for-document-update
erratum and an erratum that's been posted but ignored for 6 months
isn't really of interest:-)

I would worry a bit about it if we approved an erratum that broke
interop, which we could have done, but didn't do, in this case.

And if/when someone wants to revise hmac then I hope they do talk
with the IETF about that. Most, but not all, RFCs that use that do
support alg agility so there could be done potential breakage to
consider.

S.


>=20
> Mike
>=20
>=20
>>
>> Cheers,
>> S.
>>
>> On 02/02/17 02:24, Stephen Farrell wrote:
>>> Hiya,
>>>
>>> There's an erratum posted for hmac [1] where I'd be
>>> interested in what folks here think.
>>>
>>> I'm unsure if this is a real problem, esp given that
>>> there are I guess a lot of implementations.
>>>
>>> And even if it were a real problem, I'm not sure we'd
>>> want that fix.
>>>
>>> Opinions welcome...
>>>
>>> Thanks,
>>> S.
>>>
>>> [1]
>>> https://www.rfc-editor.org/errata_search.php?rfc=3D2104&eid=3D4809&re=
c_status=3D15&area_acronym=3D&errata_type=3D&wg_acronym=3D&submitter_name=
=3D&stream_name=3D&submit_date=3D&presentation=3Drecords
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Cfrg mailing list
>>> Cfrg@irtf.org
>>> https://www.irtf.org/mailman/listinfo/cfrg
>>>
>>
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> https://www.irtf.org/mailman/listinfo/cfrg
>=20
>=20
>=20
>=20
>=20
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg
>=20


--------------ms020208050802090702000203
Content-Type: application/pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S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CWCGSAFlAwQBKjALBglghkgBZQMEAQIwCgYIKoZIhvcN
AwcwDgYIKoZIhvcNAwICAgCAMA0GCCqGSIb3DQMCAgFAMAcGBSsOAwIHMA0GCCqGSIb3DQMC
AgEoMIGaBgkrBgEEAYI3EAQxgYwwgYkwdTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0
Q29tIEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSMw
IQYDVQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQQIQT82hO6c2L4lCcoZh0xQXZzCB
nAYLKoZIhvcNAQkQAgsxgYyggYkwdTELMAkGA1UEBhMCSUwxFjAUBgNVBAoTDVN0YXJ0Q29t
IEx0ZC4xKTAnBgNVBAsTIFN0YXJ0Q29tIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MSMwIQYD
VQQDExpTdGFydENvbSBDbGFzcyAxIENsaWVudCBDQQIQT82hO6c2L4lCcoZh0xQXZzANBgkq
hkiG9w0BAQEFAASCAQANcDxrkeYgYDkTY0CM7nfNY8bRdB6BS44rlJYsy6EDRK5pns+YQDFP
MpZuGe8yxlP8R86J3iY3+LAa4feYX/vX9M81vDogJ1/4+qMRaXvTynjdB4wnMgH1JZ0DLbfi
Rfue0CUrXsYjBIv1xOCh7Q4yUlUjrLLXOUWKBSvSP+RaNJwiZGvBA/1zGcqZCJCLtU8/re3X
gM2ed6CzhmsuUiYc+m5pnVhRj5lfAwigqyOO50LkuuNdkNQd/YTLoUl3TiY3jIpsgjgnczQz
bzde35021RBHoDGRIQhu/ICJmt2eeMck1WF1dTy9VXUQcSMZ+6ALehxch8F5arlFmM3gAsl0
AAAAAAAA
--------------ms020208050802090702000203--


From nobody Sat Feb  4 23:48:05 2017
Return-Path: <tibor.jager@gmail.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 6EAC51294C9 for <cfrg@ietfa.amsl.com>; Sat,  4 Feb 2017 23:48:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level: 
X-Spam-Status: No, score=-2.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 HgGf5QIb6mBR for <cfrg@ietfa.amsl.com>; Sat,  4 Feb 2017 23:48:03 -0800 (PST)
Received: from mail-qk0-x22e.google.com (mail-qk0-x22e.google.com [IPv6:2607:f8b0:400d:c09::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E8C3112945C for <cfrg@irtf.org>; Sat,  4 Feb 2017 23:48:02 -0800 (PST)
Received: by mail-qk0-x22e.google.com with SMTP id 11so29331929qkl.3 for <cfrg@irtf.org>; Sat, 04 Feb 2017 23:48:02 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to;  bh=8DvZzCCgiZk0shW1SebR+twKG/r+RFkMcbgvEjElcNM=; b=JXdaIT3X2CFM8xtknTd1umVfhCTL+6gMw39Pw7nUsfWOiXLa6iK/OPqMggWJDBGZdm upeFaOOGhrQ7qt1RSBcTw+6Sd+ARDdTnHzXUe4cvVGTB9YTqrbJCejyLCpzC9vN1Dno/ Ij0xDZ0XSePNvgMAqFLNMvAMtp+XyCf13Xt08sauUPCIDkGvlUO8bSyc+rhugviPYUcw kU2WWM3IWBar5i/2WwfJprx2XnUYkpXV945W95SZ8bpBLjmTTklsDoQ+MdmQgjTYL/de 6zGFNUdxe6UVSTdXYt34bn77QzA2qC2K7NzaE3xEYpdjWZ0XEYFD+4vjkvodOj5FdBwO W0xw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=8DvZzCCgiZk0shW1SebR+twKG/r+RFkMcbgvEjElcNM=; b=s6cVhAvAmuLE/sXWYztXNMrfNYl7Ms+x4OD3GNNru+vorgHvhZDdiQNMSgCt09G3hH UYRj6V9o2f84uhPbZ7BsMrJrju3sa6HkkhdQ31I+FsVZIMMOHufRnbMuC3VS7O95ZMCU VdiIN52i+vsH8Uw/9tcPV8tZJ57Chmht3h0xbgYkyfdredSaXygW0VtCQt6mswPx0OTL tQmhCJwQte5mmEJiulsHEX/KhFCgm/RXdEp+ZSi1ZUtqZtVKWgUgv980EmlOI9LoI62a SeOBGoeEQjYhfOhEVYlU8Hk+odPilWFzwKBoUl0PMdH93qLDLBH6T0e3q4RYpi18Cero 5shQ==
X-Gm-Message-State: AMke39mlfOCjonAq4LVnEyvW9RmdRZX4dloAEZ0ssVhdvQnx7PwF273tIXyfeV4gasitaSlETahJ7RVQkzxRbg==
X-Received: by 10.55.183.1 with SMTP id h1mr4370809qkf.88.1486280881714; Sat, 04 Feb 2017 23:48:01 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.31.75 with HTTP; Sat, 4 Feb 2017 23:48:01 -0800 (PST)
In-Reply-To: <20170203125533.GA11515@LK-Perkele-V2.elisa-laajakaista.fi>
References: <20170116200948.6535.qmail@cr.yp.to> <5eeb3d4d-1fc0-35ba-6f47-87fa0d808edc@cs.tcd.ie> <AA42E783-43FC-4C9B-A387-623B5B18B4FB@gmail.com> <708C8E8E-37AE-4B8F-9843-B0F8CDB29229@gmail.com> <CACsn0cm22h8_61CEZjKYyHfnd7vvnC39ZMjhusjWcZKu_Z0zhw@mail.gmail.com> <DA141A39-05C2-4B87-92FA-AE8C5421E104@gmail.com> <0435210f-0aa4-1c34-89d6-0f7a2aef0621@cs.tcd.ie> <D4B4D5E4.82A6D%kenny.paterson@rhul.ac.uk> <CA+yVaTxTbqDUBbX2oTgC6BT2LprOz8uqAbhTRukuqfZD124kSA@mail.gmail.com> <20170203125533.GA11515@LK-Perkele-V2.elisa-laajakaista.fi>
From: Tibor Jager <tibor.jager@gmail.com>
Date: Sun, 5 Feb 2017 08:48:01 +0100
Message-ID: <CA+yVaTzr+9rFM_GX--6B+M8hyz5O-bWFmjDwEiPKeOyCM17zXQ@mail.gmail.com>
To: cfrg@irtf.org
Content-Type: multipart/alternative; boundary=94eb2c06fa2cfdc4730547c3bb12
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/DbFhTndnZq4yl0CcEIy0bb4QyOs>
Subject: Re: [Cfrg] Help with the use of contexts
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 05 Feb 2017 07:48:04 -0000

--94eb2c06fa2cfdc4730547c3bb12
Content-Type: text/plain; charset=UTF-8

On 03/02/2017 13:55, Ilari Liusvaara wrote:
> On Fri, Feb 03, 2017 at 09:16:11AM +0100, Tibor Jager wrote:
>> On 30 January 2017 at 12:40, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
>> wrote:
>>
>>> So: does anyone else want to offer an opinion on the question of
contexts?
>>>
>>>
>> Contexts are a clean and relatively simple way to prevent cross-protocol
>> attacks, in particular when implemented in an as simple way as proposed
>> by Adam and Dan.
>
> Unfortunately, in practice those are anything but clean and simple.
>
> Yes, the theoretical notion is pretty simple (where (context,message)
> tuple replaces the message in standard notion of signature security).
>
> The biggest practical problem: Backwards compatiblity, the ever-present
> nemsis of security.


We do not have to change old protocols in order to enable domain separation
via contexts in new protocols:

- Old protocols: keep signing messages as before: sig = Sign(sk, m)
- New protocols: sign messages as sig = Sign(sk, ctx||m)

Here, ctx is a "unique" and sufficiently large context string, which even
in presence of an attacker is unlikely to occur in the message m of any
existing protocol. For example, one could use the ASCII string "TLS 1.3 TLS
1.3 TLS 1.3 ...", repeating "TLS 1.3" a suitable number of times. The
symbol || denotes concatenation of bytes, possibly with a NULL-byte as a
separator.

This is how I understand the solution pointed to by Adam and explained by
Dan, and it seems similar in spirit to (but simpler than) what Natanael
described. In particular, it seems not to break backwards compatibility
with existing protocols, but would allow a smooth transition to the use of
contexts to achieve domain separation, and thus help to prevent
cross-protocol attacks.

--94eb2c06fa2cfdc4730547c3bb12
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">On 03/02/2017 13:55, Ilari Liusvaara wrote:<br>&gt; On Fri=
, Feb 03, 2017 at 09:16:11AM +0100, Tibor Jager wrote:<br>&gt;&gt; On 30 Ja=
nuary 2017 at 12:40, Paterson, Kenny &lt;<a href=3D"mailto:Kenny.Paterson@r=
hul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt;<br>&gt;&gt; wrote:<br>&gt;&gt;=
<br>&gt;&gt;&gt; So: does anyone else want to offer an opinion on the quest=
ion of contexts?<br>&gt;&gt;&gt;<br>&gt;&gt;&gt;<br>&gt;&gt; Contexts are a=
 clean and relatively simple way to prevent cross-protocol<br>&gt;&gt; atta=
cks, in particular when implemented in an as simple way as proposed<br>&gt;=
&gt; by Adam and Dan.<br>&gt; <br>&gt; Unfortunately, in practice those are=
 anything but clean and simple.<br>&gt; <br>&gt; Yes, the theoretical notio=
n is pretty simple (where (context,message)<br>&gt; tuple replaces the mess=
age in standard notion of signature security).<br>&gt; <br>&gt; The biggest=
 practical problem: Backwards compatiblity, the ever-present<br>&gt; nemsis=
 of security.<br><br><br>We do not have to change old protocols in order to=
 enable domain separation via contexts in new protocols:<br><br>- Old proto=
cols: keep signing messages as before: sig =3D Sign(sk, m)<br>- New protoco=
ls: sign messages as sig =3D Sign(sk, ctx||m)<br><br>Here, ctx is a &quot;u=
nique&quot; and sufficiently large context string, which even in presence o=
f an attacker is unlikely to occur in the message m of any existing protoco=
l. For example, one could use the ASCII string &quot;TLS 1.3 TLS 1.3 TLS 1.=
3 ...&quot;, repeating &quot;TLS 1.3&quot; a suitable number of times. The =
symbol || denotes concatenation of bytes, possibly with a NULL-byte as a se=
parator.<br><br>This is how I understand the solution pointed to by Adam an=
d explained by Dan, and it seems similar in spirit to (but simpler than) wh=
at Natanael described. In particular, it seems not to break backwards compa=
tibility with existing protocols, but would allow a smooth transition to th=
e use of contexts to achieve domain separation, and thus help to prevent cr=
oss-protocol attacks.<br></div>

--94eb2c06fa2cfdc4730547c3bb12--


From nobody Sun Feb  5 04:35:45 2017
Return-Path: <ilariliusvaara@welho.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 21DF012954E for <cfrg@ietfa.amsl.com>; Sun,  5 Feb 2017 04:35:44 -0800 (PST)
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, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] 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 NZKwrbWmhY5L for <cfrg@ietfa.amsl.com>; Sun,  5 Feb 2017 04:35:41 -0800 (PST)
Received: from welho-filter2.welho.com (welho-filter2.welho.com [83.102.41.24]) by ietfa.amsl.com (Postfix) with ESMTP id 753B612706D for <cfrg@irtf.org>; Sun,  5 Feb 2017 04:35:40 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by welho-filter2.welho.com (Postfix) with ESMTP id A0A501DD61; Sun,  5 Feb 2017 14:35:39 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp2.welho.com ([IPv6:::ffff:83.102.41.85]) by localhost (welho-filter2.welho.com [::ffff:83.102.41.24]) (amavisd-new, port 10024) with ESMTP id xQ9DQ01xXHR5; Sun,  5 Feb 2017 14:35:39 +0200 (EET)
Received: from LK-Perkele-V2 (87-92-51-204.bb.dnainternet.fi [87.92.51.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp2.welho.com (Postfix) with ESMTPSA id 18C8821C; Sun,  5 Feb 2017 14:35:39 +0200 (EET)
Date: Sun, 5 Feb 2017 14:35:37 +0200
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: Tibor Jager <tibor.jager@gmail.com>
Message-ID: <20170205123537.GA13710@LK-Perkele-V2.elisa-laajakaista.fi>
References: <5eeb3d4d-1fc0-35ba-6f47-87fa0d808edc@cs.tcd.ie> <AA42E783-43FC-4C9B-A387-623B5B18B4FB@gmail.com> <708C8E8E-37AE-4B8F-9843-B0F8CDB29229@gmail.com> <CACsn0cm22h8_61CEZjKYyHfnd7vvnC39ZMjhusjWcZKu_Z0zhw@mail.gmail.com> <DA141A39-05C2-4B87-92FA-AE8C5421E104@gmail.com> <0435210f-0aa4-1c34-89d6-0f7a2aef0621@cs.tcd.ie> <D4B4D5E4.82A6D%kenny.paterson@rhul.ac.uk> <CA+yVaTxTbqDUBbX2oTgC6BT2LprOz8uqAbhTRukuqfZD124kSA@mail.gmail.com> <20170203125533.GA11515@LK-Perkele-V2.elisa-laajakaista.fi> <CA+yVaTzr+9rFM_GX--6B+M8hyz5O-bWFmjDwEiPKeOyCM17zXQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CA+yVaTzr+9rFM_GX--6B+M8hyz5O-bWFmjDwEiPKeOyCM17zXQ@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: ilariliusvaara@welho.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/pJagCxlijLN02Kh-VGpCOdKrlD8>
Cc: cfrg@irtf.org
Subject: Re: [Cfrg] Help with the use of contexts
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 05 Feb 2017 12:35:44 -0000

On Sun, Feb 05, 2017 at 08:48:01AM +0100, Tibor Jager wrote:
> On 03/02/2017 13:55, Ilari Liusvaara wrote:
> > On Fri, Feb 03, 2017 at 09:16:11AM +0100, Tibor Jager wrote:
> >> On 30 January 2017 at 12:40, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
> >> wrote:
> >>
> >>> So: does anyone else want to offer an opinion on the question of
> contexts?
> >>>
> >>>
> >> Contexts are a clean and relatively simple way to prevent cross-protocol
> >> attacks, in particular when implemented in an as simple way as proposed
> >> by Adam and Dan.
> >
> > Unfortunately, in practice those are anything but clean and simple.
> >
> > Yes, the theoretical notion is pretty simple (where (context,message)
> > tuple replaces the message in standard notion of signature security).
> >
> > The biggest practical problem: Backwards compatiblity, the ever-present
> > nemsis of security.
> 
> We do not have to change old protocols in order to enable domain separation
> via contexts in new protocols:
> 
> - Old protocols: keep signing messages as before: sig = Sign(sk, m)
> - New protocols: sign messages as sig = Sign(sk, ctx||m)

The problem is, that keys need to be separated as well.

If it is just a protocol that stands alone, then one may just declare
its keys to be suitable.

However, if it uses external keys, you are faced with separating these
keys, which means changes to the key format. And if external keys are
critically used in some other way, you need to modify this use as well.

Implication of above for TLS:

- TLS critically relies in practice on X.509 SPKI key format and X.509
  CSRs.
- Reliance on SPKI impiles that new SPKI key type would be needed.
- Reliance on CSR would mean new X.509 signature type would be required.

Yes, the new key type and new signature type are not difficult to
define, but still need to be done for the scheme to give security.

> Here, ctx is a "unique" and sufficiently large context string, which even
> in presence of an attacker is unlikely to occur in the message m of any
> existing protocol. For example, one could use the ASCII string "TLS 1.3 TLS
> 1.3 TLS 1.3 ...", repeating "TLS 1.3" a suitable number of times. The
> symbol || denotes concatenation of bytes, possibly with a NULL-byte as a
> separator.

Fails the basic notion of security of contextualized signatures.

> This is how I understand the solution pointed to by Adam and explained by
> Dan, and it seems similar in spirit to (but simpler than) what Natanael
> described. In particular, it seems not to break backwards compatibility
> with existing protocols, but would allow a smooth transition to the use of
> contexts to achieve domain separation, and thus help to prevent
> cross-protocol attacks.

I don't think they described the catch with this type of construction...


-Ilari


From nobody Mon Feb  6 06:47:18 2017
Return-Path: <riccardo.lazzeretti@math.unipd.it>
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 B7EB4129E07 for <cfrg@ietfa.amsl.com>; Mon,  6 Feb 2017 06:47:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.202
X-Spam-Level: 
X-Spam-Status: No, score=-4.202 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] 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 MKjklSSeRPpV for <cfrg@ietfa.amsl.com>; Mon,  6 Feb 2017 06:47:15 -0800 (PST)
Received: from mailsrv.math.unipd.it (mailsrv.math.unipd.it [147.162.22.62]) (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 A25E7129DFF for <cfrg@irtf.org>; Mon,  6 Feb 2017 06:47:14 -0800 (PST)
Received: from server0.math.unipd.it (smtpout.math.unipd.it [147.162.22.54]) by mailsrv.math.unipd.it (8.15.2/8.15.2) with ESMTPS id v16El7J8082037 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <cfrg@irtf.org>; Mon, 6 Feb 2017 14:47:07 GMT
Received: from webmail.math.unipd.it (v0b1.math.unipd.it [147.162.22.157]) by server0.math.unipd.it (8.15.1/8.15.1) with ESMTPS id v16Eks05034876 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <cfrg@irtf.org>; Mon, 6 Feb 2017 14:46:54 GMT
Received: from host209-14-dynamic.233-95-r.retail.telecomitalia.it (host209-14-dynamic.233-95-r.retail.telecomitalia.it [95.233.14.209]) by webmail.math.unipd.it (Horde Framework) with HTTPS; Mon, 06 Feb 2017 15:47:10 +0100
Date: Mon, 06 Feb 2017 15:47:10 +0100
Message-ID: <20170206154710.Horde.k69tGJlcpnVI1Hbd20_rXdn@webmail.math.unipd.it>
From: riccardo.lazzeretti@math.unipd.it
To: cfrg@irtf.org
User-Agent: Horde Application Framework 5
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
MIME-Version: 1.0
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-DCC--Metrics: server5.math.unipd.it 1480; Body=1 Fuz1=1 Fuz2=1
X-IMP-Checker: SpamAssassin on webmail.math.unipd.it/imp checker
X-Spam-Warning: SpamAssassin says this -probably- is not SPAM
X-Scanned-By: MIMEDefang 2.78
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/W4QpgBOBcf2Nzq5UR-sspASy2_w>
Subject: [Cfrg] [IEEE ATC 2017] Call for Workshop and Special Session Proposal
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Mon, 06 Feb 2017 14:47:16 -0000

Dear colleague,

Apologies for multiple postings.

In conjunction with the 14th IEEE International Conference on Advanced  
and Trusted Computing (ATC 2017), we will organize some workshops.
The workshop proposals should be submitted to ieee-atc2017@googlegroups.com

Further information are provided in the ATC Call for Workshop page .
All accepted papers will be included in the ATC 2017 proceedings  
published by IEEE.

Workshop/Special Session proposals should contain following information:
Â·  The title of the workshop/special session, including both full name  
and abbreviation (for workshop)
Â·  The objectives, scope, and contributions to the main conference (up  
to 1 page)
Â·  The short bios of the key organizers and their related experience
Â·  The procedure for selecting papers, plans for dissemination (e.g.,  
how to advertise and special issues of journals), and the expected  
number of participants
Â·  A tentative list of program committee members
Â·  The (tentative) website/URL of the proposed workshop/special session

Important Schedule for ATC Workshops and Special Sessions:
Â·  Proposal Due: extended to Feb 15, 2017
Â·  Proposal Notification: extended to Feb 20, 2017
Â·  Paper Submission, Notification: TBD by individual workshops
Â·  Final Camera-ready Paper Due: June 10, 2017

Best regards,

Riccardo Lazzeretti
riccardo.lazzeretti@math.unipd.it
Workshop Chair
IEEE Advanced and Trusted Computing (ATC 2017)





From nobody Wed Feb  8 04:15:46 2017
Return-Path: <internet-drafts@ietf.org>
X-Original-To: cfrg@ietf.org
Delivered-To: cfrg@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 5B5501299FD; Wed,  8 Feb 2017 04:15:45 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.42.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <148655614536.3784.13186379332569390971.idtracker@ietfa.amsl.com>
Date: Wed, 08 Feb 2017 04:15:45 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/DGBYcdkL4GxeqqGZeDyZddE6MVE>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-pake-reqs-08.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Wed, 08 Feb 2017 12:15:45 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Crypto Forum of the IETF.

        Title           : Requirements for PAKE schemes
        Author          : Joern-Marc Schmidt
	Filename        : draft-irtf-cfrg-pake-reqs-08.txt
	Pages           : 10
	Date            : 2017-02-08

Abstract:
   Password-Authenticated Key Agreement (PAKE) schemes are interactive
   protocols that allow the participants to authenticate each other and
   derive shared cryptographic keys using a (weaker) shared password.
   This document reviews different types of PAKE schemes.  Furthermore,
   it presents requirements and gives recommendations to designers of
   new schemes.  It is a product of the Crypto Forum Research Group
   (CFRG).


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-irtf-cfrg-pake-reqs/

There's also a htmlized version available at:
https://tools.ietf.org/html/draft-irtf-cfrg-pake-reqs-08

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-pake-reqs-08


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From nobody Wed Feb  8 05:31:31 2017
Return-Path: <quynh.dang@nist.gov>
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 03B4B129A49 for <cfrg@ietfa.amsl.com>; Wed,  8 Feb 2017 05:31:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 XHS1n3XjVjJ8 for <cfrg@ietfa.amsl.com>; Wed,  8 Feb 2017 05:31:25 -0800 (PST)
Received: from gcc01-dm2-obe.outbound.protection.outlook.com (mail-dm2gcc01on0108.outbound.protection.outlook.com [23.103.201.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 31E88129A43 for <cfrg@ietf.org>; Wed,  8 Feb 2017 05:31:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=BjE/tVKaD94vNWUs7xxFUnh5fySguvQiARMXr/PGfVU=; b=hUi0itQKIn1WDPD/C2nfazoewvwHV+cbD7IkUxS+5JwojqqfgZLGSLH7Cm3qbx/5mfL1QRORdz+VfudxHxX2vazAcjbatse1rj9ffcJC0w7PRzzWVPTPheUh+QL0NYWyMK1CQWpGa9runpV7UfnpooknOvQ7dT4Z7vbf9jIODBc=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Wed, 8 Feb 2017 13:31:22 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.026; Wed, 8 Feb 2017 13:31:22 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>, Michael StJohns <msj@nthpermutation.com>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Thread-Topic: Aside Re: [CFRG] erratum for hmac ...
Thread-Index: AQHSgWiX/QOHsp+cqk6PweDPw/SKDKFfEXKk
Date: Wed, 8 Feb 2017 13:31:22 +0000
Message-ID: <CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <F2C52E74-6FF0-4F72-BFD0-56D39031B4D9@nrl.navy.mil>
In-Reply-To: <F2C52E74-6FF0-4F72-BFD0-56D39031B4D9@nrl.navy.mil>
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-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.219.23]
x-ms-office365-filtering-correlation-id: b3060307-9cc4-4572-1d3c-08d45026c61a
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1464; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1464; 7:0q/fTSzatPSU69UTVtIVmtJbVex0AxYYMLbq1gRGxl+e8OnbIK2TLZK6eh8pQeaIMtmsuyTFmYKOlgIUWnkc/eUGvXYoyspOegeBTyoAH8al2tiH+futRufqO4Pgt2c0hmkuIo31p9aSrzd7Q37otLjjpnHFQ3i3iAk4IaP+6Sjb5sH2qrGA60YD9UfO2bqKAYuyaH3rzJHZrrkA/x7eVyK2Aj02lustWwV40uGhaRoTZqkraAO7iiahr9llERHG8+oUagpETTnV1uivkE0lYb4artQsYMsYTAj8djtGmneAScEMMFgoNLNJCivke0C/B3bs8hfFdbPs356JL7gh3fef08UymwoBsMnZVmfN8doRPhFi+2zIfQaIfq3l0Z1h1euDK9mlvgi2fOqK/jxoNh/VSXUDLq7kxzfP3ST4xH6aDsbxTTWrmR+I6q0RwN285gWxeADgTuNHj2Xp8jE1wSUGXRqUwTODHZYq9F8CpJdUxAAMF04gKQs9CDGWSTboVoFmNKEeyTdU4LdcIXPsGA==
x-microsoft-antispam-prvs: <CY4PR09MB1464F21119EB4E07BD5A438CF3420@CY4PR09MB1464.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705)(4659246709749);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(2017020702029)(20170203043)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123555025)(20161123558025)(20161123564025)(20161123560025)(6072148); SRVR:CY4PR09MB1464; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1464; 
x-forefront-prvs: 0212BDE3BE
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39450400003)(39840400002)(39860400002)(39850400002)(39410400002)(377454003)(189002)(199003)(9686003)(6246003)(2906002)(53546003)(74316002)(81166006)(38730400002)(6436002)(66066001)(229853002)(6506006)(6116002)(3846002)(102836003)(8656002)(101416001)(25786008)(54896002)(8936002)(7736002)(33656002)(8676002)(77096006)(81156014)(3660700001)(53936002)(55016002)(2900100001)(99286003)(7696004)(92566002)(189998001)(68736007)(76176999)(6606003)(54356999)(4326007)(3280700002)(5660300001)(122556002)(106116001)(19627405001)(105586002)(97736004)(106356001)(86362001)(2950100002)(50986999)(345774005); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1464; H:CY4PR09MB1464.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:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR09MB1464F9936D5C07DF16D29403F3420CY4PR09MB1464namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Feb 2017 13:31:22.7120 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1464
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/bJ-Y6KikqWXxsxOrp_BhYqEKPQ8>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Wed, 08 Feb 2017 13:31:30 -0000

--_000_CY4PR09MB1464F9936D5C07DF16D29403F3420CY4PR09MB1464namp_
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Randal, Michael and many others,


Thank you for your suggestions.


Kenny,


Thank you for your discussion email.


We are thinking about what would be the best option for HMAC.  Some technic=
al possibilities are below.


1) Don't change the HMAC spec.

Ask a HMAC key always to have a fixed length such as HMAC-SHA256 having 256=
-bit key. Which means that all protocols using HMAC-SHA256 use 256-bit keys=
.

If each protocol uses a different key length, then the issue would still ex=
ist across protocols. I don't know if this is a practical security problem,=
 but it seems like a problem that should be avoided.

Should ask HMAC keys to be processed/produced by a hash function or another=
 PRF always.

This option does not break interoperability of  the current HMAC implementa=
tions.

2) Change the HMAC Spec.

a) Always hash the key regardless of its length, then perform step 3 in FIP=
S 198.
b) Use a hash-based KDF (not HKDF) to produce B bits from the key, then go =
to step 4 in the FIPS. (bad for performance).
c) Require key < B, then do multi-rate padding 10* to make the key B bits, =
then go to step 4 in the FIPS. (good for performance).

We recommend the use of KMAC in SP 800-185. KMAC's security is solid and pr=
oven, and it has great performance. Code to implement KMAC can be reused to=
 implement many other Keccak-derived symmetric-key crypto functions.

Regards,
Quynh.
________________________________
From: Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>
Sent: Tuesday, February 7, 2017 12:34 PM
To: Dang, Quynh (Fed)
Cc: Randal Atkinson
Subject: Aside Re: [CFRG] erratum for hmac ...


One option available to NIST would be for NIST to open comments
on updating FIPS 198-1, even if opening comments on that now/soon
would be earlier than NIST ordinarily would do so.

Given how long it takes to move from an approved FIPS revision
to widespread US Government deployment, if data exists from
Kenny P and/or others that merits an update, then starting sooner
would not be a bad thing for the USG.

Cheers,

Ran Atkinson

--------------------------------
Randal Atkinson, PhD
Cheltenham Research for NRL 5520
randal.atkinson.ctr@nrl.navy.mil


--_000_CY4PR09MB1464F9936D5C07DF16D29403F3420CY4PR09MB1464namp_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<p>Randal, Michael and many others,</p>
<p><br>
</p>
<p>Thank you for your suggestions.</p>
<p><br>
</p>
<p>Kenny,</p>
<p><br>
</p>
<p>Thank you for your discussion email.</p>
<p><br>
</p>
<p>We are thinking about what would be the best option for HMAC. &nbsp;Some=
 technical&nbsp;possibilities are below.&nbsp;</p>
<p><br>
</p>
<p><span style=3D"font-size: 12pt;">1) Don't change the HMAC spec.</span><b=
r>
</p>
<div><br>
Ask a&nbsp;HMAC key&nbsp;always to&nbsp;have a fixed length such as HMAC-SH=
A256 having 256-bit key. Which means that all protocols using HMAC-SHA256 u=
se 256-bit keys.&nbsp;</div>
<div><br>
</div>
<div>If each protocol uses a different key length, then the issue would&nbs=
p;still exist across protocols. I don't know if this is a practical securit=
y problem, but it seems like a problem that should be avoided.&nbsp;<br>
<br>
</div>
<div>Should ask HMAC keys to be processed/produced by a hash function or an=
other PRF always.&nbsp;<br>
<br>
This option does not break interoperability of &nbsp;the current HMAC imple=
mentations.<br>
<br>
2) Change the HMAC Spec.&nbsp;<br>
<br>
a) Always hash the key regardless of its length, then perform step 3 in FIP=
S 198.&nbsp;<br>
b) Use a&nbsp;hash-based KDF (not HKDF) to produce B bits from the key, the=
n go to step 4 in the FIPS. (bad for performance).&nbsp;<br>
c) Require key &lt; B, then do multi-rate padding 10* to make the key B bit=
s, then go to step 4 in the FIPS. (good for performance).</div>
<div><br>
</div>
<div>We recommend the use of KMAC in SP 800-185. KMAC's security is solid a=
nd proven, and it has great performance. Code to implement KMAC can be reus=
ed to implement many other Keccak-derived&nbsp;symmetric-key crypto functio=
ns.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Quynh.&nbsp;</div>
<div style=3D"color: rgb(0, 0, 0);">
<div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Randal Atkinson &lt=
;randal.atkinson.ctr@nrl.navy.mil&gt;<br>
<b>Sent:</b> Tuesday, February 7, 2017 12:34 PM<br>
<b>To:</b> Dang, Quynh (Fed)<br>
<b>Cc:</b> Randal Atkinson<br>
<b>Subject:</b> Aside Re: [CFRG] erratum for hmac ...</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText"><br>
One option available to NIST would be for NIST to open comments <br>
on updating FIPS 198-1, even if opening comments on that now/soon <br>
would be earlier than NIST ordinarily would do so.<br>
<br>
Given how long it takes to move from an approved FIPS revision<br>
to widespread US Government deployment, if data exists from <br>
Kenny P and/or others that merits an update, then starting sooner<br>
would not be a bad thing for the USG.<br>
<br>
Cheers,<br>
<br>
Ran Atkinson<br>
<br>
--------------------------------<br>
Randal Atkinson, PhD<br>
Cheltenham Research for NRL 5520<br>
randal.atkinson.ctr@nrl.navy.mil&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
<br>
<br>
</div>
</span></font></div>
</div>
</body>
</html>

--_000_CY4PR09MB1464F9936D5C07DF16D29403F3420CY4PR09MB1464namp_--


From nobody Thu Feb  9 21:07:42 2017
Return-Path: <sean@sn3rd.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 5C0A0129EEF for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:07:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.701
X-Spam-Level: 
X-Spam-Status: No, score=-2.701 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_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=sn3rd.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 cGkEiPzo0faB for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:07:39 -0800 (PST)
Received: from mail-qt0-x236.google.com (mail-qt0-x236.google.com [IPv6:2607:f8b0:400d:c0d::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C30DC129EEA for <cfrg@irtf.org>; Thu,  9 Feb 2017 21:07:38 -0800 (PST)
Received: by mail-qt0-x236.google.com with SMTP id k15so25022259qtg.3 for <cfrg@irtf.org>; Thu, 09 Feb 2017 21:07:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sn3rd.com; s=google; h=from:content-transfer-encoding:subject:date:message-id:cc:to :mime-version; bh=sF3S+goNt9Bc/mv7lBJdR9RN0+hom/uJoQlvQeZaObU=; b=Yu944ksgP4BNAUzg5nZz4QG0MKpvHkSfZzhaIPdr5piLeK6sVTEHFPBTUDTBB4CVP8 B4qHoXskiWVR7t7qyZ1gchheCRdOVkPakteuWO1ekDoiJoZG2gyi5IqAZU7/Wb6gDfah bEODu0HySXN0xubhCKTjw5egw6uJcjcq+q+C8=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:subject:date :message-id:cc:to:mime-version; bh=sF3S+goNt9Bc/mv7lBJdR9RN0+hom/uJoQlvQeZaObU=; b=tpzO9vFpOVeYVPKgssUXH0gG3q5pJxCxQrjM/KXl7FBtxIOseZuXbkKQyu5EnoTgFE bCqQXkKNlRmHoYH4tVjs4RObeyJBpDRMMqBblCcyHE0jo7m9nra97yBgT8b8oqBZ6QlY 7Kexq1VphcD46s7h9BXGCqJj7mPL92K9cPaoCXjcjpsoIgib/TXG3vF+FQcZdyYaM4oa DGkHeUF1/fh/U3LSVDpluxwCMrn6UGvALYFKPZ762BMrQLDphFpaGG4UcxCHYuGQJKQH dAQppYGAdt272gKThNqj3z8YKwpl5TMIqaquNLQC9D3hg7mLx0BTMF+zOVursvddfqbT 3SGA==
X-Gm-Message-State: AMke39kEKSWJov6UWuX3AnwaFcVnw24GaWFaX6I9cktGhYYYoY1E8kDOO9omCnShXSSDRg==
X-Received: by 10.200.47.46 with SMTP id j43mr6313569qta.178.1486703257918; Thu, 09 Feb 2017 21:07:37 -0800 (PST)
Received: from [172.16.0.92] (pool-173-73-120-80.washdc.east.verizon.net. [173.73.120.80]) by smtp.gmail.com with ESMTPSA id m143sm550421qke.18.2017.02.09.21.07.36 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Feb 2017 21:07:36 -0800 (PST)
From: Sean Turner <sean@sn3rd.com>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Date: Fri, 10 Feb 2017 00:07:35 -0500
Message-Id: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
To: "<tls@ietf.org>" <tls@ietf.org>
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/YCkOOVasDbxAZeqKZ7QvZp8rSAI>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 05:07:40 -0000

All,

We=E2=80=99ve got two outstanding PRs that propose changes to =
draft-ietf-tls-tls13 Section 5.5 =E2=80=9CLimits on Key Usage=E2=80=9D.  =
As it relates to rekeying, these limits have been discussed a couple of =
times and we need to resolve once and for all whether the TLS WG wants =
to:

a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]

Please indicate you preference to the TLS mailing list before Feb 17.  =
Note that unless there=E2=80=99s clear consensus to change the text will =
remain as is (i.e., option a).

J&S

[0] https://tlswg.github.io/tls13-spec/#rfc.section.5.5
[1] https://github.com/tlswg/tls13-spec/pull/765
[2] https://github.com/tlswg/tls13-spec/pull/769=


From nobody Thu Feb  9 21:19:15 2017
Return-Path: <smyshsv@gmail.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 1E431129FA5 for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:19:09 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 YPz2nVYmVVSQ for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:19:06 -0800 (PST)
Received: from mail-qt0-x236.google.com (mail-qt0-x236.google.com [IPv6:2607:f8b0:400d:c0d::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 82411129F07 for <cfrg@irtf.org>; Thu,  9 Feb 2017 21:19:06 -0800 (PST)
Received: by mail-qt0-x236.google.com with SMTP id w20so25114868qtb.1 for <cfrg@irtf.org>; Thu, 09 Feb 2017 21:19:06 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=31zLHJdGvGGCK8k+YPPH34KWJ/Sz+jwocUlewf0+kBw=; b=TZa67SiCkYBBoV0c4tc4RRWy30M6Z0leN6kNFwWfPqzdQ6xbdtckbe5l9nY5vmbFn9 m112+h/QDgK6Ww/MRhrvgkeejE6kDTcLimpA0KHuWQQZhJGz769Vp5DVZn5NTAyEHkO3 f0LAiKuheF2HFbJAVDx+qMfNarm8kvi09O1bPyMArfanDnR8R2vYgIsiNEacOI5gfivz yWtkHKKjfYHqM4ZOT07I+K46Ou+JpaOtDbUoTRYJvgaRIT9k81HilHrxU0hTCbobXY8U HKdHY4SoD7m2+IYSg+2Ue+EkzcTLctw/sfwxKhKq3zLULyOWAyS0Lek0l/nwmEilPcok AopQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=31zLHJdGvGGCK8k+YPPH34KWJ/Sz+jwocUlewf0+kBw=; b=YTvr00obibpy21SwdI7CwOd59JJOpNskLRxaAEncoHimW7jreE/wOQdQBI+Obuhlac G1kQ37BkZhpcDA1/E0vNpqM0mSi/ID+dpHaAXZ4MKq0lGwOLDM3ZU6MndAV19od0SGPv Hd/RMRWIdaqAzcIdzhdP7r4erliXPFrVH60ql2GUgYNj/wpKzzt4VM6BIkby+vuMIfta EEcGud801gYf0emE0lBzaZOmUzmXv16tZTGtwCwCdkRecEQyEAn+9ovJ+wm4OOMTsq56 3UtvNoXAb9C5g88rOcUpVtzb8zpnvbJ/FKFua+ljQW153BcbikwBh/dxBdaSy0l4muk1 9t8Q==
X-Gm-Message-State: AMke39miT0QqBd6PKg9tQz/tsVBRNM/Em+m/m5d9YGb6B/T/Aqc3TuSZ1TZ5M51TmPa75woNkyALO6XuH8vkGA==
X-Received: by 10.200.37.183 with SMTP id e52mr6848789qte.166.1486703945651; Thu, 09 Feb 2017 21:19:05 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.132.102 with HTTP; Thu, 9 Feb 2017 21:19:05 -0800 (PST)
In-Reply-To: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
From: "Stanislav V. Smyshlyaev" <smyshsv@gmail.com>
Date: Fri, 10 Feb 2017 08:19:05 +0300
Message-ID: <CAMr0u6nXqmO08ksP_6Hv=gdP7pDZ4NWxLq=VZ-c_mLcUsnXAqg@mail.gmail.com>
To: Sean Turner <sean@sn3rd.com>
Content-Type: multipart/alternative; boundary=001a1141fcbc91383d0548263c60
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/10wNsndSn5c7jnOeA3il1tUfZfY>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 05:19:09 -0000

--001a1141fcbc91383d0548263c60
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Dear Sean, dear all,

I find the existing limits quite reasonable and would prefer that we'll
stay conservative here, so I'd prefer option a) go with the existing text.


Best regards,
Stanislav Smyshlyaev


2017-02-10 8:07 GMT+03:00 Sean Turner <sean@sn3rd.com>:

> All,
>
> We=E2=80=99ve got two outstanding PRs that propose changes to draft-ietf-=
tls-tls13
> Section 5.5 =E2=80=9CLimits on Key Usage=E2=80=9D.  As it relates to reke=
ying, these limits
> have been discussed a couple of times and we need to resolve once and for
> all whether the TLS WG wants to:
>
> a) Close these two PRs and go with the existing text [0]
> b) Adopt PR#765 [1]
> c) Adopt PR#769 [2]
>
> Please indicate you preference to the TLS mailing list before Feb 17.
> Note that unless there=E2=80=99s clear consensus to change the text will =
remain as
> is (i.e., option a).
>
> J&S
>
> [0] https://tlswg.github.io/tls13-spec/#rfc.section.5.5
> [1] https://github.com/tlswg/tls13-spec/pull/765
> [2] https://github.com/tlswg/tls13-spec/pull/769
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg
>

--001a1141fcbc91383d0548263c60
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div><div class=3D"gmail_signat=
ure"><div dir=3D"ltr">Dear Sean, dear all,</div><div dir=3D"ltr"><br></div>=
<div>I find the existing limits quite reasonable and would prefer that we&#=
39;ll stay conservative here, so I&#39;d prefer option a) go with the exist=
ing text.<br></div><div dir=3D"ltr"><br></div><div dir=3D"ltr"><br></div><d=
iv dir=3D"ltr">Best regards,</div><div dir=3D"ltr">Stanislav Smyshlyaev<br>=
<div><br></div></div></div></div>
<br><div class=3D"gmail_quote">2017-02-10 8:07 GMT+03:00 Sean Turner <span =
dir=3D"ltr">&lt;<a href=3D"mailto:sean@sn3rd.com" target=3D"_blank">sean@sn=
3rd.com</a>&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margi=
n:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex=
">All,<br>
<br>
We=E2=80=99ve got two outstanding PRs that propose changes to draft-ietf-tl=
s-tls13 Section 5.5 =E2=80=9CLimits on Key Usage=E2=80=9D.=C2=A0 As it rela=
tes to rekeying, these limits have been discussed a couple of times and we =
need to resolve once and for all whether the TLS WG wants to:<br>
<br>
a) Close these two PRs and go with the existing text [0]<br>
b) Adopt PR#765 [1]<br>
c) Adopt PR#769 [2]<br>
<br>
Please indicate you preference to the TLS mailing list before Feb 17.=C2=A0=
 Note that unless there=E2=80=99s clear consensus to change the text will r=
emain as is (i.e., option a).<br>
<br>
J&amp;S<br>
<br>
[0] <a href=3D"https://tlswg.github.io/tls13-spec/#rfc.section.5.5" rel=3D"=
noreferrer" target=3D"_blank">https://tlswg.github.io/tls13-<wbr>spec/#rfc.=
section.5.5</a><br>
[1] <a href=3D"https://github.com/tlswg/tls13-spec/pull/765" rel=3D"norefer=
rer" target=3D"_blank">https://github.com/tlswg/<wbr>tls13-spec/pull/765</a=
><br>
[2] <a href=3D"https://github.com/tlswg/tls13-spec/pull/769" rel=3D"norefer=
rer" target=3D"_blank">https://github.com/tlswg/<wbr>tls13-spec/pull/769</a=
><br>
______________________________<wbr>_________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.irtf.org/mailman/<wbr>listinfo/cfrg</a><br>
</blockquote></div><br></div></div>

--001a1141fcbc91383d0548263c60--


From nobody Thu Feb  9 21:27:31 2017
Return-Path: <dmjacobson@sbcglobal.net>
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 1AE1A129F16 for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:27:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sbcglobal.net
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 vCXXxNgCHe6b for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:27:28 -0800 (PST)
Received: from nm15-vm10.access.bullet.mail.bf1.yahoo.com (nm15-vm10.access.bullet.mail.bf1.yahoo.com [216.109.115.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 069AA129F0C for <cfrg@ietf.org>; Thu,  9 Feb 2017 21:27:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1486704446; bh=ahiSviiTY3dYpbYeK/pWZvI1fex5uBzIS5nwVqZn7ls=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=DeVMUdncy40eCs9Twy5/5mcZHVIHjeHoexLHm3Lx3+amdK4UNeAwSR95Tq02o85uVVKZPv9vXaReELnki5NBKUFa9SBbCHqCOen7M13T2Ltn/luJVl1SJ/paT8aQgZ+0a/a/1lXUc0aSJlZJ+LXnv9xvHv6ASWdWN0DaZSQY8RdKVdulVYAsSQltHYXXi+/fb4y0UzpsFrhj1s8heCcqY5v6U8V5Ij5N7IjTirUobRpukhBz8xG8P8vMZE/51qX6hHNrj/fQ3rukRJyskLkFpat6BHZ0vXwugX3FZ7h7qSXIqlIt8kh9xDZMlv6esU8R3HMdMPZnukzGL+UPOgg6lQ==
Received: from [66.196.81.166] by nm15.access.bullet.mail.bf1.yahoo.com with NNFMP; 10 Feb 2017 05:27:26 -0000
Received: from [98.138.226.243] by tm12.access.bullet.mail.bf1.yahoo.com with NNFMP; 10 Feb 2017 05:27:26 -0000
Received: from [127.0.0.1] by smtp114.sbc.mail.ne1.yahoo.com with NNFMP; 10 Feb 2017 05:27:26 -0000
X-Yahoo-Newman-Id: 99243.61195.bm@smtp114.sbc.mail.ne1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: YB6tGzkVM1n3wWhgdxB3K3t.cIUYsQqYJI.6BywoK01Bdkt hsyUcS3abrIoSGWs3jPXllRuzeJnkLSzimOp.PudHd.nz302VbFcs4k0XgBu ejSiKEitY63oxINdECKUMRYgooAo9Ai1K1Iz3LjDuY47r_RppMFy0LAoYz7l Z7gjcde1IHTFdcRSc.fmdvlrICtbi.VDyUYiHURBLGCkpKl.juOP3fXSQjEZ g8X_14sWBuGJczRM3vlpu6O6pjfW7XwWWQv0SOitq4G9dIPck6fnazi5Prsp cpykR.NypJizluTkRCrbRgc_nxoDVsVhlC4AF2NGc56TQIiOuKU2qIbpBqle mM_DkIxDpijRArtlupQkKfV5PpxDFzsZh81NROprSjpCnntbqyED1GRR71nT L5ILE_dK8A81XM71D9CDMGTUE1DsVqeU0jqR9O9nKvswX4o70T0RLkKjrsSd BSTe.lz4BzZRMinpJxgRqFBdxSD79qifdkiQgmt6utuZiOV_FOhoOJH7KcMd qBIepBXZnQXL1CyqYj8JKnmvCc5x01ZZroAvBodRld7DiAlTQPZ2KyPZaO8D .ZaI.hgThcw--
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>, Michael StJohns <msj@nthpermutation.com>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
References: <F2C52E74-6FF0-4F72-BFD0-56D39031B4D9@nrl.navy.mil> <CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com>
From: David Jacobson <dmjacobson@sbcglobal.net>
Message-ID: <59d04ca7-aed8-e0e1-bf06-fdd44ccba697@sbcglobal.net>
Date: Thu, 9 Feb 2017 21:27:24 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com>
Content-Type: multipart/alternative; boundary="------------C93E1F78F37C18C5D3440E02"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/B_scvRUUse26B8kPxZ6qcp5tR_Y>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 05:27:30 -0000

This is a multi-part message in MIME format.
--------------C93E1F78F37C18C5D3440E02
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

See interleaved comment.

On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:
>
> Randal, Michael and many others,
>
>
> Thank you for your suggestions.
>
>
> Kenny,
>
>
> Thank you for your discussion email.
>
>
> We are thinking about what would be the best option for HMAC.  Some 
> technical possibilities are below.
>
>
> 1) Don't change the HMAC spec.
>
>
> Ask a HMAC key always to have a fixed length such as HMAC-SHA256 
> having 256-bit key. Which means that all protocols using HMAC-SHA256 
> use 256-bit keys.
>
> If each protocol uses a different key length, then the issue 
> would still exist across protocols. I don't know if this is a 
> practical security problem, but it seems like a problem that should be 
> avoided.
>
> Should ask HMAC keys to be processed/produced by a hash function or 
> another PRF always.

I don't see the need or even desirability for this, assuming you ask 
each protocol to use a fixed (for that protocol) key length.  (That was 
the line above.)

For an attacker to find two messages with the same HMAC, not knowing the 
key, he would have to find a collision in the first stage, not knowing 
the first block.  And if you add an extra hash, you are only making it 
easier.  He has to get a collision in the pre-hash, where he knows 
everything.

    --David Jacobson
>
> This option does not break interoperability of  the current HMAC 
> implementations.
>
> 2) Change the HMAC Spec.
>
> a) Always hash the key regardless of its length, then perform step 3 
> in FIPS 198.
> b) Use a hash-based KDF (not HKDF) to produce B bits from the key, 
> then go to step 4 in the FIPS. (bad for performance).
> c) Require key < B, then do multi-rate padding 10* to make the key B 
> bits, then go to step 4 in the FIPS. (good for performance).
>
> We recommend the use of KMAC in SP 800-185. KMAC's security is solid 
> and proven, and it has great performance. Code to implement KMAC can 
> be reused to implement many other Keccak-derived symmetric-key crypto 
> functions.
>
> Regards,
> Quynh.
> ------------------------------------------------------------------------
> *From:* Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>
> *Sent:* Tuesday, February 7, 2017 12:34 PM
> *To:* Dang, Quynh (Fed)
> *Cc:* Randal Atkinson
> *Subject:* Aside Re: [CFRG] erratum for hmac ...
>
> One option available to NIST would be for NIST to open comments
> on updating FIPS 198-1, even if opening comments on that now/soon
> would be earlier than NIST ordinarily would do so.
>
> Given how long it takes to move from an approved FIPS revision
> to widespread US Government deployment, if data exists from
> Kenny P and/or others that merits an update, then starting sooner
> would not be a bad thing for the USG.
>
> Cheers,
>
> Ran Atkinson
>
> --------------------------------
> Randal Atkinson, PhD
> Cheltenham Research for NRL 5520
> randal.atkinson.ctr@nrl.navy.mil
>
>
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg



--------------C93E1F78F37C18C5D3440E02
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">See interleaved comment.<br>
      <br>
      On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:<br>
    </div>
    <blockquote
cite="mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
        dir="ltr">
        <p>Randal, Michael and many others,</p>
        <p><br>
        </p>
        <p>Thank you for your suggestions.</p>
        <p><br>
        </p>
        <p>Kenny,</p>
        <p><br>
        </p>
        <p>Thank you for your discussion email.</p>
        <p><br>
        </p>
        <p>We are thinking about what would be the best option for HMAC.
           Some technical possibilities are below. </p>
        <p><br>
        </p>
        <p><span style="font-size: 12pt;">1) Don't change the HMAC spec.</span><br>
        </p>
        <div><br>
          Ask a HMAC key always to have a fixed length such as
          HMAC-SHA256 having 256-bit key. Which means that all protocols
          using HMAC-SHA256 use 256-bit keys. </div>
        <div><br>
        </div>
        <div>If each protocol uses a different key length, then the
          issue would still exist across protocols. I don't know if this
          is a practical security problem, but it seems like a problem
          that should be avoided. <br>
          <br>
        </div>
        <div>Should ask HMAC keys to be processed/produced by a hash
          function or another PRF always. <br>
        </div>
      </div>
    </blockquote>
    <br>
    I don't see the need or even desirability for this, assuming you ask
    each protocol to use a fixed (for that protocol) key length.  (That
    was the line above.)<br>
    <br>
    For an attacker to find two messages with the same HMAC, not knowing
    the key, he would have to find a collision in the first stage, not
    knowing the first block.  And if you add an extra hash, you are only
    making it easier.  He has to get a collision in the pre-hash, where
    he knows everything.<br>
    <br>
       --David Jacobson<br>
    <blockquote
cite="mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com"
      type="cite">
      <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
        dir="ltr">
        <div>
          <br>
          This option does not break interoperability of  the current
          HMAC implementations.<br>
          <br>
          2) Change the HMAC Spec. <br>
          <br>
          a) Always hash the key regardless of its length, then perform
          step 3 in FIPS 198. <br>
          b) Use a hash-based KDF (not HKDF) to produce B bits from the
          key, then go to step 4 in the FIPS. (bad for performance). <br>
          c) Require key &lt; B, then do multi-rate padding 10* to make
          the key B bits, then go to step 4 in the FIPS. (good for
          performance).</div>
        <div><br>
        </div>
        <div>We recommend the use of KMAC in SP 800-185. KMAC's security
          is solid and proven, and it has great performance. Code to
          implement KMAC can be reused to implement many other
          Keccak-derived symmetric-key crypto functions.</div>
        <div><br>
        </div>
        <div>Regards,</div>
        <div>Quynh. </div>
        <div style="color: rgb(0, 0, 0);">
          <div>
            <hr tabindex="-1" style="display:inline-block; width:98%">
            <div id="x_divRplyFwdMsg" dir="ltr"><font
                style="font-size:11pt" color="#000000" face="Calibri,
                sans-serif"><b>From:</b> Randal Atkinson
                <a class="moz-txt-link-rfc2396E" href="mailto:randal.atkinson.ctr@nrl.navy.mil">&lt;randal.atkinson.ctr@nrl.navy.mil&gt;</a><br>
                <b>Sent:</b> Tuesday, February 7, 2017 12:34 PM<br>
                <b>To:</b> Dang, Quynh (Fed)<br>
                <b>Cc:</b> Randal Atkinson<br>
                <b>Subject:</b> Aside Re: [CFRG] erratum for hmac ...</font>
              <div> </div>
            </div>
          </div>
          <font size="2"><span style="font-size:10pt;">
              <div class="PlainText"><br>
                One option available to NIST would be for NIST to open
                comments <br>
                on updating FIPS 198-1, even if opening comments on that
                now/soon <br>
                would be earlier than NIST ordinarily would do so.<br>
                <br>
                Given how long it takes to move from an approved FIPS
                revision<br>
                to widespread US Government deployment, if data exists
                from <br>
                Kenny P and/or others that merits an update, then
                starting sooner<br>
                would not be a bad thing for the USG.<br>
                <br>
                Cheers,<br>
                <br>
                Ran Atkinson<br>
                <br>
                --------------------------------<br>
                Randal Atkinson, PhD<br>
                Cheltenham Research for NRL 5520<br>
                <a class="moz-txt-link-abbreviated" href="mailto:randal.atkinson.ctr@nrl.navy.mil">randal.atkinson.ctr@nrl.navy.mil</a>        <br>
                <br>
              </div>
            </span></font></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Cfrg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a>
<a class="moz-txt-link-freetext" href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a>
</pre>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>

--------------C93E1F78F37C18C5D3440E02--


From nobody Thu Feb  9 21:38:38 2017
Return-Path: <dmjacobson@sbcglobal.net>
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 6230D129FB1 for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:38:36 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sbcglobal.net
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 0zSIlGAXeuF4 for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:38:35 -0800 (PST)
Received: from nm27-vm10.access.bullet.mail.bf1.yahoo.com (nm27-vm10.access.bullet.mail.bf1.yahoo.com [216.109.115.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A6FB8129FB0 for <cfrg@ietf.org>; Thu,  9 Feb 2017 21:38:34 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1486705113; bh=mmHjru3JM2KSSxOdCZUdeIsUNErdoDBlNbzIpUbBZQg=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=e6BurRQ0uCXW1NO3DqvaCA5nCyqKGragp21gyOwD8pbakDj5TvA+0A/sRIFtCPcfdq/qZsypI859+Gm6obHI6Dpy6AKnUNAgIKU+HYVIMTa4Kq/lz9P4n45OY12oMe/xOw+orNfZW7pmRGIiKtXNVcvuPnmre2hzB63e2ju6/c8YLmm0ElNxErH12tEh7vOl9Dzc+n0IDuuGaM5OhbLLkVvB9wqJnDosLNW4Nb7186Kyu+hsmx88yqsmJC7SvOZWj5CcOZs369D8Ko2X2N+Tx5XicfCkk8d+gKKereioZYp4csRag7W1WZlwIFJ0e19SxbJyqv4LqKF9aAPi7gCcDQ==
Received: from [66.196.81.157] by nm27.access.bullet.mail.bf1.yahoo.com with NNFMP; 10 Feb 2017 05:38:33 -0000
Received: from [98.138.104.99] by tm3.access.bullet.mail.bf1.yahoo.com with NNFMP; 10 Feb 2017 05:38:33 -0000
Received: from [127.0.0.1] by smtp119.sbc.mail.ne1.yahoo.com with NNFMP; 10 Feb 2017 05:38:33 -0000
X-Yahoo-Newman-Id: 707821.72567.bm@smtp119.sbc.mail.ne1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: LYsX.aIVM1mR255esveyN4EphA5ddEgt5IPGcSvc.Df1VlE BuWKRtAma72MYBod4FDzpMKagMtgkIy3Gs3u_WgU7ahtdtJoceiZbobunRvX GjLqok8_DP7wj9wk5zR9OVbA4EHcrFZL_YE5aerhJgv8G6Ui5xvKoLdmHl_s A6JEZXAzmqWfyU3I540zoGlGw64vL4WM6MBeiqlz3ug5qLc8NXBpozwpyyfR JC8ibN77SKE0IZMVRsusL_fLyvzuEmAoNBocNjLh7qdwVPdG0hkF_zPVLpBz mXAsqZXaZeAO16C6Y11wLUd1e_Gr5lUivy_2ijFakj.uFHrho4g5A0a.oeyi 4_fMGQDOv059_yTEc9M.o.Yrl0V7Exv1jfIGLZ.u.uXlzrqldA15s9bgUFeI psrkUizEeYplFzjx1Y3B.4FwBr_o2WmGPhcu5fBqhSkeaBbngGH6toxeI5Qy axIJtAjbO12taNVyGN3A2EVMeCrPJxvFUVnGrvMxWlmlnpQZy06l8nJRPIYm 2XKDW09CPPJO1QvcHS5uiK0LkV4s6b.44d.x6GlWJel073P4nH8tJLs3i79g nn1FbpSKtxg--
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>, Michael StJohns <msj@nthpermutation.com>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
References: <F2C52E74-6FF0-4F72-BFD0-56D39031B4D9@nrl.navy.mil> <CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com> <59d04ca7-aed8-e0e1-bf06-fdd44ccba697@sbcglobal.net>
From: David Jacobson <dmjacobson@sbcglobal.net>
Message-ID: <9a95bf47-9fea-6a38-5bdf-d88f10b36323@sbcglobal.net>
Date: Thu, 9 Feb 2017 21:38:31 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <59d04ca7-aed8-e0e1-bf06-fdd44ccba697@sbcglobal.net>
Content-Type: multipart/alternative; boundary="------------93BDA7C57AD9161DF4494782"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/SF4Xw5XNrFsPTpP7vyDXhSJ37NM>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 05:38:36 -0000

This is a multi-part message in MIME format.
--------------93BDA7C57AD9161DF4494782
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

Oops.  I made a mistake.  It is the key that is being hashed not the 
message.

But I still don't see where it helps.  An attacker does not choose the key.

Now there was this discussion about related keys they could generate the 
same output.  But if we fix the key to some protocol-specific value, 
then there is no easy way to get related keys that give the same 
output.  You would need to find a sort of double-collision where the 
hash internal state after the first block is the same for keyA ^ IPAD 
and keyB ^ IPAD and the internal state after the first block is the same 
for keyA ^ OPAD and keyB ^ OPAD.  This seems much harder than just 
finding a collision.

    --David

On 2/9/17 9:27 PM, David Jacobson wrote:
> See interleaved comment.
>
> On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:
>>
>> Randal, Michael and many others,
>>
>>
>> Thank you for your suggestions.
>>
>>
>> Kenny,
>>
>>
>> Thank you for your discussion email.
>>
>>
>> We are thinking about what would be the best option for HMAC.  Some 
>> technical possibilities are below.
>>
>>
>> 1) Don't change the HMAC spec.
>>
>>
>> Ask a HMAC key always to have a fixed length such as HMAC-SHA256 
>> having 256-bit key. Which means that all protocols using HMAC-SHA256 
>> use 256-bit keys.
>>
>> If each protocol uses a different key length, then the issue 
>> would still exist across protocols. I don't know if this is a 
>> practical security problem, but it seems like a problem that should 
>> be avoided.
>>
>> Should ask HMAC keys to be processed/produced by a hash function or 
>> another PRF always.
>
> I don't see the need or even desirability for this, assuming you ask 
> each protocol to use a fixed (for that protocol) key length. (That was 
> the line above.)
>
> For an attacker to find two messages with the same HMAC, not knowing 
> the key, he would have to find a collision in the first stage, not 
> knowing the first block.  And if you add an extra hash, you are only 
> making it easier.  He has to get a collision in the pre-hash, where he 
> knows everything.
>
>    --David Jacobson
>>
>> This option does not break interoperability of  the current HMAC 
>> implementations.
>>
>> 2) Change the HMAC Spec.
>>
>> a) Always hash the key regardless of its length, then perform step 3 
>> in FIPS 198.
>> b) Use a hash-based KDF (not HKDF) to produce B bits from the key, 
>> then go to step 4 in the FIPS. (bad for performance).
>> c) Require key < B, then do multi-rate padding 10* to make the key B 
>> bits, then go to step 4 in the FIPS. (good for performance).
>>
>> We recommend the use of KMAC in SP 800-185. KMAC's security is solid 
>> and proven, and it has great performance. Code to implement KMAC can 
>> be reused to implement many other Keccak-derived symmetric-key crypto 
>> functions.
>>
>> Regards,
>> Quynh.
>> ------------------------------------------------------------------------
>> *From:* Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>
>> *Sent:* Tuesday, February 7, 2017 12:34 PM
>> *To:* Dang, Quynh (Fed)
>> *Cc:* Randal Atkinson
>> *Subject:* Aside Re: [CFRG] erratum for hmac ...
>>
>> One option available to NIST would be for NIST to open comments
>> on updating FIPS 198-1, even if opening comments on that now/soon
>> would be earlier than NIST ordinarily would do so.
>>
>> Given how long it takes to move from an approved FIPS revision
>> to widespread US Government deployment, if data exists from
>> Kenny P and/or others that merits an update, then starting sooner
>> would not be a bad thing for the USG.
>>
>> Cheers,
>>
>> Ran Atkinson
>>
>> --------------------------------
>> Randal Atkinson, PhD
>> Cheltenham Research for NRL 5520
>> randal.atkinson.ctr@nrl.navy.mil
>>
>>
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> https://www.irtf.org/mailman/listinfo/cfrg
>
>


--------------93BDA7C57AD9161DF4494782
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Oops.  I made a mistake.  It is the key
      that is being hashed not the message.  <br>
      <br>
      But I still don't see where it helps.  An attacker does not choose
      the key.  <br>
      <br>
      Now there was this discussion about related keys they could
      generate the same output.  But if we fix the key to some
      protocol-specific value, then there is no easy way to get related
      keys that give the same output.  You would need to find a sort of
      double-collision where the hash internal state after the first
      block is the same for keyA ^ IPAD and keyB ^ IPAD and the internal
      state after the first block is the same for keyA ^ OPAD and keyB ^
      OPAD.  This seems much harder than just finding a collision.<br>
      <br>
         --David<br>
      <br>
      On 2/9/17 9:27 PM, David Jacobson wrote:<br>
    </div>
    <blockquote
      cite="mid:59d04ca7-aed8-e0e1-bf06-fdd44ccba697@sbcglobal.net"
      type="cite">
      <meta content="text/html; charset=windows-1252"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">See interleaved comment.<br>
        <br>
        On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:<br>
      </div>
      <blockquote
cite="mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com"
        type="cite">
        <meta http-equiv="Content-Type" content="text/html;
          charset=windows-1252">
        <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
        <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
          dir="ltr">
          <p>Randal, Michael and many others,</p>
          <p><br>
          </p>
          <p>Thank you for your suggestions.</p>
          <p><br>
          </p>
          <p>Kenny,</p>
          <p><br>
          </p>
          <p>Thank you for your discussion email.</p>
          <p><br>
          </p>
          <p>We are thinking about what would be the best option for
            HMAC.  Some technical possibilities are below. </p>
          <p><br>
          </p>
          <p><span style="font-size: 12pt;">1) Don't change the HMAC
              spec.</span><br>
          </p>
          <div><br>
            Ask a HMAC key always to have a fixed length such as
            HMAC-SHA256 having 256-bit key. Which means that all
            protocols using HMAC-SHA256 use 256-bit keys. </div>
          <div><br>
          </div>
          <div>If each protocol uses a different key length, then the
            issue would still exist across protocols. I don't know if
            this is a practical security problem, but it seems like a
            problem that should be avoided. <br>
            <br>
          </div>
          <div>Should ask HMAC keys to be processed/produced by a hash
            function or another PRF always. <br>
          </div>
        </div>
      </blockquote>
      <br>
      I don't see the need or even desirability for this, assuming you
      ask each protocol to use a fixed (for that protocol) key length. 
      (That was the line above.)<br>
      <br>
      For an attacker to find two messages with the same HMAC, not
      knowing the key, he would have to find a collision in the first
      stage, not knowing the first block.  And if you add an extra hash,
      you are only making it easier.  He has to get a collision in the
      pre-hash, where he knows everything.<br>
      <br>
         --David Jacobson<br>
      <blockquote
cite="mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com"
        type="cite">
        <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
          dir="ltr">
          <div> <br>
            This option does not break interoperability of  the current
            HMAC implementations.<br>
            <br>
            2) Change the HMAC Spec. <br>
            <br>
            a) Always hash the key regardless of its length, then
            perform step 3 in FIPS 198. <br>
            b) Use a hash-based KDF (not HKDF) to produce B bits from
            the key, then go to step 4 in the FIPS. (bad for
            performance). <br>
            c) Require key &lt; B, then do multi-rate padding 10* to
            make the key B bits, then go to step 4 in the FIPS. (good
            for performance).</div>
          <div><br>
          </div>
          <div>We recommend the use of KMAC in SP 800-185. KMAC's
            security is solid and proven, and it has great performance.
            Code to implement KMAC can be reused to implement many other
            Keccak-derived symmetric-key crypto functions.</div>
          <div><br>
          </div>
          <div>Regards,</div>
          <div>Quynh. </div>
          <div style="color: rgb(0, 0, 0);">
            <div>
              <hr tabindex="-1" style="display:inline-block; width:98%">
              <div id="x_divRplyFwdMsg" dir="ltr"><font
                  style="font-size:11pt" color="#000000" face="Calibri,
                  sans-serif"><b>From:</b> Randal Atkinson <a
                    moz-do-not-send="true" class="moz-txt-link-rfc2396E"
                    href="mailto:randal.atkinson.ctr@nrl.navy.mil">&lt;randal.atkinson.ctr@nrl.navy.mil&gt;</a><br>
                  <b>Sent:</b> Tuesday, February 7, 2017 12:34 PM<br>
                  <b>To:</b> Dang, Quynh (Fed)<br>
                  <b>Cc:</b> Randal Atkinson<br>
                  <b>Subject:</b> Aside Re: [CFRG] erratum for hmac ...</font>
                <div> </div>
              </div>
            </div>
            <font size="2"><span style="font-size:10pt;">
                <div class="PlainText"><br>
                  One option available to NIST would be for NIST to open
                  comments <br>
                  on updating FIPS 198-1, even if opening comments on
                  that now/soon <br>
                  would be earlier than NIST ordinarily would do so.<br>
                  <br>
                  Given how long it takes to move from an approved FIPS
                  revision<br>
                  to widespread US Government deployment, if data exists
                  from <br>
                  Kenny P and/or others that merits an update, then
                  starting sooner<br>
                  would not be a bad thing for the USG.<br>
                  <br>
                  Cheers,<br>
                  <br>
                  Ran Atkinson<br>
                  <br>
                  --------------------------------<br>
                  Randal Atkinson, PhD<br>
                  Cheltenham Research for NRL 5520<br>
                  <a moz-do-not-send="true"
                    class="moz-txt-link-abbreviated"
                    href="mailto:randal.atkinson.ctr@nrl.navy.mil">randal.atkinson.ctr@nrl.navy.mil</a>       
                  <br>
                  <br>
                </div>
              </span></font></div>
        </div>
        <br>
        <fieldset class="mimeAttachmentHeader"></fieldset>
        <br>
        <pre wrap="">_______________________________________________
Cfrg mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a>
</pre>
      </blockquote>
      <p><br>
      </p>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>

--------------93BDA7C57AD9161DF4494782--


From nobody Thu Feb  9 21:45:02 2017
Return-Path: <martin.thomson@gmail.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 C167F129FD6 for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:45:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 dmCrWS4ZXoy6 for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 21:44:59 -0800 (PST)
Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B014B129FD2 for <cfrg@irtf.org>; Thu,  9 Feb 2017 21:44:59 -0800 (PST)
Received: by mail-qk0-x22a.google.com with SMTP id s186so28828569qkb.1 for <cfrg@irtf.org>; Thu, 09 Feb 2017 21:44:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=pEtd0fEv8U6PQOY3b8h8LYIS+jtgiM/ZK3qdRssSQA8=; b=DW9veGmHWC8l6IejdO54hCUeH9G38cZW7v1+zMQm7avCsPea5+6KGcH9ghraHy+Kky eFVKQL0hc4MwOyJ95D77ofu6N773JDLpzdM4ZHM1mDZk4MT2on48nwTpM2hd/qv/Gbyc ksRvFhVeP6/h5CXZsLETM/Im5W8SRMpPEXKFGpdqUV5LRDkIlj+64tFOHKXfdBRxMAdl zsfs9FgCYcR6uEQ2HXqhrZQR6ptGf5HmBOXewG1IESNLMVJl6IrQIqwiXSAI29TVQF6m FuUVVaixpqhpfkwQ888tPnZIo9RR/vbHCv+TP52q/GoPj6uwEi0MQkVtwck1dE5XEfJD pwkw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=pEtd0fEv8U6PQOY3b8h8LYIS+jtgiM/ZK3qdRssSQA8=; b=tbqHT70dMSyXKNQ5HMx37bSVQrl7gUK6nADuKP6+NGb2yhIbTn/BGuhfSqXKxF182A rNu2Lyn4WEtJ/t/BRmK1qa9oqiXM7/a50I8pkGiQ0ep7IRbKMF7/s8ZVd6nEEntgssGh B/0HfA8Rq8KKrPxcA7bFvPWFAkKhMtTW4pcyV++dTrGPqfRpseadjyJjBzEW1Hx4IX47 a0v7jFUeTo3svBU9xoH3phoxzF9/qOkPAnZ9Y+QZhKfGt1ko4TAWKmDZpXm3vOFV3mA+ DYKVRYJZzFLOfc3HgcirxB5WRf7j9+3zgbo0fQRLABpVgQ3khPlXijCxhpa+l9qcnu3J MhgA==
X-Gm-Message-State: AMke39lvDV2M62rjta1KOKQUwlq10uZ8TiUYg4sJaM7/GklNrtq72rfjkEAFtHF2Z0npSCSB9fPNxBlziuSaeg==
X-Received: by 10.55.151.7 with SMTP id z7mr7060987qkd.316.1486705498946; Thu, 09 Feb 2017 21:44:58 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Thu, 9 Feb 2017 21:44:58 -0800 (PST)
In-Reply-To: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Fri, 10 Feb 2017 16:44:58 +1100
Message-ID: <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com>
To: Sean Turner <sean@sn3rd.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/KXVvh2KMZePtJlyiVmibmvlJmkU>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 05:45:01 -0000

On 10 February 2017 at 16:07, Sean Turner <sean@sn3rd.com> wrote:
> a) Close these two PRs and go with the existing text [0]
> b) Adopt PR#765 [1]
> c) Adopt PR#769 [2]


a) I'm happy enough with the current text (I've implemented that any
it's relatively easy).

I could live with c, but I'm opposed to b. It just doesn't make sense.
It's not obviously wrong any more, but the way it is written it is
very confusing and easily open to misinterpretation.


From nobody Thu Feb  9 22:23:14 2017
Return-Path: <campbell@mumble.net>
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 E9CD11296FC for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 22:23:12 -0800 (PST)
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, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] 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 4xVwtpNdSc_L for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 22:23:11 -0800 (PST)
Received: from jupiter.mumble.net (jupiter.mumble.net [74.50.56.165]) (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 5F7B412973A for <cfrg@ietf.org>; Thu,  9 Feb 2017 22:23:11 -0800 (PST)
Received: by jupiter.mumble.net (Postfix, from userid 1014) id B686060A8C; Fri, 10 Feb 2017 06:23:03 +0000 (UTC)
From: Taylor R Campbell <campbell+cfrg@mumble.net>
To: David Jacobson <dmjacobson@sbcglobal.net>
In-reply-to: <9a95bf47-9fea-6a38-5bdf-d88f10b36323@sbcglobal.net> (dmjacobson@sbcglobal.net)
Date: Fri, 10 Feb 2017 06:23:09 +0000
Sender: Taylor R Campbell <campbell@mumble.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Message-Id: <20170210062303.B686060A8C@jupiter.mumble.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/qINMo28Wo1If9iwy4_FAfEI8uKc>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>, Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 06:23:13 -0000

> Date: Thu, 9 Feb 2017 21:38:31 -0800
> From: David Jacobson <dmjacobson@sbcglobal.net>
>=20
> Oops.  I made a mistake.  It is the key that is being hashed not the=20
> message.
>=20
> But I still don't see where it helps.  An attacker does not choose the ke=
y.

Consider an authenticated encrypted content-addressed storage scheme
similar to Tahoe-LAFS.  Our goal is to store files in some server's
key/value store.  We hope to conceal the content of the files from the
server and detect any attempts at forgery by the server, excluding
replays of old files.

To store a file m, compute k =3D SHA512(m).  Let k0 be the first 256
bits of k.  Use k0 as an AES256-CTR encryption key and k as an
HMAC-SHA256 key with encrypt-then-MAC to obtain ciphertext c0,
authenticator a, and tagged ciphetext c, where:

   c0 =3D AES256-CTR(h, m)
   a =3D HMAC-SHA256(k, c0)
   c =3D c0 || a.

Then use SHA256(k) as the key to store the value c in the server's
key/value store.

Problem:  By revealing SHA256(k) to the server, we have allowed the
server to forge stored ciphertexts, because HMAC-SHA256(k, c0) =3D
HMAC-SHA256(SHA256(k), c0), the latter of which the server can now
compute for any c0.


This protocol is obviously quirky.  It is close to, but not quite,
Tahoe-LAFS's protocol; Tahoe-LAFS goes to some trouble to enforce
domain separation between its various uses of SHA256.  But it is not
far from a plausible protocol that someone might invent, and the only
practical problem I foresee with it is the HMAC key collision:

- Sharing key material between AES256-CTR and HMAC-SHA256 makes my
skin crawl, but -- particularly since the key is prehashed for
HMAC-SHA256! -- I can't imagine an attack arising from this.

- On the other hand, I can easily imagine someone trying to use a
512-bit key with AES256-CTR and HMAC-SHA256 and, on finding that the
nearest crypto library rejects it for AES256-CTR but accepts it for
HMAC-SHA256, simply truncating the AES256-CTR key.


From nobody Thu Feb  9 22:55:34 2017
Return-Path: <campbell@mumble.net>
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 140B2129509 for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 22:55:33 -0800 (PST)
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, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] 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 oHRtLizUqSjb for <cfrg@ietfa.amsl.com>; Thu,  9 Feb 2017 22:55:32 -0800 (PST)
Received: from jupiter.mumble.net (jupiter.mumble.net [74.50.56.165]) (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 042431294CE for <cfrg@ietf.org>; Thu,  9 Feb 2017 22:55:31 -0800 (PST)
Received: by jupiter.mumble.net (Postfix, from userid 1014) id 223AC60AB1; Fri, 10 Feb 2017 06:55:25 +0000 (UTC)
From: Taylor R Campbell <campbell+cfrg@mumble.net>
To: David Jacobson <dmjacobson@sbcglobal.net>,
In-reply-to: <20170210062303.B686060A8C@jupiter.mumble.net> (campbell+cfrg@mumble.net)
Date: Fri, 10 Feb 2017 06:55:30 +0000
Sender: Taylor R Campbell <campbell@mumble.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20170210065525.223AC60AB1@jupiter.mumble.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/DZ1rMp3q7RjeKOQrmDDjxrh0B2k>
Cc: cfrg@ietf.org, Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 06:55:33 -0000

> Date: Fri, 10 Feb 2017 06:23:09 +0000
> From: Taylor R Campbell <campbell+cfrg@mumble.net>
> 
> To store a file m, compute k = SHA512(m).  [...]
> 
> Problem:  By revealing SHA256(k) to the server, we have allowed the
> server to forge stored ciphertexts, because HMAC-SHA256(k, c0) =
> HMAC-SHA256(SHA256(k), c0), [...]

Oops -- this particular scenario doesn't work because if |k| <= 512,
the block size of SHA256, then HMAC-SHA256 uses k verbatim with no
prehash.  We would need to have chosen a >512-bit k, which makes this
whole scenario even less likely: typical block sizes are >=512 bits
(e.g., MD5, SHA1, SHA2, SHA3, BLAKE2), and typical output sizes are
<=512 bits.


From nobody Fri Feb 10 01:06:17 2017
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 62643129410 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 01:06:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level: 
X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 3COBvq4IwOrq for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 01:06:10 -0800 (PST)
Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50042.outbound.protection.outlook.com [40.107.5.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4C3DA126BF7 for <cfrg@irtf.org>; Fri, 10 Feb 2017 01:06:10 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=XVhFIPgYnQorX5k4zcwGPLJ4e//ZP+2qn4OTlPF594c=; b=ro+SmDlHSq69EWfLPb37Ndbv+CFgbyz8TyH+r6Ke5I1LrQaeHklBvHNDUDhj02NNb42WZEjnflGU0uo4L/GjdGEkDOXVHmKAH9q4IohOEvM2xuxtBbfTG8+kJs1HOM1zCVFVIwP39ZcDVgaMdTGCXtg0bt1xuY51CJtdrkVuk5w=
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com (10.168.2.156) by AM4PR0301MB1907.eurprd03.prod.outlook.com (10.168.3.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 09:06:07 +0000
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) by AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) with mapi id 15.01.0888.029; Fri, 10 Feb 2017 09:06:07 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Sean Turner <sean@sn3rd.com>
Thread-Topic: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg1ulN42j3rwAVkipPJ3aFAzvI6FhuukAgAA4koA=
Date: Fri, 10 Feb 2017 09:06:07 +0000
Message-ID: <D4C331C7.86224%kenny.paterson@rhul.ac.uk>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com>
In-Reply-To: <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [78.146.76.254]
x-microsoft-exchange-diagnostics: 1; AM4PR0301MB1907; 7:Q90T0VHKTJU0ye1bHUqTpTTD0FhszZITv44tPIMbYfxWFyA47pBzSujqwOva3ViCmsDOn6DX5tnsSllDPbDrQ7fOhnEunojhhZrn5MG6Qp/Nlj3ZxK09xfRzoQWuuqSSXj9FDzcTzKHvkN0jCcfuvgKnnE03pMeWdpXjRYn8XS+YlCIbnLz06wdaMreWeXMKqx0cmskjUsd4XnUP1D7L6uddbra1xDUh/Od/BS5L5qxLwjoQqqKtLR0vn/tkZVhqK9jX9GVhKfGMcSPZfSxVxXAu9zILay/2Z4AShjOWf79XLM425fI4+KaKL3TjuhSZXvgdJz0wsFf0e5pvqqk2p9Diz6QwjxDV0TqsvrEuzOetogQ0xa6dGABqhUIUE1aLFyyltfCmYZ36nf2dTG9wH1jPaGwqIZTO+gl5xvm8FD/9nIrNJKLoLDlx6ELAMEiivZ0SreCdqZHCnNoOhMrhPF3Yx1xgxSyLMEUDbgzPTeDw77Rv3qeH8hZzbxbY3rQqMbYkITniknmUqJITBn+JVw==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(189002)(24454002)(199003)(101416001)(8936002)(106356001)(2950100002)(6916009)(106116001)(42882006)(74482002)(68736007)(105586002)(2906002)(4326007)(122556002)(86362001)(36756003)(7736002)(66066001)(3846002)(102836003)(6116002)(81156014)(5660300001)(53546003)(6246003)(229853002)(8676002)(53936002)(92566002)(2900100001)(81166006)(3280700002)(99286003)(54906002)(6486002)(4001350100001)(76176999)(50986999)(77096006)(6506006)(3660700001)(38730400002)(189998001)(25786008)(110136004)(83506001)(97736004)(6512007)(54356999)(68196006)(6436002)(305945005)(6306002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB1907; H:AM4PR0301MB1906.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
x-ms-office365-filtering-correlation-id: e4265914-066f-468c-03a8-08d451940cca
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR0301MB1907; 
x-microsoft-antispam-prvs: <AM4PR0301MB1907247A9BF94C80DE39EBF0BC440@AM4PR0301MB1907.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123558025)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:AM4PR0301MB1907; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0301MB1907; 
x-forefront-prvs: 0214EB3F68
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <702D4EBAC6C88847AC69B3266840936D@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 09:06:07.5436 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB1907
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/4lP-IJfALq6rhoDrQyTmSdBrXzM>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 09:06:13 -0000

SGksDQoNCk15IHByZWZlcmVuY2UgaXMgdG8gZ28gd2l0aCB0aGUgZXhpc3RpbmcgdGV4dCwgb3B0
aW9uIGEpLg0KDQpGcm9tIHRoZSBnaXRodWIgZGlzY3Vzc2lvbiwgSSB0aGluayBvcHRpb24gYykg
aW52b2x2ZXMgYSBsZXNzIGNvbnNlcnZhdGl2ZQ0Kc2VjdXJpdHkgYm91bmQgKHN1Y2Nl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oIGMsIGJ1dCBJJ20gb3Bwb3Nl
ZCB0byBiLiBJdCBqdXN0IGRvZXNuJ3QgbWFrZSBzZW5zZS4NCj5JdCdzIG5vdCBvYnZpb3VzbHkg
d3JvbmcgYW55IG1vcmUsIGJ1dCB0aGUgd2F5IGl0IGlzIHdyaXR0ZW4gaXQgaXMNCj52ZXJ5IGNv
bmZ1c2luZyBhbmQgZWFzaWx5IG9wZW4gdG8gbWlzaW50ZXJwcmV0YXRpb24uDQo+DQo+X19fX19f
X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NCj5DZnJnIG1haWxpbmcg
bGlzdA0KPkNmcmdAaXJ0Zi5vcmcNCj5odHRwczovL3d3dy5pcnRmLm9yZy9tYWlsbWFuL2xpc3Rp
bmZvL2NmcmcNCg0K


From nobody Fri Feb 10 03:26:26 2017
Return-Path: <ilariliusvaara@welho.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 E71A11295D0 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 03:26:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RP_MATCHES_RCVD=-0.001] 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 d20Idpsj6mr5 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 03:26:23 -0800 (PST)
Received: from welho-filter4.welho.com (welho-filter4.welho.com [83.102.41.26]) by ietfa.amsl.com (Postfix) with ESMTP id 32B051294F6 for <cfrg@irtf.org>; Fri, 10 Feb 2017 03:26:22 -0800 (PST)
Received: from localhost (localhost [127.0.0.1]) by welho-filter4.welho.com (Postfix) with ESMTP id 575141CEBB; Fri, 10 Feb 2017 13:26:21 +0200 (EET)
X-Virus-Scanned: Debian amavisd-new at pp.htv.fi
Received: from welho-smtp2.welho.com ([IPv6:::ffff:83.102.41.85]) by localhost (welho-filter4.welho.com [::ffff:83.102.41.26]) (amavisd-new, port 10024) with ESMTP id pK1LaYVhC7ln; Fri, 10 Feb 2017 13:26:19 +0200 (EET)
Received: from LK-Perkele-V2 (87-92-51-204.bb.dnainternet.fi [87.92.51.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by welho-smtp2.welho.com (Postfix) with ESMTPSA id E4F8921C; Fri, 10 Feb 2017 13:26:19 +0200 (EET)
Date: Fri, 10 Feb 2017 13:26:17 +0200
From: Ilari Liusvaara <ilariliusvaara@welho.com>
To: Martin Thomson <martin.thomson@gmail.com>
Message-ID: <20170210112617.GA21741@LK-Perkele-V2.elisa-laajakaista.fi>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
In-Reply-To: <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com>
User-Agent: Mutt/1.5.23 (2014-03-12)
Sender: ilariliusvaara@welho.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/QZXjb8dxbuQPk_xtfZBRHUEMFDA>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>, Sean Turner <sean@sn3rd.com>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 11:26:25 -0000

On Fri, Feb 10, 2017 at 04:44:58PM +1100, Martin Thomson wrote:
> On 10 February 2017 at 16:07, Sean Turner <sean@sn3rd.com> wrote:
> > a) Close these two PRs and go with the existing text [0]
> > b) Adopt PR#765 [1]
> > c) Adopt PR#769 [2]
> 
> 
> a) I'm happy enough with the current text (I've implemented that any
> it's relatively easy).
> 
> I could live with c, but I'm opposed to b. It just doesn't make sense.
> It's not obviously wrong any more, but the way it is written it is
> very confusing and easily open to misinterpretation.

I couldn't make out what b) says, c) is much clearer.

However, even in a), let alone b) or c), the limits are so high that
one should do some greasing, or this feature seems like a prime
candidate for rusting shut.


-Ilari


From nobody Fri Feb 10 04:38:44 2017
Return-Path: <quynh.dang@nist.gov>
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 7ABA31295B2 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 04:38:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 F_OaSkNUf71g for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 04:38:37 -0800 (PST)
Received: from gcc01-dm2-obe.outbound.protection.outlook.com (mail-dm2gcc01on0092.outbound.protection.outlook.com [23.103.201.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 95E86129613 for <cfrg@irtf.org>; Fri, 10 Feb 2017 04:38:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=FgRpksH1PX5jNzPkwBaheUWRuxHGFvtj8oE+6jvC41Y=; b=v7dugR6zuCShPGLspiMWxw+JdzjcSELC9MPqIVcCQPnzt3LL3hJIpdYW5ARXbfAHrBInDTJZr7Ai2u+Ug4vhfPyNpFSD/w2nxanRLmunjTYNh/MrKTjc18EgYwUKtaL/Inmu+qvfwnWLv+VUIWmfw1XneipJlv01jGO+Morr4p8=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 12:38:35 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.026; Fri, 10 Feb 2017 12:38:35 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Sean Turner <sean@sn3rd.com>, "<tls@ietf.org>" <tls@ietf.org>
Thread-Topic: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg1ujO2IdKSxzmEyFi9zUyMXxM6FiINGq
Date: Fri, 10 Feb 2017 12:38:34 +0000
Message-ID: <CY4PR09MB146491519DC49811E2A8CE79F3440@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
In-Reply-To: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.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-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-ms-office365-filtering-correlation-id: 7cf13fea-527e-4362-0fc3-08d451b1bac0
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1464; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1464; 7:Hq/mF2Aq8CpakIfcCLl18q0Wk1cJdXc+EwjKT0ZzUTGubGBubzGRoYYCZH1uObQ/Lhz5I/g0ZbG2tlaVEkSx0z4bbzmxHnIoljKoWSSzqYBcJEvpwyZPJRaYSHtF3I89BlPgAtWHT3PM/NEJTJsu1hTFcWsvl9Xg2MCrBbBUwmg8+iyj3CUXJt6zYjfo5K9TUkMc8c26I66MU595z86jiwd5qlEL/VnBToQlPMI4vOYDccX/WYHSSaeGiOunCmuR+56N/BJDMfOYemK46jDkdyhSj5UUIq2RkQIzW1gQy/gh9FvjIt13vS48JWiZbt8r/aoJzLphtWTj0bQH230zthKMigCostYuoHZQX4EyRPCmVwwq+6XmajiyBCoyUywHetfEXPOkGV8z7NPI3DHz245TyFMvRpVq0+613Rzpj1B6PjWwrUjlXr6oo0vr7w/CMosKYDwX1fF6O1H8Dl4wUBaJqI1QZefzxkByq+ZMPCpyCEtZMtmzJi3BDtwxEk4dwtJvOuuufGzZKuVFsIkbMQ==
x-microsoft-antispam-prvs: <CY4PR09MB14648901130574A7FB8E154BF3440@CY4PR09MB1464.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(158342451672863)(166708455590820)(192374486261705)(100405760836317); 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123558025)(20161123560025)(6072148); SRVR:CY4PR09MB1464; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1464; 
x-forefront-prvs: 0214EB3F68
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39840400002)(39410400002)(39450400003)(199003)(377454003)(189002)(6116002)(54356999)(76176999)(3660700001)(50986999)(92566002)(25786008)(53936002)(74316002)(2950100002)(6436002)(55016002)(54896002)(606005)(3280700002)(77096006)(7906003)(9686003)(6306002)(3846002)(6506006)(81156014)(5660300001)(8676002)(101416001)(122556002)(81166006)(8936002)(7736002)(33656002)(4326007)(7696004)(102836003)(86362001)(97736004)(236005)(66066001)(2900100001)(68736007)(229853002)(99286003)(106356001)(189998001)(106116001)(38730400002)(105586002)(6246003)(53546003)(2906002)(491001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1464; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR09MB146491519DC49811E2A8CE79F3440CY4PR09MB1464namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 12:38:34.8621 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1464
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/Anac-CdJyuZT1yC8Jp2NU30DOxw>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 12:38:39 -0000

--_000_CY4PR09MB146491519DC49811E2A8CE79F3440CY4PR09MB1464namp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Sean and all,


I agree with everyone that the text in (b) was not very good text.


The problem with (c) is that it is not precise at places and it leaves out =
a lot of informative discussions which users should know.


The sentence "The maximum amount of plaintext data that can be safely encry=
pted with  AES-GCM in a session is 2^48 128-bit blocks (2^52 bytes), assumi=
ng  probability of success at 1/2^32" is not clear.  What is the success he=
re? And, with 2^48 (full or partial) blocks, the collision probability is b=
elow (not at) 2^(-32).


And, "safely encrypted", what does this mean? I would like not having a col=
lision among 128-bit blocks of ciphertexts, but I dont see any damage to th=
e data owner who sends the encrypted data over a TLS session.


I copied the text that I later proposed under the discussion of PR#769 belo=
w.


" To use AES-GCM to provide authenticity of authenticated data, confidentia=
lity of plaintext content, and information leakage [0] protection for the p=
laintext safely, the limit of total ciphertext under a single key is ( (TLS=
CipherText.length / 16) / ceiling (TLSCipherText.length / 16) ) times 2^48 =
128-bit blocks.


When the data limit is reached, the chance of having a collision among 128-=
bit blocks of the ciphertext is below 2^(-32) which is negligible.

Since the block size of AES is 128 bits, there will be collisions among dif=
ferent sets of ciphertext from multiple sessions using GCM (or any other mo=
des of AES) when the total amount of the ciphertext of all considered sessi=
ons is more than 2^64 128-bit blocks. This fact does not seem to create a p=
ractical security weakness of using AES GCM.

For ChaCha20/Poly1305, the record sequence number would wrap before the saf=
ety limit is reached. See [AEAD-LIMITS] for further analysis.

[0]: Information leakage in the context of TLS is a chosen-plaintext distin=
guishing attack where the attacker provides 2 128-bit plaintext blocks to a=
 GCM encryption engine, after seeing one encrypted block for one of the 2 p=
laintext blocks, the attacker knows which plaintext block was encrypted. Or=
, it means that there is a collision among 128-bit blocks of the ciphertext=
. "

  1.  The text above uses blocks instead of bytes or records of ciphertext.
  2.  The partial block situation is taken into account.

"


Or, using good text from PR769 provided by brainhub, the first paragraph co=
uld be replaced by the following.


"To use AES-GCM to provide authenticity of authenticated data, confidential=
ity of plaintext content, and information leakage [0] protection for the pl=
aintext, the limit of total ciphertext under a single key is 2^48 128-bit b=
locks with the ciphertext size being rounded up to the next 16-byte boundar=
y. "


Regards,

Quynh.



________________________________
From: Cfrg <cfrg-bounces@irtf.org> on behalf of Sean Turner <sean@sn3rd.com=
>
Sent: Friday, February 10, 2017 12:07:35 AM
To: <tls@ietf.org>
Cc: IRTF CFRG
Subject: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)

All,

We=92ve got two outstanding PRs that propose changes to draft-ietf-tls-tls1=
3 Section 5.5 =93Limits on Key Usage=94.  As it relates to rekeying, these =
limits have been discussed a couple of times and we need to resolve once an=
d for all whether the TLS WG wants to:

a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]

Please indicate you preference to the TLS mailing list before Feb 17.  Note=
 that unless there=92s clear consensus to change the text will remain as is=
 (i.e., option a).

J&S

[0] https://tlswg.github.io/tls13-spec/#rfc.section.5.5
[1] https://github.com/tlswg/tls13-spec/pull/765
[2] https://github.com/tlswg/tls13-spec/pull/769
_______________________________________________
Cfrg mailing list
Cfrg@irtf.org
https://www.irtf.org/mailman/listinfo/cfrg

--_000_CY4PR09MB146491519DC49811E2A8CE79F3440CY4PR09MB1464namp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<meta name=3D"Generator" content=3D"Microsoft Exchange Server">
<!-- converted from text --><style><!-- .EmailQuote { margin-left: 1pt; pad=
ding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<meta content=3D"text/html; charset=3DUTF-8">
<style type=3D"text/css" style=3D"">
<!--
p
	{margin-top:0;
	margin-bottom:0}
-->
</style>
<div dir=3D"ltr">
<div id=3D"x_divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size:12pt; col=
or:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Sean and all,</p>
<p><br>
</p>
<p>I agree with everyone that the text in (b) was not very good text.</p>
<p><br>
</p>
<p>The problem with (c) is that it is&nbsp;not precise at places and it lea=
ves out a lot of informative discussions which users should know.&nbsp;</p>
<p><br>
</p>
<p>The sentence &quot;<span>The maximum amount of plaintext data that can b=
e safely encrypted with &nbsp;AES-GCM in a session is 2^48 128-bit blocks (=
2^52 bytes), assuming &nbsp;probability of success at 1/2^32&quot; is not c=
lear. &nbsp;What is the success here? And, with 2^48 (full
 or partial)&nbsp;blocks, the collision probability is below (not at) 2^(-3=
2).&nbsp;</span></p>
<p><span><br>
</span></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
">And,&nbsp;&quot;safely encrypted&quot;, what does this mean? I would like=
 not having a
 collision among 128-bit blocks of ciphertexts, but I dont see any damage t=
o the data owner who sends the encrypted data over a TLS session. &nbsp;</s=
pan><br>
</span></p>
<p><br>
</p>
<p>I copied the text that I later proposed under the discussion of PR#769 b=
elow.&nbsp;<br>
</p>
<p><br>
</p>
<p><span style=3D"color:rgb(51,51,51); font-size:14px">&quot;&nbsp;</span><=
span style=3D"color:rgb(51,51,51); font-size:14px">To use AES-GCM to provid=
e authenticity of authenticated data, confidentiality of
</span><span style=3D"color:rgb(51,51,51); font-size:14px">plaintext conten=
t</span><span style=3D"color:rgb(51,51,51); font-size:14px">, and informati=
on leakage [0] protection for the plaintext safely, the limit of total ciph=
ertext under a single key is ( (TLSCipherText.length
 / 16) / ceiling (TLSCipherText.length / 16) ) times 2^48 128-bit blocks.</=
span></p>
<p><span style=3D"color:rgb(51,51,51); font-size:14px"><br>
</span></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
"></p>
<p style=3D"margin-bottom:16px; color:rgb(51,51,51); font-size:14px">When t=
he data limit is reached, the chance of having a collision among 128-bit bl=
ocks of the ciphertext is below 2^(-32) which is negligible.</p>
<p style=3D"margin-bottom:16px; color:rgb(51,51,51); font-size:14px">Since =
the block size of AES is 128 bits, there will be collisions among different=
 sets of ciphertext from multiple sessions using GCM (or any other modes of=
 AES) when the total amount of the
 ciphertext of all considered sessions is more than 2^64 128-bit blocks. Th=
is fact does not seem to create a practical security weakness of using AES =
GCM.</p>
<p style=3D"margin-bottom:16px; color:rgb(51,51,51); font-size:14px">For Ch=
aCha20/Poly1305, the record sequence number would wrap before the safety li=
mit is reached. See [AEAD-LIMITS] for further analysis.</p>
<p style=3D"margin-bottom:16px; color:rgb(51,51,51); font-size:14px">[0]: I=
nformation leakage in the context of TLS is a chosen-plaintext distinguishi=
ng attack where the attacker provides 2 128-bit plaintext blocks to a GCM e=
ncryption engine, after seeing one
 encrypted block for one of the 2 plaintext blocks, the attacker knows whic=
h plaintext block was encrypted. Or, it means that there is a collision amo=
ng 128-bit blocks of the ciphertext. &quot;</p>
<ol style=3D"padding-left:2em; margin-top:0px; color:rgb(51,51,51); font-si=
ze:14px; margin-bottom:0px!important">
<li style=3D"margin-left:0px">The text above uses blocks instead of bytes o=
r records of ciphertext.</li><li style=3D"margin-top:0.25em; margin-left:0p=
x">The partial block situation is taken into account.</li></ol>
&quot;&nbsp;</span></span>
<p></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
"><br>
</span></span></p>
<p><span>Or, using good text from PR769 provided by brainhub, the first par=
agraph&nbsp;could be replaced by the following.</span></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
"><br>
</span></span></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
"><span style=3D"color:rgb(51,51,51); font-size:14px"><span style=3D"color:=
rgb(51,51,51); font-size:14px">&quot;To
 use AES-GCM to provide authenticity of authenticated data, <span>confident=
iality of&nbsp;plaintext content,</span> and information leakage [0] protec=
tion for the plaintext, the limit of total ciphertext under a single key is=
 2^48 128-bit blocks with the ciphertext
 size being rounded up&nbsp;to the next 16-byte boundary. &quot;</span></sp=
an></span></span></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
"><span style=3D"color:rgb(51,51,51); font-size:14px"><span style=3D"color:=
rgb(51,51,51); font-size:14px"><br>
</span></span></span></span></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
"><span style=3D"color:rgb(51,51,51); font-size:14px"><span style=3D"color:=
rgb(51,51,51); font-size:14px">Regards,</span></span></span></span></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
"><span style=3D"color:rgb(51,51,51); font-size:14px"><span style=3D"color:=
rgb(51,51,51); font-size:14px">Quynh.
 &nbsp;</span><span></span></span></span></span></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
"><br>
</span></span></p>
<p><span><span style=3D"font-family:Calibri,Arial,Helvetica,sans-serif,&quo=
t;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;,NotoColorEmoji,&quot;S=
egoe UI Symbol&quot;,&quot;Android Emoji&quot;,EmojiSymbols; font-size:16px=
"><br>
</span></span></p>
</div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Cfrg &lt;cfrg-bounc=
es@irtf.org&gt; on behalf of Sean Turner &lt;sean@sn3rd.com&gt;<br>
<b>Sent:</b> Friday, February 10, 2017 12:07:35 AM<br>
<b>To:</b> &lt;tls@ietf.org&gt;<br>
<b>Cc:</b> IRTF CFRG<br>
<b>Subject:</b> [Cfrg] Closing out tls1.3 &quot;Limits on key usage&quot; P=
Rs (#765/#769)</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText">All,<br>
<br>
We=92ve got two outstanding PRs that propose changes to draft-ietf-tls-tls1=
3 Section 5.5 =93Limits on Key Usage=94.&nbsp; As it relates to rekeying, t=
hese limits have been discussed a couple of times and we need to resolve on=
ce and for all whether the TLS WG wants to:<br>
<br>
a) Close these two PRs and go with the existing text [0]<br>
b) Adopt PR#765 [1]<br>
c) Adopt PR#769 [2]<br>
<br>
Please indicate you preference to the TLS mailing list before Feb 17.&nbsp;=
 Note that unless there=92s clear consensus to change the text will remain =
as is (i.e., option a).<br>
<br>
J&amp;S<br>
<br>
[0] <a href=3D"https://tlswg.github.io/tls13-spec/#rfc.section.5.5">https:/=
/tlswg.github.io/tls13-spec/#rfc.section.5.5</a><br>
[1] <a href=3D"https://github.com/tlswg/tls13-spec/pull/765">https://github=
.com/tlswg/tls13-spec/pull/765</a><br>
[2] <a href=3D"https://github.com/tlswg/tls13-spec/pull/769">https://github=
.com/tlswg/tls13-spec/pull/769</a><br>
_______________________________________________<br>
Cfrg mailing list<br>
Cfrg@irtf.org<br>
<a href=3D"https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org=
/mailman/listinfo/cfrg</a><br>
</div>
</span></font>
</body>
</html>

--_000_CY4PR09MB146491519DC49811E2A8CE79F3440CY4PR09MB1464namp_--


From nobody Fri Feb 10 04:48:51 2017
Return-Path: <quynh.dang@nist.gov>
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 CBE14129483 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 04:48:44 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 5rA1aautQPg5 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 04:48:43 -0800 (PST)
Received: from gcc01-dm2-obe.outbound.protection.outlook.com (mail-dm2gcc01on0110.outbound.protection.outlook.com [23.103.201.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 29B21129637 for <cfrg@irtf.org>; Fri, 10 Feb 2017 04:48:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=VDJW7fswKUh9lKl3szACBtUEmkwvCD/WAZmiOSQ4ozY=; b=BFYe+rJCm8d3GEq16EVL1QC6zysmRsO53QdTF53B0a4z2ipZLuY+sw9zgTZYDQiT8DAPTUjG1a1chykqBkgnTD+Tbjf7UPDWnbeLO0rX/X0h6cnNWmGlOYU0/kvzrDAF4WWRf1YNuRnzZLHFPS9eWjjP892jf/eCIksEKJPr4t0=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1461.namprd09.prod.outlook.com (10.173.191.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 12:48:41 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.026; Fri, 10 Feb 2017 12:48:41 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Sean Turner <sean@sn3rd.com>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg5wBoDZYWLM7Y0meekq7MUVdlg==
Date: Fri, 10 Feb 2017 12:48:41 +0000
Message-ID: <D4C31FC4.2F5AF%qdang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk>
In-Reply-To: <D4C331C7.86224%kenny.paterson@rhul.ac.uk>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-ms-office365-filtering-correlation-id: 3c2cc685-ee47-4611-669c-08d451b3244a
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1461; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1461; 7:FNaw6j0epX9NwZAnWwwKsErqCnbjdjshHGKpmr6UTDLyAUJ0Gy+94I5CoqxF+ejEQPzOMdk7vgsWb+16zfyOdbletZWp9LeEzSCfzGeK3Ju3LChqVyn8a8BTjVHiiDnoHgwfvRRxpmyqlWi7YNlyOnX2zmnU4OzGxM598FBKJ7zXKCfgFoUD+rNCJaDE2KXyGoyHhSKAUMxqV/dsaT31kZ8dd0Y46eDsF1GDyz8SMtsK0K+s489e5NeIvGa9Y182kyhk9d8fill7TfkBKU4Ypw1QMna25Qo/8ElEear2/LZ0UTXjP22CjnTcMtBeSdFWLB9cot1wZwjAotZ/hBF/gwxLJ1QuZjhgOB9ur7ez2/MkfCvE58mtobENFE4QG7P8QG6igL3ROMjeempZHvkuSwN3Eovc0pMq1fG9wPOXkCHQYzj4CXKggsW0GNZcuclt5UzT/MpCIakzPXl0hnIuWibhccGhab/iXmmZj2PdjloUfje1EtMAR68fM+KBJ3iQ/++/LqcqgsCymBzmGq0DKA==
x-microsoft-antispam-prvs: <CY4PR09MB1461623A576D736108D7384CF3440@CY4PR09MB1461.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123555025)(20161123562025)(20161123560025)(20161123558025)(6072148); SRVR:CY4PR09MB1461; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1461; 
x-forefront-prvs: 0214EB3F68
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39850400002)(39410400002)(39840400002)(39450400003)(24454002)(189002)(377454003)(199003)(229853002)(2950100002)(77096006)(6436002)(5660300001)(92566002)(3846002)(102836003)(6116002)(6506006)(25786008)(606005)(6306002)(8656002)(54896002)(53936002)(236005)(97736004)(6512007)(99286003)(54906002)(101416001)(50986999)(66066001)(2900100001)(4001350100001)(2906002)(54356999)(3280700002)(68736007)(3660700001)(189998001)(76176999)(6486002)(122556002)(86362001)(4326007)(106356001)(105586002)(6246003)(106116001)(36756003)(53546003)(7906003)(81156014)(81166006)(7736002)(8676002)(8936002)(83506001)(38730400002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1461; H:CY4PR09MB1464.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:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4C31FC42F5AFqdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 12:48:41.4623 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1461
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/u9akfs71uF9-ZogF2K2zQVTmWfs>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 12:48:45 -0000

--_000_D4C31FC42F5AFqdangnistgov_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Kenny,

From: TLS <tls-bounces@ietf.org<mailto:tls-bounces@ietf.org>> on behalf of =
"Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul.ac.=
uk>>
Date: Friday, February 10, 2017 at 4:06 AM
To: Sean Turner <sean@sn3rd.com<mailto:sean@sn3rd.com>>
Cc: IRTF CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>, "<tls@ietf.org<mailto:=
tls@ietf.org>>" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hi,

My preference is to go with the existing text, option a).

>From the github discussion, I think option c) involves a less conservative
security bound (success probability for IND-CPA attacker bounded by
2^{-32} instead of 2^{-60}). I can live with that, but the WG should be
aware of the weaker security guarantees it provides.

I do not understand option b). It seems to rely on an analysis of
collisions of ciphertext blocks rather than the established security proof
for AES-GCM.

My suggestion was based on counting.  I analyzed AES-GCM in TLS 1.3  as bei=
ng a counter-mode encryption and each counter is a 96-bit nonce || 32-bit c=
ounter. I don=92t know if there is another kind of proof that is more preci=
se than that.

Regards,
Quynh.



Regards,

Kenny

On 10/02/2017 05:44, "Cfrg on behalf of Martin Thomson"
<cfrg-bounces@irtf.org<mailto:cfrg-bounces@irtf.org> on behalf of martin.th=
omson@gmail.com<mailto:martin.thomson@gmail.com>> wrote:

On 10 February 2017 at 16:07, Sean Turner <sean@sn3rd.com<mailto:sean@sn3rd=
.com>> wrote:
a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]


a) I'm happy enough with the current text (I've implemented that any
it's relatively easy).

I could live with c, but I'm opposed to b. It just doesn't make sense.
It's not obviously wrong any more, but the way it is written it is
very confusing and easily open to misinterpretation.

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

_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls


--_000_D4C31FC42F5AFqdangnistgov_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <81E61802C2AE14439A23D47F0A847436@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>Hi Kenny,&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>TLS &lt;<a href=3D"mailto:tls=
-bounces@ietf.org">tls-bounces@ietf.org</a>&gt; on behalf of &quot;Paterson=
, Kenny&quot; &lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paters=
on@rhul.ac.uk</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Friday, February 10, 2017 at =
4:06 AM<br>
<span style=3D"font-weight:bold">To: </span>Sean Turner &lt;<a href=3D"mail=
to:sean@sn3rd.com">sean@sn3rd.com</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>IRTF CFRG &lt;<a href=3D"mailto=
:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;&lt;<a href=3D"mailto:tls@ietf=
.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"mailto:tls@ietf.org">tls@ie=
tf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>Hi,</div>
<div><br>
</div>
<div>My preference is to go with the existing text, option a).</div>
<div><br>
</div>
<div>From the github discussion, I think option c) involves a less conserva=
tive</div>
<div>security bound (success probability for IND-CPA attacker bounded by</d=
iv>
<div>2^{-32} instead of 2^{-60}). I can live with that, but the WG should b=
e</div>
<div>aware of the weaker security guarantees it provides.</div>
<div><br>
</div>
<div>I do not understand option b). It seems to rely on an analysis of</div=
>
<div>collisions of ciphertext blocks rather than the established security p=
roof</div>
<div>for AES-GCM.</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>My suggestion was based on counting. &nbsp;I analyzed AES-GCM in TLS 1=
.3 &nbsp;as being a counter-mode encryption and each counter is a 96-bit no=
nce || 32-bit counter. I don=92t know if there is another kind of proof tha=
t is more precise than that.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Quynh.&nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Kenny</div>
<div><br>
</div>
<div>On 10/02/2017 05:44, &quot;Cfrg on behalf of Martin Thomson&quot;</div=
>
<div>&lt;<a href=3D"mailto:cfrg-bounces@irtf.org">cfrg-bounces@irtf.org</a>=
 on behalf of
<a href=3D"mailto:martin.thomson@gmail.com">martin.thomson@gmail.com</a>&gt=
; wrote:</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>On 10 February 2017 at 16:07, Sean Turner &lt;<a href=3D"mailto:sean@s=
n3rd.com">sean@sn3rd.com</a>&gt; wrote:</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>a) Close these two PRs and go with the existing text [0]</div>
<div>b) Adopt PR#765 [1]</div>
<div>c) Adopt PR#769 [2]</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>a) I'm happy enough with the current text (I've implemented that any</=
div>
<div>it's relatively easy).</div>
<div><br>
</div>
<div>I could live with c, but I'm opposed to b. It just doesn't make sense.=
</div>
<div>It's not obviously wrong any more, but the way it is written it is</di=
v>
<div>very confusing and easily open to misinterpretation.</div>
<div><br>
</div>
<div>_______________________________________________</div>
<div>Cfrg mailing list</div>
<div><a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a></div>
<div><a href=3D"https://www.irtf.org/mailman/listinfo/cfrg">https://www.irt=
f.org/mailman/listinfo/cfrg</a></div>
</blockquote>
<div><br>
</div>
<div>_______________________________________________</div>
<div>TLS mailing list</div>
<div><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></div>
<div><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf=
.org/mailman/listinfo/tls</a></div>
<div><br>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4C31FC42F5AFqdangnistgov_--


From nobody Fri Feb 10 05:23:35 2017
Return-Path: <quynh.dang@nist.gov>
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 459181298C3 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 05:23:34 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 thvfQ5CGCupk for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 05:23:31 -0800 (PST)
Received: from gcc01-dm2-obe.outbound.protection.outlook.com (mail-dm2gcc01on0110.outbound.protection.outlook.com [23.103.201.110]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8623912960E for <cfrg@ietf.org>; Fri, 10 Feb 2017 05:23:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YrWmjCvKtjRpdqiRsbhTmQTjez8CY2EyNkid8pTZhXU=; b=K26A9ow7+SJVeMt+0QDmVkkfaUDN7FtE62TQGl6b7iVBVxfn/fd4uTXyhcCrKwGcyJe8clJM9SZknvzsdM65+Ge0AYYvrjI6Yb5T8C9cNXSiHgKT5zl2S0JSY+M4G9Bvm0gAKQnp0Airc4aIjUnx460ZwT4AA4YuVTIitSdOu2o=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 13:23:29 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.026; Fri, 10 Feb 2017 13:23:29 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: David Jacobson <dmjacobson@sbcglobal.net>, "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>, Michael StJohns <msj@nthpermutation.com>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Thread-Topic: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
Thread-Index: AQHSgWiX/QOHsp+cqk6PweDPw/SKDKFfEXKkgAKodACAADEvAA==
Date: Fri, 10 Feb 2017 13:23:29 +0000
Message-ID: <D4C323A1.2F5E8%qdang@nist.gov>
References: <F2C52E74-6FF0-4F72-BFD0-56D39031B4D9@nrl.navy.mil> <CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com> <59d04ca7-aed8-e0e1-bf06-fdd44ccba697@sbcglobal.net>
In-Reply-To: <59d04ca7-aed8-e0e1-bf06-fdd44ccba697@sbcglobal.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1464; 7:HpNlRXnfdGNX0a2DUHR594LSc0mdd5IXW3HUM+ErCwBPtdNYgWCa1wbuGzy31MtF5976pVDkIGI1c5aueSR2F63rVePdKUCafe9/ILGETotp+/xSQhoVyd5iPWm5EKzi9hu7UHHmvd4PDsxku47QPrzcYAEK27UmeaW8zQhbNBfac9hiFC7xLOFKwbzAitZVsv/8xOxP9eP2oMxM/LZwakG1HNaIxce5NpCUb93wQQl0K/aTAQPeoxpMqTbJB+sqOKFn54rPaEAKHtERKKEtJCe4+DWFJKACZ6+4p7GSUdvnY+a/cqY+AJtNlO82Xc0yLUbl04Z9efgQVoru3anvxrDC/1yjmB43LAjSEgZnTA8Kb3tXNJq2KMvlEgnZYJo4Vsl9AQsT/39abBEE82Y79McIU8IFjcLBHgAgKguYORBCYvtsaj8ZBNGlun/74fYVLWj8025qx6LHNbPt836kGZMmLa4O4EdquuLXQb9gX3QwGzwUrOPEgF72Duid/VI5qs5HqmpLrO9+TfKCx5Cksw==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10019020)(7916002)(39450400003)(39410400002)(39840400002)(39850400002)(189002)(24454002)(377454003)(199003)(66066001)(68736007)(2900100001)(36756003)(236005)(345774005)(99286003)(229853002)(102836003)(86362001)(97736004)(4001350100001)(38730400002)(189998001)(106116001)(6246003)(2906002)(53546003)(105586002)(19627405001)(106356001)(83506001)(3280700002)(77096006)(6486002)(6436002)(53936002)(2950100002)(54896002)(606005)(3846002)(6506006)(6512007)(6306002)(7906003)(50986999)(92566002)(8656002)(3660700001)(6116002)(76176999)(54356999)(25786008)(7736002)(8936002)(4326007)(8676002)(101416001)(81156014)(5660300001)(81166006)(122556002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1464; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  MX:1; A:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 9500ac65-e736-4a6e-4289-08d451b800ac
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1464; 
x-microsoft-antispam-prvs: <CY4PR09MB14647B854CDFD90CCFC85B51F3440@CY4PR09MB1464.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705)(189930954265078)(13052087078022)(4659246709749)(112561432440764);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123558025)(20161123560025)(6072148); SRVR:CY4PR09MB1464; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1464; 
x-forefront-prvs: 0214EB3F68
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4C323A12F5E8qdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 13:23:29.2073 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1464
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/1yE-98Ad-ryzzC5oq_Xi06vDQsY>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 13:23:34 -0000

--_000_D4C323A12F5E8qdangnistgov_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

See my discussion below.

From: David Jacobson <dmjacobson@sbcglobal.net<mailto:dmjacobson@sbcglobal.=
net>>
Date: Friday, February 10, 2017 at 12:27 AM
To: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>, Randal Atkin=
son <randal.atkinson.ctr@nrl.navy.mil<mailto:randal.atkinson.ctr@nrl.navy.m=
il>>, Michael StJohns <msj@nthpermutation.com<mailto:msj@nthpermutation.com=
>>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul=
.ac.uk>>
Cc: "cfrg@ietf.org<mailto:cfrg@ietf.org>" <cfrg@ietf.org<mailto:cfrg@ietf.o=
rg>>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...

See interleaved comment.

On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:

Randal, Michael and many others,


Thank you for your suggestions.


Kenny,


Thank you for your discussion email.


We are thinking about what would be the best option for HMAC.  Some technic=
al possibilities are below.


1) Don't change the HMAC spec.

Ask a HMAC key always to have a fixed length such as HMAC-SHA256 having 256=
-bit key. Which means that all protocols using HMAC-SHA256 use 256-bit keys=
.

If each protocol uses a different key length, then the issue would still ex=
ist across protocols. I don't know if this is a practical security problem,=
 but it seems like a problem that should be avoided.

Should ask HMAC keys to be processed/produced by a hash function or another=
 PRF always.

I don't see the need or even desirability for this, assuming you ask each p=
rotocol to use a fixed (for that protocol) key length.  (That was the line =
above.)

For an attacker to find two messages with the same HMAC, not knowing the ke=
y, he would have to find a collision in the first stage, not knowing the fi=
rst block.  And if you add an extra hash, you are only making it easier.  H=
e has to get a collision in the pre-hash, where he knows everything.

Of course, the hash function must be a collision-resistant one.

The reason for hashing the key or the key is produced by a good hash functi=
on or a PRF is to make the key become more of a "random key" as you know HM=
AC is a PRF as keys are selected randomly, not selectively.

Quynh.





   --David Jacobson

This option does not break interoperability of  the current HMAC implementa=
tions.

2) Change the HMAC Spec.

a) Always hash the key regardless of its length, then perform step 3 in FIP=
S 198.
b) Use a hash-based KDF (not HKDF) to produce B bits from the key, then go =
to step 4 in the FIPS. (bad for performance).
c) Require key < B, then do multi-rate padding 10* to make the key B bits, =
then go to step 4 in the FIPS. (good for performance).

We recommend the use of KMAC in SP 800-185. KMAC's security is solid and pr=
oven, and it has great performance. Code to implement KMAC can be reused to=
 implement many other Keccak-derived symmetric-key crypto functions.

Regards,
Quynh.
________________________________
From: Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil><mailto:randal.atki=
nson.ctr@nrl.navy.mil>
Sent: Tuesday, February 7, 2017 12:34 PM
To: Dang, Quynh (Fed)
Cc: Randal Atkinson
Subject: Aside Re: [CFRG] erratum for hmac ...


One option available to NIST would be for NIST to open comments
on updating FIPS 198-1, even if opening comments on that now/soon
would be earlier than NIST ordinarily would do so.

Given how long it takes to move from an approved FIPS revision
to widespread US Government deployment, if data exists from
Kenny P and/or others that merits an update, then starting sooner
would not be a bad thing for the USG.

Cheers,

Ran Atkinson

--------------------------------
Randal Atkinson, PhD
Cheltenham Research for NRL 5520
randal.atkinson.ctr@nrl.navy.mil<mailto:randal.atkinson.ctr@nrl.navy.mil>




_______________________________________________
Cfrg mailing list
Cfrg@irtf.org<mailto:Cfrg@irtf.org>https://www.irtf.org/mailman/listinfo/cf=
rg


--_000_D4C323A12F5E8qdangnistgov_
Content-Type: text/html; charset="us-ascii"
Content-ID: <CE955DF5CBD3644F9E084055083F4BC7@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>See my discussion below.&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>David Jacobson &lt;<a href=3D=
"mailto:dmjacobson@sbcglobal.net">dmjacobson@sbcglobal.net</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Friday, February 10, 2017 at =
12:27 AM<br>
<span style=3D"font-weight:bold">To: </span>'Quynh' &lt;<a href=3D"mailto:Q=
uynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;, Randal Atkinson &lt;<a hre=
f=3D"mailto:randal.atkinson.ctr@nrl.navy.mil">randal.atkinson.ctr@nrl.navy.=
mil</a>&gt;, Michael StJohns &lt;<a href=3D"mailto:msj@nthpermutation.com">=
msj@nthpermutation.com</a>&gt;,
 &quot;Paterson, Kenny&quot; &lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.u=
k">Kenny.Paterson@rhul.ac.uk</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>&quot;<a href=3D"mailto:cfrg@ie=
tf.org">cfrg@ietf.org</a>&quot; &lt;<a href=3D"mailto:cfrg@ietf.org">cfrg@i=
etf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [Cfrg] Aside Re: [CFRG=
] erratum for hmac ...<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div class=3D"moz-cite-prefix">See interleaved comment.<br>
<br>
On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:<br>
</div>
<blockquote cite=3D"mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB146=
4.namprd09.prod.outlook.com" type=3D"cite">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<p>Randal, Michael and many others,</p>
<p><br>
</p>
<p>Thank you for your suggestions.</p>
<p><br>
</p>
<p>Kenny,</p>
<p><br>
</p>
<p>Thank you for your discussion email.</p>
<p><br>
</p>
<p>We are thinking about what would be the best option for HMAC. &nbsp;Some=
 technical&nbsp;possibilities are below.&nbsp;</p>
<p><br>
</p>
<p><span style=3D"font-size: 12pt;">1) Don't change the HMAC spec.</span><b=
r>
</p>
<div><br>
Ask a&nbsp;HMAC key&nbsp;always to&nbsp;have a fixed length such as HMAC-SH=
A256 having 256-bit key. Which means that all protocols using HMAC-SHA256 u=
se 256-bit keys.&nbsp;</div>
<div><br>
</div>
<div>If each protocol uses a different key length, then the issue would&nbs=
p;still exist across protocols. I don't know if this is a practical securit=
y problem, but it seems like a problem that should be avoided.&nbsp;<br>
<br>
</div>
<div>Should ask HMAC keys to be processed/produced by a hash function or an=
other PRF always.
<br>
</div>
</div>
</blockquote>
<br>
I don't see the need or even desirability for this, assuming you ask each p=
rotocol to use a fixed (for that protocol) key length.&nbsp; (That was the =
line above.)<br>
<br>
For an attacker to find two messages with the same HMAC, not knowing the ke=
y, he would have to find a collision in the first stage, not knowing the fi=
rst block.&nbsp; And if you add an extra hash, you are only making it easie=
r.&nbsp; He has to get a collision in the
 pre-hash, where he knows everything.</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>Of course, the hash function must be a collision-resistant one.&nbsp;<=
/div>
<div><br>
</div>
<div>The reason for hashing the key or the key is produced by a good hash f=
unction or a PRF is to make the key become more of a &quot;random key&quot;=
 as you know HMAC is a PRF as keys are selected randomly, not selectively.&=
nbsp;</div>
<div><br>
</div>
<div>Quynh.&nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000"><br>
<br>
&nbsp;&nbsp; --David Jacobson<br>
<blockquote cite=3D"mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB146=
4.namprd09.prod.outlook.com" type=3D"cite">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<div><br>
This option does not break interoperability of &nbsp;the current HMAC imple=
mentations.<br>
<br>
2) Change the HMAC Spec.&nbsp;<br>
<br>
a) Always hash the key regardless of its length, then perform step 3 in FIP=
S 198.&nbsp;<br>
b) Use a&nbsp;hash-based KDF (not HKDF) to produce B bits from the key, the=
n go to step 4 in the FIPS. (bad for performance).&nbsp;<br>
c) Require key &lt; B, then do multi-rate padding 10* to make the key B bit=
s, then go to step 4 in the FIPS. (good for performance).</div>
<div><br>
</div>
<div>We recommend the use of KMAC in SP 800-185. KMAC's security is solid a=
nd proven, and it has great performance. Code to implement KMAC can be reus=
ed to implement many other Keccak-derived&nbsp;symmetric-key crypto functio=
ns.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Quynh.&nbsp;</div>
<div style=3D"color: rgb(0, 0, 0);">
<div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font style=3D"font-size:11pt" colo=
r=3D"#000000" face=3D"Calibri,
                sans-serif"><b>From:</b> Randal Atkinson
<a class=3D"moz-txt-link-rfc2396E" href=3D"mailto:randal.atkinson.ctr@nrl.n=
avy.mil">&lt;randal.atkinson.ctr@nrl.navy.mil&gt;</a><br>
<b>Sent:</b> Tuesday, February 7, 2017 12:34 PM<br>
<b>To:</b> Dang, Quynh (Fed)<br>
<b>Cc:</b> Randal Atkinson<br>
<b>Subject:</b> Aside Re: [CFRG] erratum for hmac ...</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText"><br>
One option available to NIST would be for NIST to open comments <br>
on updating FIPS 198-1, even if opening comments on that now/soon <br>
would be earlier than NIST ordinarily would do so.<br>
<br>
Given how long it takes to move from an approved FIPS revision<br>
to widespread US Government deployment, if data exists from <br>
Kenny P and/or others that merits an update, then starting sooner<br>
would not be a bad thing for the USG.<br>
<br>
Cheers,<br>
<br>
Ran Atkinson<br>
<br>
--------------------------------<br>
Randal Atkinson, PhD<br>
Cheltenham Research for NRL 5520<br>
<a class=3D"moz-txt-link-abbreviated" href=3D"mailto:randal.atkinson.ctr@nr=
l.navy.mil">randal.atkinson.ctr@nrl.navy.mil</a>&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;
<br>
<br>
</div>
</span></font></div>
</div>
<br>
<fieldset class=3D"mimeAttachmentHeader"></fieldset> <br>
<pre wrap=3D"">_______________________________________________
Cfrg mailing list
<a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Cfrg@irtf.org">Cfrg@ir=
tf.org</a><a class=3D"moz-txt-link-freetext" href=3D"https://www.irtf.org/m=
ailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a></pre>
</blockquote>
<p><br>
</p>
</div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4C323A12F5E8qdangnistgov_--


From nobody Fri Feb 10 07:50:14 2017
Return-Path: <dmjacobson@sbcglobal.net>
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 82BBF1299EB for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 07:50:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=sbcglobal.net
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 vEsD59e3D2_7 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 07:50:09 -0800 (PST)
Received: from nm3-vm3.access.bullet.mail.bf1.yahoo.com (nm3-vm3.access.bullet.mail.bf1.yahoo.com [216.109.114.98]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D8FCD1299D0 for <cfrg@ietf.org>; Fri, 10 Feb 2017 07:50:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s2048; t=1486741808; bh=t8lixResoAIVemV/XVmViUPTZC3MLRHc3D/RdBaM57M=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From:Subject; b=tPiPcy+zI6fwY6+BFPxDiRXCpnlzrp942G5CD/kYi1DDYzfynrnUUKNr8C3pGx8XlwodbqAdbZ4y5KwWZtdrKcL0leAW6DHrktoXegVWtamHmYSOoDLGfd8xwSm0Es4ePdP9n1Y5ajOaGFA2WvWCPgw98npz/AYioONb1oQSSxEL1yJzPpc8m1cJX+ZTUuVgE2pYClsx0dlgdqgMoaBW9UUxfZ2tXxjOqllcITh6qqYKmvzRipClZiAHPAMiS2c9xEYmGAch6SGLWLLlzHZnlytRxuT3xW3t2Lci7dLSFo5hDYqi30L0vvbnkAOiAYQlmdySiL35+jEm0oWHKqp4/A==
Received: from [66.196.81.163] by nm3.access.bullet.mail.bf1.yahoo.com with NNFMP; 10 Feb 2017 15:50:08 -0000
Received: from [98.138.226.243] by tm9.access.bullet.mail.bf1.yahoo.com with NNFMP; 10 Feb 2017 15:50:07 -0000
Received: from [127.0.0.1] by smtp114.sbc.mail.ne1.yahoo.com with NNFMP; 10 Feb 2017 15:50:07 -0000
X-Yahoo-Newman-Id: 730902.2625.bm@smtp114.sbc.mail.ne1.yahoo.com
X-Yahoo-Newman-Property: ymail-3
X-YMail-OSG: 8u7.ihYVM1nxg5h8lGl1JbRE5aa15lB5uYIS4q8wupPDv7T gLAQZ2lJ3BpzAw1cPlF.SGTx2hqGyvuP1HFf1Wq9.P.MgBgoUkNijUJqDfOS E_oQCE0ipq6wYfCAzHHL_AFFbHeSR05NbiwoBxr0_PCcHmJdPo5Tyj8v1.vS NyLmHI_8k.fVs6ryuj8fJ3C9DGe3h6RH4IVq6U3U_ah9XoE5atm8IbJwBQ7v X10bF4jClGJ59dmN39RVPelA6GP651iN2_2jybx6M4EXh6QyUqGiPz1RRzVN 7uKrhIIea5sjaYpYznT7RbY4pjN3GwKVl0BHFyQzaAMQdZDdqxtWUfStod8V FGLgQrxOa106jyoa4sP7zHEAolF4VhmEyMoQzJ44bsvOMtyBVQi01pRL6t7. jpHXaobuHZaQIn_2NtCcv4ysP7mGNLa4ylawvMglT.FDNfG_jpqS4Ld2TDOc UdnDnHQyXYZLe_G02gfHRcVhjyzn9qh..YrTHJi7V0tyMbf8YKTRB5twVPr4 yifYGkxUopvQ0vViXX7zLEi7Qhvx3vlRnbgUNo1SpoIgCs1X7mcTFJKgNabv QA44pIg--
X-Yahoo-SMTP: nOrmCa6swBAE50FabWnlVFUpgFVJ9Gbi__8U5mpvhtQq7tTV1g--
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>, Michael StJohns <msj@nthpermutation.com>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
References: <F2C52E74-6FF0-4F72-BFD0-56D39031B4D9@nrl.navy.mil> <CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com> <59d04ca7-aed8-e0e1-bf06-fdd44ccba697@sbcglobal.net> <D4C323A1.2F5E8%qdang@nist.gov>
From: David Jacobson <dmjacobson@sbcglobal.net>
Message-ID: <0d9948b3-074a-ab89-9154-6f2c0c96b464@sbcglobal.net>
Date: Fri, 10 Feb 2017 07:50:05 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <D4C323A1.2F5E8%qdang@nist.gov>
Content-Type: multipart/alternative; boundary="------------0A9D27E40B1CFD9C8CA4B06F"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/35_MeuhCbWTT1Uo2nRzHYZcu9cU>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 15:50:13 -0000

This is a multi-part message in MIME format.
--------------0A9D27E40B1CFD9C8CA4B06F
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit

In engineering, we like to be able to think of things as black boxes 
with specifications.  If you follow the rules in the specification, it 
works properly.

The problem here is that HMAC fails to do this.  If you use HMAC with a 
key larger that the input block size (allowed), and you reveal the hash 
of the key (a la original /etc/password), you can lose security.

My suggestion would be to add wording to the specification that says ( 
a) that use of keys larger than the input block size is discouraged, and 
(b) if the keys larger than the input block size are used, the H(K) is 
also sensitive and must be protected with the same diligence as the key 
would be protected.

     --David Jacobson


On 2/10/17 5:23 AM, Dang, Quynh (Fed) wrote:
> See my discussion below.
>
> From: David Jacobson <dmjacobson@sbcglobal.net 
> <mailto:dmjacobson@sbcglobal.net>>
> Date: Friday, February 10, 2017 at 12:27 AM
> To: 'Quynh' <Quynh.Dang@nist.gov <mailto:Quynh.Dang@nist.gov>>, Randal 
> Atkinson <randal.atkinson.ctr@nrl.navy.mil 
> <mailto:randal.atkinson.ctr@nrl.navy.mil>>, Michael StJohns 
> <msj@nthpermutation.com <mailto:msj@nthpermutation.com>>, "Paterson, 
> Kenny" <Kenny.Paterson@rhul.ac.uk <mailto:Kenny.Paterson@rhul.ac.uk>>
> Cc: "cfrg@ietf.org <mailto:cfrg@ietf.org>" <cfrg@ietf.org 
> <mailto:cfrg@ietf.org>>
> Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
>
>     See interleaved comment.
>
>     On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:
>>
>>     Randal, Michael and many others,
>>
>>
>>     Thank you for your suggestions.
>>
>>
>>     Kenny,
>>
>>
>>     Thank you for your discussion email.
>>
>>
>>     We are thinking about what would be the best option for HMAC.
>>      Some technical possibilities are below.
>>
>>
>>     1) Don't change the HMAC spec.
>>
>>
>>     Ask a HMAC key always to have a fixed length such as HMAC-SHA256
>>     having 256-bit key. Which means that all protocols using
>>     HMAC-SHA256 use 256-bit keys.
>>
>>     If each protocol uses a different key length, then the issue
>>     would still exist across protocols. I don't know if this is a
>>     practical security problem, but it seems like a problem that
>>     should be avoided.
>>
>>     Should ask HMAC keys to be processed/produced by a hash function
>>     or another PRF always.
>
>     I don't see the need or even desirability for this, assuming you
>     ask each protocol to use a fixed (for that protocol) key length. 
>     (That was the line above.)
>
>     For an attacker to find two messages with the same HMAC, not
>     knowing the key, he would have to find a collision in the first
>     stage, not knowing the first block.  And if you add an extra hash,
>     you are only making it easier.  He has to get a collision in the
>     pre-hash, where he knows everything.
>
>
> Of course, the hash function must be a collision-resistant one.
>
> The reason for hashing the key or the key is produced by a good hash 
> function or a PRF is to make the key become more of a "random key" as 
> you know HMAC is a PRF as keys are selected randomly, not selectively.
>
> Quynh.
>
>
>
>
>
>        --David Jacobson
>>
>>     This option does not break interoperability of  the current HMAC
>>     implementations.
>>
>>     2) Change the HMAC Spec.
>>
>>     a) Always hash the key regardless of its length, then perform
>>     step 3 in FIPS 198.
>>     b) Use a hash-based KDF (not HKDF) to produce B bits from the
>>     key, then go to step 4 in the FIPS. (bad for performance).
>>     c) Require key < B, then do multi-rate padding 10* to make the
>>     key B bits, then go to step 4 in the FIPS. (good for performance).
>>
>>     We recommend the use of KMAC in SP 800-185. KMAC's security is
>>     solid and proven, and it has great performance. Code to implement
>>     KMAC can be reused to implement many other
>>     Keccak-derived symmetric-key crypto functions.
>>
>>     Regards,
>>     Quynh.
>>     ------------------------------------------------------------------------
>>     *From:* Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>
>>     *Sent:* Tuesday, February 7, 2017 12:34 PM
>>     *To:* Dang, Quynh (Fed)
>>     *Cc:* Randal Atkinson
>>     *Subject:* Aside Re: [CFRG] erratum for hmac ...
>>
>>     One option available to NIST would be for NIST to open comments
>>     on updating FIPS 198-1, even if opening comments on that now/soon
>>     would be earlier than NIST ordinarily would do so.
>>
>>     Given how long it takes to move from an approved FIPS revision
>>     to widespread US Government deployment, if data exists from
>>     Kenny P and/or others that merits an update, then starting sooner
>>     would not be a bad thing for the USG.
>>
>>     Cheers,
>>
>>     Ran Atkinson
>>
>>     --------------------------------
>>     Randal Atkinson, PhD
>>     Cheltenham Research for NRL 5520
>>     randal.atkinson.ctr@nrl.navy.mil
>>
>>
>>
>>     _______________________________________________
>>     Cfrg mailing list
>>     Cfrg@irtf.orghttps://www.irtf.org/mailman/listinfo/cfrg
>
>


--------------0A9D27E40B1CFD9C8CA4B06F
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">In engineering, we like to be able to
      think of things as black boxes with specifications.  If you follow
      the rules in the specification, it works properly.  <br>
      <br>
      The problem here is that HMAC fails to do this.  If you use HMAC
      with a key larger that the input block size (allowed), and you
      reveal the hash of the key (a la original /etc/password), you can
      lose security.<br>
      <br>
      My suggestion would be to add wording to the specification that
      says ( a) that use of keys larger than the input block size is
      discouraged, and (b) if the keys larger than the input block size
      are used, the H(K) is also sensitive and must be protected with
      the same diligence as the key would be protected.<br>
      <br>
          --David Jacobson<br>
      <br>
      <br>
      On 2/10/17 5:23 AM, Dang, Quynh (Fed) wrote:<br>
    </div>
    <blockquote cite="mid:D4C323A1.2F5E8%25qdang@nist.gov" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div>See my discussion below. </div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
          <span style="font-weight:bold">From: </span>David Jacobson
          &lt;<a moz-do-not-send="true"
            href="mailto:dmjacobson@sbcglobal.net">dmjacobson@sbcglobal.net</a>&gt;<br>
          <span style="font-weight:bold">Date: </span>Friday, February
          10, 2017 at 12:27 AM<br>
          <span style="font-weight:bold">To: </span>'Quynh' &lt;<a
            moz-do-not-send="true" href="mailto:Quynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;,
          Randal Atkinson &lt;<a moz-do-not-send="true"
            href="mailto:randal.atkinson.ctr@nrl.navy.mil">randal.atkinson.ctr@nrl.navy.mil</a>&gt;,
          Michael StJohns &lt;<a moz-do-not-send="true"
            href="mailto:msj@nthpermutation.com">msj@nthpermutation.com</a>&gt;,
          "Paterson, Kenny" &lt;<a moz-do-not-send="true"
            href="mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt;<br>
          <span style="font-weight:bold">Cc: </span>"<a
            moz-do-not-send="true" href="mailto:cfrg@ietf.org">cfrg@ietf.org</a>"
          &lt;<a moz-do-not-send="true" href="mailto:cfrg@ietf.org">cfrg@ietf.org</a>&gt;<br>
          <span style="font-weight:bold">Subject: </span>Re: [Cfrg]
          Aside Re: [CFRG] erratum for hmac ...<br>
        </div>
        <div><br>
        </div>
        <blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE"
          style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
          <div>
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="moz-cite-prefix">See interleaved comment.<br>
                <br>
                On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:<br>
              </div>
              <blockquote
cite="mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com"
                type="cite">
                <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
                <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
                  dir="ltr">
                  <p>Randal, Michael and many others,</p>
                  <p><br>
                  </p>
                  <p>Thank you for your suggestions.</p>
                  <p><br>
                  </p>
                  <p>Kenny,</p>
                  <p><br>
                  </p>
                  <p>Thank you for your discussion email.</p>
                  <p><br>
                  </p>
                  <p>We are thinking about what would be the best option
                    for HMAC.  Some technical possibilities are below. </p>
                  <p><br>
                  </p>
                  <p><span style="font-size: 12pt;">1) Don't change the
                      HMAC spec.</span><br>
                  </p>
                  <div><br>
                    Ask a HMAC key always to have a fixed length such as
                    HMAC-SHA256 having 256-bit key. Which means that all
                    protocols using HMAC-SHA256 use 256-bit keys. </div>
                  <div><br>
                  </div>
                  <div>If each protocol uses a different key length,
                    then the issue would still exist across protocols. I
                    don't know if this is a practical security problem,
                    but it seems like a problem that should be avoided. <br>
                    <br>
                  </div>
                  <div>Should ask HMAC keys to be processed/produced by
                    a hash function or another PRF always.
                    <br>
                  </div>
                </div>
              </blockquote>
              <br>
              I don't see the need or even desirability for this,
              assuming you ask each protocol to use a fixed (for that
              protocol) key length.  (That was the line above.)<br>
              <br>
              For an attacker to find two messages with the same HMAC,
              not knowing the key, he would have to find a collision in
              the first stage, not knowing the first block.  And if you
              add an extra hash, you are only making it easier.  He has
              to get a collision in the pre-hash, where he knows
              everything.</div>
          </div>
        </blockquote>
      </span>
      <div><br>
      </div>
      <div>Of course, the hash function must be a collision-resistant
        one. </div>
      <div><br>
      </div>
      <div>The reason for hashing the key or the key is produced by a
        good hash function or a PRF is to make the key become more of a
        "random key" as you know HMAC is a PRF as keys are selected
        randomly, not selectively. </div>
      <div><br>
      </div>
      <div>Quynh. </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE"
          style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
          <div>
            <div bgcolor="#FFFFFF" text="#000000"><br>
              <br>
                 --David Jacobson<br>
              <blockquote
cite="mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com"
                type="cite">
                <div id="divtagdefaultwrapper"
style="font-size:12pt;color:#000000;font-family:Calibri,Arial,Helvetica,sans-serif;"
                  dir="ltr">
                  <div><br>
                    This option does not break interoperability of  the
                    current HMAC implementations.<br>
                    <br>
                    2) Change the HMAC Spec. <br>
                    <br>
                    a) Always hash the key regardless of its length,
                    then perform step 3 in FIPS 198. <br>
                    b) Use a hash-based KDF (not HKDF) to produce B bits
                    from the key, then go to step 4 in the FIPS. (bad
                    for performance). <br>
                    c) Require key &lt; B, then do multi-rate padding
                    10* to make the key B bits, then go to step 4 in the
                    FIPS. (good for performance).</div>
                  <div><br>
                  </div>
                  <div>We recommend the use of KMAC in SP 800-185.
                    KMAC's security is solid and proven, and it has
                    great performance. Code to implement KMAC can be
                    reused to implement many other
                    Keccak-derived symmetric-key crypto functions.</div>
                  <div><br>
                  </div>
                  <div>Regards,</div>
                  <div>Quynh. </div>
                  <div style="color: rgb(0, 0, 0);">
                    <div>
                      <hr tabindex="-1" style="display:inline-block;
                        width:98%">
                      <div id="x_divRplyFwdMsg" dir="ltr"><font
                          style="font-size:11pt" color="#000000"
                          face="Calibri, sans-serif"><b>From:</b> Randal
                          Atkinson
                          <a moz-do-not-send="true"
                            class="moz-txt-link-rfc2396E"
                            href="mailto:randal.atkinson.ctr@nrl.navy.mil">&lt;randal.atkinson.ctr@nrl.navy.mil&gt;</a><br>
                          <b>Sent:</b> Tuesday, February 7, 2017 12:34
                          PM<br>
                          <b>To:</b> Dang, Quynh (Fed)<br>
                          <b>Cc:</b> Randal Atkinson<br>
                          <b>Subject:</b> Aside Re: [CFRG] erratum for
                          hmac ...</font>
                        <div> </div>
                      </div>
                    </div>
                    <font size="2"><span style="font-size:10pt;">
                        <div class="PlainText"><br>
                          One option available to NIST would be for NIST
                          to open comments <br>
                          on updating FIPS 198-1, even if opening
                          comments on that now/soon <br>
                          would be earlier than NIST ordinarily would do
                          so.<br>
                          <br>
                          Given how long it takes to move from an
                          approved FIPS revision<br>
                          to widespread US Government deployment, if
                          data exists from <br>
                          Kenny P and/or others that merits an update,
                          then starting sooner<br>
                          would not be a bad thing for the USG.<br>
                          <br>
                          Cheers,<br>
                          <br>
                          Ran Atkinson<br>
                          <br>
                          --------------------------------<br>
                          Randal Atkinson, PhD<br>
                          Cheltenham Research for NRL 5520<br>
                          <a moz-do-not-send="true"
                            class="moz-txt-link-abbreviated"
                            href="mailto:randal.atkinson.ctr@nrl.navy.mil">randal.atkinson.ctr@nrl.navy.mil</a>       
                          <br>
                          <br>
                        </div>
                      </span></font></div>
                </div>
                <br>
                <fieldset class="mimeAttachmentHeader"></fieldset>
                <br>
                <pre wrap="">_______________________________________________
Cfrg mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a></pre>
              </blockquote>
              <p><br>
              </p>
            </div>
          </div>
        </blockquote>
      </span>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>

--------------0A9D27E40B1CFD9C8CA4B06F--


From nobody Fri Feb 10 07:51:53 2017
Return-Path: <rstruik.ext@gmail.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 C3A441299D0 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 07:51:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 e-R_N8fvfeDJ for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 07:51:45 -0800 (PST)
Received: from mail-io0-x233.google.com (mail-io0-x233.google.com [IPv6:2607:f8b0:4001:c06::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A59B91299EB for <cfrg@irtf.org>; Fri, 10 Feb 2017 07:51:45 -0800 (PST)
Received: by mail-io0-x233.google.com with SMTP id v96so53510408ioi.0 for <cfrg@irtf.org>; Fri, 10 Feb 2017 07:51:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=y4aQbk4tvRIWe00fHBCRnkJ0HlLhsiKKAlMnvRRl63Y=; b=XPcXuB1iZWatzlaMyfATf2inUYKE9S/QLvLWARGRuDfvY5flgKlz2+OgLqXbqZSniZ z9ID57H8e5dYi8LWxlLA6rIqsXf7a8zGJIxrxePN31i7hxiRrN9mounL2IS6Atlg4i4y iAa+J+ACOqvOIdK+gZgWvGgADJLLhUMbyCvp/XUcd/gDn9xp9PqtOiiCxY27buffT1Aj pbSbj1w5PDVJx074WVssWmPuGXBLC6ocAnx7YBIdN+eMoIXwik3nSn4FHKgF+AVSCKA0 r7+3Pxmv+k0TUvk4j64x9QguWSPY7K4/3zASuGpnHLS8XlNCcgjOf3Yey44a+cRGRv6d P3Rg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=y4aQbk4tvRIWe00fHBCRnkJ0HlLhsiKKAlMnvRRl63Y=; b=EGMu4+9ga8XRkQUQNcE8h3c1j7DL26aB/ocyd73sF/F5dEKYPeVUjU2d5Fg77YiEuV od+x8NcukiodfnPvh6DMiVGRb9q+MoZE9OqBvTUaMsjbueVT8KzHSim9E5EnKWNWId9P zLhfU3sug537Mf0zHJnim6SxJtRd/obBFV8ctlTgMvoNWpGqAf+9IAdTlpRzgE+LyRk5 3Ls5W42dxUbduCkA6b4UA5t5EJ84AZfEAcwWIEeeXgDCSBsRHRUDqfmzZ433S3foHytE 9QaWqnHHhUfQHquepBBfUW7PU05EJQuOVFE8btUX/5UJnNMUF1VT6CGu/dhK4afHqmax FfKw==
X-Gm-Message-State: AMke39nWXu6QkoPeHYpKEt2MiPb4PazDjWN5hLCYdCorLskp+EEIUWzH5u7rRKfV5OzxvA==
X-Received: by 10.107.20.13 with SMTP id 13mr9054953iou.0.1486741904935; Fri, 10 Feb 2017 07:51:44 -0800 (PST)
Received: from [192.168.0.14] (CPE7cb21b2cb904-CM7cb21b2cb901.cpe.net.cable.rogers.com. [174.112.186.144]) by smtp.gmail.com with ESMTPSA id h15sm508251ita.20.2017.02.10.07.51.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Feb 2017 07:51:44 -0800 (PST)
To: Sean Turner <sean@sn3rd.com>, "<tls@ietf.org>" <tls@ietf.org>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
From: Rene Struik <rstruik.ext@gmail.com>
Message-ID: <eeef0b36-2fdd-8de0-3bd7-7f0c5b68e9e9@gmail.com>
Date: Fri, 10 Feb 2017 10:51:39 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
Content-Type: multipart/alternative; boundary="------------6F183E4431F40EF448049DCE"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/wqlCIm-7OSYMktFIQZSGXmnNYxY>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 15:51:49 -0000

This is a multi-part message in MIME format.
--------------6F183E4431F40EF448049DCE
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Dear colleagues:

I would suggest adding the following paragraph at the end of Section 5.5:

[current text of Section 5.5]

There are cryptographic limits on the amount of plaintext which can be 
safely encrypted under a given set of keys.[AEAD-LIMITS] 
<https://tlswg.github.io/tls13-spec/#AEAD-LIMITS>provides an analysis of 
these limits under the assumption that the underlying primitive (AES or 
ChaCha20) has no weaknesses. Implementations SHOULD do a key 
updateSection 4.6.3 
<https://tlswg.github.io/tls13-spec/#key-update>prior to reaching these 
limits.

For AES-GCM, up to 2^24.5 full-size records (about 24 million) may be 
encrypted on a given connection while keeping a safety margin of 
approximately 2^-57 for Authenticated Encryption (AE) security. For 
ChaCha20/Poly1305, the record sequence number would wrap before the 
safety limit is reached.

[suggested additional text]

The above upper limits do not take into account potential side channel 
attacks, which - in some implementations - have been shown to be 
successful at recovering keying material with a relatively small number 
of messages encrypted using the same key. While results are highly 
implementation-specific, thereby making it hard to provide precise 
guidance, prudence suggests that implementations should not reuse keys 
ad infinitum. Implementations SHALL therefore always implement the key 
update mechanism of Section 4.6.3.

{editorial note: perhaps, one should impose the limit 2^20, just to make 
sure people do not "forget" to implement key updates?}


See also my email of August 29, 2016:
https://mailarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno

On 2/10/2017 12:07 AM, Sean Turner wrote:
> All,
>
> Weâ€™ve got two outstanding PRs that propose changes to draft-ietf-tls-tls13 Section 5.5 â€œLimits on Key Usageâ€�.  As it relates to rekeying, these limits have been discussed a couple of times and we need to resolve once and for all whether the TLS WG wants to:
>
> a) Close these two PRs and go with the existing text [0]
> b) Adopt PR#765 [1]
> c) Adopt PR#769 [2]
>
> Please indicate you preference to the TLS mailing list before Feb 17.  Note that unless thereâ€™s clear consensus to change the text will remain as is (i.e., option a).
>
> J&S
>
> [0] https://tlswg.github.io/tls13-spec/#rfc.section.5.5
> [1] https://github.com/tlswg/tls13-spec/pull/765
> [2] https://github.com/tlswg/tls13-spec/pull/769
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg


-- 
email: rstruik.ext@gmail.com | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363


--------------6F183E4431F40EF448049DCE
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Dear colleagues:<br>
      <br>
      I would suggest adding the following paragraph at the end of
      Section 5.5:<br>
      <br>
      [current text of Section 5.5]<br>
      <br>
      <p style="padding: 0px; margin: 0.5em 0px; color: rgb(51, 51, 51);
        font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial,
        sans-serif; font-size: 15px; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: normal; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px;">There are cryptographic limits
        on the amount of plaintext which can be safely encrypted under a
        given set of keys.<span class="Apple-converted-space">Â </span><a
          href="https://tlswg.github.io/tls13-spec/#AEAD-LIMITS"
          style="text-decoration: none; color: rgb(42, 100, 150);">[AEAD-LIMITS]</a><span
          class="Apple-converted-space">Â </span>provides an analysis of
        these limits under the assumption that the underlying primitive
        (AES or ChaCha20) has no weaknesses. Implementations SHOULD do a
        key update<span class="Apple-converted-space">Â </span><a
          href="https://tlswg.github.io/tls13-spec/#key-update"
          style="text-decoration: none; color: rgb(42, 100, 150);">Section
          4.6.3</a><span class="Apple-converted-space">Â </span>prior to
        reaching these limits.</p>
      <p id="rfc.section.5.5.p.2" style="padding: 0px; margin: 0.5em
        0px; color: rgb(51, 51, 51); font-family: &quot;Helvetica
        Neue&quot;, Helvetica, Arial, sans-serif; font-size: 15px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: normal; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;">For AES-GCM,
        up to 2^24.5 full-size records (about 24 million) may be
        encrypted on a given connection while keeping a safety margin of
        approximately 2^-57 for Authenticated Encryption (AE) security.
        For ChaCha20/Poly1305, the record sequence number would wrap
        before the safety limit is reached.</p>
      [suggested additional text]<br>
      <br>
      The above upper limits do not take into account potential side
      channel attacks, which - in some implementations - have been shown
      to be successful at recovering keying material with a relatively
      small number of messages encrypted using the same key. While
      results are highly implementation-specific, thereby making it hard
      to provide precise guidance, prudence suggests that
      implementations should not reuse keys ad infinitum.
      Implementations SHALL therefore always implement the key update
      mechanism of Section 4.6.3. <br>
      <br>
      {editorial note: perhaps, one should impose the limit 2^20, just
      to make sure people do not "forget" to implement key updates?} Â  <br
        class="Apple-interchange-newline">
      <br>
      <br>
      See also my email of August 29, 2016:<br>
<a class="moz-txt-link-freetext" href="https://mailarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno">https://mailarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno</a><br>
      <br>
      On 2/10/2017 12:07 AM, Sean Turner wrote:<br>
    </div>
    <blockquote
      cite="mid:352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com"
      type="cite">
      <pre wrap="">All,

Weâ€™ve got two outstanding PRs that propose changes to draft-ietf-tls-tls13 Section 5.5 â€œLimits on Key Usageâ€�.  As it relates to rekeying, these limits have been discussed a couple of times and we need to resolve once and for all whether the TLS WG wants to:

a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]

Please indicate you preference to the TLS mailing list before Feb 17.  Note that unless thereâ€™s clear consensus to change the text will remain as is (i.e., option a).

J&amp;S

[0] <a class="moz-txt-link-freetext" href="https://tlswg.github.io/tls13-spec/#rfc.section.5.5">https://tlswg.github.io/tls13-spec/#rfc.section.5.5</a>
[1] <a class="moz-txt-link-freetext" href="https://github.com/tlswg/tls13-spec/pull/765">https://github.com/tlswg/tls13-spec/pull/765</a>
[2] <a class="moz-txt-link-freetext" href="https://github.com/tlswg/tls13-spec/pull/769">https://github.com/tlswg/tls13-spec/pull/769</a>
_______________________________________________
Cfrg mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a>
<a class="moz-txt-link-freetext" href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a>
</pre>
    </blockquote>
    <br>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
email: <a class="moz-txt-link-abbreviated" href="mailto:rstruik.ext@gmail.com">rstruik.ext@gmail.com</a> | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363</pre>
  </body>
</html>

--------------6F183E4431F40EF448049DCE--


From nobody Fri Feb 10 09:22:51 2017
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 6EF54129A61 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 09:22:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.911
X-Spam-Level: 
X-Spam-Status: No, score=-2.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H5=-1, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 Iw470sKT_57K for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 09:22:36 -0800 (PST)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0083.outbound.protection.outlook.com [104.47.2.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CA0BE129A69 for <cfrg@irtf.org>; Fri, 10 Feb 2017 09:22:35 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=n/LRRwKHM6QBMFVVxjJ/3tsQYtdVZW9VtPZJT7oHpzM=; b=p4tyD2Vw7s451TZtqhgKEy4r+cryOi4dEyOCAEJcZQAG4T52vyJwg4pGutO4WBbk4VS1sZpmlaGjcl0csnFplHQx3PBTqWh0UBTevZIIRmHwDTwD1PsCi5agOF9gYjU66ApM5svTxBHk17tk/R3AyINswRh221sqVcXU6Xe4Ju8=
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com (10.168.2.156) by AM4PR0301MB1907.eurprd03.prod.outlook.com (10.168.3.7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 17:22:33 +0000
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) by AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) with mapi id 15.01.0888.029; Fri, 10 Feb 2017 17:22:33 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, Sean Turner <sean@sn3rd.com>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg1ulN42j3rwAVkipPJ3aFAzvI6FhuukAgAA4koCAAD3QgIAATPYA
Date: Fri, 10 Feb 2017 17:22:32 +0000
Message-ID: <D4C3A5C5.86620%kenny.paterson@rhul.ac.uk>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <D4C31FC4.2F5AF%qdang@nist.gov>
In-Reply-To: <D4C31FC4.2F5AF%qdang@nist.gov>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [134.219.227.30]
x-microsoft-exchange-diagnostics: 1; AM4PR0301MB1907; 7:pmFdocvmAxGE4SFBIix1OWUiObAnRMVo5ClVojqetHA+H9RosZ+yrvdXiIRlKDTRP/Nn+CpfFf/OOTX/v+1fEQTl5jIIU5wzu9u/nGECg8yCvGfbZH/T+LX9F6wTcCSniyToYQnXY+tzMh4Z6kYUoYqNuwOTyd326LD4xr3sQHz13Ybu9cEQSHm7EJSV7JhfVYULtK+BTLjKb1t6xc/oMv/uRz57bfpiVBLki5KA8ZZwCFjS6Ck658jGiyfk6I2l+AHPDELPSfdUaFhbbrwJsnyXO8QngzHfIfochof0iMeYQOhMQmgzlWB+FDcKlQcZb8t+oM9GWkiyQN/T5sIKd30Atr/bd9OAECbHFP3l0PEEdo8t28nva6DBKxx+w/edLkaQoWKQ4rAKM36gj4B6vwNOinfRB+RtXClhKSng2OnpTIlvzSQTK2nyhbQ89y25AviVVjp6ie2TwW4mRGCH2KeiZZwBiA+lnS0+xoU/i/ki2hAT0t+RQQKSLcJZWes9cYd64OkgL/6bgM00WHz9/Q==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(189002)(24454002)(199003)(53546003)(8656002)(966004)(6246003)(5660300001)(81156014)(53936002)(8676002)(229853002)(3846002)(66066001)(7736002)(6116002)(102836003)(92566002)(83506001)(25786008)(189998001)(38730400002)(305945005)(6306002)(97736004)(6512007)(6436002)(54356999)(3280700002)(99286003)(2900100001)(54906002)(81166006)(76176999)(6506006)(77096006)(50986999)(3660700001)(4001350100001)(6486002)(8936002)(101416001)(2950100002)(106116001)(106356001)(42882006)(93886004)(86362001)(36756003)(68736007)(105586002)(2906002)(74482002)(122556002)(4326007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB1907; H:AM4PR0301MB1906.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 5890bdce-02e8-42b5-84c0-08d451d96641
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR0301MB1907; 
x-microsoft-antispam-prvs: <AM4PR0301MB19078377B39EBFDE5B70EB68BC440@AM4PR0301MB1907.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123558025)(20161123560025)(20161123564025)(20161123555025)(20161123562025)(6072148); SRVR:AM4PR0301MB1907; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0301MB1907; 
x-forefront-prvs: 0214EB3F68
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <928EBE543230574E92C16DBD0D5BB4EC@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 17:22:32.9273 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB1907
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/ZoDijPmfxVQxWntTjooPUnYgnng>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 17:22:45 -0000

RGVhciBRdXluaCwNCg0KT24gMTAvMDIvMjAxNyAxMjo0OCwgIkRhbmcsIFF1eW5oIChGZWQpIiA8
cXV5bmguZGFuZ0BuaXN0Lmdvdj4gd3JvdGU6DQoNCj5IaSBLZW5ueSwgDQo+DQo+PkhpLA0KPj4N
Cj4+DQo+Pk15IHByZW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aGFu
a3MgZm9yIGV4cGxhaW5pbmcuIEkgdGhpbmssIHRoZW4sIHRoYXQgd2hhdCB5b3UgYXJlIGRvaW5n
IGlzIChpbg0KZWZmZWN0KSBhY2NvdW50aW5nIGZvciB0aGUgUFJQL1BSRiBzd2l0Y2hpbmcgbGVt
bWEgdGhhdCBpcyB1c2VkIChpbiBhDQpzdGFuZGFyZCB3YXkpIGFzIHBhcnQgb2YgdGhlIElORC1D
UEEgc2VjdXJpdHkgcHJvb2Ygb2YgQUVTLUdDTS4gT25lIGNhbg0Kb2J0YWluIGEgZ3JlYXRlciBk
ZWdyZWUgb2YgcHJlY2lzaW9uIGJ5IHVzaW5nIHRoZSBwcm92ZW4gYm91bmRzIGZvcg0KSU5ELUNQ
QSBzZWN1cml0eSBvZiBBRVMtR0NNLiBUaGVzZSBpbmNvcnBvcmF0ZSB0aGUgInNlY3VyaXR5IGxv
c3MiIGNvbWluZw0KZnJvbSB0aGUgUFJQL1BSRiBzd2l0Y2hpbmcgbGVtbWEuIFRoZSBjdXJyZW50
IGJlc3QgZm9ybSBvZiB0aGVzZSBib3VuZHMgaXMNCmR1ZSB0byBJd2F0YSBldCBhbC4uIFRoaXMg
aXMgcHJlY2lzZWx5IHdoYXQgd2UgYW5hbHlzZSBpbiB0aGUgbm90ZSBhdA0KaHR0cDovL3d3dy5p
c2cucmh1bC5hYy51ay9+a3AvVExTLUFFYm91bmRzLnBkZiAtIHNwZWNpZmljYWxseSwgc2VlDQpl
cXVhdGlvbnMgKDUpIC0gKDcpIG9uIHBhZ2UgNiBvZiB0aGF0IG5vdGUuDQoNClJlZ2FyZHMsDQoN
Cktlbm55IA0KDQo+DQo+DQo+UmVnYXJkcywNCj5RdXluaC4gDQoNCg==


From nobody Fri Feb 10 10:44:57 2017
Return-Path: <quynh.dang@nist.gov>
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 DED63129A8C for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 10:44:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 vkUkQOwv6Z0b for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 10:44:52 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0130.outbound.protection.outlook.com [23.103.200.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AB53112958B for <cfrg@ietf.org>; Fri, 10 Feb 2017 10:44:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=1z9z6J/cc0t+QHnziI91nfIQXdVXNsXdr1zFm4w/Bx0=; b=wwcNd9aZ0nPI6T79Pz4PaM2I8D4KsVuW6SW3kGu8/qobNyd7YQaxicCLB2U3y1OCpXe9Z4dJ0i1s9LPbtOL6kFEW6AdOmjZmf3gMcye28fQqVbpRIzgCK7IV88PyuyASr80gueuGWLa4ISAlxW8mzjveYWpEEacKdB4/fnJW5l4=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1461.namprd09.prod.outlook.com (10.173.191.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 18:44:51 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.026; Fri, 10 Feb 2017 18:44:50 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: David Jacobson <dmjacobson@sbcglobal.net>, "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil>, Michael StJohns <msj@nthpermutation.com>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Thread-Topic: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
Thread-Index: AQHSgWiX/QOHsp+cqk6PweDPw/SKDKFfEXKkgAKodACAADEvAIAAfMuA///c/wA=
Date: Fri, 10 Feb 2017 18:44:50 +0000
Message-ID: <D4C372FD.2F83A%qdang@nist.gov>
References: <F2C52E74-6FF0-4F72-BFD0-56D39031B4D9@nrl.navy.mil> <CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB1464.namprd09.prod.outlook.com> <59d04ca7-aed8-e0e1-bf06-fdd44ccba697@sbcglobal.net> <D4C323A1.2F5E8%qdang@nist.gov> <0d9948b3-074a-ab89-9154-6f2c0c96b464@sbcglobal.net>
In-Reply-To: <0d9948b3-074a-ab89-9154-6f2c0c96b464@sbcglobal.net>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1461; 7:TrR1/p9fUGz1ga6TNNyD4MMyoXLjsQy2IhuUKbpm2Rwh1y0dSlhlYsvphAhTpHIpXKBQVZbcaEoZaaZ5OBSqdyiR5MTIKviA0UWqn2y/nGegPRMZqOUUVutixglYsHc3XJOkf6XKkt/BAdr4eo9S4X+NLiEt2p/rnxvSoWM1GYekkoyq1bHpxBSIgagJ7BtRApMQHF65qi4jlSUeDwx9aw0p0bKnTri+Ez0ADJeylhJDf51YlPHpIiCICZIwkFyy3cfEzZY0LdSbUoCO/u0OFIGvr/D9yfcO+4T4LPKDd0K+RZxFFDLqODhRYRG/NNGIKmEEP1dDT3bi3G7hRDp0jxZtdA7dKM9L0qNjjiXQZsG+CvFhwAdiqAJQfgNrICEFTeox+XH5fVD0xPfcVaALhSx0yzEfd5NUa5uOYn+xwnUEVO/QEcPF1SMG5ZmvDz4No2ye8+ni0vovLqbH+Q8MJj4fsJ+ORT3n3K5eM+fmEl7hlIx74zblma3FoLcJRT64GoBa1JYqoqz8LlMN2QmyBw==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10019020)(7916002)(39450400003)(39840400002)(39410400002)(39850400002)(39860400002)(199003)(24454002)(377454003)(189002)(6486002)(86362001)(122556002)(4001350100001)(50986999)(66066001)(54356999)(3280700002)(189998001)(76176999)(3660700001)(68736007)(2906002)(2900100001)(4326007)(81166006)(81156014)(7906003)(38730400002)(8936002)(83506001)(8676002)(7736002)(106356001)(105586002)(6246003)(53546003)(106116001)(36756003)(19627405001)(3846002)(92566002)(345774005)(77096006)(229853002)(6436002)(2950100002)(551544002)(5660300001)(99286003)(102836003)(93886004)(6512007)(97736004)(101416001)(236005)(606005)(8656002)(54896002)(25786008)(6116002)(6506006)(53936002)(6306002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1461; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
x-ms-office365-filtering-correlation-id: f58eb8ab-f5ec-41a0-de0d-08d451e4e55c
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1461; 
x-microsoft-antispam-prvs: <CY4PR09MB1461D4ADDAFA081AB57B9DADF3440@CY4PR09MB1461.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705)(189930954265078)(13052087078022)(4659246709749)(112561432440764);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123562025)(20161123558025)(20161123555025)(6072148); SRVR:CY4PR09MB1461; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1461; 
x-forefront-prvs: 0214EB3F68
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4C372FD2F83Aqdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 18:44:50.6753 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1461
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/LD-wpVSn0Fp9Tygu3VHT281qpJY>
Cc: "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 18:44:57 -0000

--_000_D4C372FD2F83Aqdangnistgov_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



From: David Jacobson <dmjacobson@sbcglobal.net<mailto:dmjacobson@sbcglobal.=
net>>
Date: Friday, February 10, 2017 at 10:50 AM
To: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>, Randal Atkin=
son <randal.atkinson.ctr@nrl.navy.mil<mailto:randal.atkinson.ctr@nrl.navy.m=
il>>, Michael StJohns <msj@nthpermutation.com<mailto:msj@nthpermutation.com=
>>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul=
.ac.uk>>
Cc: "cfrg@ietf.org<mailto:cfrg@ietf.org>" <cfrg@ietf.org<mailto:cfrg@ietf.o=
rg>>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...

In engineering, we like to be able to think of things as black boxes with s=
pecifications.  If you follow the rules in the specification, it works prop=
erly.

The problem here is that HMAC fails to do this.  If you use HMAC with a key=
 larger that the input block size (allowed), and you reveal the hash of the=
 key (a la original /etc/password), you can lose security.

In our guildlines, we require to keep K0 as secret key.



My suggestion would be to add wording to the specification that says ( a) t=
hat use of keys larger than the input block size is discouraged, and (b) if=
 the keys larger than the input block size are used, the H(K) is also sensi=
tive and must be protected with the same diligence as the key would be prot=
ected.

    --David Jacobson


Thank you,
Quynh.




On 2/10/17 5:23 AM, Dang, Quynh (Fed) wrote:
See my discussion below.

From: David Jacobson <dmjacobson@sbcglobal.net<mailto:dmjacobson@sbcglobal.=
net>>
Date: Friday, February 10, 2017 at 12:27 AM
To: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>, Randal Atkin=
son <randal.atkinson.ctr@nrl.navy.mil<mailto:randal.atkinson.ctr@nrl.navy.m=
il>>, Michael StJohns <msj@nthpermutation.com<mailto:msj@nthpermutation.com=
>>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul=
.ac.uk>>
Cc: "cfrg@ietf.org<mailto:cfrg@ietf.org>" <cfrg@ietf.org<mailto:cfrg@ietf.o=
rg>>
Subject: Re: [Cfrg] Aside Re: [CFRG] erratum for hmac ...

See interleaved comment.

On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:

Randal, Michael and many others,


Thank you for your suggestions.


Kenny,


Thank you for your discussion email.


We are thinking about what would be the best option for HMAC.  Some technic=
al possibilities are below.


1) Don't change the HMAC spec.

Ask a HMAC key always to have a fixed length such as HMAC-SHA256 having 256=
-bit key. Which means that all protocols using HMAC-SHA256 use 256-bit keys=
.

If each protocol uses a different key length, then the issue would still ex=
ist across protocols. I don't know if this is a practical security problem,=
 but it seems like a problem that should be avoided.

Should ask HMAC keys to be processed/produced by a hash function or another=
 PRF always.

I don't see the need or even desirability for this, assuming you ask each p=
rotocol to use a fixed (for that protocol) key length.  (That was the line =
above.)

For an attacker to find two messages with the same HMAC, not knowing the ke=
y, he would have to find a collision in the first stage, not knowing the fi=
rst block.  And if you add an extra hash, you are only making it easier.  H=
e has to get a collision in the pre-hash, where he knows everything.

Of course, the hash function must be a collision-resistant one.

The reason for hashing the key or the key is produced by a good hash functi=
on or a PRF is to make the key become more of a "random key" as you know HM=
AC is a PRF as keys are selected randomly, not selectively.

Quynh.





   --David Jacobson

This option does not break interoperability of  the current HMAC implementa=
tions.

2) Change the HMAC Spec.

a) Always hash the key regardless of its length, then perform step 3 in FIP=
S 198.
b) Use a hash-based KDF (not HKDF) to produce B bits from the key, then go =
to step 4 in the FIPS. (bad for performance).
c) Require key < B, then do multi-rate padding 10* to make the key B bits, =
then go to step 4 in the FIPS. (good for performance).

We recommend the use of KMAC in SP 800-185. KMAC's security is solid and pr=
oven, and it has great performance. Code to implement KMAC can be reused to=
 implement many other Keccak-derived symmetric-key crypto functions.

Regards,
Quynh.
________________________________
From: Randal Atkinson <randal.atkinson.ctr@nrl.navy.mil><mailto:randal.atki=
nson.ctr@nrl.navy.mil>
Sent: Tuesday, February 7, 2017 12:34 PM
To: Dang, Quynh (Fed)
Cc: Randal Atkinson
Subject: Aside Re: [CFRG] erratum for hmac ...


One option available to NIST would be for NIST to open comments
on updating FIPS 198-1, even if opening comments on that now/soon
would be earlier than NIST ordinarily would do so.

Given how long it takes to move from an approved FIPS revision
to widespread US Government deployment, if data exists from
Kenny P and/or others that merits an update, then starting sooner
would not be a bad thing for the USG.

Cheers,

Ran Atkinson

--------------------------------
Randal Atkinson, PhD
Cheltenham Research for NRL 5520
randal.atkinson.ctr@nrl.navy.mil<mailto:randal.atkinson.ctr@nrl.navy.mil>




_______________________________________________
Cfrg mailing list
Cfrg@irtf.org<mailto:Cfrg@irtf.org>https://www.irtf.org/mailman/listinfo/cf=
rg



--_000_D4C372FD2F83Aqdangnistgov_
Content-Type: text/html; charset="us-ascii"
Content-ID: <18D28F409D91BD4BBD8E399EEABD0F6E@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>David Jacobson &lt;<a href=3D=
"mailto:dmjacobson@sbcglobal.net">dmjacobson@sbcglobal.net</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Friday, February 10, 2017 at =
10:50 AM<br>
<span style=3D"font-weight:bold">To: </span>'Quynh' &lt;<a href=3D"mailto:Q=
uynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;, Randal Atkinson &lt;<a hre=
f=3D"mailto:randal.atkinson.ctr@nrl.navy.mil">randal.atkinson.ctr@nrl.navy.=
mil</a>&gt;, Michael StJohns &lt;<a href=3D"mailto:msj@nthpermutation.com">=
msj@nthpermutation.com</a>&gt;,
 &quot;Paterson, Kenny&quot; &lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.u=
k">Kenny.Paterson@rhul.ac.uk</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>&quot;<a href=3D"mailto:cfrg@ie=
tf.org">cfrg@ietf.org</a>&quot; &lt;<a href=3D"mailto:cfrg@ietf.org">cfrg@i=
etf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [Cfrg] Aside Re: [CFRG=
] erratum for hmac ...<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div class=3D"moz-cite-prefix">In engineering, we like to be able to think =
of things as black boxes with specifications.&nbsp; If you follow the rules=
 in the specification, it works properly.&nbsp;
<br>
<br>
The problem here is that HMAC fails to do this.&nbsp; If you use HMAC with =
a key larger that the input block size (allowed), and you reveal the hash o=
f the key (a la original /etc/password), you can lose security.</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>In our guildlines, we require to keep K0 as secret key.&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div class=3D"moz-cite-prefix"><br>
<br>
My suggestion would be to add wording to the specification that says ( a) t=
hat use of keys larger than the input block size is discouraged, and (b) if=
 the keys larger than the input block size are used, the H(K) is also sensi=
tive and must be protected with
 the same diligence as the key would be protected.<br>
<br>
&nbsp;&nbsp;&nbsp; --David Jacobson<br>
</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div><br>
</div>
<div>Thank you,</div>
<div>Quynh.&nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div class=3D"moz-cite-prefix"><br>
<br>
On 2/10/17 5:23 AM, Dang, Quynh (Fed) wrote:<br>
</div>
<blockquote cite=3D"mid:D4C323A1.2F5E8%25qdang@nist.gov" type=3D"cite">
<div>See my discussion below.&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>David Jacobson &lt;<a moz-do-=
not-send=3D"true" href=3D"mailto:dmjacobson@sbcglobal.net">dmjacobson@sbcgl=
obal.net</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Friday, February 10, 2017 at =
12:27 AM<br>
<span style=3D"font-weight:bold">To: </span>'Quynh' &lt;<a moz-do-not-send=
=3D"true" href=3D"mailto:Quynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;, =
Randal Atkinson &lt;<a moz-do-not-send=3D"true" href=3D"mailto:randal.atkin=
son.ctr@nrl.navy.mil">randal.atkinson.ctr@nrl.navy.mil</a>&gt;,
 Michael StJohns &lt;<a moz-do-not-send=3D"true" href=3D"mailto:msj@nthperm=
utation.com">msj@nthpermutation.com</a>&gt;, &quot;Paterson, Kenny&quot; &l=
t;<a moz-do-not-send=3D"true" href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Ken=
ny.Paterson@rhul.ac.uk</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>&quot;<a moz-do-not-send=3D"tru=
e" href=3D"mailto:cfrg@ietf.org">cfrg@ietf.org</a>&quot; &lt;<a moz-do-not-=
send=3D"true" href=3D"mailto:cfrg@ietf.org">cfrg@ietf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [Cfrg] Aside Re: [CFRG=
] erratum for hmac ...<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div class=3D"moz-cite-prefix">See interleaved comment.<br>
<br>
On 2/8/17 5:31 AM, Dang, Quynh (Fed) wrote:<br>
</div>
<blockquote cite=3D"mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB146=
4.namprd09.prod.outlook.com" type=3D"cite">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<p>Randal, Michael and many others,</p>
<p><br>
</p>
<p>Thank you for your suggestions.</p>
<p><br>
</p>
<p>Kenny,</p>
<p><br>
</p>
<p>Thank you for your discussion email.</p>
<p><br>
</p>
<p>We are thinking about what would be the best option for HMAC. &nbsp;Some=
 technical&nbsp;possibilities are below.&nbsp;</p>
<p><br>
</p>
<p><span style=3D"font-size: 12pt;">1) Don't change the HMAC spec.</span><b=
r>
</p>
<div><br>
Ask a&nbsp;HMAC key&nbsp;always to&nbsp;have a fixed length such as HMAC-SH=
A256 having 256-bit key. Which means that all protocols using HMAC-SHA256 u=
se 256-bit keys.&nbsp;</div>
<div><br>
</div>
<div>If each protocol uses a different key length, then the issue would&nbs=
p;still exist across protocols. I don't know if this is a practical securit=
y problem, but it seems like a problem that should be avoided.&nbsp;<br>
<br>
</div>
<div>Should ask HMAC keys to be processed/produced by a hash function or an=
other PRF always.
<br>
</div>
</div>
</blockquote>
<br>
I don't see the need or even desirability for this, assuming you ask each p=
rotocol to use a fixed (for that protocol) key length.&nbsp; (That was the =
line above.)<br>
<br>
For an attacker to find two messages with the same HMAC, not knowing the ke=
y, he would have to find a collision in the first stage, not knowing the fi=
rst block.&nbsp; And if you add an extra hash, you are only making it easie=
r.&nbsp; He has to get a collision in the
 pre-hash, where he knows everything.</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>Of course, the hash function must be a collision-resistant one.&nbsp;<=
/div>
<div><br>
</div>
<div>The reason for hashing the key or the key is produced by a good hash f=
unction or a PRF is to make the key become more of a &quot;random key&quot;=
 as you know HMAC is a PRF as keys are selected randomly, not selectively.&=
nbsp;</div>
<div><br>
</div>
<div>Quynh.&nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000"><br>
<br>
&nbsp;&nbsp; --David Jacobson<br>
<blockquote cite=3D"mid:CY4PR09MB1464F9936D5C07DF16D29403F3420@CY4PR09MB146=
4.namprd09.prod.outlook.com" type=3D"cite">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<div><br>
This option does not break interoperability of &nbsp;the current HMAC imple=
mentations.<br>
<br>
2) Change the HMAC Spec.&nbsp;<br>
<br>
a) Always hash the key regardless of its length, then perform step 3 in FIP=
S 198.&nbsp;<br>
b) Use a&nbsp;hash-based KDF (not HKDF) to produce B bits from the key, the=
n go to step 4 in the FIPS. (bad for performance).&nbsp;<br>
c) Require key &lt; B, then do multi-rate padding 10* to make the key B bit=
s, then go to step 4 in the FIPS. (good for performance).</div>
<div><br>
</div>
<div>We recommend the use of KMAC in SP 800-185. KMAC's security is solid a=
nd proven, and it has great performance. Code to implement KMAC can be reus=
ed to implement many other Keccak-derived&nbsp;symmetric-key crypto functio=
ns.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Quynh.&nbsp;</div>
<div style=3D"color: rgb(0, 0, 0);">
<div>
<hr tabindex=3D"-1" style=3D"display:inline-block;
                        width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font style=3D"font-size:11pt" colo=
r=3D"#000000" face=3D"Calibri,sans-serif"><b>From:</b> Randal Atkinson
<a moz-do-not-send=3D"true" class=3D"moz-txt-link-rfc2396E" href=3D"mailto:=
randal.atkinson.ctr@nrl.navy.mil">
&lt;randal.atkinson.ctr@nrl.navy.mil&gt;</a><br>
<b>Sent:</b> Tuesday, February 7, 2017 12:34 PM<br>
<b>To:</b> Dang, Quynh (Fed)<br>
<b>Cc:</b> Randal Atkinson<br>
<b>Subject:</b> Aside Re: [CFRG] erratum for hmac ...</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText"><br>
One option available to NIST would be for NIST to open comments <br>
on updating FIPS 198-1, even if opening comments on that now/soon <br>
would be earlier than NIST ordinarily would do so.<br>
<br>
Given how long it takes to move from an approved FIPS revision<br>
to widespread US Government deployment, if data exists from <br>
Kenny P and/or others that merits an update, then starting sooner<br>
would not be a bad thing for the USG.<br>
<br>
Cheers,<br>
<br>
Ran Atkinson<br>
<br>
--------------------------------<br>
Randal Atkinson, PhD<br>
Cheltenham Research for NRL 5520<br>
<a moz-do-not-send=3D"true" class=3D"moz-txt-link-abbreviated" href=3D"mail=
to:randal.atkinson.ctr@nrl.navy.mil">randal.atkinson.ctr@nrl.navy.mil</a>&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<br>
<br>
</div>
</span></font></div>
</div>
<br>
<fieldset class=3D"mimeAttachmentHeader"></fieldset> <br>
<pre wrap=3D"">_______________________________________________
Cfrg mailing list
<a moz-do-not-send=3D"true" class=3D"moz-txt-link-abbreviated" href=3D"mail=
to:Cfrg@irtf.org">Cfrg@irtf.org</a><a moz-do-not-send=3D"true" class=3D"moz=
-txt-link-freetext" href=3D"https://www.irtf.org/mailman/listinfo/cfrg">htt=
ps://www.irtf.org/mailman/listinfo/cfrg</a></pre>
</blockquote>
<p><br>
</p>
</div>
</div>
</blockquote>
</span></blockquote>
<p><br>
</p>
</div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4C372FD2F83Aqdangnistgov_--


From nobody Fri Feb 10 10:48:06 2017
Return-Path: <quynh.dang@nist.gov>
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 6F44F12958B for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 10:48:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 ES1RvkwcxzhY for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 10:47:59 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0135.outbound.protection.outlook.com [23.103.200.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B312129A8E for <cfrg@irtf.org>; Fri, 10 Feb 2017 10:47:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=SWlHQSGNzXrUwlpYkIj1FyMXLO0pcIvMaQf70BdFMmk=; b=do9qw8Iha7GPBa5Ou/X8/luBqD92nOn29KfDFkRqn+vJPFyzbVXzQd4bgjxcS2lp5zdPCqaEcBKhT8u4rNo3epQ2mVh0PBkKgpwcLIYaPh42D5h1SdCcL9MlhzUUuGcGng4VssEaU4P6tLH/ntJMdXIyNfIjs5zhXDekSFJh1Ws=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1462.namprd09.prod.outlook.com (10.173.191.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 18:47:57 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.026; Fri, 10 Feb 2017 18:47:57 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Rene Struik <rstruik.ext@gmail.com>, Sean Turner <sean@sn3rd.com>, "<tls@ietf.org>" <tls@ietf.org>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg84y+88vw5exDE6fOqGEW6ep0A==
Date: Fri, 10 Feb 2017 18:47:57 +0000
Message-ID: <D4C3749F.2F856%qdang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <eeef0b36-2fdd-8de0-3bd7-7f0c5b68e9e9@gmail.com>
In-Reply-To: <eeef0b36-2fdd-8de0-3bd7-7f0c5b68e9e9@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-ms-office365-filtering-correlation-id: bb897306-0c91-4a53-d16e-08d451e554db
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1462; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1462; 7:vjCOHdPXo2e/bEetYR/p871QNDIolpEpy6yRCuI8k+eFAXOfmAsennoSqAwWQP2S62VqElVPUCk+ZoNlwzYTlrZX40u9oinHZWqzIhqn6uujFk86kgqDHY78I6QFzO3EPARk43qfQtqKu3Y1pYh9xURBxN+U5k+1t4kMxm24wil1/mNQxv7P4dkiTBcjfduiTipu4jUdqyUgaHE1QsJNhCMcipQCmW8YR2v6aSa0LLlRVuQOQbyjG+T45yaddT56sSMdvKiN1zp/GONXxn1npnc7pa76JxOh7wvnkiztx3VVydqNxHGOrEo8MYdVZMw6XywpdepAScBBV45faGq+syOgki7s1llYvDfRpyC9QX/ke4BlW/Hd+ilG8UN47PehihcUlIFYyzjy6CziE/w4A8783ExEgXSH4peJJOhWFsw8mzo5cV0nmyVjVKih33eVjvR/AC5b6awhlpXYjzsnR2uDFjuPOQJvun1KJ+WaJivyXVfLWwhjWoDUEymbhruUED6g7PINt4rhQGyH9mUgrg==
x-microsoft-antispam-prvs: <CY4PR09MB1462C138877BF6DDFDA4C09FF3440@CY4PR09MB1462.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(166708455590820)(100405760836317);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123558025)(20161123560025)(6072148); SRVR:CY4PR09MB1462; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1462; 
x-forefront-prvs: 0214EB3F68
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39410400002)(39860400002)(39450400003)(39840400002)(39850400002)(199003)(189002)(377454003)(24454002)(2900100001)(2906002)(8936002)(3280700002)(3846002)(81156014)(2950100002)(102836003)(4326007)(6116002)(53936002)(5660300001)(81166006)(8676002)(38730400002)(105586002)(92566002)(106116001)(6246003)(189998001)(53546003)(106356001)(66066001)(76176999)(4001350100001)(54356999)(3660700001)(50986999)(6486002)(97736004)(77096006)(6436002)(325944008)(39060400001)(6506006)(229853002)(6306002)(101416001)(6512007)(99286003)(54896002)(236005)(25786008)(606005)(86362001)(68736007)(7906003)(36756003)(122556002)(575784001)(83506001)(7736002)(491001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1462; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4C3749F2F856qdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 18:47:57.6983 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1462
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/Bxb74-GLdgW8YO1vJ499-6YPAQM>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 18:48:02 -0000

--_000_D4C3749F2F856qdangnistgov_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Rene,

From: TLS <tls-bounces@ietf.org<mailto:tls-bounces@ietf.org>> on behalf of =
Rene Struik <rstruik.ext@gmail.com<mailto:rstruik.ext@gmail.com>>
Date: Friday, February 10, 2017 at 10:51 AM
To: Sean Turner <sean@sn3rd.com<mailto:sean@sn3rd.com>>, "<tls@ietf.org<mai=
lto:tls@ietf.org>>" <tls@ietf.org<mailto:tls@ietf.org>>
Cc: IRTF CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Dear colleagues:

I would suggest adding the following paragraph at the end of Section 5.5:

[current text of Section 5.5]


There are cryptographic limits on the amount of plaintext which can be safe=
ly encrypted under a given set of keys. [AEAD-LIMITS]<https://tlswg.github.=
io/tls13-spec/#AEAD-LIMITS> provides an analysis of these limits under the =
assumption that the underlying primitive (AES or ChaCha20) has no weaknesse=
s. Implementations SHOULD do a key update Section 4.6.3<https://tlswg.githu=
b.io/tls13-spec/#key-update> prior to reaching these limits.

For AES-GCM, up to 2^24.5 full-size records (about 24 million) may be encry=
pted on a given connection while keeping a safety margin of approximately 2=
^-57 for Authenticated Encryption (AE) security. For ChaCha20/Poly1305, the=
 record sequence number would wrap before the safety limit is reached.

[suggested additional text]

The above upper limits do not take into account potential side channel atta=
cks, which - in some implementations - have been shown to be successful at =
recovering keying material with a relatively small number of messages encry=
pted using the same key. While results are highly implementation-specific, =
thereby making it hard to provide precise guidance, prudence suggests that =
implementations should not reuse keys ad infinitum. Implementations SHALL t=
herefore always implement the key update mechanism of Section 4.6.3.

{editorial note: perhaps, one should impose the limit 2^20, just to make su=
re people do not "forget" to implement key updates?}

How do you do side channel attacks on TLS ? Do these side-channel attacks w=
ork for AES-GCM only in TLS 1.3 ?




See also my email of August 29, 2016:
https://mailarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno

On 2/10/2017 12:07 AM, Sean Turner wrote:

All,

We=92ve got two outstanding PRs that propose changes to draft-ietf-tls-tls1=
3 Section 5.5 =93Limits on Key Usage=94.  As it relates to rekeying, these =
limits have been discussed a couple of times and we need to resolve once an=
d for all whether the TLS WG wants to:

a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]

Please indicate you preference to the TLS mailing list before Feb 17.  Note=
 that unless there=92s clear consensus to change the text will remain as is=
 (i.e., option a).

J&S

[0] https://tlswg.github.io/tls13-spec/#rfc.section.5.5
[1] https://github.com/tlswg/tls13-spec/pull/765
[2] https://github.com/tlswg/tls13-spec/pull/769
_______________________________________________
Cfrg mailing list
Cfrg@irtf.org<mailto:Cfrg@irtf.org>https://www.irtf.org/mailman/listinfo/cf=
rg



--
email: rstruik.ext@gmail.com<mailto:rstruik.ext@gmail.com> | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363

--_000_D4C3749F2F856qdangnistgov_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <C491949735255544B2D1EE7F978C9695@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>Hi Rene,&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>TLS &lt;<a href=3D"mailto:tls=
-bounces@ietf.org">tls-bounces@ietf.org</a>&gt; on behalf of Rene Struik &l=
t;<a href=3D"mailto:rstruik.ext@gmail.com">rstruik.ext@gmail.com</a>&gt;<br=
>
<span style=3D"font-weight:bold">Date: </span>Friday, February 10, 2017 at =
10:51 AM<br>
<span style=3D"font-weight:bold">To: </span>Sean Turner &lt;<a href=3D"mail=
to:sean@sn3rd.com">sean@sn3rd.com</a>&gt;, &quot;&lt;<a href=3D"mailto:tls@=
ietf.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"mailto:tls@ietf.org">tl=
s@ietf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>IRTF CFRG &lt;<a href=3D"mailto=
:cfrg@irtf.org">cfrg@irtf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div class=3D"moz-cite-prefix">Dear colleagues:<br>
<br>
I would suggest adding the following paragraph at the end of Section 5.5:<b=
r>
<br>
[current text of Section 5.5]<br>
<br>
<p style=3D"padding: 0px; margin: 0.5em 0px; color: rgb(51, 51, 51);
        font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial,
        sans-serif; font-size: 15px; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: normal; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px;">
There are cryptographic limits on the amount of plaintext which can be safe=
ly encrypted under a given set of keys.<span class=3D"Apple-converted-space=
">&nbsp;</span><a href=3D"https://tlswg.github.io/tls13-spec/#AEAD-LIMITS" =
style=3D"text-decoration: none; color: rgb(42, 100, 150);">[AEAD-LIMITS]</a=
><span class=3D"Apple-converted-space">&nbsp;</span>provides
 an analysis of these limits under the assumption that the underlying primi=
tive (AES or ChaCha20) has no weaknesses. Implementations SHOULD do a key u=
pdate<span class=3D"Apple-converted-space">&nbsp;</span><a href=3D"https://=
tlswg.github.io/tls13-spec/#key-update" style=3D"text-decoration: none; col=
or: rgb(42, 100, 150);">Section
 4.6.3</a><span class=3D"Apple-converted-space">&nbsp;</span>prior to reach=
ing these limits.</p>
<p id=3D"rfc.section.5.5.p.2" style=3D"padding: 0px; margin: 0.5em
        0px; color: rgb(51, 51, 51); font-family: &quot;Helvetica
        Neue&quot;, Helvetica, Arial, sans-serif; font-size: 15px;
        font-style: normal; font-variant-ligatures: normal;
        font-variant-caps: normal; font-weight: normal; letter-spacing:
        normal; orphans: 2; text-align: start; text-indent: 0px;
        text-transform: none; white-space: normal; widows: 2;
        word-spacing: 0px; -webkit-text-stroke-width: 0px;">
For AES-GCM, up to 2^24.5 full-size records (about 24 million) may be encry=
pted on a given connection while keeping a safety margin of approximately 2=
^-57 for Authenticated Encryption (AE) security. For ChaCha20/Poly1305, the=
 record sequence number would wrap
 before the safety limit is reached.</p>
[suggested additional text]<br>
<br>
The above upper limits do not take into account potential side channel atta=
cks, which - in some implementations - have been shown to be successful at =
recovering keying material with a relatively small number of messages encry=
pted using the same key. While results
 are highly implementation-specific, thereby making it hard to provide prec=
ise guidance, prudence suggests that implementations should not reuse keys =
ad infinitum. Implementations SHALL therefore always implement the key upda=
te mechanism of Section 4.6.3.
<br>
<br>
{editorial note: perhaps, one should impose the limit 2^20, just to make su=
re people do not &quot;forget&quot; to implement key updates?} &nbsp;
</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>How do you do side channel attacks on TLS ? Do these side-channel atta=
cks work for AES-GCM only in TLS 1.3 ?</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div class=3D"moz-cite-prefix"><br class=3D"Apple-interchange-newline">
<br>
<br>
See also my email of August 29, 2016:<br>
<a class=3D"moz-txt-link-freetext" href=3D"https://mailarchive.ietf.org/arc=
h/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno">https://mailarchive.ietf.org/arch/m=
sg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno</a><br>
<br>
On 2/10/2017 12:07 AM, Sean Turner wrote:<br>
</div>
<blockquote cite=3D"mid:352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com" typ=
e=3D"cite">
<pre wrap=3D"">All,

We=92ve got two outstanding PRs that propose changes to draft-ietf-tls-tls1=
3 Section 5.5 =93Limits on Key Usage=94.  As it relates to rekeying, these =
limits have been discussed a couple of times and we need to resolve once an=
d for all whether the TLS WG wants to:

a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]

Please indicate you preference to the TLS mailing list before Feb 17.  Note=
 that unless there=92s clear consensus to change the text will remain as is=
 (i.e., option a).

J&amp;S

[0] <a class=3D"moz-txt-link-freetext" href=3D"https://tlswg.github.io/tls1=
3-spec/#rfc.section.5.5">https://tlswg.github.io/tls13-spec/#rfc.section.5.=
5</a>
[1] <a class=3D"moz-txt-link-freetext" href=3D"https://github.com/tlswg/tls=
13-spec/pull/765">https://github.com/tlswg/tls13-spec/pull/765</a>
[2] <a class=3D"moz-txt-link-freetext" href=3D"https://github.com/tlswg/tls=
13-spec/pull/769">https://github.com/tlswg/tls13-spec/pull/769</a>
_______________________________________________
Cfrg mailing list
<a class=3D"moz-txt-link-abbreviated" href=3D"mailto:Cfrg@irtf.org">Cfrg@ir=
tf.org</a><a class=3D"moz-txt-link-freetext" href=3D"https://www.irtf.org/m=
ailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a></pre>
</blockquote>
<br>
<p><br>
</p>
<pre class=3D"moz-signature" cols=3D"72">--=20
email: <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:rstruik.ext@gma=
il.com">rstruik.ext@gmail.com</a> | Skype: rstruik
cell: &#43;1 (647) 867-5658 | US: &#43;1 (415) 690-7363</pre>
</div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4C3749F2F856qdangnistgov_--


From nobody Fri Feb 10 10:56:50 2017
Return-Path: <quynh.dang@nist.gov>
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 DDEED12956D for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 10:56:41 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 BZ87KxppWKa6 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 10:56:40 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0121.outbound.protection.outlook.com [23.103.200.121]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2F027129AA2 for <cfrg@irtf.org>; Fri, 10 Feb 2017 10:56:39 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=0+sLTh04fK1cyaZhIJisGeM0u/+qNgKrsCb5IHXD3Ac=; b=0IT/dlgl9GlRlFeo0aSPWdxm8py6NXIldW4x9u781GCXT1QHfP5T6ih1GoSD5zhmTLZlsbtOasHw225YftpCzDUKrTRhCpEkuKRI1akor6c1LFgsxjasR59gQf3vycvy+IzW00bZDfzbRUdIVSrxnx7WsoVa5gNNiBMnHEoPwqg=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1462.namprd09.prod.outlook.com (10.173.191.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 18:56:37 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.026; Fri, 10 Feb 2017 18:56:36 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, Sean Turner <sean@sn3rd.com>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg5wBoDZYWLM7Y0meekq7MUVdlqFifU4A///GdAA=
Date: Fri, 10 Feb 2017 18:56:36 +0000
Message-ID: <D4C37519.2F85F%qdang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <D4C31FC4.2F5AF%qdang@nist.gov> <D4C3A5C5.86620%kenny.paterson@rhul.ac.uk>
In-Reply-To: <D4C3A5C5.86620%kenny.paterson@rhul.ac.uk>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1462; 7:DhTKf2QAA3QnW4l7eidfclmEg7si5fgLD5l/CCGf3XSZ9TX6UfwGKHJp0Knyv9EJ0VItzxiPqqm0r6+lGx0gapH+Z6hq9Odcpqop8dsDBpF1Pn5jQYGqMYUlZ5cMhrnxbGiKMxonDeYfr0YwJPV2saWviL9xjrjPYoEbT5esDm/K01hca59eUjabtYpasv0mA0AB0bWEykHeUTCfmBvtUhLHxZG/Yv0/jDBUUqYeIO5Xq5OBvx3tOiFoIWzZ33W3u3v00gZh195Ad1199epovHXgckcdQDJUTcrT7loOKw7TkhQgbS2xRTtXDG2idJK9BbA4jrlzholBrLDeF107PkbtHrIzNTWcWxpns9Sqz0Kc15mjq8qg3Ia/7Q3oem402lFfQCxn7x1gCa9jAPY9jw5291ZHn9Vuh5U1pIv6ImBBF2iKvudVzzRmWoTaRAXEwy9VNUpaOWOpjsypoeE3L/xS0Fe0VwZ+VF+XpGHbr+yv4G3e5A4UUusyb4bz7vIr3p3y1jvQ3uhQ4v3d19auYw==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10019020)(7916002)(39850400002)(39840400002)(39450400003)(39860400002)(39410400002)(377454003)(24454002)(199003)(189002)(101416001)(6306002)(236005)(54906002)(6512007)(54896002)(99286003)(97736004)(77096006)(6486002)(93886004)(6506006)(229853002)(6436002)(7736002)(83506001)(86362001)(606005)(68736007)(7906003)(25786008)(8656002)(122556002)(36756003)(50986999)(53936002)(8676002)(81166006)(5660300001)(2900100001)(2906002)(8936002)(102836003)(4326007)(81156014)(2950100002)(966004)(6116002)(3280700002)(3846002)(4001350100001)(66066001)(76176999)(54356999)(3660700001)(92566002)(106116001)(38730400002)(105586002)(106356001)(53546003)(6246003)(189998001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1462; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 866149e0-fbde-4faa-2d93-08d451e68a34
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1462; 
x-microsoft-antispam-prvs: <CY4PR09MB146211121F4D21969F7657A7F3440@CY4PR09MB1462.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123555025)(20161123564025)(20161123558025)(20161123560025)(6072148); SRVR:CY4PR09MB1462; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1462; 
x-forefront-prvs: 0214EB3F68
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4C375192F85Fqdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 18:56:36.7844 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1462
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/JqBe5EKsjnlg9t-SC1cNfatue7k>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 18:56:42 -0000

--_000_D4C375192F85Fqdangnistgov_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Dear Kenny,


From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rh=
ul.ac.uk>>
Date: Friday, February 10, 2017 at 12:22 PM
To: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>, Sean Turner =
<sean@sn3rd.com<mailto:sean@sn3rd.com>>
Cc: IRTF CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>, "<tls@ietf.org<mailto:=
tls@ietf.org>>" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Dear Quynh,

On 10/02/2017 12:48, "Dang, Quynh (Fed)" <quynh.dang@nist.gov<mailto:quynh.=
dang@nist.gov>> wrote:

Hi Kenny,

Hi,


My preference is to go with the existing text, option a).


>From the github discussion, I think option c) involves a less
conservative
security bound (success probability for IND-CPA attacker bounded by
2^{-32} instead of 2^{-60}). I can live with that, but the WG should be
aware of the weaker security guarantees it provides.


I do not understand option b). It seems to rely on an analysis of
collisions of ciphertext blocks rather than the established security
proof
for AES-GCM.




My suggestion was based on counting.  I analyzed AES-GCM in TLS 1.3  as
being a counter-mode encryption and each counter is a 96-bit nonce ||
32-bit counter. I don=92t know if there is another kind of proof that is
more precise than that.

Thanks for explaining. I think, then, that what you are doing is (in
effect) accounting for the PRP/PRF switching lemma that is used (in a
standard way) as part of the IND-CPA security proof of AES-GCM. One can
obtain a greater degree of precision by using the proven bounds for
IND-CPA security of AES-GCM. These incorporate the "security loss" coming
from the PRP/PRF switching lemma. The current best form of these bounds is
due to Iwata et al.. This is precisely what we analyse in the note at
http://www.isg.rhul.ac.uk/~kp/TLS-AEbounds.pdf - specifically, see
equations (5) - (7) on page 6 of that note.

I reviewed the paper more than once. I highly value the work. I suggested t=
o reference  your paper in the text.  I think the result in your paper is t=
he same with what is being suggested when the collision probability allowed=
 is 2^(-32).

Regards,
Quynh.


Regards,

Kenny



Regards,
Quynh.



--_000_D4C375192F85Fqdangnistgov_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <0020D91BE04D324A82B75F5B07AB0C36@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>Dear Kenny,&nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>&quot;Paterson, Kenny&quot; &=
lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</=
a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Friday, February 10, 2017 at =
12:22 PM<br>
<span style=3D"font-weight:bold">To: </span>'Quynh' &lt;<a href=3D"mailto:Q=
uynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;, Sean Turner &lt;<a href=3D=
"mailto:sean@sn3rd.com">sean@sn3rd.com</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>IRTF CFRG &lt;<a href=3D"mailto=
:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;&lt;<a href=3D"mailto:tls@ietf=
.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"mailto:tls@ietf.org">tls@ie=
tf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>Dear Quynh,</div>
<div><br>
</div>
<div>On 10/02/2017 12:48, &quot;Dang, Quynh (Fed)&quot; &lt;<a href=3D"mail=
to:quynh.dang@nist.gov">quynh.dang@nist.gov</a>&gt; wrote:</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi Kenny, </div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi,</div>
<div><br>
</div>
<div><br>
</div>
<div>My preference is to go with the existing text, option a).</div>
<div><br>
</div>
<div><br>
</div>
<div>From the github discussion, I think option c) involves a less</div>
<div>conservative</div>
<div>security bound (success probability for IND-CPA attacker bounded by</d=
iv>
<div>2^{-32} instead of 2^{-60}). I can live with that, but the WG should b=
e</div>
<div>aware of the weaker security guarantees it provides.</div>
<div><br>
</div>
<div><br>
</div>
<div>I do not understand option b). It seems to rely on an analysis of</div=
>
<div>collisions of ciphertext blocks rather than the established security</=
div>
<div>proof</div>
<div>for AES-GCM.</div>
<div><br>
</div>
<div><br>
</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>My suggestion was based on counting.&nbsp;&nbsp;I analyzed AES-GCM in =
TLS 1.3&nbsp;&nbsp;as</div>
<div>being a counter-mode encryption and each counter is a 96-bit nonce ||<=
/div>
<div>32-bit counter. I don=92t know if there is another kind of proof that =
is</div>
<div>more precise than that.</div>
</blockquote>
<div><br>
</div>
<div>Thanks for explaining. I think, then, that what you are doing is (in</=
div>
<div>effect) accounting for the PRP/PRF switching lemma that is used (in a<=
/div>
<div>standard way) as part of the IND-CPA security proof of AES-GCM. One ca=
n</div>
<div>obtain a greater degree of precision by using the proven bounds for</d=
iv>
<div>IND-CPA security of AES-GCM. These incorporate the &quot;security loss=
&quot; coming</div>
<div>from the PRP/PRF switching lemma. The current best form of these bound=
s is</div>
<div>due to Iwata et al.. This is precisely what we analyse in the note at<=
/div>
<div><a href=3D"http://www.isg.rhul.ac.uk/~kp/TLS-AEbounds.pdf">http://www.=
isg.rhul.ac.uk/~kp/TLS-AEbounds.pdf</a> - specifically, see</div>
<div>equations (5) - (7) on page 6 of that note.</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>I reviewed the paper more than once. I highly value the work. I sugges=
ted to reference &nbsp;your paper in the text. &nbsp;I think the result in =
your paper is the same with what is being suggested when the collision prob=
ability allowed is 2^(-32).</div>
<div><br>
</div>
<div>Regards,</div>
<div>Quynh.&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Kenny </div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div><br>
</div>
<div><br>
</div>
<div>Regards,</div>
<div>Quynh. </div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4C375192F85Fqdangnistgov_--


From nobody Fri Feb 10 11:02:26 2017
Return-Path: <rstruik.ext@gmail.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 772CF129AA9 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 11:02:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 ICNU-omRIiGD for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 11:02:22 -0800 (PST)
Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E065F129AA6 for <cfrg@irtf.org>; Fri, 10 Feb 2017 11:02:21 -0800 (PST)
Received: by mail-it0-x22d.google.com with SMTP id 203so148335949ith.0 for <cfrg@irtf.org>; Fri, 10 Feb 2017 11:02:21 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=VshVjuaGnYDoLIfeWhr1N/FEJ4yP8/Y08IFsFVtMBwg=; b=Y+5OT/eleXl0i8kTpKj04UFZMK5me73C9inIIeC1IJ/YaIDIlY+s8lvXEGb9o+sUQM I+aLD0byMTNywUZDQ0wQjsSWXEyBfdid3O+J2ll8uEvPgozL6dhkLxHFQj+NMaPXFfrE 4W9WJfIYwnLwi+8mDSwcba9SMGVNtXZwyqHzbs7AmzxSV95J4lW4r+CKD19xmmZRvHel pJx4uLfHOVrKq6RylIBrms+jhe3uQvcBykN8z0FJspGeieKxvjwVvTA4IEwf0og6OlMP REuLbSI6hior9wp++lH5OeaVL1PhMWZuFpSJK/KXnv1HYKe3WmUwdXfCZPEnRDA3mphY N5XA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=VshVjuaGnYDoLIfeWhr1N/FEJ4yP8/Y08IFsFVtMBwg=; b=GhS9S/xLmMze7QZdXV24WWkva6z6PHOsVkG3IU2tHpIXDUg47MYinPqWhFly5Li0ll 8/5Mvn3CYQ0wgyOxe73V4zgtvfTviGxgqu63+PAJRyyNpXqNpCE0NGHX1S9KPHcxoUJc b7KQqV5ODyYwJVFEiabtFE8tVvKp4k+W1tGBpn55F9h6q8Qt6D8JRCb9RV+50AU3oW00 ovk2I+4+DkACmPHDf2Z3gGyTAyZoZu5B/eLsr6AZjvhSwTIc1alagM1IidFf5rnij2D3 no/Hadq6d3Z5xx6ENB5qBCQBy5vVqlNiGS2cwzv7l724DrFXVBD1GLuZWrFW4XD/OT0d ZzAw==
X-Gm-Message-State: AMke39kAVK5Bog84lb3tiWozQtFgrsTJXjLHeI4fBexNZRcDNhrFzuDza0HY9+IbCtv8nA==
X-Received: by 10.36.217.150 with SMTP id p144mr10276224itg.90.1486753341219;  Fri, 10 Feb 2017 11:02:21 -0800 (PST)
Received: from [192.168.0.14] (CPE7cb21b2cb904-CM7cb21b2cb901.cpe.net.cable.rogers.com. [174.112.186.144]) by smtp.gmail.com with ESMTPSA id v85sm1367421iov.34.2017.02.10.11.02.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 10 Feb 2017 11:02:20 -0800 (PST)
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, Sean Turner <sean@sn3rd.com>, "<tls@ietf.org>" <tls@ietf.org>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <eeef0b36-2fdd-8de0-3bd7-7f0c5b68e9e9@gmail.com> <D4C3749F.2F856%qdang@nist.gov>
From: Rene Struik <rstruik.ext@gmail.com>
Message-ID: <51978c0d-f944-5ebf-ee85-cdc801568e8a@gmail.com>
Date: Fri, 10 Feb 2017 14:02:14 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <D4C3749F.2F856%qdang@nist.gov>
Content-Type: multipart/alternative; boundary="------------F0B747543E16567D336E241B"
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/jw-rpp5YLb82SOkpQd9znCCidzw>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 19:02:24 -0000

This is a multi-part message in MIME format.
--------------F0B747543E16567D336E241B
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit

Hi Quynh:

Not sure where to start (there is vast literature on side channel 
attacks and other implementation attacks). A good starting point would 
be the book [1], but one could also look at some NIST publications [2].

Side channel attacks differs from cryptanalytic attacks in that it does 
not merely study I/O behavior of crypto contructs, but also looks into 
what information can be obtained from what is going on "under the hood" 
of the computations (power consumption, radiation, timing, etc; or even 
invasive attacks). Most commonly one looks at crypto building blocks, 
but ultimately side channels can comprise any system behavior ("Lucky13" 
does, e.g., exploit this, if I remember correctly).

 From the last page of [2]: Finally, the most important conclusion from 
this paper is that it is not only a necessity but also a must, in the 
coming version of FIPS 140-3 standard, to evaluate cryptographic modules 
for their resistivity against SCA attacks.

Ref:
[1] Stefan Mangard, Elisabeth Oswald, Thomas Popp, "Power Analysis 
Attacks - Revealing the Secrets of Smart Cards", Springer, 2007.
[2] 
http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-3/physec/papers/physecpaper19.pdf
[2]


On 2/10/2017 1:47 PM, Dang, Quynh (Fed) wrote:
> Hi Rene,
>
> From: TLS <tls-bounces@ietf.org <mailto:tls-bounces@ietf.org>> on 
> behalf of Rene Struik <rstruik.ext@gmail.com 
> <mailto:rstruik.ext@gmail.com>>
> Date: Friday, February 10, 2017 at 10:51 AM
> To: Sean Turner <sean@sn3rd.com <mailto:sean@sn3rd.com>>, 
> "<tls@ietf.org <mailto:tls@ietf.org>>" <tls@ietf.org 
> <mailto:tls@ietf.org>>
> Cc: IRTF CFRG <cfrg@irtf.org <mailto:cfrg@irtf.org>>
> Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs 
> (#765/#769)
>
>     Dear colleagues:
>
>     I would suggest adding the following paragraph at the end of
>     Section 5.5:
>
>     [current text of Section 5.5]
>
>     There are cryptographic limits on the amount of plaintext which
>     can be safely encrypted under a given set of keys.[AEAD-LIMITS]
>     <https://tlswg.github.io/tls13-spec/#AEAD-LIMITS>provides an
>     analysis of these limits under the assumption that the underlying
>     primitive (AES or ChaCha20) has no weaknesses. Implementations
>     SHOULD do a key updateSection 4.6.3
>     <https://tlswg.github.io/tls13-spec/#key-update>prior to reaching
>     these limits.
>
>     For AES-GCM, up to 2^24.5 full-size records (about 24 million) may
>     be encrypted on a given connection while keeping a safety margin
>     of approximately 2^-57 for Authenticated Encryption (AE) security.
>     For ChaCha20/Poly1305, the record sequence number would wrap
>     before the safety limit is reached.
>
>     [suggested additional text]
>
>     The above upper limits do not take into account potential side
>     channel attacks, which - in some implementations - have been shown
>     to be successful at recovering keying material with a relatively
>     small number of messages encrypted using the same key. While
>     results are highly implementation-specific, thereby making it hard
>     to provide precise guidance, prudence suggests that
>     implementations should not reuse keys ad infinitum.
>     Implementations SHALL therefore always implement the key update
>     mechanism of Section 4.6.3.
>
>     {editorial note: perhaps, one should impose the limit 2^20, just
>     to make sure people do not "forget" to implement key updates?}
>
>
> How do you do side channel attacks on TLS ? Do these side-channel 
> attacks work for AES-GCM only in TLS 1.3 ?
>
>
>
>
>     See also my email of August 29, 2016:
>     https://mailarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno
>
>     On 2/10/2017 12:07 AM, Sean Turner wrote:
>>     All,
>>
>>     We’ve got two outstanding PRs that propose changes to draft-ietf-tls-tls13 Section 5.5 “Limits on Key Usage”.  As it relates to rekeying, these limits have been discussed a couple of times and we need to resolve once and for all whether the TLS WG wants to:
>>
>>     a) Close these two PRs and go with the existing text [0]
>>     b) Adopt PR#765 [1]
>>     c) Adopt PR#769 [2]
>>
>>     Please indicate you preference to the TLS mailing list before Feb 17.  Note that unless there’s clear consensus to change the text will remain as is (i.e., option a).
>>
>>     J&S
>>
>>     [0]https://tlswg.github.io/tls13-spec/#rfc.section.5.5
>>     [1]https://github.com/tlswg/tls13-spec/pull/765
>>     [2]https://github.com/tlswg/tls13-spec/pull/769
>>     _______________________________________________
>>     Cfrg mailing list
>>     Cfrg@irtf.orghttps://www.irtf.org/mailman/listinfo/cfrg
>
>
>     -- 
>     email:rstruik.ext@gmail.com  | Skype: rstruik
>     cell: +1 (647) 867-5658 | US: +1 (415) 690-7363
>


-- 
email: rstruik.ext@gmail.com | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363


--------------F0B747543E16567D336E241B
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: 8bit

<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hi Quynh:<br>
      <br>
      Not sure where to start (there is vast literature on side channel
      attacks and other implementation attacks). A good starting point
      would be the book [1], but one could also look at some NIST
      publications [2]. <br>
      <br>
      Side channel attacks differs from cryptanalytic attacks in that it
      does not merely study I/O behavior of crypto contructs, but also
      looks into what information can be obtained from what is going on
      "under the hood" of the computations (power consumption,
      radiation, timing, etc; or even invasive attacks). Most commonly
      one looks at crypto building blocks, but ultimately side channels
      can comprise any system behavior ("Lucky13" does, e.g., exploit
      this, if I remember correctly).<br>
      <br>
      From the last page of [2]: Finally, the most important conclusion
      from this paper is that it is not only a necessity but
      also a must, in the coming version of FIPS 140-3 standard, to
      evaluate cryptographic modules for
      their resistivity against SCA attacks. <br>
      <br>
      Ref:<br>
      [1] Stefan Mangard, Elisabeth Oswald, Thomas Popp, "Power Analysis
      Attacks - Revealing the Secrets of Smart Cards", Springer, 2007.<br>
      [2]
<a class="moz-txt-link-freetext" href="http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-3/physec/papers/physecpaper19.pdf">http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-3/physec/papers/physecpaper19.pdf</a><br>
      [2] <br>
      <br>
      <br>
      On 2/10/2017 1:47 PM, Dang, Quynh (Fed) wrote:<br>
    </div>
    <blockquote cite="mid:D4C3749F.2F856%25qdang@nist.gov" type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <div>Hi Rene, </div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <div style="font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
          <span style="font-weight:bold">From: </span>TLS &lt;<a
            moz-do-not-send="true" href="mailto:tls-bounces@ietf.org">tls-bounces@ietf.org</a>&gt;
          on behalf of Rene Struik &lt;<a moz-do-not-send="true"
            href="mailto:rstruik.ext@gmail.com">rstruik.ext@gmail.com</a>&gt;<br>
          <span style="font-weight:bold">Date: </span>Friday, February
          10, 2017 at 10:51 AM<br>
          <span style="font-weight:bold">To: </span>Sean Turner &lt;<a
            moz-do-not-send="true" href="mailto:sean@sn3rd.com">sean@sn3rd.com</a>&gt;,
          "&lt;<a moz-do-not-send="true" href="mailto:tls@ietf.org">tls@ietf.org</a>&gt;"
          &lt;<a moz-do-not-send="true" href="mailto:tls@ietf.org">tls@ietf.org</a>&gt;<br>
          <span style="font-weight:bold">Cc: </span>IRTF CFRG &lt;<a
            moz-do-not-send="true" href="mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;<br>
          <span style="font-weight:bold">Subject: </span>Re: [TLS]
          [Cfrg] Closing out tls1.3 "Limits on key usage" PRs
          (#765/#769)<br>
        </div>
        <div><br>
        </div>
        <blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE"
          style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
          <div>
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="moz-cite-prefix">Dear colleagues:<br>
                <br>
                I would suggest adding the following paragraph at the
                end of Section 5.5:<br>
                <br>
                [current text of Section 5.5]<br>
                <br>
                <p style="padding: 0px; margin: 0.5em 0px; color:
                  rgb(51, 51, 51); font-family: &quot;Helvetica
                  Neue&quot;, Helvetica, Arial, sans-serif; font-size:
                  15px; font-style: normal; font-variant-ligatures:
                  normal; font-variant-caps: normal; font-weight:
                  normal; letter-spacing: normal; orphans: 2;
                  text-align: start; text-indent: 0px; text-transform:
                  none; white-space: normal; widows: 2; word-spacing:
                  0px; -webkit-text-stroke-width: 0px;">
                  There are cryptographic limits on the amount of
                  plaintext which can be safely encrypted under a given
                  set of keys.<span class="Apple-converted-space"> </span><a
                    moz-do-not-send="true"
                    href="https://tlswg.github.io/tls13-spec/#AEAD-LIMITS"
                    style="text-decoration: none; color: rgb(42, 100,
                    150);">[AEAD-LIMITS]</a><span
                    class="Apple-converted-space"> </span>provides an
                  analysis of these limits under the assumption that the
                  underlying primitive (AES or ChaCha20) has no
                  weaknesses. Implementations SHOULD do a key update<span
                    class="Apple-converted-space"> </span><a
                    moz-do-not-send="true"
                    href="https://tlswg.github.io/tls13-spec/#key-update"
                    style="text-decoration: none; color: rgb(42, 100,
                    150);">Section 4.6.3</a><span
                    class="Apple-converted-space"> </span>prior to
                  reaching these limits.</p>
                <p id="rfc.section.5.5.p.2" style="padding: 0px; margin:
                  0.5em 0px; color: rgb(51, 51, 51); font-family:
                  &quot;Helvetica Neue&quot;, Helvetica, Arial,
                  sans-serif; font-size: 15px; font-style: normal;
                  font-variant-ligatures: normal; font-variant-caps:
                  normal; font-weight: normal; letter-spacing: normal;
                  orphans: 2; text-align: start; text-indent: 0px;
                  text-transform: none; white-space: normal; widows: 2;
                  word-spacing: 0px; -webkit-text-stroke-width: 0px;">
                  For AES-GCM, up to 2^24.5 full-size records (about 24
                  million) may be encrypted on a given connection while
                  keeping a safety margin of approximately 2^-57 for
                  Authenticated Encryption (AE) security. For
                  ChaCha20/Poly1305, the record sequence number would
                  wrap before the safety limit is reached.</p>
                [suggested additional text]<br>
                <br>
                The above upper limits do not take into account
                potential side channel attacks, which - in some
                implementations - have been shown to be successful at
                recovering keying material with a relatively small
                number of messages encrypted using the same key. While
                results are highly implementation-specific, thereby
                making it hard to provide precise guidance, prudence
                suggests that implementations should not reuse keys ad
                infinitum. Implementations SHALL therefore always
                implement the key update mechanism of Section 4.6.3.
                <br>
                <br>
                {editorial note: perhaps, one should impose the limit
                2^20, just to make sure people do not "forget" to
                implement key updates?}  
              </div>
            </div>
          </div>
        </blockquote>
      </span>
      <div><br>
      </div>
      <div>How do you do side channel attacks on TLS ? Do these
        side-channel attacks work for AES-GCM only in TLS 1.3 ?</div>
      <div><br>
      </div>
      <span id="OLK_SRC_BODY_SECTION">
        <blockquote id="MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE"
          style="BORDER-LEFT: #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
          <div>
            <div bgcolor="#FFFFFF" text="#000000">
              <div class="moz-cite-prefix"><br
                  class="Apple-interchange-newline">
                <br>
                <br>
                See also my email of August 29, 2016:<br>
                <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="https://mailarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno">https://mailarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno</a><br>
                <br>
                On 2/10/2017 12:07 AM, Sean Turner wrote:<br>
              </div>
              <blockquote
                cite="mid:352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com"
                type="cite">
                <pre wrap="">All,

We’ve got two outstanding PRs that propose changes to draft-ietf-tls-tls13 Section 5.5 “Limits on Key Usage”.  As it relates to rekeying, these limits have been discussed a couple of times and we need to resolve once and for all whether the TLS WG wants to:

a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]

Please indicate you preference to the TLS mailing list before Feb 17.  Note that unless there’s clear consensus to change the text will remain as is (i.e., option a).

J&amp;S

[0] <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://tlswg.github.io/tls13-spec/#rfc.section.5.5">https://tlswg.github.io/tls13-spec/#rfc.section.5.5</a>
[1] <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://github.com/tlswg/tls13-spec/pull/765">https://github.com/tlswg/tls13-spec/pull/765</a>
[2] <a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://github.com/tlswg/tls13-spec/pull/769">https://github.com/tlswg/tls13-spec/pull/769</a>
_______________________________________________
Cfrg mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><a moz-do-not-send="true" class="moz-txt-link-freetext" href="https://www.irtf.org/mailman/listinfo/cfrg">https://www.irtf.org/mailman/listinfo/cfrg</a></pre>
              </blockquote>
              <br>
              <p><br>
              </p>
              <pre class="moz-signature" cols="72">-- 
email: <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:rstruik.ext@gmail.com">rstruik.ext@gmail.com</a> | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363</pre>
            </div>
          </div>
        </blockquote>
      </span>
    </blockquote>
    <br>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
email: <a class="moz-txt-link-abbreviated" href="mailto:rstruik.ext@gmail.com">rstruik.ext@gmail.com</a> | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363</pre>
  </body>
</html>

--------------F0B747543E16567D336E241B--


From nobody Fri Feb 10 11:06:57 2017
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 1B400129AAE for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 11:06:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.921
X-Spam-Level: 
X-Spam-Status: No, score=-1.921 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 VjjZcCCPBjq2 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 11:06:49 -0800 (PST)
Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00081.outbound.protection.outlook.com [40.107.0.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 69151129AA8 for <cfrg@irtf.org>; Fri, 10 Feb 2017 11:06:49 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=6OzyjzLP4WJShn+EviFTB8rJm0DEwLTxO2uFz5XZZS0=; b=1zdo3QaGqbYnRrcryKHpxTeOkIhLmDQFmtVn1btWMH8+5HEa6UYwmo7bO6dKkxM34MQycERnT5BN0WAwK1+wPv3sLM0nNnRgqKSouiLVkJIGGC8kNXVxVpfXH8otgqvUvAh4b8J+mzc1srwYzdnjeeBN/bHZQ8FY1Z+phN4AgJ4=
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com (10.168.2.156) by AM4PR0301MB1905.eurprd03.prod.outlook.com (10.168.2.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 19:06:47 +0000
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) by AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) with mapi id 15.01.0888.029; Fri, 10 Feb 2017 19:06:46 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>, Sean Turner <sean@sn3rd.com>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg1ulN42j3rwAVkipPJ3aFAzvI6FhuukAgAA4koCAAD3QgIAATPYAgAAZ1gCAAANQAA==
Date: Fri, 10 Feb 2017 19:06:46 +0000
Message-ID: <D4C3BE6A.86847%kenny.paterson@rhul.ac.uk>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <D4C31FC4.2F5AF%qdang@nist.gov> <D4C3A5C5.86620%kenny.paterson@rhul.ac.uk> <D4C37519.2F85F%qdang@nist.gov>
In-Reply-To: <D4C37519.2F85F%qdang@nist.gov>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [134.219.227.30]
x-microsoft-exchange-diagnostics: 1; AM4PR0301MB1905; 7:H/2lUTPrOyXAtY+2gLqUbtqRo8ML8FVIXma7sQleAuLcnRtHgmC90Z2z7yevEPa5rw3/XAMiNyf/covmUzwxSub9T8Rr5hI+zly/1c8VUD+vSnRi0U4Rt2U42ki6nyBq83knbJ8PrwQCTbu0RQNperZgQlGNdN/8PeBZlgFriX5Ww2ggNriAG9WG8Hmq2dZtKhEIujZmV5XN8sQm29zNEZHHnRrmFS/CXRZZDUh28hypBk2cvA0S5Yvw6QQYk6QFYC4eVKOdFy93AQrXuH7SXfFGlmz68BSS5iSPqcyvPbPhcW0i8tKCMVQDMmsRtiCpvo4MlZwgiMUFbgGb8c3eHpwNvwLlmllTIeUongbj50L4wc/PlO5FJ8xvKPzFlitBEMEcdPYEf6eODOxnJsLINGDhkwY1xvVPoWS69yBuWQ3gX4diPuGAnHw1xc25jFfAb+CempBL2B04FRZIZMdJQqNPwlFnhV7txiUHBi+bTB5s/p9E7B2oQNQtn7keOGrYOdOR5MnIFeBW82aTvdXOIg==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(377454003)(199003)(24454002)(189002)(42882006)(2900100001)(36756003)(2950100002)(7736002)(68736007)(122556002)(92566002)(189998001)(99286003)(4326007)(8656002)(25786008)(38730400002)(3280700002)(3660700001)(2906002)(6436002)(102836003)(6116002)(229853002)(3846002)(6506006)(6512007)(6306002)(50986999)(54356999)(101416001)(54906002)(76176999)(6486002)(83506001)(77096006)(81166006)(81156014)(86362001)(53936002)(66066001)(8936002)(105586002)(106356001)(8676002)(74482002)(106116001)(97736004)(305945005)(4001350100001)(5660300001)(93886004)(53546003)(6246003); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB1905; H:AM4PR0301MB1906.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
x-ms-office365-filtering-correlation-id: c22cc956-a16e-4a46-fb30-08d451e7f5c2
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR0301MB1905; 
x-microsoft-antispam-prvs: <AM4PR0301MB1905552DA3E796F45AB9C364BC440@AM4PR0301MB1905.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123558025)(20161123562025)(20161123560025)(20161123564025)(20161123555025)(6072148); SRVR:AM4PR0301MB1905; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0301MB1905; 
x-forefront-prvs: 0214EB3F68
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <6FFCA153BE3F9A48827B06F167E1D928@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 19:06:46.7423 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB1905
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/yTI4TyZx4Yh80yppqa38c063QoE>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 19:06:53 -0000

SGksDQoNCk9uIDEwLzAyLzIwMTcgMTg6NTYsICJEYW5nLCBRdXluaCAoRmVkKSIgPHF1eW5oLmRh
bmdAbmlzdC5nb3Y+IHdyb3RlOg0KDQo+RGVhciBLZW5ueSwgDQo+DQo+RnJvbTogIlBhdGVyc29u
LCBLZW5ueSIgPEtlbm55LlBhdGVyc29uQHJodWwuYWMudWs+DQo+RGF0ZTogRnJp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YXQgd2hhdCB5
b3UgYXJlIGdldHRpbmcgYXQ/DQoNCklmIHNvLCB0aGVuIHdlIGFyZSBvbiB0aGUgc2FtZSBwYWdl
LCBhbmQgd2hhdCByZW1haW5zIGlzIHRvIGRlY2lkZSB3aGV0aGVyDQphIDJeey0zMn0gYm91bmQg
aXMgYSBnb29kIGVub3VnaCBzZWN1cml0eSBtYXJnaW4uDQoNClJlZ2FyZHMsDQoNCktlbm55DQoN
Cg0K


From nobody Fri Feb 10 11:36:39 2017
Return-Path: <quynh.dang@nist.gov>
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 4C090129B25 for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 11:36:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 F_7xSwNfeU2p for <cfrg@ietfa.amsl.com>; Fri, 10 Feb 2017 11:36:29 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0135.outbound.protection.outlook.com [23.103.200.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 54AA3129B24 for <cfrg@irtf.org>; Fri, 10 Feb 2017 11:36:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/RC4K1ufqEUjFKfO3hV6JxqyREy5B+X+4Ap5X2ylSOE=; b=tb0AR19uLfrFkx+ChxBNK7ffOPlFEiPO9rRKvw1oLlzShMWaS0lmf2f05XngUCQ8K5zG9+ucIKVzFJcN96/jWTDmCuquLMylpjGnjPy16CmrU/MSZzYb3CnoRIl47GptwKwqgTBhtaN1qjsbxe1tYr015a66kGBi0KyUsQPdDeQ=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1461.namprd09.prod.outlook.com (10.173.191.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Fri, 10 Feb 2017 19:36:27 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.026; Fri, 10 Feb 2017 19:36:27 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Rene Struik <rstruik.ext@gmail.com>, Sean Turner <sean@sn3rd.com>, "<tls@ietf.org>" <tls@ietf.org>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg84y+88vw5exDE6fOqGEW6ep0KFimMQAgAAIvxk=
Date: Fri, 10 Feb 2017 19:36:27 +0000
Message-ID: <CY4PR09MB146415E668A3DA0484190BC9F3440@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <eeef0b36-2fdd-8de0-3bd7-7f0c5b68e9e9@gmail.com> <D4C3749F.2F856%qdang@nist.gov>, <51978c0d-f944-5ebf-ee85-cdc801568e8a@gmail.com>
In-Reply-To: <51978c0d-f944-5ebf-ee85-cdc801568e8a@gmail.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-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-ms-office365-filtering-correlation-id: af8743ad-29f3-4eb2-9bad-08d451ec1b1a
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1461; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1461; 7:Tvmz1I9smEOm634E2dtS/81MKf6JD46qJvRc18qtWl4vLJGdx5K2mrUpOLTzRH+s8Y9AQZrBdRmovUFkIm7RBv/VybzvDclEDzGQC1FgRmUlSKw47BH89xakgL95d4hwrXHtV3aMDQOV0JCfLjA6nh55TgyHq/fcLHVjtoJ7KiPzTFSH0wxZR4c9VMPJYNQ41XAVILS/SjlqvyawGzCrJsGvlWoKJ40ybni1Io5ehLnCTLVfLAz1bVzMZFzMpvehOvX/WusZuzTU9ILUymhU+fMtXDTjHB2zK5j+GctlBPieX7/Kel+44hON2aC6SOzf5PDZ1NQS83jnUbWXyfo0SjlOZdYVJi/8H/MKmXVXIFiiDLRAj+7ExeAPCycWlHyFAF8j+t+akG0qfBcL609eEs+yM/7+HtK7QPJne7iqcSf81akTh8oZURrODJHjcpS9garZ6BvY4bHXrFsX4/ysdCL7YnQgc3uPDmmenVBGvHvxjfGNdJ1DOheBvj6nV3fpUeV+RX3N4yXhCRtjnIw4Gw==
x-microsoft-antispam-prvs: <CY4PR09MB1461BDC17D34D8CDD415F314F3440@CY4PR09MB1461.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(166708455590820)(100405760836317)(131022147185803); 
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123558025)(20161123555025)(20161123562025)(20161123564025)(6072148); SRVR:CY4PR09MB1461; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1461; 
x-forefront-prvs: 0214EB3F68
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39840400002)(39450400003)(39850400002)(39410400002)(39860400002)(199003)(24454002)(377454003)(189002)(86362001)(122556002)(575784001)(50986999)(66066001)(54356999)(3280700002)(76176999)(189998001)(3660700001)(4326007)(68736007)(2906002)(2900100001)(81166006)(81156014)(38730400002)(7906003)(8936002)(16297215004)(39060400001)(74316002)(8676002)(7736002)(106356001)(105586002)(6246003)(53546003)(106116001)(19627405001)(3846002)(7696004)(92566002)(77096006)(229853002)(6436002)(2950100002)(966004)(5660300001)(9686003)(99286003)(102836003)(93886004)(55016002)(325944008)(33656002)(97736004)(101416001)(236005)(606005)(54896002)(25786008)(6116002)(6506006)(6306002)(53936002)(491001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1461; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR09MB146415E668A3DA0484190BC9F3440CY4PR09MB1464namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 Feb 2017 19:36:27.3491 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1461
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/6uUQu35tauBKGFe17mJebW60X0E>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 10 Feb 2017 19:36:33 -0000

--_000_CY4PR09MB146415E668A3DA0484190BC9F3440CY4PR09MB1464namp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Rene,


I care about side channel attacks in general as much as you do. But my ques=
tion was that how you carry out those attacks on GCM in TLS 1.3's servers a=
nd clients ? Do those side-channel attacks apply only to GCM in TLS 1.3 ?


Quynh.

________________________________
From: Rene Struik <rstruik.ext@gmail.com>
Sent: Friday, February 10, 2017 2:02:14 PM
To: Dang, Quynh (Fed); Sean Turner; <tls@ietf.org>
Cc: IRTF CFRG
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hi Quynh:

Not sure where to start (there is vast literature on side channel attacks a=
nd other implementation attacks). A good starting point would be the book [=
1], but one could also look at some NIST publications [2].

Side channel attacks differs from cryptanalytic attacks in that it does not=
 merely study I/O behavior of crypto contructs, but also looks into what in=
formation can be obtained from what is going on "under the hood" of the com=
putations (power consumption, radiation, timing, etc; or even invasive atta=
cks). Most commonly one looks at crypto building blocks, but ultimately sid=
e channels can comprise any system behavior ("Lucky13" does, e.g., exploit =
this, if I remember correctly).

>From the last page of [2]: Finally, the most important conclusion from this=
 paper is that it is not only a necessity but also a must, in the coming ve=
rsion of FIPS 140-3 standard, to evaluate cryptographic modules for their r=
esistivity against SCA attacks.

Ref:
[1] Stefan Mangard, Elisabeth Oswald, Thomas Popp, "Power Analysis Attacks =
- Revealing the Secrets of Smart Cards", Springer, 2007.
[2] http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-3/physec/papers/=
physecpaper19.pdf
[2]


On 2/10/2017 1:47 PM, Dang, Quynh (Fed) wrote:
Hi Rene,

From: TLS <tls-bounces@ietf.org<mailto:tls-bounces@ietf.org>> on behalf of =
Rene Struik <rstruik.ext@gmail.com<mailto:rstruik.ext@gmail.com>>
Date: Friday, February 10, 2017 at 10:51 AM
To: Sean Turner <sean@sn3rd.com<mailto:sean@sn3rd.com>>, "<tls@ietf.org<mai=
lto:tls@ietf.org>>" <tls@ietf.org<mailto:tls@ietf.org>>
Cc: IRTF CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Dear colleagues:

I would suggest adding the following paragraph at the end of Section 5.5:

[current text of Section 5.5]


There are cryptographic limits on the amount of plaintext which can be safe=
ly encrypted under a given set of keys. [AEAD-LIMITS]<https://tlswg.github.=
io/tls13-spec/#AEAD-LIMITS> provides an analysis of these limits under the =
assumption that the underlying primitive (AES or ChaCha20) has no weaknesse=
s. Implementations SHOULD do a key update Section 4.6.3<https://tlswg.githu=
b.io/tls13-spec/#key-update> prior to reaching these limits.

For AES-GCM, up to 2^24.5 full-size records (about 24 million) may be encry=
pted on a given connection while keeping a safety margin of approximately 2=
^-57 for Authenticated Encryption (AE) security. For ChaCha20/Poly1305, the=
 record sequence number would wrap before the safety limit is reached.

[suggested additional text]

The above upper limits do not take into account potential side channel atta=
cks, which - in some implementations - have been shown to be successful at =
recovering keying material with a relatively small number of messages encry=
pted using the same key. While results are highly implementation-specific, =
thereby making it hard to provide precise guidance, prudence suggests that =
implementations should not reuse keys ad infinitum. Implementations SHALL t=
herefore always implement the key update mechanism of Section 4.6.3.

{editorial note: perhaps, one should impose the limit 2^20, just to make su=
re people do not "forget" to implement key updates?}

How do you do side channel attacks on TLS ? Do these side-channel attacks w=
ork for AES-GCM only in TLS 1.3 ?




See also my email of August 29, 2016:
https://mailarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno

On 2/10/2017 12:07 AM, Sean Turner wrote:

All,

We=92ve got two outstanding PRs that propose changes to draft-ietf-tls-tls1=
3 Section 5.5 =93Limits on Key Usage=94.  As it relates to rekeying, these =
limits have been discussed a couple of times and we need to resolve once an=
d for all whether the TLS WG wants to:

a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]

Please indicate you preference to the TLS mailing list before Feb 17.  Note=
 that unless there=92s clear consensus to change the text will remain as is=
 (i.e., option a).

J&S

[0] https://tlswg.github.io/tls13-spec/#rfc.section.5.5
[1] https://github.com/tlswg/tls13-spec/pull/765
[2] https://github.com/tlswg/tls13-spec/pull/769
_______________________________________________
Cfrg mailing list
Cfrg@irtf.org<mailto:Cfrg@irtf.org>https://www.irtf.org/mailman/listinfo/cf=
rg



--
email: rstruik.ext@gmail.com<mailto:rstruik.ext@gmail.com> | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363



--
email: rstruik.ext@gmail.com<mailto:rstruik.ext@gmail.com> | Skype: rstruik
cell: +1 (647) 867-5658 | US: +1 (415) 690-7363

--_000_CY4PR09MB146415E668A3DA0484190BC9F3440CY4PR09MB1464namp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body bgcolor=3D"#FFFFFF" text=3D"#000000">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<p>Hi Rene,</p>
<p><br>
</p>
<p>I care about side channel attacks in general as much as you do. But my q=
uestion was that how you carry out those attacks on GCM in TLS 1.3's server=
s and clients ? Do those side-channel attacks apply only to GCM in TLS 1.3 =
?</p>
<p><br>
</p>
<p>Quynh.&nbsp;</p>
</div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Rene Struik &lt;rstru=
ik.ext@gmail.com&gt;<br>
<b>Sent:</b> Friday, February 10, 2017 2:02:14 PM<br>
<b>To:</b> Dang, Quynh (Fed); Sean Turner; &lt;tls@ietf.org&gt;<br>
<b>Cc:</b> IRTF CFRG<br>
<b>Subject:</b> Re: [TLS] [Cfrg] Closing out tls1.3 &quot;Limits on key usa=
ge&quot; PRs (#765/#769)</font>
<div>&nbsp;</div>
</div>
<div>
<div class=3D"moz-cite-prefix">Hi Quynh:<br>
<br>
Not sure where to start (there is vast literature on side channel attacks a=
nd other implementation attacks). A good starting point would be the book [=
1], but one could also look at some NIST publications [2].
<br>
<br>
Side channel attacks differs from cryptanalytic attacks in that it does not=
 merely study I/O behavior of crypto contructs, but also looks into what in=
formation can be obtained from what is going on &quot;under the hood&quot; =
of the computations (power consumption, radiation,
 timing, etc; or even invasive attacks). Most commonly one looks at crypto =
building blocks, but ultimately side channels can comprise any system behav=
ior (&quot;Lucky13&quot; does, e.g., exploit this, if I remember correctly)=
.<br>
<br>
>From the last page of [2]: Finally, the most important conclusion from this=
 paper is that it is not only a necessity but also a must, in the coming ve=
rsion of FIPS 140-3 standard, to evaluate cryptographic modules for their r=
esistivity against SCA attacks.
<br>
<br>
Ref:<br>
[1] Stefan Mangard, Elisabeth Oswald, Thomas Popp, &quot;Power Analysis Att=
acks - Revealing the Secrets of Smart Cards&quot;, Springer, 2007.<br>
[2] <a class=3D"moz-txt-link-freetext" href=3D"http://csrc.nist.gov/groups/=
STM/cmvp/documents/fips140-3/physec/papers/physecpaper19.pdf">
http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-3/physec/papers/phys=
ecpaper19.pdf</a><br>
[2] <br>
<br>
<br>
On 2/10/2017 1:47 PM, Dang, Quynh (Fed) wrote:<br>
</div>
<blockquote cite=3D"mid:D4C3749F.2F856%25qdang@nist.gov" type=3D"cite">
<div>Hi Rene,&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt;
          text-align:left; color:black; BORDER-BOTTOM: medium none;
          BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT:
          0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;
          BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>TLS &lt;<a moz-do-not-send=3D=
"true" href=3D"mailto:tls-bounces@ietf.org">tls-bounces@ietf.org</a>&gt; on=
 behalf of Rene Struik &lt;<a moz-do-not-send=3D"true" href=3D"mailto:rstru=
ik.ext@gmail.com">rstruik.ext@gmail.com</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Friday, February 10, 2017 at =
10:51 AM<br>
<span style=3D"font-weight:bold">To: </span>Sean Turner &lt;<a moz-do-not-s=
end=3D"true" href=3D"mailto:sean@sn3rd.com">sean@sn3rd.com</a>&gt;, &quot;&=
lt;<a moz-do-not-send=3D"true" href=3D"mailto:tls@ietf.org">tls@ietf.org</a=
>&gt;&quot; &lt;<a moz-do-not-send=3D"true" href=3D"mailto:tls@ietf.org">tl=
s@ietf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>IRTF CFRG &lt;<a moz-do-not-sen=
d=3D"true" href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div class=3D"moz-cite-prefix">Dear colleagues:<br>
<br>
I would suggest adding the following paragraph at the end of Section 5.5:<b=
r>
<br>
[current text of Section 5.5]<br>
<br>
<p style=3D"padding: 0px; margin: 0.5em 0px; color:
                  rgb(51, 51, 51); font-family: &quot;Helvetica
                  Neue&quot;, Helvetica, Arial, sans-serif; font-size:
                  15px; font-style: normal; font-variant-ligatures:
                  normal; font-variant-caps: normal; font-weight:
                  normal; letter-spacing: normal; orphans: 2;
                  text-align: start; text-indent: 0px; text-transform:
                  none; white-space: normal; widows: 2; word-spacing:
                  0px; -webkit-text-stroke-width: 0px;">
There are cryptographic limits on the amount of plaintext which can be safe=
ly encrypted under a given set of keys.<span class=3D"Apple-converted-space=
">&nbsp;</span><a moz-do-not-send=3D"true" href=3D"https://tlswg.github.io/=
tls13-spec/#AEAD-LIMITS" style=3D"text-decoration: none; color: rgb(42, 100=
,
                    150);">[AEAD-LIMITS]</a><span class=3D"Apple-converted-=
space">&nbsp;</span>provides
 an analysis of these limits under the assumption that the underlying primi=
tive (AES or ChaCha20) has no weaknesses. Implementations SHOULD do a key u=
pdate<span class=3D"Apple-converted-space">&nbsp;</span><a moz-do-not-send=
=3D"true" href=3D"https://tlswg.github.io/tls13-spec/#key-update" style=3D"=
text-decoration: none; color: rgb(42, 100,
                    150);">Section
 4.6.3</a><span class=3D"Apple-converted-space">&nbsp;</span>prior to reach=
ing these limits.</p>
<p id=3D"rfc.section.5.5.p.2" style=3D"padding: 0px; margin:
                  0.5em 0px; color: rgb(51, 51, 51); font-family:
                  &quot;Helvetica Neue&quot;, Helvetica, Arial,
                  sans-serif; font-size: 15px; font-style: normal;
                  font-variant-ligatures: normal; font-variant-caps:
                  normal; font-weight: normal; letter-spacing: normal;
                  orphans: 2; text-align: start; text-indent: 0px;
                  text-transform: none; white-space: normal; widows: 2;
                  word-spacing: 0px; -webkit-text-stroke-width: 0px;">
For AES-GCM, up to 2^24.5 full-size records (about 24 million) may be encry=
pted on a given connection while keeping a safety margin of approximately 2=
^-57 for Authenticated Encryption (AE) security. For ChaCha20/Poly1305, the=
 record sequence number would wrap
 before the safety limit is reached.</p>
[suggested additional text]<br>
<br>
The above upper limits do not take into account potential side channel atta=
cks, which - in some implementations - have been shown to be successful at =
recovering keying material with a relatively small number of messages encry=
pted using the same key. While results
 are highly implementation-specific, thereby making it hard to provide prec=
ise guidance, prudence suggests that implementations should not reuse keys =
ad infinitum. Implementations SHALL therefore always implement the key upda=
te mechanism of Section 4.6.3.
<br>
<br>
{editorial note: perhaps, one should impose the limit 2^20, just to make su=
re people do not &quot;forget&quot; to implement key updates?} &nbsp;
</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>How do you do side channel attacks on TLS ? Do these side-channel atta=
cks work for AES-GCM only in TLS 1.3 ?</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0
          0 0 5;">
<div>
<div bgcolor=3D"#FFFFFF" text=3D"#000000">
<div class=3D"moz-cite-prefix"><br class=3D"Apple-interchange-newline">
<br>
<br>
See also my email of August 29, 2016:<br>
<a moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext" href=3D"https:/=
/mailarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno">https://ma=
ilarchive.ietf.org/arch/msg/cfrg/SUuLDg0wTvjR7H46oNyEtyGVdno</a><br>
<br>
On 2/10/2017 12:07 AM, Sean Turner wrote:<br>
</div>
<blockquote cite=3D"mid:352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com" typ=
e=3D"cite">
<pre wrap=3D"">All,

We=92ve got two outstanding PRs that propose changes to draft-ietf-tls-tls1=
3 Section 5.5 =93Limits on Key Usage=94.  As it relates to rekeying, these =
limits have been discussed a couple of times and we need to resolve once an=
d for all whether the TLS WG wants to:

a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]

Please indicate you preference to the TLS mailing list before Feb 17.  Note=
 that unless there=92s clear consensus to change the text will remain as is=
 (i.e., option a).

J&amp;S

[0] <a moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext" href=3D"htt=
ps://tlswg.github.io/tls13-spec/#rfc.section.5.5">https://tlswg.github.io/t=
ls13-spec/#rfc.section.5.5</a>
[1] <a moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext" href=3D"htt=
ps://github.com/tlswg/tls13-spec/pull/765">https://github.com/tlswg/tls13-s=
pec/pull/765</a>
[2] <a moz-do-not-send=3D"true" class=3D"moz-txt-link-freetext" href=3D"htt=
ps://github.com/tlswg/tls13-spec/pull/769">https://github.com/tlswg/tls13-s=
pec/pull/769</a>
_______________________________________________
Cfrg mailing list
<a moz-do-not-send=3D"true" class=3D"moz-txt-link-abbreviated" href=3D"mail=
to:Cfrg@irtf.org">Cfrg@irtf.org</a><a moz-do-not-send=3D"true" class=3D"moz=
-txt-link-freetext" href=3D"https://www.irtf.org/mailman/listinfo/cfrg">htt=
ps://www.irtf.org/mailman/listinfo/cfrg</a></pre>
</blockquote>
<br>
<p><br>
</p>
<pre class=3D"moz-signature" cols=3D"72">--=20
email: <a moz-do-not-send=3D"true" class=3D"moz-txt-link-abbreviated" href=
=3D"mailto:rstruik.ext@gmail.com">rstruik.ext@gmail.com</a> | Skype: rstrui=
k
cell: &#43;1 (647) 867-5658 | US: &#43;1 (415) 690-7363</pre>
</div>
</div>
</blockquote>
</span></blockquote>
<br>
<p><br>
</p>
<pre class=3D"moz-signature" cols=3D"72">--=20
email: <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:rstruik.ext@gma=
il.com">rstruik.ext@gmail.com</a> | Skype: rstruik
cell: &#43;1 (647) 867-5658 | US: &#43;1 (415) 690-7363</pre>
</div>
</body>
</html>

--_000_CY4PR09MB146415E668A3DA0484190BC9F3440CY4PR09MB1464namp_--


From nobody Sat Feb 11 03:45:57 2017
Return-Path: <quynh.dang@nist.gov>
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 B5123129487 for <cfrg@ietfa.amsl.com>; Sat, 11 Feb 2017 03:45:55 -0800 (PST)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 UGe93g1ybWtk for <cfrg@ietfa.amsl.com>; Sat, 11 Feb 2017 03:45:53 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0137.outbound.protection.outlook.com [23.103.200.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 05DAC12943F for <cfrg@irtf.org>; Sat, 11 Feb 2017 03:45:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ffKQBAdY2pe2Gi4drtZbYY1DPdt5/4PYae54pkL7CJc=; b=uwFuU7ToqwBL5956rT/6x+u8ejae4BPp629RG/Fe60tWJk4uONLg8hkUSmxiAe47XUhSI/lVHDnEjzz2w0UYkFQYanwP6fQaf3ODY1WwjkE5k6MguSGB30wt7b2B2x2TGN/vnvb8Up+QKqA2YjsTklfCBNh8ifWHeag9OAt1k4o=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1463.namprd09.prod.outlook.com (10.173.191.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Sat, 11 Feb 2017 11:45:51 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.029; Sat, 11 Feb 2017 11:45:51 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Sean Turner <sean@sn3rd.com>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg5wBoDZYWLM7Y0meekq7MUVdlqFifU4A///GdACAAFarAIAACkUT
Date: Sat, 11 Feb 2017 11:45:50 +0000
Message-ID: <CY4PR09MB146498613751F2C400FAC876F3440@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <D4C31FC4.2F5AF%qdang@nist.gov> <D4C3A5C5.86620%kenny.paterson@rhul.ac.uk> <D4C37519.2F85F%qdang@nist.gov>,<D4C3BE6A.86847%kenny.paterson@rhul.ac.uk>
In-Reply-To: <D4C3BE6A.86847%kenny.paterson@rhul.ac.uk>
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-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.220.15]
x-ms-office365-filtering-correlation-id: 010cf658-4236-4851-505c-08d452738747
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1463; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1463; 7:77HJ+r0k39QXT6OJNTDLScniEDewV25aRVteVWKPP9iGc5tUWJMv9H0yZt/9PkWptGKLo50pl94w+cJ7LD7EKE86drDJXOP77C0OOhszfcgsH1WeuQSwpItCgqQ9BIolm0z16NqP86iH/xDacTORK86/Y+glnW9/Dy6vO/9AiAt3noTXzQTUZJ8fQbeejRwiO1pys/xlapYG2IvBJKzwtAnBQTkINcl/mMLhGUQtIHtQfKT4OJHEc0buG9eo/hdsGBCPIcEcmAnCiZXVpEwA12srJ4XtzkDkgO5kqHo7deooA0REAYC/6Le7npra1b3DOo2VIAhVkKkLpRnfRtKtpbkQ/nnRz1pkdyqDnyFm6qdzKfqdHNmREZnM4GsPnLWmUYnXL7zzG29JHy/NngO8KcQgck191x6WByRuyHX3+OaknAi6weSJ7FdYmfpzaOZfcfmaAzAzczQDBoX0n3CO3dF5Q6Z1T+rUQOw1Vly8ulnohJ5RlzH9f+4N4l6q4Cl6gtpNR5xPWHVXZaHG9/9Vyg==
x-microsoft-antispam-prvs: <CY4PR09MB1463E134D38CC579084E8EC4F3470@CY4PR09MB1463.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558025)(20161123555025)(20161123564025)(6072148); SRVR:CY4PR09MB1463; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1463; 
x-forefront-prvs: 0215D7173F
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39850400002)(39860400002)(39410400002)(39450400003)(39840400002)(24454002)(199003)(377454003)(189002)(6246003)(53546003)(66066001)(6606003)(38730400002)(74316002)(3660700001)(93886004)(3846002)(6116002)(102836003)(2950100002)(189998001)(97736004)(68736007)(101416001)(122556002)(3280700002)(7736002)(4326007)(7906003)(2906002)(76176999)(7696004)(54356999)(50986999)(5660300001)(8656002)(54906002)(25786008)(54896002)(6306002)(92566002)(99286003)(55016002)(2900100001)(33656002)(105586002)(53936002)(86362001)(106356001)(106116001)(15974865002)(236005)(8936002)(229853002)(9686003)(77096006)(81166006)(8676002)(19627405001)(606005)(6436002)(81156014)(6506006); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1463; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR09MB146498613751F2C400FAC876F3440CY4PR09MB1464namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Feb 2017 11:45:50.6413 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1463
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/_vRt0JAlftIaZl1N1BqcvQLEpek>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sat, 11 Feb 2017 11:45:56 -0000

--_000_CY4PR09MB146498613751F2C400FAC876F3440CY4PR09MB1464namp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable


Hi Kenny,


AES-permutation is a permutation.  But, AES-GCM (AES in counter mode) is a =
PRF as long as the 128-bit IVs are unique under the encryption key.  The am=
ount of plaintext is the same with the amount of ciphertext.


I originally talked about plaintext in my discussion, but several people as=
ked me to talk about ciphertext instead (I thought maybe measuring cipherte=
xt was easier than measuring plaintext in practice and that was why they as=
ked me that).


The number of 128-bit blocks of plaintext is the same with the number of 12=
8-bit "one-time pad" keys produced by the AES key and the unique 128-bit IV=
s. These 128-bit "one-time pad" keys and the corresponding 128-bit cipherte=
xt blocks are the same in the sense that they are both sets of pseudo-rando=
m 128-bit blocks.  But, the 128-bit "one-time pad" keys are not stored, the=
y have to either measure the amount of plaintext or ciphertext.


Regards,

Quynh.



________________________________
From: Paterson, Kenny <Kenny.Paterson@rhul.ac.uk>
Sent: Friday, February 10, 2017 2:06:46 PM
To: Dang, Quynh (Fed); Sean Turner
Cc: IRTF CFRG; <tls@ietf.org>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hi,

On 10/02/2017 18:56, "Dang, Quynh (Fed)" <quynh.dang@nist.gov> wrote:

>Dear Kenny,
>
>From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
>Date: Friday, February 10, 2017 at 12:22 PM
>To: 'Quynh' <Quynh.Dang@nist.gov>, Sean Turner <sean@sn3rd.com>
>Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
>Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs
>(#765/#769)
>
>
>
>>Dear Quynh,
>>
>>
>>On 10/02/2017 12:48, "Dang, Quynh (Fed)" <quynh.dang@nist.gov> wrote:
>>
>>
>>>Hi Kenny,
>>>
>>>
>>>>Hi,
>>>>
>>>>
>>>>
>>>>
>>>>My preference is to go with the existing text, option a).
>>>>
>>>>
>>>>
>>>>
>>>>From the github discussion, I think option c) involves a less
>>>>conservative
>>>>security bound (success probability for IND-CPA attacker bounded by
>>>>2^{-32} instead of 2^{-60}). I can live with that, but the WG should be
>>>>aware of the weaker security guarantees it provides.
>>>>
>>>>
>>>>
>>>>
>>>>I do not understand option b). It seems to rely on an analysis of
>>>>collisions of ciphertext blocks rather than the established security
>>>>proof
>>>>for AES-GCM.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>>My suggestion was based on counting.  I analyzed AES-GCM in TLS 1.3  as
>>>being a counter-mode encryption and each counter is a 96-bit nonce ||
>>>32-bit counter. I don=92t know if there is another kind of proof that is
>>>more precise than that.
>>
>>
>>Thanks for explaining. I think, then, that what you are doing is (in
>>effect) accounting for the PRP/PRF switching lemma that is used (in a
>>standard way) as part of the IND-CPA security proof of AES-GCM. One can
>>obtain a greater degree of precision by using the proven bounds for
>>IND-CPA security of AES-GCM. These incorporate the "security loss" coming
>>from the PRP/PRF switching lemma. The current best form of these bounds
>>is
>>due to Iwata et al.. This is precisely what we analyse in the note at
>>http://www.isg.rhul.ac.uk/~kp/TLS-AEbounds.pdf - specifically, see
Limits on Authenticated Encryption Use in TLS - isg.rhul.ac.uk<http://www.i=
sg.rhul.ac.uk/~kp/TLS-AEbounds.pdf>
www.isg.rhul.ac.uk
Limits on Authenticated Encryption Use in TLS Atul Luykx and Kenneth G. Pat=
erson March 8, 2016 Abstract Thistechnicalnotepresentslimitsonthesecurity(a=
safunctionofthe



>>equations (5) - (7) on page 6 of that note.
>>
>
>I reviewed the paper more than once. I highly value the work. I suggested
>to reference  your paper in the text.  I think the result in your paper
>is the same with what is being suggested when the collision probability
>allowed is 2^(-32).

Thanks for this feedback. I guess my confusion arises from wondering what
you mean by collision probability and why you care about it. There are no
collisions in the block cipher's outputs per se, because AES is a
permutation for each choice of key. And collisions in the ciphertext
blocks output by AES-GCM are irrelevant to its formal security analysis.

On the other hand, when in the proof of IND-CPA security of AES-GCM one
switches from a random permutation (which is how we model AES) to a random
function (which is what we need to argue in the end that the plaintext is
masked by a one-time pad, giving indistinguishability), then one needs to
deal with the probability that collisions occur in the function's outputs
but not in the permutation's. This ends up being the main contribution to
the security bound in the proof for IND-CPA security.

Is that what you are getting at?

If so, then we are on the same page, and what remains is to decide whether
a 2^{-32} bound is a good enough security margin.

Regards,

Kenny



--_000_CY4PR09MB146498613751F2C400FAC876F3440CY4PR09MB1464namp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;">
<p><br>
</p>
<meta content=3D"text/html; charset=3DUTF-8">
<div dir=3D"ltr">
<div id=3D"x_divtagdefaultwrapper" dir=3D"ltr" style=3D"font-size:12pt; col=
or:#000000; font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Hi Kenny,</p>
<p><br>
</p>
<p>AES-permutation is a permutation. &nbsp;But, AES-GCM (AES in counter mod=
e) is a PRF as long as the 128-bit IVs are unique under the encryption key.=
 &nbsp;The amount of plaintext is the same with the amount of ciphertext.</=
p>
<p><br>
</p>
<p>I originally talked about plaintext in my discussion, but several people=
 asked me to talk about ciphertext instead (I thought maybe measuring ciphe=
rtext was easier than measuring plaintext in practice and that was why they=
 asked me that).&nbsp;</p>
<p><br>
</p>
<p>The number of 128-bit blocks of plaintext is the same with the number of=
 128-bit &quot;one-time pad&quot; keys produced by the AES key and the uniq=
ue&nbsp;128-bit IVs. These 128-bit &quot;one-time pad&quot; keys and the co=
rresponding 128-bit ciphertext blocks are the same in the
 sense that they are both sets of pseudo-random 128-bit blocks. &nbsp;But, =
the 128-bit &quot;one-time pad&quot; keys are not stored, they have to eith=
er measure the amount of&nbsp;plaintext or ciphertext.&nbsp;</p>
<p><br>
</p>
<p>Regards,</p>
<p>Quynh.&nbsp;</p>
<p><br>
</p>
<p><br>
</p>
<p></p>
</div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Paterson, Kenny &lt=
;Kenny.Paterson@rhul.ac.uk&gt;<br>
<b>Sent:</b> Friday, February 10, 2017 2:06:46 PM<br>
<b>To:</b> Dang, Quynh (Fed); Sean Turner<br>
<b>Cc:</b> IRTF CFRG; &lt;tls@ietf.org&gt;<br>
<b>Subject:</b> Re: [TLS] [Cfrg] Closing out tls1.3 &quot;Limits on key usa=
ge&quot; PRs (#765/#769)</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt">
<div class=3D"PlainText">Hi,<br>
<br>
On 10/02/2017 18:56, &quot;Dang, Quynh (Fed)&quot; &lt;quynh.dang@nist.gov&=
gt; wrote:<br>
<br>
&gt;Dear Kenny, <br>
&gt;<br>
&gt;From: &quot;Paterson, Kenny&quot; &lt;Kenny.Paterson@rhul.ac.uk&gt;<br>
&gt;Date: Friday, February 10, 2017 at 12:22 PM<br>
&gt;To: 'Quynh' &lt;Quynh.Dang@nist.gov&gt;, Sean Turner &lt;sean@sn3rd.com=
&gt;<br>
&gt;Cc: IRTF CFRG &lt;cfrg@irtf.org&gt;, &quot;&lt;tls@ietf.org&gt;&quot; &=
lt;tls@ietf.org&gt;<br>
&gt;Subject: Re: [TLS] [Cfrg] Closing out tls1.3 &quot;Limits on key usage&=
quot; PRs<br>
&gt;(#765/#769)<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;&gt;Dear Quynh,<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;On 10/02/2017 12:48, &quot;Dang, Quynh (Fed)&quot; &lt;quynh.dang@n=
ist.gov&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;&gt;Hi Kenny, <br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;Hi,<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;My preference is to go with the existing text, option a).<b=
r>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;From the github discussion, I think option c) involves a le=
ss<br>
&gt;&gt;&gt;&gt;conservative<br>
&gt;&gt;&gt;&gt;security bound (success probability for IND-CPA attacker bo=
unded by<br>
&gt;&gt;&gt;&gt;2^{-32} instead of 2^{-60}). I can live with that, but the =
WG should be<br>
&gt;&gt;&gt;&gt;aware of the weaker security guarantees it provides.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;I do not understand option b). It seems to rely on an analy=
sis of<br>
&gt;&gt;&gt;&gt;collisions of ciphertext blocks rather than the established=
 security<br>
&gt;&gt;&gt;&gt;proof<br>
&gt;&gt;&gt;&gt;for AES-GCM.<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;My suggestion was based on counting.&nbsp; I analyzed AES-GCM i=
n TLS 1.3&nbsp; as<br>
&gt;&gt;&gt;being a counter-mode encryption and each counter is a 96-bit no=
nce ||<br>
&gt;&gt;&gt;32-bit counter. I don=92t know if there is another kind of proo=
f that is<br>
&gt;&gt;&gt;more precise than that.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;Thanks for explaining. I think, then, that what you are doing is (i=
n<br>
&gt;&gt;effect) accounting for the PRP/PRF switching lemma that is used (in=
 a<br>
&gt;&gt;standard way) as part of the IND-CPA security proof of AES-GCM. One=
 can<br>
&gt;&gt;obtain a greater degree of precision by using the proven bounds for=
<br>
&gt;&gt;IND-CPA security of AES-GCM. These incorporate the &quot;security l=
oss&quot; coming<br>
&gt;&gt;from the PRP/PRF switching lemma. The current best form of these bo=
unds<br>
&gt;&gt;is<br>
&gt;&gt;due to Iwata et al.. This is precisely what we analyse in the note =
at<br>
&gt;&gt;<a href=3D"http://www.isg.rhul.ac.uk/~kp/TLS-AEbounds.pdf" id=3D"LP=
lnk191752" previewremoved=3D"true">http://www.isg.rhul.ac.uk/~kp/TLS-AEboun=
ds.pdf</a> - specifically, see
<div id=3D"LPBorder_GT_14868121831850.8411046966401889" style=3D"margin-bot=
tom: 20px; overflow: auto; width: 100%; text-indent: 0px;">
<table id=3D"LPContainer_14868121831820.8629104625686124" cellspacing=3D"0"=
 style=3D"width: 90%; background-color: rgb(255, 255, 255); position: relat=
ive; overflow: auto; padding-top: 20px; padding-bottom: 20px; margin-top: 2=
0px; border-top: 1px dotted rgb(200, 200, 200); border-bottom: 1px dotted r=
gb(200, 200, 200);">
<tbody>
<tr valign=3D"top" style=3D"border-spacing: 0px;">
<td id=3D"TextCell_14868121831830.034056591011979886" colspan=3D"2" style=
=3D"vertical-align: top; position: relative; padding: 0px; display: table-c=
ell;">
<div id=3D"LPRemovePreviewContainer_14868121831840.24299572298391592"></div=
>
<div id=3D"LPTitle_14868121831840.5251723763214908" style=3D"top: 0px; colo=
r: rgb(0, 120, 215); font-weight: normal; font-size: 21px; font-family: wf_=
segoe-ui_light, &quot;Segoe UI Light&quot;, &quot;Segoe WP Light&quot;, &qu=
ot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, sans-serif; line-he=
ight: 21px;">
<a id=3D"LPUrlAnchor_14868121831840.19106580755115554" href=3D"http://www.i=
sg.rhul.ac.uk/~kp/TLS-AEbounds.pdf" target=3D"_blank" style=3D"text-decorat=
ion: none;">Limits on Authenticated Encryption Use in TLS - isg.rhul.ac.uk<=
/a></div>
<div id=3D"LPMetadata_14868121831840.537853344500101" style=3D"margin: 10px=
 0px 16px; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_=
segoe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial,=
 sans-serif; font-size: 14px; line-height: 14px;">
www.isg.rhul.ac.uk</div>
<div id=3D"LPDescription_14868121831850.16576995512793902" style=3D"display=
: block; color: rgb(102, 102, 102); font-weight: normal; font-family: wf_se=
goe-ui_normal, &quot;Segoe UI&quot;, &quot;Segoe WP&quot;, Tahoma, Arial, s=
ans-serif; font-size: 14px; line-height: 20px; max-height: 100px; overflow:=
 hidden;">
Limits on Authenticated Encryption Use in TLS Atul Luykx and Kenneth G. Pat=
erson March 8, 2016 Abstract Thistechnicalnotepresentslimitsonthesecurity(a=
safunctionofthe</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
&gt;&gt;equations (5) - (7) on page 6 of that note.<br>
&gt;&gt;<br>
&gt;<br>
&gt;I reviewed the paper more than once. I highly value the work. I suggest=
ed<br>
&gt;to reference&nbsp; your paper in the text.&nbsp; I think the result in =
your paper<br>
&gt;is the same with what is being suggested when the collision probability=
<br>
&gt;allowed is 2^(-32).<br>
<br>
Thanks for this feedback. I guess my confusion arises from wondering what<b=
r>
you mean by collision probability and why you care about it. There are no<b=
r>
collisions in the block cipher's outputs per se, because AES is a<br>
permutation for each choice of key. And collisions in the ciphertext<br>
blocks output by AES-GCM are irrelevant to its formal security analysis.<br=
>
<br>
On the other hand, when in the proof of IND-CPA security of AES-GCM one<br>
switches from a random permutation (which is how we model AES) to a random<=
br>
function (which is what we need to argue in the end that the plaintext is<b=
r>
masked by a one-time pad, giving indistinguishability), then one needs to<b=
r>
deal with the probability that collisions occur in the function's outputs<b=
r>
but not in the permutation's. This ends up being the main contribution to<b=
r>
the security bound in the proof for IND-CPA security.<br>
<br>
Is that what you are getting at?<br>
<br>
If so, then we are on the same page, and what remains is to decide whether<=
br>
a 2^{-32} bound is a good enough security margin.<br>
<br>
Regards,<br>
<br>
Kenny<br>
<br>
<br>
</div>
</span></font></div>
</body>
</html>

--_000_CY4PR09MB146498613751F2C400FAC876F3440CY4PR09MB1464namp_--


From nobody Sat Feb 11 14:26:38 2017
Return-Path: <crypto@brainhub.org>
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 2FB5B1294A6 for <cfrg@ietfa.amsl.com>; Sat, 11 Feb 2017 14:26:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] 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 1matrBJn5W4j for <cfrg@ietfa.amsl.com>; Sat, 11 Feb 2017 14:26:34 -0800 (PST)
Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:163]) (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 D2F711294A9 for <cfrg@irtf.org>; Sat, 11 Feb 2017 14:26:34 -0800 (PST)
Received: from resomta-po-16v.sys.comcast.net ([96.114.154.240]) by resqmta-po-04v.sys.comcast.net with SMTP id cg7ZcTMT9xUJacg7mchfFL; Sat, 11 Feb 2017 22:26:34 +0000
Received: from [192.168.0.10] ([24.5.144.109]) by resomta-po-16v.sys.comcast.net with SMTP id cg7kc7T1TZHQdcg7lcPdGg; Sat, 11 Feb 2017 22:26:34 +0000
To: cfrg@irtf.org
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
From: Andrey Jivsov <crypto@brainhub.org>
Message-ID: <f4503c6d-5274-83c5-65be-4bb70d59a24a@brainhub.org>
Date: Sat, 11 Feb 2017 14:26:31 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-CMAE-Envelope: MS4wfIrRNC2ECcq9hyxNxpRErWYylz0YiQYH9a9NSF+YkoXk5owrBNT6x9/uWoWdP+TXPMcUtavSt/qv0fwx7MKBkVKdsCPgfkbIwCpFRi8HxthmDL0olN1B SDBjWjavyWYClFwuaO0FijFpZ1PP2oeEgNxVERN5Rs6TxDDEFvVLIk2i
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/qd6Ry6T45klBOkZN1zwgtto5HAY>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sat, 11 Feb 2017 22:26:37 -0000

On 02/09/2017 09:07 PM, Sean Turner wrote:
> All,
>
> Weâ€™ve got two outstanding PRs that propose changes to draft-ietf-tls-tls13 Section 5.5 â€œLimits on Key Usageâ€�.  As it relates to rekeying, these limits have been discussed a couple of times and we need to resolve once and for all whether the TLS WG wants to:
>
> a) Close these two PRs and go with the existing text [0]
> b) Adopt PR#765 [1]
> c) Adopt PR#769 [2]
>
> Please indicate you preference to the TLS mailing list before Feb 17.  Note that unless thereâ€™s clear consensus to change the text will remain as is (i.e., option a).
>
> J&S
>
> [0] https://tlswg.github.io/tls13-spec/#rfc.section.5.5
> [1] https://github.com/tlswg/tls13-spec/pull/765
> [2] https://github.com/tlswg/tls13-spec/pull/769

I am an author of [2].

I originally thought that [0] could be improved, but [1], as seems to be 
a consensus, made the text even less clear, which motivated me to 
contribute.

I see 2 main issues with [0]:

1. Counting in records. Worse, it counts in maximum-size records.

The original problem is measured in cipherblocks (16 bytes in TLS 1.3). 
Advanced products have the max TLS record size configurable. TLS stacks 
should not be expected to buffer the data to fill up the record, 
therefore, they are also sending many shorter records.

How should an implementer read [0]? If an implementation sends or 
receives shorter records, it has to re-key sooner.

Counting in bytes or cipher blocks is better. Implementers wishing to 
count in records can translate bytes into records easier that perform 
the reverse with [0] (however, I don't understand how counting in 
records can work correctly).

2. The numbers in [0] are not explained.

Given that I don't know the "components" of the formula, I am not 
exactly sure how to make adjustments for the #1.

The text in [0] should be clarified to show "components", e.g. what 
success probability was used.

( I recall that when [0] was worked on, there were discussions about 
multi-session issues. Was this a consideration? )


Finally, [1] assumed P=1/2^32 as a consensus-building choice. NIST uses 
this value to state limits on AES-GCM IVs 
(http://dx.doi.org/10.6028/NIST.SP.800-38D sec 8, 
http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-2/FIPS1402IG.pdf 
sec A.5)

I would be happy with a lower value of P.

I think, however, that a comparison with the 3DES can be helpful. The 
recent SWEET32 attack on 3DES works with the practical P=1/2. Using 
P=1/2^32 for 3DES implies rekeying after 0.5Mbytes of traffic. I suspect 
that these who implemented data limits for 3DES rekey less often than on 
each 0.5Mb.


From nobody Sat Feb 11 14:38:03 2017
Return-Path: <crypto@brainhub.org>
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 5FA5412958C for <cfrg@ietfa.amsl.com>; Sat, 11 Feb 2017 14:38:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level: 
X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] 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 ZHwwhblxb0jy for <cfrg@ietfa.amsl.com>; Sat, 11 Feb 2017 14:37:59 -0800 (PST)
Received: from resqmta-po-12v.sys.comcast.net (resqmta-po-12v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:171]) (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 F1EAB129583 for <cfrg@irtf.org>; Sat, 11 Feb 2017 14:37:58 -0800 (PST)
Received: from resomta-po-18v.sys.comcast.net ([96.114.154.242]) by resqmta-po-12v.sys.comcast.net with SMTP id cgIcc86kenZkvcgIoc1Bq0; Sat, 11 Feb 2017 22:37:58 +0000
Received: from [192.168.0.10] ([24.5.144.109]) by resomta-po-18v.sys.comcast.net with SMTP id cgIncdVZwCvcHcgIncPYsY; Sat, 11 Feb 2017 22:37:58 +0000
To: cfrg@irtf.org
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <f4503c6d-5274-83c5-65be-4bb70d59a24a@brainhub.org>
From: Andrey Jivsov <crypto@brainhub.org>
Message-ID: <74cbf937-7aae-1110-955c-3d04190bad0d@brainhub.org>
Date: Sat, 11 Feb 2017 14:37:55 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <f4503c6d-5274-83c5-65be-4bb70d59a24a@brainhub.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
X-CMAE-Envelope: MS4wfOEE0kZtyfT7ncvO0gV1RGJG5TQMw2InD9Dm+SeYK406c4lrHYDvjtC/JkLZJybMk56PFc/Rw+/tlZ2sV7KLNYC0bVWOwRO8x4L77ON+RGa4DURaQ/nK +Iew6Ey1Dirfkjh4KfjesG2iRcydatGJAZdJatGsTHsWwfyE5LjuaQ24
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/a9_jdg0gxr-Js3h9gVJxbm5oS5M>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sat, 11 Feb 2017 22:38:01 -0000

Correction: we rekey faster than needed when we count in records if the 
average record is shorter than the maximum allowed. Regardless, because 
the record size can vary by a factor of 1000 in size (up to 2^14), it's 
cleaner to count in bytes. This matters the most for 3DES, but I don't 
see much difference in implementation complexity between counting in 
records v.s. bytes.

On 02/11/2017 02:26 PM, Andrey Jivsov wrote:
>
> On 02/09/2017 09:07 PM, Sean Turner wrote:
>> All,
>>
>> Weâ€™ve got two outstanding PRs that propose changes to 
>> draft-ietf-tls-tls13 Section 5.5 â€œLimits on Key Usageâ€�.  As it 
>> relates to rekeying, these limits have been discussed a couple of 
>> times and we need to resolve once and for all whether the TLS WG 
>> wants to:
>>
>> a) Close these two PRs and go with the existing text [0]
>> b) Adopt PR#765 [1]
>> c) Adopt PR#769 [2]
>>
>> Please indicate you preference to the TLS mailing list before Feb 
>> 17.  Note that unless thereâ€™s clear consensus to change the text will 
>> remain as is (i.e., option a).
>>
>> J&S
>>
>> [0] https://tlswg.github.io/tls13-spec/#rfc.section.5.5
>> [1] https://github.com/tlswg/tls13-spec/pull/765
>> [2] https://github.com/tlswg/tls13-spec/pull/769
>
> I am an author of [2].
>
> I originally thought that [0] could be improved, but [1], as seems to 
> be a consensus, made the text even less clear, which motivated me to 
> contribute.
>
> I see 2 main issues with [0]:
>
> 1. Counting in records. Worse, it counts in maximum-size records.
>
> The original problem is measured in cipherblocks (16 bytes in TLS 
> 1.3). Advanced products have the max TLS record size configurable. TLS 
> stacks should not be expected to buffer the data to fill up the 
> record, therefore, they are also sending many shorter records.
>
> How should an implementer read [0]? If an implementation sends or 
> receives shorter records, it has to re-key sooner.
>
> Counting in bytes or cipher blocks is better. Implementers wishing to 
> count in records can translate bytes into records easier that perform 
> the reverse with [0] (however, I don't understand how counting in 
> records can work correctly).
>
> 2. The numbers in [0] are not explained.
>
> Given that I don't know the "components" of the formula, I am not 
> exactly sure how to make adjustments for the #1.
>
> The text in [0] should be clarified to show "components", e.g. what 
> success probability was used.
>
> ( I recall that when [0] was worked on, there were discussions about 
> multi-session issues. Was this a consideration? )
>
>
> Finally, [1] assumed P=1/2^32 as a consensus-building choice. NIST 
> uses this value to state limits on AES-GCM IVs 
> (http://dx.doi.org/10.6028/NIST.SP.800-38D sec 8, 
> http://csrc.nist.gov/groups/STM/cmvp/documents/fips140-2/FIPS1402IG.pdf 
> sec A.5)
>
> I would be happy with a lower value of P.
>
> I think, however, that a comparison with the 3DES can be helpful. The 
> recent SWEET32 attack on 3DES works with the practical P=1/2. Using 
> P=1/2^32 for 3DES implies rekeying after 0.5Mbytes of traffic. I 
> suspect that these who implemented data limits for 3DES rekey less 
> often than on each 0.5Mb.



From nobody Sun Feb 12 01:44:28 2017
Return-Path: <martin.thomson@gmail.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 C756B1293E8 for <cfrg@ietfa.amsl.com>; Sun, 12 Feb 2017 01:44:26 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 NZkTTS1h4jLV for <cfrg@ietfa.amsl.com>; Sun, 12 Feb 2017 01:44:25 -0800 (PST)
Received: from mail-qt0-x236.google.com (mail-qt0-x236.google.com [IPv6:2607:f8b0:400d:c0d::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A910C127A90 for <cfrg@irtf.org>; Sun, 12 Feb 2017 01:44:25 -0800 (PST)
Received: by mail-qt0-x236.google.com with SMTP id w20so65032873qtb.1 for <cfrg@irtf.org>; Sun, 12 Feb 2017 01:44:25 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=B3mSRZtDtrzqx0u3Fpw+azbjokoktFDc7J9S9Em3PWs=; b=YxRTMNAp3hgnJiuXQt7Lc93hyyd8Amup16GkBEqZcA45CQKFJLya6yQkJZ+aiXsBAW nfTnKgFkBlvXDnUk9b6s7d6i36gvMYqQ8DGctZ0B2/1iDj+f0j22kryE+FS9qqB9xIev rC3LXEz1Y1Y+91zgFgj7dpskVTRZ+tQzlfkMqm1bOdbZL81AqNEdm8JPmvYNjuRTxyer 7LNk7ZRf8m/AqDhHngKx2fYmcvNvQADPqoGjsselI9EpLQiAD7ULNDWzakAAkDHWhowa m7SX6PJ59BZYIxyM4zVlycxi/ALgTA12KUsgXvzaHlFxI8UndNQTbGC+E1qw3B63L/TV miRQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=B3mSRZtDtrzqx0u3Fpw+azbjokoktFDc7J9S9Em3PWs=; b=pSjHa+XPrFejUe/A56P4iXoRpn7nMC1aP53/1ltQCbJ25NBU+ui9XOrF8sleUaKSaa okA1lIMi3K0JVMkSNcQ/cSXrr53n/1VOlAqk3NM80fI8Egn0lB9eQ7KkxoGGJh7MEbIN ogu8/PXeS9rjtwz88DVz7PtQOEAKVUTJCbzCqjfOwWetiJJ2F6quW7H2QlIZrZ35f/KP 5eU0AxEbxTrHWlMB2yav55ZSoNkaU5twgiHZtwG2d7NaH7EcinFOti8rH2CslTE1ePbu Nr222J7VZphdCwpPb9f7uZ3cMwHr4otEbfnTItxX5VvkUBc5HTR7iXzIzDSgK+/uGhbW QoWw==
X-Gm-Message-State: AMke39npMCBC0B2d98mqG21mDQ2HcL7shQoRZEWxmEkyINRHtjeBBQvkNS66ncdFAAsHYLh0MIYNLWBbvuIGUQ==
X-Received: by 10.200.39.200 with SMTP id x8mr15875062qtx.159.1486892664764; Sun, 12 Feb 2017 01:44:24 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Sun, 12 Feb 2017 01:44:24 -0800 (PST)
In-Reply-To: <f4503c6d-5274-83c5-65be-4bb70d59a24a@brainhub.org>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <f4503c6d-5274-83c5-65be-4bb70d59a24a@brainhub.org>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Sun, 12 Feb 2017 20:44:24 +1100
Message-ID: <CABkgnnXRswsqDHxeXeoAann5wkZxk1-uZMEi_uyFTJ1yvFAuiQ@mail.gmail.com>
To: Andrey Jivsov <crypto@brainhub.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/fnQphbd6Ec2CK7V4OHmN8mXvJ1M>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 12 Feb 2017 09:44:27 -0000

On 12 February 2017 at 09:26, Andrey Jivsov <crypto@brainhub.org> wrote:
> How should an implementer read [0]? If an implementation sends or receives
> shorter records, it has to re-key sooner.

[0] (the current text) says that there is a maximum number of records.
That's pretty straightforward.  You are required to count them anyway.
No accounting for partial records and other such things.

If that means rekeying sooner, I'd like evidence that this is in some
way harmful.  I think that it's fine.

I'm not disagreeing with the notion of correctness that has been
discussed on this thread and elsewhere, just offering a different set
of criteria upon which you might make this decision.

Ilari made a related point: if you don't rekey occasionally, you might
as well just forget the whole mechanism.  Given the actual limit - for
even the most conservative option, [0] - is so large that common usage
will never hit it, that means rekeying even more often than any
idealized 2^52 octets.


From nobody Sun Feb 12 08:19:41 2017
Return-Path: <riccardo.lazzeretti@math.unipd.it>
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 C3F64129891 for <cfrg@ietfa.amsl.com>; Sun, 12 Feb 2017 08:19:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] 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 BPmD1yDB1o0l for <cfrg@ietfa.amsl.com>; Sun, 12 Feb 2017 08:19:37 -0800 (PST)
Received: from mailsrv.math.unipd.it (mailsrv.math.unipd.it [147.162.22.62]) (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 69803129A78 for <cfrg@irtf.org>; Sun, 12 Feb 2017 08:19:36 -0800 (PST)
Received: from server0.math.unipd.it (smtpout.math.unipd.it [147.162.22.54]) by mailsrv.math.unipd.it (8.15.2/8.15.2) with ESMTPS id v1CGJTu1058520 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <cfrg@irtf.org>; Sun, 12 Feb 2017 16:19:29 GMT
Received: from webmail.math.unipd.it (v0b1.math.unipd.it [147.162.22.157]) by server0.math.unipd.it (8.15.1/8.15.1) with ESMTPS id v1CGJGVx033575 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <cfrg@irtf.org>; Sun, 12 Feb 2017 16:19:16 GMT
Received: from host209-14-dynamic.233-95-r.retail.telecomitalia.it (host209-14-dynamic.233-95-r.retail.telecomitalia.it [95.233.14.209]) by webmail.math.unipd.it (Horde Framework) with HTTPS; Sun, 12 Feb 2017 17:19:32 +0100
Date: Sun, 12 Feb 2017 17:19:32 +0100
Message-ID: <20170212171932.Horde.f6UV06prjpHITqRg6kH1Ydp@webmail.math.unipd.it>
From: riccardo.lazzeretti@math.unipd.it
To: cfrg@irtf.org
User-Agent: Horde Application Framework 5
Content-Type: multipart/alternative; boundary="=_d7WwZBv8t5wgpzr8b3YH-6i"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-DCC-sonic.net-Metrics: server5.math.unipd.it 1156; Body=1 Fuz1=1 Fuz2=many
X-IMP-Checker: SpamAssassin on webmail.math.unipd.it/imp checker
X-Spam-Warning: SpamAssassin says this -probably- is not SPAM
X-Scanned-By: MIMEDefang 2.78
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/GYyeAccoRjmA7oAZSd8aATGETy8>
Subject: [Cfrg] [IEEE ATC 2017] Call for Workshop and Special Session Proposal DEADLINE: Feb 15
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 12 Feb 2017 16:19:40 -0000

This message is in MIME format.

--=_d7WwZBv8t5wgpzr8b3YH-6i
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
Content-Description: Plaintext Message
Content-Disposition: inline
Content-Transfer-Encoding: 8bit

  Dear colleague,

  apologies for multiple postings.

  In conjunction with the 14th IEEE International Conference on  
Advanced and Trusted Computing (ATC 2017), we will organize some  
workshops.

  The workshop proposals should be submitted to ieee-atc2017@googlegroups.com

  Further information are provided in the ATC Call for Workshop page[1] .

  All accepted papers will be included in the ATC 2017 proceedings  
published by IEEE.

  Â 

  Workshop/Special Session proposals should contain following information:

  Â· Â The title of the workshop/special session, including both full  
name and abbreviation (for workshop)

  Â· Â The objectives, scope, and contributions to the main conference  
(up to 1 page)

  Â· Â The short bios of the key organizers and their related experience

  Â· Â The procedure for selecting papers, plans for dissemination  
(e.g., how to advertise and special issues of journals), and the  
expected number of participants

  Â· Â A tentative list of program committee members

  Â· Â The (tentative) website/URL of the proposed workshop/special session

  Â 

  Important Schedule for ATC Workshops and Special Sessions:

  Â· Â Proposal Due: extended to Feb 15, 2017

  Â· Â Proposal Notification: extended to Feb 20, 2017

  Â· Â Paper Submission, Notification: TBD by individual workshops

  Â· Â Final Camera-ready Paper Due: June 10, 2017

  Â 

  Best regards,

  Â 

  Riccardo Lazzeretti

  riccardo.lazzeretti@math.unipd.it

  Workshop Chair

  IEEE Advanced and Trusted Computing (ATC 2017)



Links:
------
[1] http://cse.stfx.ca/~smartworld/2017/atc/cfw.php

--=_d7WwZBv8t5wgpzr8b3YH-6i
Content-Type: text/html; charset=utf-8
Content-Description: HTML Message
Content-Disposition: inline

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
"http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title></title>
</head>
<body style="font-family:Arial;font-size:14px">
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span style="background-color: rgb(255, 255, 255); color: rgb(34, 34, 34); font-size: 9.5pt; white-space: pre-wrap;">Dear colleague,</span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">apologies for multiple postings.</span></span></p>
<p><br></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:12pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">In conjunction with the 14th IEEE International Conference on Advanced and Trusted Computing (ATC 2017), we will organize some workshops.</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:12pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">The workshop proposals should be submitted to</span> <span style="font-size: 9.5pt; background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">ieee-atc2017@googlegroups.com</span></span></p>
<p><br></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:12pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">Further information are provided in the</span> <a href="http://cse.stfx.ca/~smartworld/2017/atc/cfw.php" style="text-decoration:none;"><span style="font-size: 9.5pt; color: rgb(17, 85, 204); background-color: rgb(255, 255, 255); text-decoration: underline; vertical-align: baseline; white-space: pre-wrap;">ATC Call for Workshop page</span></a> <span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">.</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:12pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">All accepted papers will be included in the ATC 2017 proceedings published by IEEE.</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;">&nbsp;</p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">Workshop/Special Session proposals should contain following information:</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">The title of the workshop/special session, including both full name and abbreviation (for workshop)</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">The objectives, scope, and contributions to the main conference (up to 1 page)</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">The short bios of the key organizers and their related experience</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">The procedure for selecting papers, plans for dissemination (e.g., how to advertise and special issues of journals), and the expected number of participants</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">A tentative list of program committee members</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">The (tentative) website/URL of the proposed workshop/special session</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:12pt;">&nbsp;</p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); font-weight: 700; vertical-align: baseline; white-space: pre-wrap;">Important Schedule for ATC Workshops and Special Sessions:</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(255, 0, 0); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(255, 0, 0); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(255, 0, 0); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">Proposal Due: extended to Feb 15, 2017</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(255, 0, 0); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(255, 0, 0); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(255, 0, 0); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">Proposal Notification: extended to Feb 20, 2017</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">Paper Submission, Notification: TBD by individual workshops</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;margin-left: 47pt;text-indent: -18pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 10pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">&middot;</span> <span style='font-size: 7pt; font-family: "Times New Roman"; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;'>&nbsp;</span><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">Final Camera-ready Paper Due: June 10, 2017</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;">&nbsp;</p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">Best regards,</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;">&nbsp;</p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">Riccardo Lazzeretti</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">riccardo.lazzeretti@math.unipd.it</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">Workshop Chair</span></span></p>
<p dir="ltr" style="line-height:1.2;margin-top:0pt;margin-bottom:0pt;"><span id="docs-internal-guid-6056f8c9-331e-f725-9391-55f1991d66f1"><span style="font-size: 9.5pt; color: rgb(34, 34, 34); background-color: rgb(255, 255, 255); vertical-align: baseline; white-space: pre-wrap;">IEEE Advanced and Trusted Computing (ATC 2017)</span></span></p>
<p><br>
<br>
<br>
<br></p>
</body>
</html>
--=_d7WwZBv8t5wgpzr8b3YH-6i--


From nobody Sun Feb 12 11:28:48 2017
Return-Path: <crypto@brainhub.org>
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 D142A129ACA for <cfrg@ietfa.amsl.com>; Sun, 12 Feb 2017 11:28:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.601
X-Spam-Level: 
X-Spam-Status: No, score=-2.601 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] 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 0ByeRSlHBa4Y for <cfrg@ietfa.amsl.com>; Sun, 12 Feb 2017 11:28:45 -0800 (PST)
Received: from resqmta-po-11v.sys.comcast.net (resqmta-po-11v.sys.comcast.net [IPv6:2001:558:fe16:19:96:114:154:170]) (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 3CF50129AC2 for <cfrg@irtf.org>; Sun, 12 Feb 2017 11:28:44 -0800 (PST)
Received: from resomta-po-08v.sys.comcast.net ([96.114.154.232]) by resqmta-po-11v.sys.comcast.net with SMTP id czoscand95l5NczpEcEAP0; Sun, 12 Feb 2017 19:28:44 +0000
Received: from [192.168.0.10] ([24.5.144.109]) by resomta-po-08v.sys.comcast.net with SMTP id czpDcFqaOJE5zczpDcc94U; Sun, 12 Feb 2017 19:28:44 +0000
To: Martin Thomson <martin.thomson@gmail.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <f4503c6d-5274-83c5-65be-4bb70d59a24a@brainhub.org> <CABkgnnXRswsqDHxeXeoAann5wkZxk1-uZMEi_uyFTJ1yvFAuiQ@mail.gmail.com>
From: Andrey Jivsov <crypto@brainhub.org>
Message-ID: <c191662f-5aa1-291b-ba44-c8d2a4c2bf1b@brainhub.org>
Date: Sun, 12 Feb 2017 11:28:18 -0800
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0
MIME-Version: 1.0
In-Reply-To: <CABkgnnXRswsqDHxeXeoAann5wkZxk1-uZMEi_uyFTJ1yvFAuiQ@mail.gmail.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
X-CMAE-Envelope: MS4wfCnPkPMscLXW8dhwWJkW1OxDVqvtPloQL4cHE6Rw8kmqOvrAFBjfR1J5duQc8/VCP0FwJbaB7xV6f/fFUWdPaQ0vVlDjCFV/uQaFRpr9TvC//QYIBE+E Tq9n7gfjpIPfD1GYkMW44In/bKqNyOUw4ABbp68J3kot48Ds+EwiygaiS8izSCfPgeMWkBeL5UmH5M+S+Rk9908DgSVd6Wc4Tlo=
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/7gZ9ItZTseSdXHzwZW0vn1pWdXU>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 12 Feb 2017 19:28:47 -0000

On 02/12/2017 01:44 AM, Martin Thomson wrote:
> On 12 February 2017 at 09:26, Andrey Jivsov <crypto@brainhub.org> wrote:
>> How should an implementer read [0]? If an implementation sends or receives
>> shorter records, it has to re-key sooner.
>
> [0] (the current text) says that there is a maximum number of records.
> That's pretty straightforward.  You are required to count them anyway.
> No accounting for partial records and other such things.
>
> If that means rekeying sooner, I'd like evidence that this is in some
> way harmful.  I think that it's fine.
>
> I'm not disagreeing with the notion of correctness that has been
> discussed on this thread and elsewhere, just offering a different set
> of criteria upon which you might make this decision.
>
> Ilari made a related point: if you don't rekey occasionally, you might
> as well just forget the whole mechanism.  Given the actual limit - for
> even the most conservative option, [0] - is so large that common usage
> will never hit it, that means rekeying even more often than any
> idealized 2^52 octets.
>

I don't disagree with the above.

If the stack shares code with 3DES, that code will probably count in 
bytes. This logic can be reused with TLS 1.3. Then the code can be 
tested with 3DES.


From nobody Mon Feb 13 07:34:24 2017
Return-Path: <markulf@microsoft.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 2397112961D for <cfrg@ietfa.amsl.com>; Mon, 13 Feb 2017 07:34:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.888
X-Spam-Level: 
X-Spam-Status: No, score=-3.888 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_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.887, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=microsoft.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 JbrZtAN8VKRU for <cfrg@ietfa.amsl.com>; Mon, 13 Feb 2017 07:34:19 -0800 (PST)
Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40135.outbound.protection.outlook.com [40.107.4.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4FA601296D3 for <cfrg@irtf.org>; Mon, 13 Feb 2017 07:34:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=23HkHZCUTFwnOxgymY1McYFkhnuINf3RQvo2WVHN/Zw=; b=COtoIi2/ja2maY4SQrlTq4dvR3gbjRqmRqoEx8qh5ciZxfwu55kBBTiV8FDDeE3RRBLsNYLkbvwB+F9wL/gf0ohzc8QMgrLXGEj2xnHSBn87O8l6ygAzKFF5k/jZsgs+AVC4UMNJ4V+ru5+OjJRdiZomKZpyk39F5FvHkb2hg0Q=
Received: from VI1PR8303MB0094.EURPRD83.prod.outlook.com (129.75.141.89) by VI1PR83MB0046.EURPRD83.prod.outlook.com (129.75.21.213) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.0; Mon, 13 Feb 2017 15:34:13 +0000
Received: from VI1PR8303MB0094.EURPRD83.prod.outlook.com ([129.75.141.89]) by VI1PR8303MB0094.EURPRD83.prod.outlook.com ([129.75.141.89]) with mapi id 15.01.0888.030; Mon, 13 Feb 2017 15:34:14 +0000
From: Markulf Kohlweiss <markulf@microsoft.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Sean Turner <sean@sn3rd.com>
Thread-Topic: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHSg1ujogZD2gIXgUWLhmF3SGaRd6FhuukAgAA4M4CABSHOcA==
Date: Mon, 13 Feb 2017 15:34:13 +0000
Message-ID: <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk>
In-Reply-To: <D4C331C7.86224%kenny.paterson@rhul.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is ) smtp.mailfrom=markulf@microsoft.com; 
x-originating-ip: [2a01:110:8012:1010::6b0]
x-ms-office365-filtering-correlation-id: b3f80bdb-6e7d-4284-eb95-08d45425c3b4
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:VI1PR83MB0046; 
x-microsoft-exchange-diagnostics: 1; VI1PR83MB0046; 7:F/lm1bTOHd04jyv8txdnKsrVy8KnMEw1YtKA67W4uB/x/8rX1XQXw1hGadK5+XsSf4fh9E7X1XRMwFkxTv/pHgUs5TL7B+LWOBqoJ2Y2aHVN2AgFthTV9KHh2uSfZdj3fV58MHx44XQa3PKX6fGAsD5CFha4iFJqeQJI+GCkYlsnTsh/8s7H2hOfhhzWicdvJ5BMBV90UJLqg+Xuxir2bcuuYcUyH16Gd6/R++tQ3t3pRlFsjC0t8GZeHn1bKTGUI9MEsbBKDl7gTyephEWQVFRIhRBRmjRxvsa3s+SiNe8u8PGd1nhJ1NXRLYW28P+s2kEfOkHEq7v7prKe0W3L5PRlei6xN6ISKa872nAqoAtU/bGJo6AU0eyoZ9DDstx8Tscvm2XAvhqYDj3gtP4qtZc/EaKBYAwRRRcrufVNso2+qnHdgTm8kCVE2tRMDtLSBG0lJUSuk4TBa+K7ptH37JlwDFcFFqh9Rt/PPZa+JcJgmip1zY3cj8d14CvzffiTlz+B3pRBgT2nEoYXcfi5zkqt4d2ikKj2F76zHOThXVw=
x-microsoft-antispam-prvs: <VI1PR83MB0046360D968BE7F3BA2EC26CAB590@VI1PR83MB0046.EURPRD83.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(61426038)(61427038)(6041248)(20161123558025)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(6072148); SRVR:VI1PR83MB0046; BCL:0; PCL:0; RULEID:; SRVR:VI1PR83MB0046; 
x-forefront-prvs: 02176E2458
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39860400002)(39840400002)(39410400002)(39450400003)(39850400002)(189002)(24454002)(199003)(8936002)(4326007)(53936002)(55016002)(9686003)(105586002)(25786008)(99286003)(8656002)(6306002)(81166006)(2906002)(54906002)(6436002)(81156014)(6246003)(92566002)(5005710100001)(33656002)(2900100001)(107886003)(10090500001)(38730400002)(189998001)(10290500002)(86612001)(86362001)(97736004)(305945005)(76176999)(3280700002)(229853002)(68736007)(101416001)(106116001)(106356001)(54356999)(8990500004)(74316002)(6116002)(102836003)(2950100002)(7696004)(7736002)(3660700001)(8676002)(122556002)(6506006)(5660300001)(50986999); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR83MB0046; H:VI1PR8303MB0094.EURPRD83.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: microsoft.com
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2017 15:34:13.4004 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR83MB0046
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/8U-5AGxI_rhglsSXKcV0JKzrkuQ>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com>, "karthikeyan.bhargavan@inria.fr" <karthikeyan.bhargavan@inria.fr>, IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Mon, 13 Feb 2017 15:34:21 -0000

Hello,

Our analysis of miTLS also supports option a)

A security level of 2^-32 seems too low from a provable security point of v=
iew, especially for a confidentiality bound.

We verified an implementation of the TLS 1.3 record (https://eprint.iacr.or=
g/2016/1178, to appear at Security & Privacy 2017) where we arrive at a com=
bined bound for authenticity and confidentiality that is compatible with th=
e Iwata et al. bound.

Regards,
Markulf (for the miTLS team)

>Hi,
>
>My preference is to go with the existing text, option a).
>
>From the github discussion, I think option c) involves a less conservative
>security bound (success probability for IND-CPA attacker bounded by
>2^{-32} instead of 2^{-60}). I can live with that, but the WG should be
>aware of the weaker security guarantees it provides.
>
>I do not understand option b). It seems to rely on an analysis of
>collisions of ciphertext blocks rather than the established security proof
>for AES-GCM.
>
>Regards,
>
>Kenny
>
>On 10/02/2017 05:44, "Cfrg on behalf of Martin Thomson"
><cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com> wrote:
>
>>On 10 February 2017 at 16:07, Sean Turner <sean at sn3rd.com> wrote:
>>> a) Close these two PRs and go with the existing text [0]
>>> b) Adopt PR#765 [1]
>>> c) Adopt PR#769 [2]
>>
>>
>>a) I'm happy enough with the current text (I've implemented that any
>>it's relatively easy).
>>
>>I could live with c, but I'm opposed to b. It just doesn't make sense.
>>It's not obviously wrong any more, but the way it is written it is
>>very confusing and easily open to misinterpretation.
>>
>>_______________________________________________
>>Cfrg mailing list
>>Cfrg at irtf.org
>>https://www.irtf.org/mailman/listinfo/cfrg


From nobody Mon Feb 13 07:45:46 2017
Return-Path: <quynh.dang@nist.gov>
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 C476A1296D0 for <cfrg@ietfa.amsl.com>; Mon, 13 Feb 2017 07:45:41 -0800 (PST)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 VlUzcUFezw4B for <cfrg@ietfa.amsl.com>; Mon, 13 Feb 2017 07:45:38 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0097.outbound.protection.outlook.com [23.103.200.97]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A8619129524 for <cfrg@irtf.org>; Mon, 13 Feb 2017 07:45:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PEgXnkS6fbjEzVpHjWRT5rK4sG/KCMbb7/b6CYh4uFE=; b=yDa3F2D6SIeGIpLT1vTr0C/B4omejZZrVnt3HPhunTIq24zQIZEdlDDACabTbzPOUgMuiRXItWJ+6gCjNUTPWtVlbR85rynOFv+nxMzXMBSnXb8SP817kKn/vVjauwu0N5PsxkEtoUkmEYrhNOEXRBFDwcuUlZe/Ti8FXHiViYo=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1463.namprd09.prod.outlook.com (10.173.191.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Mon, 13 Feb 2017 15:45:36 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.030; Mon, 13 Feb 2017 15:45:36 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Markulf Kohlweiss <markulf@microsoft.com>, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Sean Turner <sean@sn3rd.com>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHShhA4I+OuT9Tx0Ei6xwYcFLEEbA==
Date: Mon, 13 Feb 2017 15:45:36 +0000
Message-ID: <D4C73D19.2FB4B%qdang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com>
In-Reply-To: <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-ms-office365-filtering-correlation-id: f7b0ab25-26bf-46e1-53b3-08d454275ab3
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1463; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1463; 7:8T+8msbGNuDrd10T6Ky1UDdKdh8Y0kNlYdOTx3Wqh/B494AqmlmvDdzltkSRf06tcKMt1Wsf0jafjQqPLlmXAL4Yd0hvhwhfBcWwsLduwpyjCzVEsEla3ltvAQfeJv1tbZKTQrUUJIG0e5tsjIwcehysu6gmms+FHwQXfMLUt7I4hpyiT+dh8sOuGnxN3HgTioN989O1wjDPNAER8w1Gb0CUDw8QplVecsMNrBw+FlSzkAFWhd08iSbuF+cTykRq2O5VXbybej+sus3Phw6IJjwGW1NSxTIl8HS2ktRHVyMnHl1z/hyTK1lg9u/IAIEcy+3X1wyhRtOPrY01I2vxdiPPLB4ZPOmoKmy0Sg47haQ2/e9sZ+SKR07e3HqklHWRylriiNJOIU0dpZI4lxRHH2IIwvYi/VPrvS1xCkZ1qMDNk4ywhR6JblHUq9bDFmzP5i+sRw8I8lROModUKNX7zJUQhAR2CC4blo0QaR/9a6uFk9tSsTVP2CX885pJq0lnjBcdsCfpBXqaxZN/L305UA==
x-microsoft-antispam-prvs: <CY4PR09MB14639B8866AC7E9869B0A5C7F3590@CY4PR09MB1463.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123564025)(20161123562025)(20161123555025)(20161123560025)(20161123558025)(6072148); SRVR:CY4PR09MB1463; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1463; 
x-forefront-prvs: 02176E2458
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39860400002)(39410400002)(39850400002)(39840400002)(39450400003)(189002)(199003)(377454003)(24454002)(25786008)(2561002)(66066001)(97736004)(6306002)(8936002)(3660700001)(122556002)(54896002)(2421001)(236005)(6512007)(105586002)(4001350100001)(6246003)(5660300001)(606005)(2900100001)(8666007)(83506001)(8656002)(7906003)(53546003)(38730400002)(1511001)(77096006)(7736002)(6486002)(6436002)(6506006)(2950100002)(68736007)(93886004)(54356999)(189998001)(76176999)(50986999)(99286003)(229853002)(101416001)(54906002)(3280700002)(2906002)(92566002)(81166006)(81156014)(102836003)(106116001)(8676002)(106356001)(36756003)(53936002)(3846002)(6116002)(4326007)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1463; H:CY4PR09MB1464.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:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4C73D192FB4Bqdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Feb 2017 15:45:36.6740 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1463
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/sQ4VhmWGf4BfrkS22zpFMlBDCnk>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com>, IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Mon, 13 Feb 2017 15:45:42 -0000

--_000_D4C73D192FB4Bqdangnistgov_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Markulf,

The probability of a bad thing to happen is actually below (or about) 2^(-3=
3). It practically won=92t happen when the chance is 1 in 2^32. And, to ach=
ieve that chance, you must collect 2^48 128-bit blocks.

Regards,
Quynh.

From: TLS <tls-bounces@ietf.org<mailto:tls-bounces@ietf.org>> on behalf of =
Markulf Kohlweiss <markulf@microsoft.com<mailto:markulf@microsoft.com>>
Date: Monday, February 13, 2017 at 10:34 AM
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul=
.ac.uk>>, Sean Turner <sean@sn3rd.com<mailto:sean@sn3rd.com>>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com<mailto:antdl@microsoft.com=
>>, IRTF CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>, "<tls@ietf.org<mailto:=
tls@ietf.org>>" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hello,

Our analysis of miTLS also supports option a)

A security level of 2^-32 seems too low from a provable security point of v=
iew, especially for a confidentiality bound.

We verified an implementation of the TLS 1.3 record (https://eprint.iacr.or=
g/2016/1178, to appear at Security & Privacy 2017) where we arrive at a com=
bined bound for authenticity and confidentiality that is compatible with th=
e Iwata et al. bound.

Regards,
Markulf (for the miTLS team)

Hi,

My preference is to go with the existing text, option a).

>From the github discussion, I think option c) involves a less conservative
security bound (success probability for IND-CPA attacker bounded by
2^{-32} instead of 2^{-60}). I can live with that, but the WG should be
aware of the weaker security guarantees it provides.

I do not understand option b). It seems to rely on an analysis of
collisions of ciphertext blocks rather than the established security proof
for AES-GCM.

Regards,

Kenny

On 10/02/2017 05:44, "Cfrg on behalf of Martin Thomson"
<cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com> wrote:

On 10 February 2017 at 16:07, Sean Turner <sean at sn3rd.com> wrote:
a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]


a) I'm happy enough with the current text (I've implemented that any
it's relatively easy).

I could live with c, but I'm opposed to b. It just doesn't make sense.
It's not obviously wrong any more, but the way it is written it is
very confusing and easily open to misinterpretation.

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

_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls


--_000_D4C73D192FB4Bqdangnistgov_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <F6CFCDCAE38D8847AEF1A43E44CC3C58@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>Hi Markulf,</div>
<div><br>
</div>
<div>The probability of a bad thing to happen is actually below (or about) =
2^(-33). It practically won=92t happen when the chance is 1 in 2^32. And, t=
o achieve that chance, you must collect 2^48 128-bit blocks.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Quynh.&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>TLS &lt;<a href=3D"mailto:tls=
-bounces@ietf.org">tls-bounces@ietf.org</a>&gt; on behalf of Markulf Kohlwe=
iss &lt;<a href=3D"mailto:markulf@microsoft.com">markulf@microsoft.com</a>&=
gt;<br>
<span style=3D"font-weight:bold">Date: </span>Monday, February 13, 2017 at =
10:34 AM<br>
<span style=3D"font-weight:bold">To: </span>&quot;Paterson, Kenny&quot; &lt=
;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>=
&gt;, Sean Turner &lt;<a href=3D"mailto:sean@sn3rd.com">sean@sn3rd.com</a>&=
gt;<br>
<span style=3D"font-weight:bold">Cc: </span>Antoine Delignat-Lavaud &lt;<a =
href=3D"mailto:antdl@microsoft.com">antdl@microsoft.com</a>&gt;, IRTF CFRG =
&lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;&lt;<a hr=
ef=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"mailto=
:tls@ietf.org">tls@ietf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>Hello,</div>
<div><br>
</div>
<div>Our analysis of miTLS also supports option a)</div>
<div><br>
</div>
<div>A security level of 2^-32 seems too low from a provable security point=
 of view, especially for a confidentiality bound.</div>
<div><br>
</div>
<div>We verified an implementation of the TLS 1.3 record (<a href=3D"https:=
//eprint.iacr.org/2016/1178">https://eprint.iacr.org/2016/1178</a>, to appe=
ar at Security &amp; Privacy 2017) where we arrive at a combined bound for =
authenticity and confidentiality that
 is compatible with the Iwata et al. bound.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Markulf (for the miTLS team)</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi,</div>
<div><br>
</div>
<div>My preference is to go with the existing text, option a).</div>
<div><br>
</div>
<div>From the github discussion, I think option c) involves a less conserva=
tive</div>
<div>security bound (success probability for IND-CPA attacker bounded by</d=
iv>
<div>2^{-32} instead of 2^{-60}). I can live with that, but the WG should b=
e</div>
<div>aware of the weaker security guarantees it provides.</div>
<div><br>
</div>
<div>I do not understand option b). It seems to rely on an analysis of</div=
>
<div>collisions of ciphertext blocks rather than the established security p=
roof</div>
<div>for AES-GCM.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Kenny</div>
<div><br>
</div>
<div>On 10/02/2017 05:44, &quot;Cfrg on behalf of Martin Thomson&quot;</div=
>
<div>&lt;cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com&=
gt; wrote:</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>On 10 February 2017 at 16:07, Sean Turner &lt;sean at sn3rd.com&gt; wr=
ote:</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>a) Close these two PRs and go with the existing text [0]</div>
<div>b) Adopt PR#765 [1]</div>
<div>c) Adopt PR#769 [2]</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>a) I'm happy enough with the current text (I've implemented that any</=
div>
<div>it's relatively easy).</div>
<div><br>
</div>
<div>I could live with c, but I'm opposed to b. It just doesn't make sense.=
</div>
<div>It's not obviously wrong any more, but the way it is written it is</di=
v>
<div>very confusing and easily open to misinterpretation.</div>
<div><br>
</div>
<div>_______________________________________________</div>
<div>Cfrg mailing list</div>
<div>Cfrg at irtf.org</div>
<div><a href=3D"https://www.irtf.org/mailman/listinfo/cfrg">https://www.irt=
f.org/mailman/listinfo/cfrg</a></div>
</blockquote>
</blockquote>
<div><br>
</div>
<div>_______________________________________________</div>
<div>TLS mailing list</div>
<div><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></div>
<div><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf=
.org/mailman/listinfo/tls</a></div>
<div><br>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4C73D192FB4Bqdangnistgov_--


From nobody Mon Feb 13 15:21:35 2017
Return-Path: <azet@azet.org>
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 08D12129428 for <cfrg@ietfa.amsl.com>; Mon, 13 Feb 2017 15:21:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level: 
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=azet.org
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 BHinQ0QqYIY2 for <cfrg@ietfa.amsl.com>; Mon, 13 Feb 2017 15:21:32 -0800 (PST)
Received: from mail-wr0-x233.google.com (mail-wr0-x233.google.com [IPv6:2a00:1450:400c:c0c::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D4284129453 for <cfrg@irtf.org>; Mon, 13 Feb 2017 15:21:31 -0800 (PST)
Received: by mail-wr0-x233.google.com with SMTP id c4so2908407wrd.2 for <cfrg@irtf.org>; Mon, 13 Feb 2017 15:21:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=azet.org; s=gmail; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=sgzii36livb6iTK/5DE352hM+CO4/o/o0eStg8Fklio=; b=hiczKypsXo2m1eBGbsb4bFcymLJBHF7ZjCUn0iTofKOYReYFNMQqfKjRYb7f0exlb9 vx1VlvEYhIMjb+LIJf+9yKle6B/YQhwA1/X18ODw0QIEyX/Pcl0Ltpubf0XlmPEjRs3d 5fg7SftVq1NYhHcahwzlu+NQAZ5ZBaaEGXdkA=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=sgzii36livb6iTK/5DE352hM+CO4/o/o0eStg8Fklio=; b=KsR0xQlshn/P9yO1RxPbVouLyruCc4ZIWmGMRgGkRA/KEq4k0IJ/EOLyH3a0MFEb2K HaudJHyiyAO4Pda4vUgxc1Trs2Oqh2SKDlPCBtKP1EujeNs6l+6oOC8EQHj8qrBPD+D4 CzdnUL0Lhi9tFyqLlz7HRQfY5RQE8L/LFQHx9tUJsIpy8wI5RAY3D1T6TJcbvVuOPTDS A+BFtZqg1WyDsDtZ3cxV4IhbcqKe16e2U8ynydFFqCLA9GrHZ71zUEDE0Aap8r2W4N5A x5kxu7DtUcOcVvv4AYsBuUyv6k0fTNbzPtcCzTZVlyhaCg68QP+eVfdiL/3+Bz80duQ1 smPQ==
X-Gm-Message-State: AMke39mYccdI7tbcXR4m/M28iAosbbh0NYD9JzUotxe7NwOUS6Dte+eoijIC+cIzR4G/4g==
X-Received: by 10.223.135.80 with SMTP id 16mr20254402wrz.182.1487028090361; Mon, 13 Feb 2017 15:21:30 -0800 (PST)
Received: from [192.168.1.130] ([156.218.144.154]) by smtp.gmail.com with ESMTPSA id h75sm15611003wrh.37.2017.02.13.15.21.28 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 13 Feb 2017 15:21:29 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Content-Type: multipart/signed; boundary="Apple-Mail=_9B265044-7F50-458F-94C1-8E5C81357832"; protocol="application/pgp-signature"; micalg=pgp-sha512
X-Pgp-Agent: GPGMail
From: Aaron Zauner <azet@azet.org>
In-Reply-To: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
Date: Tue, 14 Feb 2017 01:21:25 +0200
Message-Id: <95D221C7-40A6-4BDD-B8CD-5C4F9C405D3F@azet.org>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
To: Sean Turner <sean@sn3rd.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/f4PU6MpX8edSsz_1kXeKB8O3Vv8>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Mon, 13 Feb 2017 23:21:33 -0000

--Apple-Mail=_9B265044-7F50-458F-94C1-8E5C81357832
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On 10 Feb 2017, at 07:07, Sean Turner <sean@sn3rd.com> wrote:
>=20
> All,
>=20
> We=E2=80=99ve got two outstanding PRs that propose changes to =
draft-ietf-tls-tls13 Section 5.5 =E2=80=9CLimits on Key Usage=E2=80=9D.  =
As it relates to rekeying, these limits have been discussed a couple of =
times and we need to resolve once and for all whether the TLS WG wants =
to:
>=20
> a) Close these two PRs and go with the existing text [0]

I thought the cited paper sorted this out like a year ago.

In favor of option a

Aaron

--Apple-Mail=_9B265044-7F50-458F-94C1-8E5C81357832
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYoj92AAoJEOTbZJL9ubXV2xUQAO8feVVxeB+HU/LWxV/tRHwW
bdyigIeRUOdjNkVBfk7KgKUvY7JIpV9LL+hfeuqrWGB51rccAwhcOgoe7RBGg4zE
jQpdTtxk+02x+3NVdEj9eJklwYpenlLbIUolNrZ7J4rMhlZV+Yt6NWz+9K/S7PsV
dkxufFyTcxjZXkh3U9Bim37Sm8+wlBe3ns9WPbhLNuUp7TZlvueBEmhNTc9j5+t4
Tne7Q3KWf0IIPNI009183QrH/SxVS1HXybD0+H2Y4ScQiMoXsbJbZCk9SZjLiFOb
7lHNKT0ZWUg25Z1MZNE5i0GquynvtbM6weJ/IzlI/Hu/zawOEulPo+j0H14PfL9r
t3vz/XO+7YDibx0XffkIcc40dnZfnqCk90199h4tDX1zAM90mzisQj+FQtmQfnBV
ykPav/4RhA4U528RZUAMSvbEcg1BDEfwZ63l3+JZr2TpxmlH4vs9zp632jwkXFsk
Vw3lm6iFvWbKV7mupJP/IglBzx0+rklH13TaEHHrwnnt1EJ6+kifzQ6yf7sVLWSy
Zxkpr+447ElY6eqNhPs4nY6JiMK1Sjje4EuGBx0CY7imNqiH3OOZWeD0ICCXjnmy
KUGOshEEQp/rRT/Jx9sXEGP3bW8U5vJuCA9bnF8ToOixU+tAM/ddzPoBOcNpHQkI
Mw4yA16juYJLN6Dvam9p
=9lQP
-----END PGP SIGNATURE-----

--Apple-Mail=_9B265044-7F50-458F-94C1-8E5C81357832--


From nobody Mon Feb 13 15:25:34 2017
Return-Path: <bascule@gmail.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 D8B20129430 for <cfrg@ietfa.amsl.com>; Mon, 13 Feb 2017 15:25:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level: 
X-Spam-Status: No, score=-2.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 9oHUHFwox1ur for <cfrg@ietfa.amsl.com>; Mon, 13 Feb 2017 15:25:27 -0800 (PST)
Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9F86112946E for <cfrg@irtf.org>; Mon, 13 Feb 2017 15:25:27 -0800 (PST)
Received: by mail-vk0-x232.google.com with SMTP id r136so70789855vke.1 for <cfrg@irtf.org>; Mon, 13 Feb 2017 15:25:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=fJNE7OtKbDiV901D5n5md9yUJun4f+A02r7fHPg+AZE=; b=XV05Uzi9xuAsHj/GlD5UlaDKy0a4Kayg3DX56bClNb7lDA1x71Paa3RLSfvft2DxWT OUq/vJbbdYZ68NsDjqAis0RpPsQrZZ7+tyVkFXh6PVgUS+3FiCpMtYg8t57JVfjFtJ5T /M401TcGZfCNcqk8bfhbOh2Ofxx9lqTVrCTodubm2Kfs6BiCXrm9Jc6Fq+LNSGYX7gcu gKvG/CL4Djkw4hSsuBXzdlfI2ZMaIBqvnNO6Hsz0yNXWaxfvWE2C09RocRJOIehuYMIc p9nyk2XKfNDVIxHAXhQFrb/7xeeubnNt18FjAtDYyaiXkWiCKu/ZXcpYKpFSPk/vrBWP g5uQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fJNE7OtKbDiV901D5n5md9yUJun4f+A02r7fHPg+AZE=; b=oFCNaWxVpF85Nz/R1M3rtZqJEXZAZD3c9X+IjkRmjJkE+XDNvR2UQ8iloOxGCQkpq5 yIxPr+CycXc+xHi7VP7U99a9D06P4I3d6Vq2yk4/K3oxqhkQhEiOrNwPQxReQ9Y3W4Rj pthg5+MVn9ebHeyoNY9EbRtv3bnhjpCN8iQbQ2+xDP0s2BXfDWlCybKIqjTaW1D+/8by EmtlB5bQopUFjOKto20+x0JQ3PgkMqx+M0vQBftS8NbZ3VtwNwWihebIIQFOtKQiX800 4aJpEq9Z1GFASMx69RV5AsOXTJNXZf4UBN3hsu38rKBZOXfez1VyfI/DC+M0aTkoYcGL 0QBw==
X-Gm-Message-State: AMke39m+v39zsaUhOqA8WVJNlYYmqGu5qeiGPYir9JrEP/vQbFm0ICipp+uF2I5sf7QCrJ9BwEmA3ccnAjgnnw==
X-Received: by 10.31.213.7 with SMTP id m7mr11134474vkg.48.1487028326752; Mon, 13 Feb 2017 15:25:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.103.70.130 with HTTP; Mon, 13 Feb 2017 15:25:06 -0800 (PST)
In-Reply-To: <95D221C7-40A6-4BDD-B8CD-5C4F9C405D3F@azet.org>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <95D221C7-40A6-4BDD-B8CD-5C4F9C405D3F@azet.org>
From: Tony Arcieri <bascule@gmail.com>
Date: Mon, 13 Feb 2017 15:25:06 -0800
Message-ID: <CAHOTMVJzogVu6K0MDNBux2STtbzkGT0yAopGOaEJXEzhOwSL6w@mail.gmail.com>
To: Aaron Zauner <azet@azet.org>
Content-Type: multipart/alternative; boundary=94eb2c07aadc2ff35b054871c36b
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/J8kWuf6F9nnsx-87Hh_xVEr0zbs>
Cc: IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>, Sean Turner <sean@sn3rd.com>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Mon, 13 Feb 2017 23:25:30 -0000

--94eb2c07aadc2ff35b054871c36b
Content-Type: text/plain; charset=UTF-8

On Mon, Feb 13, 2017 at 3:21 PM, Aaron Zauner <azet@azet.org> wrote:

> I thought the cited paper sorted this out like a year ago.
>
> In favor of option a


I am also in favor of option A.

The wording in option B is simultaneously much more unclear and much more
verbose. I consider it a regression.

Option C is more similar to option A, but not an improvement, IMO.

-- 
Tony Arcieri

--94eb2c07aadc2ff35b054871c36b
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><div class=3D"gmail_quote">On M=
on, Feb 13, 2017 at 3:21 PM, Aaron Zauner <span dir=3D"ltr">&lt;<a href=3D"=
mailto:azet@azet.org" target=3D"_blank">azet@azet.org</a>&gt;</span> wrote:=
<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-lef=
t:1px #ccc solid;padding-left:1ex">I thought the cited paper sorted this ou=
t like a year ago.<br>
<br>
In favor of option a</blockquote><div><br></div><div>I am also in favor of =
option A.</div><div><br></div><div>The wording in option B is simultaneousl=
y much more unclear and much more verbose. I consider it a regression.</div=
><div><br></div><div>Option C is more similar to option A, but not an impro=
vement, IMO.</div></div><div><br></div>-- <br><div class=3D"gmail_signature=
" data-smartmail=3D"gmail_signature">Tony Arcieri<br></div>
</div></div>

--94eb2c07aadc2ff35b054871c36b--


From nobody Tue Feb 14 01:02:38 2017
Return-Path: <riccardo.lazzeretti@math.unipd.it>
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 EFDBD129A1D for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 01:02:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.202
X-Spam-Level: 
X-Spam-Status: No, score=-4.202 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] 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 fE9REvDz0km7 for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 01:02:36 -0800 (PST)
Received: from mailsrv.math.unipd.it (mailsrv.math.unipd.it [147.162.22.62]) (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 0228B1299D3 for <cfrg@irtf.org>; Tue, 14 Feb 2017 01:02:35 -0800 (PST)
Received: from server0.math.unipd.it (smtpout.math.unipd.it [147.162.22.54]) by mailsrv.math.unipd.it (8.15.2/8.15.2) with ESMTPS id v1E92Trl022283 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <cfrg@irtf.org>; Tue, 14 Feb 2017 09:02:30 GMT
Received: from webmail.math.unipd.it (v0b1.math.unipd.it [147.162.22.157]) by server0.math.unipd.it (8.15.1/8.15.1) with ESMTPS id v1E92EQs063130 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for <cfrg@irtf.org>; Tue, 14 Feb 2017 09:02:15 GMT
Received: from host166-226-static.197-31-b.business.telecomitalia.it (host166-226-static.197-31-b.business.telecomitalia.it [31.197.226.166]) by webmail.math.unipd.it (Horde Framework) with HTTPS; Tue, 14 Feb 2017 10:02:31 +0100
Date: Tue, 14 Feb 2017 10:02:31 +0100
Message-ID: <20170214100231.Horde.aIyNYa6PGQwpjel-OeMp7VO@webmail.math.unipd.it>
From: riccardo.lazzeretti@math.unipd.it
To: cfrg@irtf.org
User-Agent: Horde Application Framework 5
Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes
MIME-Version: 1.0
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-DCC--Metrics: server5.math.unipd.it 1481; Body=6 Fuz1=6 Fuz2=6
X-IMP-Checker: SpamAssassin on webmail.math.unipd.it/imp checker
X-Spam-Warning: SpamAssassin says this -probably- is not SPAM
X-Scanned-By: MIMEDefang 2.78
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/zSLZ48FvIO64V55m0wD0Ji3ay-8>
Subject: [Cfrg] [IEEE ATC 2017] Call for Workshop and Special Session Proposal LAST DAYS
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 14 Feb 2017 09:02:38 -0000

Dear colleague,
apologies for multiple postings.

In conjunction with the 14th IEEE International Conference on Advanced  
and Trusted Computing (ATC 2017), we will organize some workshops.
The workshop proposals should be submitted to ieee-atc2017@googlegroups.com

Further information are provided in the ATC Call for Workshop page:
http://cse.stfx.ca/~smartworld/2017/atc/cfw.php

All accepted papers will be included in the ATC 2017 proceedings  
published by IEEE.

Workshop/Special Session proposals should contain following information:
Â·  The title of the workshop/special session, including both full name  
and abbreviation (for workshop)
Â·  The objectives, scope, and contributions to the main conference (up  
to 1 page)
Â·  The short bios of the key organizers and their related experience
Â·  The procedure for selecting papers, plans for dissemination (e.g.,  
how to advertise and special issues of journals), and the expected  
number of participants
Â·  A tentative list of program committee members
Â·  The (tentative) website/URL of the proposed workshop/special session

Important Schedule for ATC Workshops and Special Sessions:
Â·  Proposal Due: extended to Feb 15, 2017
Â·  Proposal Notification: extended to Feb 20, 2017
Â·  Paper Submission, Notification: TBD by individual workshops
Â·  Final Camera-ready Paper Due: June 10, 2017

Best regards,

Riccardo Lazzeretti
riccardo.lazzeretti@math.unipd.it
Workshop Chair
IEEE Advanced and Trusted Computing (ATC 2017)





From nobody Tue Feb 14 03:59:50 2017
Return-Path: <quynh.dang@nist.gov>
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 2E3A71295DF for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 03:59:49 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 b0x0Q31-MEhU for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 03:59:46 -0800 (PST)
Received: from gcc01-dm2-obe.outbound.protection.outlook.com (mail-dm2gcc01on0091.outbound.protection.outlook.com [23.103.201.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7932F1295CB for <cfrg@irtf.org>; Tue, 14 Feb 2017 03:59:46 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=alcX0Sue+kyVeLg++Kbn9+lHWiS7nMrDsfnFJqvGnWs=; b=VtcukwHUtShAEMLFvUWzsivKpISmyu9rt7sqUtDCNtEVmsVPYua796Tw0Oe8r71oY8gbyBtbyRst5BcIc6B74+BqjXAhZXTa9bFdtlOKnqDVL/99xwNW+yuQ51b4v1DCHqlA+LvvOFwyzP9c8oAz6fehu6GElYCeamGbS9qTvzc=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1461.namprd09.prod.outlook.com (10.173.191.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Tue, 14 Feb 2017 11:59:44 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.030; Tue, 14 Feb 2017 11:59:44 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Markulf Kohlweiss <markulf@microsoft.com>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHShhA4I+OuT9Tx0Ei6xwYcFLEEbKFoE7QA
Date: Tue, 14 Feb 2017 11:59:44 +0000
Message-ID: <D4C85054.2FDA4%qdang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov>
In-Reply-To: <D4C73D19.2FB4B%qdang@nist.gov>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.218.32]
x-ms-office365-filtering-correlation-id: f39056d9-01a3-4057-155b-08d454d0f750
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1461; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1461; 7:xBVGsHpvfGScMXbWYdBYDU2scucR4JPkNGHIGgsO9oFQjnEL8s5+B2LZ4YrA6o7DxwL5cotuWuSgEF6Vr+m819Bwl+WHQZdiG5VY9vkS+5UBvhcu20LdTDMc8+q1L6Fcze1XEU5xH06yJJu7rIU+w7AL9D0KOaNK2CnGsqNc4JapmcIIYloRW9XvJlZ7IZMsL94CAaNsh7gp6M/eui+lbH++dOFCNiuQtkcOiJaYuaqX7Y1qDZLZwLCtjpouZ+X2stZNjRrh1s1UUtK/Mjdh9Ycr5aMpv3GKN02rVNs/gEAAbDFgYiWaDh+8mb5MFCgCbFivCphoXzryJUaNdRy0tDHDyv5DsgjTaq7mtW7ADSmwJF7k+u/BHyuDcEeSkbQMW5/DAVgTgC60lEoHR2aIYNAJ07qfB4g+UdJk/YkvnI5NHRNIUVpOXuyZ63e5ZrdVQX73aZ6Endh99lVvqP88n12pZmLOeM5Z/tGUnjuS0P2gGBAeEre+6aJUBZzDg/6+pN9dYIdJRQPEOmGsdDRy7Q==
x-microsoft-antispam-prvs: <CY4PR09MB1461D0CB9C8CFA81E9C901BCF3580@CY4PR09MB1461.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123560025)(20161123558025)(20161123555025)(20161123564025)(6072148); SRVR:CY4PR09MB1461; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1461; 
x-forefront-prvs: 0218A015FA
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39850400002)(39840400002)(39410400002)(39450400003)(39860400002)(377454003)(24454002)(199003)(189002)(229853002)(50986999)(101416001)(99286003)(54906002)(54356999)(76176999)(189998001)(93886004)(53936002)(36756003)(86362001)(3846002)(6116002)(8676002)(106116001)(102836003)(2906002)(3280700002)(81156014)(81166006)(92566002)(106356001)(606005)(6246003)(54896002)(122556002)(8936002)(3660700001)(6306002)(236005)(2421001)(4001350100001)(105586002)(66066001)(6512007)(4326007)(25786008)(2561002)(77096006)(6486002)(6436002)(7736002)(1511001)(83506001)(68736007)(2950100002)(6506006)(6916009)(8666007)(2900100001)(81003)(38730400002)(53546003)(110136004)(5660300001)(7906003)(97736004); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1461; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4C850542FDA4qdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2017 11:59:44.3692 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1461
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/qjsKbegtuzISWIZCPbf1nPrIxnQ>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com>, IRTF CFRG <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 14 Feb 2017 11:59:49 -0000

--_000_D4C850542FDA4qdangnistgov_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Markulf and all,

I provided more explanation below.

From: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>
Date: Monday, February 13, 2017 at 10:45 AM
To: Markulf Kohlweiss <markulf@microsoft.com<mailto:markulf@microsoft.com>>=
, "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul.a=
c.uk>>, Sean Turner <sean@sn3rd.com<mailto:sean@sn3rd.com>>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com<mailto:antdl@microsoft.com=
>>, IRTF CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>, "<tls@ietf.org<mailto:=
tls@ietf.org>>" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hi Markulf,

The probability of a bad thing to happen is actually below (or about) 2^(-3=
3). It practically won=92t happen when the chance is 1 in 2^32. And, to ach=
ieve that chance, you must collect 2^48 128-bit blocks.

Regards,
Quynh.

From: TLS <tls-bounces@ietf.org<mailto:tls-bounces@ietf.org>> on behalf of =
Markulf Kohlweiss <markulf@microsoft.com<mailto:markulf@microsoft.com>>
Date: Monday, February 13, 2017 at 10:34 AM
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul=
.ac.uk>>, Sean Turner <sean@sn3rd.com<mailto:sean@sn3rd.com>>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com<mailto:antdl@microsoft.com=
>>, IRTF CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>, "<tls@ietf.org<mailto:=
tls@ietf.org>>" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hello,

Our analysis of miTLS also supports option a)

A security level of 2^-32 seems too low from a provable security point of v=
iew, especially for a confidentiality bound.

When someone says AES-128 has 128 bits of security he or she means that 2^1=
28 AES operations will break the cipher with probability 100%: finding the =
key and the plaintext.  It does not mean that attackers have only 2^(-128) =
chance of success. If an attacker could run 2^100 AES operations, his or he=
r chance of success is way below 2^(-32): this does not mean that AES has a=
 security level of 2^(-32) or  2^(-28).

The success probability 1/2^32 means that after 2^48 AES operations, the at=
tacker has a success probability of 2^-32 which is practically zero.

Also, many users don=92t know what =93confidentiality bound=94 means.

The current text Eric wrote talks about a number 2^24.5 of full-size record=
s. In many situations, the record sizes are not full size, but different si=
zes. My latest suggestion text does not assume full size records, it covers=
 variable record sizes, it just counts AES-input blocks or AES operations.

Regards,
Quynh.






We verified an implementation of the TLS 1.3 record (https://eprint.iacr.or=
g/2016/1178, to appear at Security & Privacy 2017) where we arrive at a com=
bined bound for authenticity and confidentiality that is compatible with th=
e Iwata et al. bound.

Regards,
Markulf (for the miTLS team)

Hi,

My preference is to go with the existing text, option a).

>From the github discussion, I think option c) involves a less conservative
security bound (success probability for IND-CPA attacker bounded by
2^{-32} instead of 2^{-60}). I can live with that, but the WG should be
aware of the weaker security guarantees it provides.

I do not understand option b). It seems to rely on an analysis of
collisions of ciphertext blocks rather than the established security proof
for AES-GCM.

Regards,

Kenny

On 10/02/2017 05:44, "Cfrg on behalf of Martin Thomson"
<cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com> wrote:

On 10 February 2017 at 16:07, Sean Turner <sean at sn3rd.com> wrote:
a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]


a) I'm happy enough with the current text (I've implemented that any
it's relatively easy).

I could live with c, but I'm opposed to b. It just doesn't make sense.
It's not obviously wrong any more, but the way it is written it is
very confusing and easily open to misinterpretation.

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

_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls


--_000_D4C850542FDA4qdangnistgov_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <491F1A64945B714DB274CEFE6B5D208E@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>Hi Markulf and all,</div>
<div><br>
</div>
<div>I provided more explanation below.&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>'Quynh' &lt;<a href=3D"mailto=
:Quynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Monday, February 13, 2017 at =
10:45 AM<br>
<span style=3D"font-weight:bold">To: </span>Markulf Kohlweiss &lt;<a href=
=3D"mailto:markulf@microsoft.com">markulf@microsoft.com</a>&gt;, &quot;Pate=
rson, Kenny&quot; &lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Pa=
terson@rhul.ac.uk</a>&gt;, Sean Turner &lt;<a href=3D"mailto:sean@sn3rd.com=
">sean@sn3rd.com</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>Antoine Delignat-Lavaud &lt;<a =
href=3D"mailto:antdl@microsoft.com">antdl@microsoft.com</a>&gt;, IRTF CFRG =
&lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;&lt;<a hr=
ef=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"mailto=
:tls@ietf.org">tls@ietf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line=
-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-famil=
y: Calibri, sans-serif;">
<div>Hi Markulf,</div>
<div><br>
</div>
<div>The probability of a bad thing to happen is actually below (or about) =
2^(-33). It practically won=92t happen when the chance is 1 in 2^32. And, t=
o achieve that chance, you must collect 2^48 128-bit blocks.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Quynh.&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>TLS &lt;<a href=3D"mailto:tls=
-bounces@ietf.org">tls-bounces@ietf.org</a>&gt; on behalf of Markulf Kohlwe=
iss &lt;<a href=3D"mailto:markulf@microsoft.com">markulf@microsoft.com</a>&=
gt;<br>
<span style=3D"font-weight:bold">Date: </span>Monday, February 13, 2017 at =
10:34 AM<br>
<span style=3D"font-weight:bold">To: </span>&quot;Paterson, Kenny&quot; &lt=
;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>=
&gt;, Sean Turner &lt;<a href=3D"mailto:sean@sn3rd.com">sean@sn3rd.com</a>&=
gt;<br>
<span style=3D"font-weight:bold">Cc: </span>Antoine Delignat-Lavaud &lt;<a =
href=3D"mailto:antdl@microsoft.com">antdl@microsoft.com</a>&gt;, IRTF CFRG =
&lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;&lt;<a hr=
ef=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"mailto=
:tls@ietf.org">tls@ietf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>Hello,</div>
<div><br>
</div>
<div>Our analysis of miTLS also supports option a)</div>
<div><br>
</div>
<div>A security level of 2^-32 seems too low from a provable security point=
 of view, especially for a confidentiality bound.</div>
</div>
</div>
</blockquote>
</span></div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>When someone says AES-128 has 128 bits of security he or she means tha=
t 2^128 AES operations will break the cipher with probability 100%: finding=
 the key and the plaintext. &nbsp;It does not mean that attackers have only=
 2^(-128) chance of success. If an attacker
 could run 2^100 AES operations, his or her chance of success is way below =
2^(-32): this does not mean that AES has a security level of 2^(-32) or &nb=
sp;2^(-28).&nbsp;</div>
<div><br>
</div>
<div>The success probability 1/2^32 means that after 2^48 AES operations, t=
he attacker has a success probability of 2^-32 which is practically zero. &=
nbsp;</div>
<div><br>
</div>
<div>Also, many users don=92t know what =93confidentiality bound=94 means.<=
/div>
<div><br>
</div>
<div>The current text Eric wrote talks about a number 2^24.5 of full-size r=
ecords. In many situations, the record sizes are not full size, but differe=
nt sizes. My latest suggestion text does not assume full size records, it c=
overs variable record sizes, it
 just counts AES-input blocks or AES operations.&nbsp;</div>
<div><br>
</div>
<div>Regards,</div>
<div>Quynh.&nbsp;</div>
<div><br>
</div>
<div>&nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line=
-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-famil=
y: Calibri, sans-serif;">
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div><br>
</div>
<div>We verified an implementation of the TLS 1.3 record (<a href=3D"https:=
//eprint.iacr.org/2016/1178">https://eprint.iacr.org/2016/1178</a>, to appe=
ar at Security &amp; Privacy 2017) where we arrive at a combined bound for =
authenticity and confidentiality that
 is compatible with the Iwata et al. bound.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Markulf (for the miTLS team)</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi,</div>
<div><br>
</div>
<div>My preference is to go with the existing text, option a).</div>
<div><br>
</div>
<div>From the github discussion, I think option c) involves a less conserva=
tive</div>
<div>security bound (success probability for IND-CPA attacker bounded by</d=
iv>
<div>2^{-32} instead of 2^{-60}). I can live with that, but the WG should b=
e</div>
<div>aware of the weaker security guarantees it provides.</div>
<div><br>
</div>
<div>I do not understand option b). It seems to rely on an analysis of</div=
>
<div>collisions of ciphertext blocks rather than the established security p=
roof</div>
<div>for AES-GCM.</div>
<div><br>
</div>
<div>Regards,</div>
<div><br>
</div>
<div>Kenny</div>
<div><br>
</div>
<div>On 10/02/2017 05:44, &quot;Cfrg on behalf of Martin Thomson&quot;</div=
>
<div>&lt;cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com&=
gt; wrote:</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>On 10 February 2017 at 16:07, Sean Turner &lt;sean at sn3rd.com&gt; wr=
ote:</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>a) Close these two PRs and go with the existing text [0]</div>
<div>b) Adopt PR#765 [1]</div>
<div>c) Adopt PR#769 [2]</div>
</blockquote>
<div><br>
</div>
<div><br>
</div>
<div>a) I'm happy enough with the current text (I've implemented that any</=
div>
<div>it's relatively easy).</div>
<div><br>
</div>
<div>I could live with c, but I'm opposed to b. It just doesn't make sense.=
</div>
<div>It's not obviously wrong any more, but the way it is written it is</di=
v>
<div>very confusing and easily open to misinterpretation.</div>
<div><br>
</div>
<div>_______________________________________________</div>
<div>Cfrg mailing list</div>
<div>Cfrg at irtf.org</div>
<div><a href=3D"https://www.irtf.org/mailman/listinfo/cfrg">https://www.irt=
f.org/mailman/listinfo/cfrg</a></div>
</blockquote>
</blockquote>
<div><br>
</div>
<div>_______________________________________________</div>
<div>TLS mailing list</div>
<div><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></div>
<div><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf=
.org/mailman/listinfo/tls</a></div>
<div><br>
</div>
</div>
</div>
</blockquote>
</span></div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4C850542FDA4qdangnistgov_--


From nobody Tue Feb 14 08:18:01 2017
Return-Path: <atul.luykx@esat.kuleuven.be>
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 CA38A129686 for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 08:17:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001] 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 ctSJYDinWtbq for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 08:17:57 -0800 (PST)
Received: from cavuit02.kulnet.kuleuven.be (rhcavuit02.kulnet.kuleuven.be [IPv6:2a02:2c40:0:c0::25:130]) (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 E29BA12962B for <cfrg@irtf.org>; Tue, 14 Feb 2017 08:17:56 -0800 (PST)
X-KULeuven-Envelope-From: atul.luykx@esat.kuleuven.be
X-KULeuven-Scanned: Found to be clean
X-KULeuven-ID: 5522A128046.AAE7E
X-KULeuven-Information: Katholieke Universiteit Leuven
Received: from icts-p-smtps-1.cc.kuleuven.be (icts-p-smtps-1e.kulnet.kuleuven.be [134.58.240.33]) by cavuit02.kulnet.kuleuven.be (Postfix) with ESMTP id 5522A128046 for <cfrg@irtf.org>; Tue, 14 Feb 2017 17:17:53 +0100 (CET)
Received: from hydrogen.esat.kuleuven.be (hydrogen.esat.kuleuven.be [134.58.56.153]) by icts-p-smtps-1.cc.kuleuven.be (Postfix) with ESMTP id 519D4403B; Tue, 14 Feb 2017 17:17:53 +0100 (CET)
Received: from cobalt.esat.kuleuven.be (cobalt.esat.kuleuven.be [134.58.56.187]) by hydrogen.esat.kuleuven.be (Postfix) with ESMTP id 4B5AF2002C; Tue, 14 Feb 2017 17:17:53 +0100 (CET)
Received: from webmail.esat.kuleuven.be (localhost [127.0.0.1]) by cobalt.esat.kuleuven.be (Postfix) with ESMTP id 468FB40; Tue, 14 Feb 2017 17:17:53 +0100 (CET)
Received: from c-73-71-218-252.hsd1.ca.comcast.net ([73.71.218.252]) by webmail.esat.kuleuven.be with HTTP (HTTP/1.1 POST); Tue, 14 Feb 2017 17:17:53 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Date: Tue, 14 Feb 2017 08:17:53 -0800
X-Kuleuven: This mail passed the K.U.Leuven mailcluster
From: Atul Luykx <Atul.Luykx@esat.kuleuven.be>
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
In-Reply-To: <D4C85054.2FDA4%qdang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov>
Message-ID: <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be>
X-Sender: aluykx@esat.kuleuven.be
User-Agent: ESAT webmail service, powered by Roundcube
X-Virus-Scanned: clamav-milter 0.99.2 at cobalt
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/dKPcoQeh2jYBzRnhYquU2fcN0F0>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com>, IRTF CFRG <cfrg@irtf.org>, tls@ietf.org
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 14 Feb 2017 16:18:00 -0000

Hey Quynh,

> When someone says AES-128 has 128 bits of security he or she means
> that 2^128 AES operations will break the cipher with probability 100%:
> finding the key and the plaintext.
The claim is stronger: regardless of the number of plaintext-ciphertext 
pairs available to the adversary, it will still take roughly 2^128 
operations to recover the key with AES. This contrasts with any mode of 
operation, where adversarial success probability increases according to 
the amount of data available and the computational complexity required 
to perform such an attack is not the limiting factor (which is the core 
of the problem we're discussing right now).

Regardless, correct me if I'm wrong Quynh, but you seem to have two 
issues with Eric's text:
1. the data limit recommendation is too strict, and
2. it only gives a data limit in terms of full records.

For point 1 it seems like most people would rather err on the side of 
caution instead of recommending that people switch when adversaries have 
success probability 2^{-32}. I don't see the discussion progressing on 
this point, and basically a decision needs to be made.

I don't think point 2 is a problem because it gives people a good enough 
heuristic, however this can be fixed easily by minimally modifying the 
original text.

Atul


On 2017-02-14 03:59, Dang, Quynh (Fed) wrote:
> Hi Markulf and all,
> 
> I provided more explanation below.
> 
>  From: 'Quynh' <Quynh.Dang@nist.gov>
> Date: Monday, February 13, 2017 at 10:45 AM
> To: Markulf Kohlweiss <markulf@microsoft.com>, "Paterson, Kenny"
> <Kenny.Paterson@rhul.ac.uk>, Sean Turner <sean@sn3rd.com>
> Cc: Antoine Delignat-Lavaud <antdl@microsoft.com>, IRTF CFRG
> <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
> Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs
> (#765/#769)
> 
>> Hi Markulf,
>> 
>> The probability of a bad thing to happen is actually below (or
>> about) 2^(-33). It practically wonâ€™t happen when the chance is 1
>> in 2^32. And, to achieve that chance, you must collect 2^48 128-bit
>> blocks.
>> 
>> Regards,
>> Quynh.
>> 
>> From: TLS <tls-bounces@ietf.org> on behalf of Markulf Kohlweiss
>> <markulf@microsoft.com>
>> Date: Monday, February 13, 2017 at 10:34 AM
>> To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, Sean Turner
>> <sean@sn3rd.com>
>> Cc: Antoine Delignat-Lavaud <antdl@microsoft.com>, IRTF CFRG
>> <cfrg@irtf.org>, "<tls@ietf.org>" <tls@ietf.org>
>> Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage"
>> PRs (#765/#769)
>> 
>>> Hello,
>>> 
>>> Our analysis of miTLS also supports option a)
>>> 
>>> A security level of 2^-32 seems too low from a provable security
>>> point of view, especially for a confidentiality bound.
> 
> When someone says AES-128 has 128 bits of security he or she means
> that 2^128 AES operations will break the cipher with probability 100%:
> finding the key and the plaintext.  It does not mean that attackers
> have only 2^(-128) chance of success. If an attacker could run 2^100
> AES operations, his or her chance of success is way below 2^(-32):
> this does not mean that AES has a security level of 2^(-32) or
> 2^(-28).
> 
> The success probability 1/2^32 means that after 2^48 AES operations,
> the attacker has a success probability of 2^-32 which is practically
> zero.
> 
> Also, many users donâ€™t know what â€œconfidentiality boundâ€� means.
> 
> The current text Eric wrote talks about a number 2^24.5 of full-size
> records. In many situations, the record sizes are not full size, but
> different sizes. My latest suggestion text does not assume full size
> records, it covers variable record sizes, it just counts AES-input
> blocks or AES operations.
> 
> Regards,
> Quynh.
> 
>> We verified an implementation of the TLS 1.3 record
>> (https://eprint.iacr.org/2016/1178, to appear at Security & Privacy
>> 2017) where we arrive at a combined bound for authenticity and
>> confidentiality that is compatible with the Iwata et al. bound.
>> 
>> Regards,
>> Markulf (for the miTLS team)
>> 
>> Hi,
>> 
>> My preference is to go with the existing text, option a).
>> 
>> From the github discussion, I think option c) involves a less
>> conservative
>> security bound (success probability for IND-CPA attacker bounded by
>> 2^{-32} instead of 2^{-60}). I can live with that, but the WG should
>> be
>> aware of the weaker security guarantees it provides.
>> 
>> I do not understand option b). It seems to rely on an analysis of
>> collisions of ciphertext blocks rather than the established security
>> proof
>> for AES-GCM.
>> 
>> Regards,
>> 
>> Kenny
>> 
>> On 10/02/2017 05:44, "Cfrg on behalf of Martin Thomson"
>> <cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com>
>> wrote:
>> 
>> On 10 February 2017 at 16:07, Sean Turner <sean at sn3rd.com> wrote:
>> 
>> a) Close these two PRs and go with the existing text [0]
>> b) Adopt PR#765 [1]
>> c) Adopt PR#769 [2]
>> 
>> a) I'm happy enough with the current text (I've implemented that any
>> 
>> it's relatively easy).
>> 
>> I could live with c, but I'm opposed to b. It just doesn't make
>> sense.
>> It's not obviously wrong any more, but the way it is written it is
>> very confusing and easily open to misinterpretation.
>> 
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg at irtf.org
>> https://www.irtf.org/mailman/listinfo/cfrg
> 
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


From nobody Tue Feb 14 10:20:19 2017
Return-Path: <quynh.dang@nist.gov>
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 164661293EB for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 10:20:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 SnpubTVyxZug for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 10:20:15 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0099.outbound.protection.outlook.com [23.103.200.99]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3B7931296CD for <cfrg@irtf.org>; Tue, 14 Feb 2017 10:20:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/fE4UIrhydtnHpgZ/wFiryS2clsV6K7d8QcrozGVyTI=; b=JsRnhQGy/mnpjpVgIOqyQIwe2GbQFLDCVtWwpAa8fM7LmTz9Rbft+4fDKZMysktUpZH4/LYoxBXA+B9C1b9RQHbPpeFoeEa9jwECpgJV1sZbcyokefGDKB4SeTMvmw4enP5x81beymkOqiN/PwfuUiqvmEWBwgDOLNzP1FDVKr4=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1462.namprd09.prod.outlook.com (10.173.191.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Tue, 14 Feb 2017 18:20:13 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.030; Tue, 14 Feb 2017 18:20:13 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Atul Luykx <Atul.Luykx@esat.kuleuven.be>, "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHShhA4I+OuT9Tx0Ei6xwYcFLEEbKFoE7QAgACb9ID//85ZAA==
Date: Tue, 14 Feb 2017 18:20:12 +0000
Message-ID: <D4C8AE28.30145%qdang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be>
In-Reply-To: <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.218.32]
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1462; 7:cJavgSjCOIJJdkKQnL6nrUNwVu46dejnAw+NACjaWOLDwOsnPyD89cr8mZEdNMM203Vjj7dgN8VzDXSnj5CH4d5/VuZmqcYU+mRGCx0pHBZ/oCZfmlplerjj+bdfaCDFA8B+aH+ayCpW/4a8vbhWORJXe6MuSNgU09pmVZKbEFdZUWzFIdCiu8oj04t6udTFy+VEiLXJ8IaWX6wx/QIBwcsSQSjHy+yCM0eTfIOKHZqF2+x21RAUGreBD4h0vwh0gi6pTZmo4TBTSaRI8YR/a1lyjZi0GJ5s+Ijz7qL1iNvPYLF+xeDZ0KN6CX5fQ6/byeoNWl+HlKHvfhsx/hWt07CEpLukkJoa9iLrxy8ZqztBgX0cYgcP1G/Z3kUbO2HHtMaDAC3XiGDjELgy/EygODubE9tLfVP9yVDlIL6xLnXBayLvF0pM2o/6T+uLjGgVfkLGNBj4oC+ZVxeHqnUB9Ryw7Aw0Bdo67nDxIp2v2PoBc9/95vK2ml+lRft5P7GAGQHri6cBYj4qF7JvwCs9jQ==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10019020)(7916002)(39450400003)(39850400002)(39410400002)(39840400002)(39860400002)(189002)(199003)(377454003)(377424004)(24454002)(86362001)(102836003)(6116002)(4326007)(93886004)(3846002)(2950100002)(6862003)(53936002)(3280700002)(2900100001)(81166006)(189998001)(5660300001)(606005)(38730400002)(81156014)(92566002)(2906002)(54356999)(8676002)(50986999)(4001350100001)(97736004)(76176999)(8936002)(101416001)(7736002)(7906003)(66066001)(229853002)(83506001)(6306002)(54906002)(236005)(122556002)(6486002)(54896002)(6436002)(106116001)(6506006)(106356001)(105586002)(3660700001)(6246003)(53546003)(36756003)(6512007)(8666007)(77096006)(25786008)(68736007)(99286003)(81003); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1462; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  MX:1; A:1; LANG:en; 
x-ms-office365-filtering-correlation-id: eb5c1027-041f-409b-5808-08d455061e2a
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1462; 
x-microsoft-antispam-prvs: <CY4PR09MB1462B7F0AD7A8B7D06D336B1F3580@CY4PR09MB1462.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(20161123558025)(6072148); SRVR:CY4PR09MB1462; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1462; 
x-forefront-prvs: 0218A015FA
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4C8AE2830145qdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2017 18:20:12.9137 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1462
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/fVc8IxiRhSBQCvN68T8tdIDI9D0>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com>, IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 14 Feb 2017 18:20:18 -0000

--_000_D4C8AE2830145qdangnistgov_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Atul,

From: Atul Luykx <Atul.Luykx@esat.kuleuven.be<mailto:Atul.Luykx@esat.kuleuv=
en.be>>
Date: Tuesday, February 14, 2017 at 11:17 AM
To: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>
Cc: Markulf Kohlweiss <markulf@microsoft.com<mailto:markulf@microsoft.com>>=
, Antoine Delignat-Lavaud <antdl@microsoft.com<mailto:antdl@microsoft.com>>=
, IRTF CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>, "tls@ietf.org<mailto:tls=
@ietf.org>" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hey Quynh,

When someone says AES-128 has 128 bits of security he or she means
that 2^128 AES operations will break the cipher with probability 100%:
finding the key and the plaintext.
The claim is stronger: regardless of the number of plaintext-ciphertext
pairs available to the adversary, it will still take roughly 2^128
operations to recover the key with AES.

Actually the same claim: my claim did not require any data requirement: jus=
t one ciphertext block.

This contrasts with any mode of
operation, where adversarial success probability increases according to
the amount of data available and the computational complexity required
to perform such an attack is not the limiting factor (which is the core
of the problem we're discussing right now).

IND-CPA is important. That is why I have always been supporting it. Data is=
 equivalent to computation in the sense that data are produced by computati=
on. 2^x blocks =3D 2^x AES operations.

With 2^48 AES operations/input blocks, the actual margin is below 2^(-33). =
And, 1 in 2^32 is 1 in 4,294, 967,296.00 which is safe.

Quynh.


Regardless, correct me if I'm wrong Quynh, but you seem to have two
issues with Eric's text:
1. the data limit recommendation is too strict, and
2. it only gives a data limit in terms of full records.

For point 1 it seems like most people would rather err on the side of
caution instead of recommending that people switch when adversaries have
success probability 2^{-32}. I don't see the discussion progressing on
this point, and basically a decision needs to be made.

I don't think point 2 is a problem because it gives people a good enough
heuristic, however this can be fixed easily by minimally modifying the
original text.

Atul


On 2017-02-14 03:59, Dang, Quynh (Fed) wrote:
Hi Markulf and all,
I provided more explanation below.
  From: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>
Date: Monday, February 13, 2017 at 10:45 AM
To: Markulf Kohlweiss <markulf@microsoft.com<mailto:markulf@microsoft.com>>=
, "Paterson, Kenny"
<Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul.ac.uk>>, Sean Turner =
<sean@sn3rd.com<mailto:sean@sn3rd.com>>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com<mailto:antdl@microsoft.com=
>>, IRTF CFRG
<cfrg@irtf.org<mailto:cfrg@irtf.org>>, "<tls@ietf.org<mailto:tls@ietf.org>>=
" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs
(#765/#769)
Hi Markulf,
The probability of a bad thing to happen is actually below (or
about) 2^(-33). It practically won=92t happen when the chance is 1
in 2^32. And, to achieve that chance, you must collect 2^48 128-bit
blocks.
Regards,
Quynh.
From: TLS <tls-bounces@ietf.org<mailto:tls-bounces@ietf.org>> on behalf of =
Markulf Kohlweiss
<markulf@microsoft.com<mailto:markulf@microsoft.com>>
Date: Monday, February 13, 2017 at 10:34 AM
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul=
.ac.uk>>, Sean Turner
<sean@sn3rd.com<mailto:sean@sn3rd.com>>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com<mailto:antdl@microsoft.com=
>>, IRTF CFRG
<cfrg@irtf.org<mailto:cfrg@irtf.org>>, "<tls@ietf.org<mailto:tls@ietf.org>>=
" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage"
PRs (#765/#769)
Hello,
Our analysis of miTLS also supports option a)
A security level of 2^-32 seems too low from a provable security
point of view, especially for a confidentiality bound.
When someone says AES-128 has 128 bits of security he or she means
that 2^128 AES operations will break the cipher with probability 100%:
finding the key and the plaintext.  It does not mean that attackers
have only 2^(-128) chance of success. If an attacker could run 2^100
AES operations, his or her chance of success is way below 2^(-32):
this does not mean that AES has a security level of 2^(-32) or
2^(-28).
The success probability 1/2^32 means that after 2^48 AES operations,
the attacker has a success probability of 2^-32 which is practically
zero.
Also, many users don=92t know what =93confidentiality bound=94 means.
The current text Eric wrote talks about a number 2^24.5 of full-size
records. In many situations, the record sizes are not full size, but
different sizes. My latest suggestion text does not assume full size
records, it covers variable record sizes, it just counts AES-input
blocks or AES operations.
Regards,
Quynh.
We verified an implementation of the TLS 1.3 record
(https://eprint.iacr.org/2016/1178, to appear at Security & Privacy
2017) where we arrive at a combined bound for authenticity and
confidentiality that is compatible with the Iwata et al. bound.
Regards,
Markulf (for the miTLS team)
Hi,
My preference is to go with the existing text, option a).
>From the github discussion, I think option c) involves a less
conservative
security bound (success probability for IND-CPA attacker bounded by
2^{-32} instead of 2^{-60}). I can live with that, but the WG should
be
aware of the weaker security guarantees it provides.
I do not understand option b). It seems to rely on an analysis of
collisions of ciphertext blocks rather than the established security
proof
for AES-GCM.
Regards,
Kenny
On 10/02/2017 05:44, "Cfrg on behalf of Martin Thomson"
<cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com>
wrote:
On 10 February 2017 at 16:07, Sean Turner <sean at sn3rd.com> wrote:
a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]
a) I'm happy enough with the current text (I've implemented that any
it's relatively easy).
I could live with c, but I'm opposed to b. It just doesn't make
sense.
It's not obviously wrong any more, but the way it is written it is
very confusing and easily open to misinterpretation.
_______________________________________________
Cfrg mailing list
Cfrg at irtf.org
https://www.irtf.org/mailman/listinfo/cfrg
_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls
_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls


--_000_D4C8AE2830145qdangnistgov_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <E69146870633104D937D81C457E9CF1E@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0);">
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;">Hi Atul,<=
/div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION" style=3D"font-size: 14px; font-family: Ca=
libri, sans-serif;">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>Atul Luykx &lt;<a href=3D"mai=
lto:Atul.Luykx@esat.kuleuven.be">Atul.Luykx@esat.kuleuven.be</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Tuesday, February 14, 2017 at=
 11:17 AM<br>
<span style=3D"font-weight:bold">To: </span>'Quynh' &lt;<a href=3D"mailto:Q=
uynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>Markulf Kohlweiss &lt;<a href=
=3D"mailto:markulf@microsoft.com">markulf@microsoft.com</a>&gt;, Antoine De=
lignat-Lavaud &lt;<a href=3D"mailto:antdl@microsoft.com">antdl@microsoft.co=
m</a>&gt;, IRTF CFRG &lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>=
&gt;,
 &quot;<a href=3D"mailto:tls@ietf.org">tls@ietf.org</a>&quot; &lt;<a href=
=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>Hey Quynh,</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>When someone says AES-128 has 128 bits of security he or she means</di=
v>
<div>that 2^128 AES operations will break the cipher with probability 100%:=
</div>
<div>finding the key and the plaintext.</div>
</blockquote>
<div>The claim is stronger: regardless of the number of plaintext-ciphertex=
t </div>
<div>pairs available to the adversary, it will still take roughly 2^128 </d=
iv>
<div>operations to recover the key with AES. </div>
</div>
</div>
</blockquote>
</span>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;">Actually =
the same claim: my claim did not require any data requirement: just one cip=
hertext block.&nbsp;</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION" style=3D"font-size: 14px; font-family: Ca=
libri, sans-serif;">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>This contrasts with any mode of </div>
<div>operation, where adversarial success probability increases according t=
o </div>
<div>the amount of data available and the computational complexity required=
 </div>
<div>to perform such an attack is not the limiting factor (which is the cor=
e </div>
<div>of the problem we're discussing right now).</div>
</div>
</div>
</blockquote>
</span>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;">IND-CPA i=
s important. That is why I have always been supporting it. Data is equivale=
nt to computation in the sense that data are produced by computation. 2^x b=
locks =3D 2^x AES operations.&nbsp;</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div><font face=3D"Calibri,sans-serif" style=3D"font-size: 14px;">With 2^48=
 AES operations/input blocks, the actual margin is below 2^(-33). And, 1 in=
 2^32 is 1 in&nbsp;</font><font face=3D"Calibri" style=3D"font-size: 16px;"=
><span style=3D"color: rgb(34, 34, 34); orphans: 2; white-space: nowrap; wi=
dows: 2; background-color: rgb(255, 255, 255);">4,294,</span>&nbsp;<span st=
yle=3D"color: rgb(34, 34, 34); orphans: 2; white-space: nowrap; widows: 2; =
background-color: rgb(255, 255, 255);">967,296.00
 which is safe.</span></font></div>
<div><font face=3D"Calibri" style=3D"font-size: 16px;"><span style=3D"color=
: rgb(34, 34, 34); orphans: 2; white-space: nowrap; widows: 2; background-c=
olor: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face=3D"Calibri" style=3D"font-size: 16px;"><span style=3D"color=
: rgb(34, 34, 34); orphans: 2; white-space: nowrap; widows: 2; background-c=
olor: rgb(255, 255, 255);">Quynh.&nbsp;</span></font></div>
<div><font face=3D"Calibri" style=3D"font-size: 16px;"><span style=3D"color=
: rgb(34, 34, 34); orphans: 2; white-space: nowrap; widows: 2; background-c=
olor: rgb(255, 255, 255);"><br>
</span></font></div>
<span id=3D"OLK_SRC_BODY_SECTION" style=3D"font-size: 14px; font-family: Ca=
libri, sans-serif;">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div><br>
</div>
<div>Regardless, correct me if I'm wrong Quynh, but you seem to have two </=
div>
<div>issues with Eric's text:</div>
<div>1. the data limit recommendation is too strict, and</div>
<div>2. it only gives a data limit in terms of full records.</div>
<div><br>
</div>
<div>For point 1 it seems like most people would rather err on the side of =
</div>
<div>caution instead of recommending that people switch when adversaries ha=
ve </div>
<div>success probability 2^{-32}. I don't see the discussion progressing on=
 </div>
<div>this point, and basically a decision needs to be made.</div>
<div><br>
</div>
<div>I don't think point 2 is a problem because it gives people a good enou=
gh </div>
<div>heuristic, however this can be fixed easily by minimally modifying the=
 </div>
<div>original text.</div>
<div><br>
</div>
<div>Atul</div>
<div><br>
</div>
<div><br>
</div>
<div>On 2017-02-14 03:59, Dang, Quynh (Fed) wrote:</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi Markulf and all,</div>
<div></div>
<div>I provided more explanation below.</div>
<div></div>
<div>&nbsp;&nbsp;From: 'Quynh' &lt;<a href=3D"mailto:Quynh.Dang@nist.gov">Q=
uynh.Dang@nist.gov</a>&gt;</div>
<div>Date: Monday, February 13, 2017 at 10:45 AM</div>
<div>To: Markulf Kohlweiss &lt;<a href=3D"mailto:markulf@microsoft.com">mar=
kulf@microsoft.com</a>&gt;, &quot;Paterson, Kenny&quot;</div>
<div>&lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.a=
c.uk</a>&gt;, Sean Turner &lt;<a href=3D"mailto:sean@sn3rd.com">sean@sn3rd.=
com</a>&gt;</div>
<div>Cc: Antoine Delignat-Lavaud &lt;<a href=3D"mailto:antdl@microsoft.com"=
>antdl@microsoft.com</a>&gt;, IRTF CFRG</div>
<div>&lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;&lt;=
<a href=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"m=
ailto:tls@ietf.org">tls@ietf.org</a>&gt;</div>
<div>Subject: Re: [TLS] [Cfrg] Closing out tls1.3 &quot;Limits on key usage=
&quot; PRs</div>
<div>(#765/#769)</div>
<div></div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi Markulf,</div>
<div></div>
<div>The probability of a bad thing to happen is actually below (or</div>
<div>about) 2^(-33). It practically won=92t happen when the chance is 1</di=
v>
<div>in 2^32. And, to achieve that chance, you must collect 2^48 128-bit</d=
iv>
<div>blocks.</div>
<div></div>
<div>Regards,</div>
<div>Quynh.</div>
<div></div>
<div>From: TLS &lt;<a href=3D"mailto:tls-bounces@ietf.org">tls-bounces@ietf=
.org</a>&gt; on behalf of Markulf Kohlweiss</div>
<div>&lt;<a href=3D"mailto:markulf@microsoft.com">markulf@microsoft.com</a>=
&gt;</div>
<div>Date: Monday, February 13, 2017 at 10:34 AM</div>
<div>To: &quot;Paterson, Kenny&quot; &lt;<a href=3D"mailto:Kenny.Paterson@r=
hul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt;, Sean Turner</div>
<div>&lt;<a href=3D"mailto:sean@sn3rd.com">sean@sn3rd.com</a>&gt;</div>
<div>Cc: Antoine Delignat-Lavaud &lt;<a href=3D"mailto:antdl@microsoft.com"=
>antdl@microsoft.com</a>&gt;, IRTF CFRG</div>
<div>&lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;&lt;=
<a href=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"m=
ailto:tls@ietf.org">tls@ietf.org</a>&gt;</div>
<div>Subject: Re: [TLS] [Cfrg] Closing out tls1.3 &quot;Limits on key usage=
&quot;</div>
<div>PRs (#765/#769)</div>
<div></div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hello,</div>
<div></div>
<div>Our analysis of miTLS also supports option a)</div>
<div></div>
<div>A security level of 2^-32 seems too low from a provable security</div>
<div>point of view, especially for a confidentiality bound.</div>
</blockquote>
</blockquote>
<div></div>
<div>When someone says AES-128 has 128 bits of security he or she means</di=
v>
<div>that 2^128 AES operations will break the cipher with probability 100%:=
</div>
<div>finding the key and the plaintext.&nbsp;&nbsp;It does not mean that at=
tackers</div>
<div>have only 2^(-128) chance of success. If an attacker could run 2^100</=
div>
<div>AES operations, his or her chance of success is way below 2^(-32):</di=
v>
<div>this does not mean that AES has a security level of 2^(-32) or</div>
<div>2^(-28).</div>
<div></div>
<div>The success probability 1/2^32 means that after 2^48 AES operations,</=
div>
<div>the attacker has a success probability of 2^-32 which is practically</=
div>
<div>zero.</div>
<div></div>
<div>Also, many users don=92t know what =93confidentiality bound=94 means.<=
/div>
<div></div>
<div>The current text Eric wrote talks about a number 2^24.5 of full-size</=
div>
<div>records. In many situations, the record sizes are not full size, but</=
div>
<div>different sizes. My latest suggestion text does not assume full size</=
div>
<div>records, it covers variable record sizes, it just counts AES-input</di=
v>
<div>blocks or AES operations.</div>
<div></div>
<div>Regards,</div>
<div>Quynh.</div>
<div></div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>We verified an implementation of the TLS 1.3 record</div>
<div>(<a href=3D"https://eprint.iacr.org/2016/1178">https://eprint.iacr.org=
/2016/1178</a>, to appear at Security &amp; Privacy</div>
<div>2017) where we arrive at a combined bound for authenticity and</div>
<div>confidentiality that is compatible with the Iwata et al. bound.</div>
<div></div>
<div>Regards,</div>
<div>Markulf (for the miTLS team)</div>
<div></div>
<div>Hi,</div>
<div></div>
<div>My preference is to go with the existing text, option a).</div>
<div></div>
<div>From the github discussion, I think option c) involves a less</div>
<div>conservative</div>
<div>security bound (success probability for IND-CPA attacker bounded by</d=
iv>
<div>2^{-32} instead of 2^{-60}). I can live with that, but the WG should</=
div>
<div>be</div>
<div>aware of the weaker security guarantees it provides.</div>
<div></div>
<div>I do not understand option b). It seems to rely on an analysis of</div=
>
<div>collisions of ciphertext blocks rather than the established security</=
div>
<div>proof</div>
<div>for AES-GCM.</div>
<div></div>
<div>Regards,</div>
<div></div>
<div>Kenny</div>
<div></div>
<div>On 10/02/2017 05:44, &quot;Cfrg on behalf of Martin Thomson&quot;</div=
>
<div>&lt;cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com&=
gt;</div>
<div>wrote:</div>
<div></div>
<div>On 10 February 2017 at 16:07, Sean Turner &lt;sean at sn3rd.com&gt; wr=
ote:</div>
<div></div>
<div>a) Close these two PRs and go with the existing text [0]</div>
<div>b) Adopt PR#765 [1]</div>
<div>c) Adopt PR#769 [2]</div>
<div></div>
<div>a) I'm happy enough with the current text (I've implemented that any</=
div>
<div></div>
<div>it's relatively easy).</div>
<div></div>
<div>I could live with c, but I'm opposed to b. It just doesn't make</div>
<div>sense.</div>
<div>It's not obviously wrong any more, but the way it is written it is</di=
v>
<div>very confusing and easily open to misinterpretation.</div>
<div></div>
<div>_______________________________________________</div>
<div>Cfrg mailing list</div>
<div>Cfrg at irtf.org</div>
<div><a href=3D"https://www.irtf.org/mailman/listinfo/cfrg">https://www.irt=
f.org/mailman/listinfo/cfrg</a></div>
</blockquote>
<div></div>
<div>_______________________________________________</div>
<div>TLS mailing list</div>
<div><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></div>
<div><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf=
.org/mailman/listinfo/tls</a></div>
<div>_______________________________________________</div>
<div>TLS mailing list</div>
<div><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></div>
<div><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf=
.org/mailman/listinfo/tls</a></div>
</blockquote>
<div><br>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4C8AE2830145qdangnistgov_--


From nobody Tue Feb 14 10:46:04 2017
Return-Path: <quynh.dang@nist.gov>
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 9BA27129784 for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 10:46:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 h1xPdfx_qt9h for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 10:45:57 -0800 (PST)
Received: from gcc01-CY1-obe.outbound.protection.outlook.com (mail-cy1gcc01on0103.outbound.protection.outlook.com [23.103.200.103]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 36686129570 for <cfrg@irtf.org>; Tue, 14 Feb 2017 10:45:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=GB8P4EGPA4wHJUW0kCgbiUaObJD0uDz8pq0+phIcr1g=; b=u8/5GPv5ShDWD6Vm2J4vUihe6gQXo0NqqNV0mtrNQyMU/EzukDHf3AsWfsPTWNxRy/yPD9KG6+JtnNRMbGFa8TnsZPGG9XKfy0pA11spPyR6uCljzyqcLXM3X2CLa5149oySBEj18bvkxWxQuQ3he8sdG1FXUCgOTRzqtzxrVFc=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1462.namprd09.prod.outlook.com (10.173.191.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Tue, 14 Feb 2017 18:45:55 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.030; Tue, 14 Feb 2017 18:45:55 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Sean Turner <sean@sn3rd.com>, "tls@ietf.org" <tls@ietf.org>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHShhA4I+OuT9Tx0Ei6xwYcFLEEbKFoE7QAgACb9ID//85ZAIAAVXBE
Date: Tue, 14 Feb 2017 18:45:55 +0000
Message-ID: <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be>, <D4C8AE28.30145%qdang@nist.gov>
In-Reply-To: <D4C8AE28.30145%qdang@nist.gov>
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-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.218.32]
x-ms-office365-filtering-correlation-id: 03ac788c-a2f2-4f66-a5c6-08d45509b58f
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1462; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1462; 7:Bdtr1r5qlT1s7JX8f2rXc8cvJ/qbU7qiZNHejaB1z94MpqUq3+a7Z6fiB7zySi4CqzkZSzTisw+GG51eGm3mR6jlkWVeY26Coot1HoYL/7ooh8n43sXXqQ/GgUjntL7N3POrU+XZqn6iHfvIrM4dz5Dj65irp4lCHhQhp1r6faRVMBouAh/w2k3QIMlUk5DrLN66lX2JPphvD7n0sKmzUWBKvQB59GYLnkvfI4GUoGQ4SU0+3WNDuYVm7dtmwPt5NHj+uqxOL1Kw3xlzeVn52AS9E+sCpdvxuuI/POz1zZb8GiRVnbiWxs1ABpnbBcBdBk+ADJ89HbV+I7CDQo4k6yw1VEW44In2Qu/bAU8JGUtZyvbMvKM149hLCDMKWpUyFdRbG+Y8iTMR00HDZC+FaXevZGlaXV2lLqeCdGMC11xlnvkrJHFDBzfaQGvGWqgZLs8NWnMMMggB2jB+H1oYtJSjg59shQnyJPGIS0oW19plGFgu/KR6zyZjRE+gr3al6yBOWD7whvYKFMBGjvgNJQ==
x-microsoft-antispam-prvs: <CY4PR09MB146278E0D965F1DE6617F7D6F3580@CY4PR09MB1462.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123562025)(20161123560025)(20161123555025)(20161123558025)(6072148); SRVR:CY4PR09MB1462; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1462; 
x-forefront-prvs: 0218A015FA
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39840400002)(39860400002)(39850400002)(39410400002)(39450400003)(24454002)(377424004)(377454003)(199003)(189002)(106116001)(6436002)(54896002)(105586002)(6506006)(106356001)(229853002)(19627405001)(122556002)(6306002)(9686003)(236005)(2501003)(77096006)(99286003)(33656002)(81003)(55016002)(25786008)(68736007)(3660700001)(6246003)(53546003)(189998001)(81166006)(2900100001)(5660300001)(606005)(38730400002)(7696004)(4326007)(102836003)(86362001)(6116002)(2950100002)(53936002)(3280700002)(93886004)(3846002)(74316002)(101416001)(8936002)(7906003)(66066001)(7736002)(2906002)(54356999)(92566002)(81156014)(76176999)(97736004)(8676002)(50986999); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1462; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR09MB1464278F1845979862CA9C8EF3580CY4PR09MB1464namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 14 Feb 2017 18:45:55.2346 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1462
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/YeVIHt5u3DisDWBwRCz33DmY3QI>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 14 Feb 2017 18:46:02 -0000

--_000_CY4PR09MB1464278F1845979862CA9C8EF3580CY4PR09MB1464namp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Sean and all,


Beside my suggestion at https://www.ietf.org/mail-archive/web/tls/current/m=
sg22381.html, I have a second suggestion below.


Just replacing this sentence: "

For AES-GCM, up to 2^24.5 full-size records (about 24 million) may be
   encrypted on a given connection while keeping a safety margin of
   approximately 2^-57 for Authenticated Encryption (AE) security.

" in Section 5.5 by this sentence: " For AES-GCM, up to 2^48 (partial or fu=
ll) input blocks may be encrypted with one key. For other suggestions and a=
nalysis, see the referred paper above."


Regards,

Quynh.

________________________________
From: Dang, Quynh (Fed)
Sent: Tuesday, February 14, 2017 1:20:12 PM
To: Atul Luykx; Dang, Quynh (Fed)
Cc: Markulf Kohlweiss; Antoine Delignat-Lavaud; IRTF CFRG; tls@ietf.org
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hi Atul,

From: Atul Luykx <Atul.Luykx@esat.kuleuven.be<mailto:Atul.Luykx@esat.kuleuv=
en.be>>
Date: Tuesday, February 14, 2017 at 11:17 AM
To: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>
Cc: Markulf Kohlweiss <markulf@microsoft.com<mailto:markulf@microsoft.com>>=
, Antoine Delignat-Lavaud <antdl@microsoft.com<mailto:antdl@microsoft.com>>=
, IRTF CFRG <cfrg@irtf.org<mailto:cfrg@irtf.org>>, "tls@ietf.org<mailto:tls=
@ietf.org>" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hey Quynh,

When someone says AES-128 has 128 bits of security he or she means
that 2^128 AES operations will break the cipher with probability 100%:
finding the key and the plaintext.
The claim is stronger: regardless of the number of plaintext-ciphertext
pairs available to the adversary, it will still take roughly 2^128
operations to recover the key with AES.

Actually the same claim: my claim did not require any data requirement: jus=
t one ciphertext block.

This contrasts with any mode of
operation, where adversarial success probability increases according to
the amount of data available and the computational complexity required
to perform such an attack is not the limiting factor (which is the core
of the problem we're discussing right now).

IND-CPA is important. That is why I have always been supporting it. Data is=
 equivalent to computation in the sense that data are produced by computati=
on. 2^x blocks =3D 2^x AES operations.

With 2^48 AES operations/input blocks, the actual margin is below 2^(-33). =
And, 1 in 2^32 is 1 in 4,294, 967,296.00 which is safe.

Quynh.


Regardless, correct me if I'm wrong Quynh, but you seem to have two
issues with Eric's text:
1. the data limit recommendation is too strict, and
2. it only gives a data limit in terms of full records.

For point 1 it seems like most people would rather err on the side of
caution instead of recommending that people switch when adversaries have
success probability 2^{-32}. I don't see the discussion progressing on
this point, and basically a decision needs to be made.

I don't think point 2 is a problem because it gives people a good enough
heuristic, however this can be fixed easily by minimally modifying the
original text.

Atul


On 2017-02-14 03:59, Dang, Quynh (Fed) wrote:
Hi Markulf and all,
I provided more explanation below.
  From: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>
Date: Monday, February 13, 2017 at 10:45 AM
To: Markulf Kohlweiss <markulf@microsoft.com<mailto:markulf@microsoft.com>>=
, "Paterson, Kenny"
<Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul.ac.uk>>, Sean Turner =
<sean@sn3rd.com<mailto:sean@sn3rd.com>>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com<mailto:antdl@microsoft.com=
>>, IRTF CFRG
<cfrg@irtf.org<mailto:cfrg@irtf.org>>, "<tls@ietf.org<mailto:tls@ietf.org>>=
" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs
(#765/#769)
Hi Markulf,
The probability of a bad thing to happen is actually below (or
about) 2^(-33). It practically won=92t happen when the chance is 1
in 2^32. And, to achieve that chance, you must collect 2^48 128-bit
blocks.
Regards,
Quynh.
From: TLS <tls-bounces@ietf.org<mailto:tls-bounces@ietf.org>> on behalf of =
Markulf Kohlweiss
<markulf@microsoft.com<mailto:markulf@microsoft.com>>
Date: Monday, February 13, 2017 at 10:34 AM
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rhul=
.ac.uk>>, Sean Turner
<sean@sn3rd.com<mailto:sean@sn3rd.com>>
Cc: Antoine Delignat-Lavaud <antdl@microsoft.com<mailto:antdl@microsoft.com=
>>, IRTF CFRG
<cfrg@irtf.org<mailto:cfrg@irtf.org>>, "<tls@ietf.org<mailto:tls@ietf.org>>=
" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage"
PRs (#765/#769)
Hello,
Our analysis of miTLS also supports option a)
A security level of 2^-32 seems too low from a provable security
point of view, especially for a confidentiality bound.
When someone says AES-128 has 128 bits of security he or she means
that 2^128 AES operations will break the cipher with probability 100%:
finding the key and the plaintext.  It does not mean that attackers
have only 2^(-128) chance of success. If an attacker could run 2^100
AES operations, his or her chance of success is way below 2^(-32):
this does not mean that AES has a security level of 2^(-32) or
2^(-28).
The success probability 1/2^32 means that after 2^48 AES operations,
the attacker has a success probability of 2^-32 which is practically
zero.
Also, many users don=92t know what =93confidentiality bound=94 means.
The current text Eric wrote talks about a number 2^24.5 of full-size
records. In many situations, the record sizes are not full size, but
different sizes. My latest suggestion text does not assume full size
records, it covers variable record sizes, it just counts AES-input
blocks or AES operations.
Regards,
Quynh.
We verified an implementation of the TLS 1.3 record
(https://eprint.iacr.org/2016/1178, to appear at Security & Privacy
2017) where we arrive at a combined bound for authenticity and
confidentiality that is compatible with the Iwata et al. bound.
Regards,
Markulf (for the miTLS team)
Hi,
My preference is to go with the existing text, option a).
>From the github discussion, I think option c) involves a less
conservative
security bound (success probability for IND-CPA attacker bounded by
2^{-32} instead of 2^{-60}). I can live with that, but the WG should
be
aware of the weaker security guarantees it provides.
I do not understand option b). It seems to rely on an analysis of
collisions of ciphertext blocks rather than the established security
proof
for AES-GCM.
Regards,
Kenny
On 10/02/2017 05:44, "Cfrg on behalf of Martin Thomson"
<cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com>
wrote:
On 10 February 2017 at 16:07, Sean Turner <sean at sn3rd.com> wrote:
a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]
a) I'm happy enough with the current text (I've implemented that any
it's relatively easy).
I could live with c, but I'm opposed to b. It just doesn't make
sense.
It's not obviously wrong any more, but the way it is written it is
very confusing and easily open to misinterpretation.
_______________________________________________
Cfrg mailing list
Cfrg at irtf.org
https://www.irtf.org/mailman/listinfo/cfrg
_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls
_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls


--_000_CY4PR09MB1464278F1845979862CA9C8EF3580CY4PR09MB1464namp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0);">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
<div id=3D"divtagdefaultwrapper" style=3D"font-size:12pt;color:#000000;font=
-family:Calibri,Arial,Helvetica,sans-serif;" dir=3D"ltr">
<p><span style=3D"font-family: Cambria, serif; font-size: 14pt;">Hi Sean an=
d all,</span></p>
<p><br>
</p>
<p><span style=3D"font-family: Cambria, serif; font-size: 14pt;">Beside my =
suggestion at&nbsp;</span><a href=3D"https://www.ietf.org/mail-archive/web/=
tls/current/msg22381.html" class=3D"OWAAutoLink" id=3D"LPlnk405397" preview=
removed=3D"true"><span style=3D"font-family: Cambria, serif; font-size: 14p=
t;">https://www.ietf.org/mail-archive/web/tls/current/msg22381.html</span><=
/a><span style=3D"font-family: Cambria, serif; font-size: 14pt;">,
 I have a second suggestion below.</span></p>
<p><br>
</p>
<p><span style=3D"font-family: Cambria, serif; font-size: 14pt;">Just repla=
cing this sentence: &quot; &nbsp;</span></p>
<pre class=3D"newpage" style=3D"font-size: 13.3333px; margin-top: 0px; marg=
in-bottom: 0px; break-before: page;"><span style=3D"font-family: Cambria, s=
erif; font-size: 14pt;">For AES-GCM, up to 2^24.5 full-size records (about =
24 million) may be=0A=
   encrypted on a given connection while keeping a safety margin of=0A=
   approximately 2^-57 for Authenticated Encryption (AE) security.</span></=
pre>
<font face=3D"Cambria, serif"><span style=3D"font-size: 14pt;">&quot; in Se=
ction 5.5&nbsp;by this sentence: &quot; For AES-GCM, up to 2^48 (partial or=
 full) input blocks may be encrypted with one key. For other suggestions an=
d analysis, see the
</span><span style=3D"font-size: 18.6667px;">referred</span><span style=3D"=
font-size: 14pt;">&nbsp;paper above.&quot;</span></font>
<p></p>
<p><font face=3D"Cambria, serif"><span style=3D"font-size: 14pt;"><br>
</span></font></p>
<p><font face=3D"Cambria, serif"><span style=3D"font-size: 14pt;">Regards,<=
/span></font></p>
<p><font face=3D"Cambria, serif"><span style=3D"font-size: 14pt;">Quynh.&nb=
sp;</span></font></p>
</div>
<hr style=3D"display:inline-block;width:98%" tabindex=3D"-1">
<div id=3D"divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" st=
yle=3D"font-size:11pt" color=3D"#000000"><b>From:</b> Dang, Quynh (Fed)<br>
<b>Sent:</b> Tuesday, February 14, 2017 1:20:12 PM<br>
<b>To:</b> Atul Luykx; Dang, Quynh (Fed)<br>
<b>Cc:</b> Markulf Kohlweiss; Antoine Delignat-Lavaud; IRTF CFRG; tls@ietf.=
org<br>
<b>Subject:</b> Re: [TLS] [Cfrg] Closing out tls1.3 &quot;Limits on key usa=
ge&quot; PRs (#765/#769)</font>
<div>&nbsp;</div>
</div>
<div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;">Hi Atul,<=
/div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION" style=3D"font-size: 14px; font-family: Ca=
libri, sans-serif;">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>Atul Luykx &lt;<a href=3D"mai=
lto:Atul.Luykx@esat.kuleuven.be">Atul.Luykx@esat.kuleuven.be</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Tuesday, February 14, 2017 at=
 11:17 AM<br>
<span style=3D"font-weight:bold">To: </span>'Quynh' &lt;<a href=3D"mailto:Q=
uynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>Markulf Kohlweiss &lt;<a href=
=3D"mailto:markulf@microsoft.com">markulf@microsoft.com</a>&gt;, Antoine De=
lignat-Lavaud &lt;<a href=3D"mailto:antdl@microsoft.com">antdl@microsoft.co=
m</a>&gt;, IRTF CFRG &lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>=
&gt;,
 &quot;<a href=3D"mailto:tls@ietf.org">tls@ietf.org</a>&quot; &lt;<a href=
=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>Hey Quynh,</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>When someone says AES-128 has 128 bits of security he or she means</di=
v>
<div>that 2^128 AES operations will break the cipher with probability 100%:=
</div>
<div>finding the key and the plaintext.</div>
</blockquote>
<div>The claim is stronger: regardless of the number of plaintext-ciphertex=
t </div>
<div>pairs available to the adversary, it will still take roughly 2^128 </d=
iv>
<div>operations to recover the key with AES. </div>
</div>
</div>
</blockquote>
</span>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;">Actually =
the same claim: my claim did not require any data requirement: just one cip=
hertext block.&nbsp;</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION" style=3D"font-size: 14px; font-family: Ca=
libri, sans-serif;">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>This contrasts with any mode of </div>
<div>operation, where adversarial success probability increases according t=
o </div>
<div>the amount of data available and the computational complexity required=
 </div>
<div>to perform such an attack is not the limiting factor (which is the cor=
e </div>
<div>of the problem we're discussing right now).</div>
</div>
</div>
</blockquote>
</span>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;">IND-CPA i=
s important. That is why I have always been supporting it. Data is equivale=
nt to computation in the sense that data are produced by computation. 2^x b=
locks =3D 2^x AES operations.&nbsp;</div>
<div style=3D"font-size: 14px; font-family: Calibri, sans-serif;"><br>
</div>
<div><font face=3D"Calibri,sans-serif" style=3D"font-size: 14px;">With 2^48=
 AES operations/input blocks, the actual margin is below 2^(-33). And, 1 in=
 2^32 is 1 in&nbsp;</font><font face=3D"Calibri" style=3D"font-size: 16px;"=
><span style=3D"color: rgb(34, 34, 34); orphans: 2; white-space: nowrap; wi=
dows: 2; background-color: rgb(255, 255, 255);">4,294,</span>&nbsp;<span st=
yle=3D"color: rgb(34, 34, 34); orphans: 2; white-space: nowrap; widows: 2; =
background-color: rgb(255, 255, 255);">967,296.00
 which is safe.</span></font></div>
<div><font face=3D"Calibri" style=3D"font-size: 16px;"><span style=3D"color=
: rgb(34, 34, 34); orphans: 2; white-space: nowrap; widows: 2; background-c=
olor: rgb(255, 255, 255);"><br>
</span></font></div>
<div><font face=3D"Calibri" style=3D"font-size: 16px;"><span style=3D"color=
: rgb(34, 34, 34); orphans: 2; white-space: nowrap; widows: 2; background-c=
olor: rgb(255, 255, 255);">Quynh.&nbsp;</span></font></div>
<div><font face=3D"Calibri" style=3D"font-size: 16px;"><span style=3D"color=
: rgb(34, 34, 34); orphans: 2; white-space: nowrap; widows: 2; background-c=
olor: rgb(255, 255, 255);"><br>
</span></font></div>
<span id=3D"OLK_SRC_BODY_SECTION" style=3D"font-size: 14px; font-family: Ca=
libri, sans-serif;">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div><br>
</div>
<div>Regardless, correct me if I'm wrong Quynh, but you seem to have two </=
div>
<div>issues with Eric's text:</div>
<div>1. the data limit recommendation is too strict, and</div>
<div>2. it only gives a data limit in terms of full records.</div>
<div><br>
</div>
<div>For point 1 it seems like most people would rather err on the side of =
</div>
<div>caution instead of recommending that people switch when adversaries ha=
ve </div>
<div>success probability 2^{-32}. I don't see the discussion progressing on=
 </div>
<div>this point, and basically a decision needs to be made.</div>
<div><br>
</div>
<div>I don't think point 2 is a problem because it gives people a good enou=
gh </div>
<div>heuristic, however this can be fixed easily by minimally modifying the=
 </div>
<div>original text.</div>
<div><br>
</div>
<div>Atul</div>
<div><br>
</div>
<div><br>
</div>
<div>On 2017-02-14 03:59, Dang, Quynh (Fed) wrote:</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi Markulf and all,</div>
<div></div>
<div>I provided more explanation below.</div>
<div></div>
<div>&nbsp;&nbsp;From: 'Quynh' &lt;<a href=3D"mailto:Quynh.Dang@nist.gov">Q=
uynh.Dang@nist.gov</a>&gt;</div>
<div>Date: Monday, February 13, 2017 at 10:45 AM</div>
<div>To: Markulf Kohlweiss &lt;<a href=3D"mailto:markulf@microsoft.com">mar=
kulf@microsoft.com</a>&gt;, &quot;Paterson, Kenny&quot;</div>
<div>&lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.a=
c.uk</a>&gt;, Sean Turner &lt;<a href=3D"mailto:sean@sn3rd.com">sean@sn3rd.=
com</a>&gt;</div>
<div>Cc: Antoine Delignat-Lavaud &lt;<a href=3D"mailto:antdl@microsoft.com"=
>antdl@microsoft.com</a>&gt;, IRTF CFRG</div>
<div>&lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;&lt;=
<a href=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"m=
ailto:tls@ietf.org">tls@ietf.org</a>&gt;</div>
<div>Subject: Re: [TLS] [Cfrg] Closing out tls1.3 &quot;Limits on key usage=
&quot; PRs</div>
<div>(#765/#769)</div>
<div></div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi Markulf,</div>
<div></div>
<div>The probability of a bad thing to happen is actually below (or</div>
<div>about) 2^(-33). It practically won=92t happen when the chance is 1</di=
v>
<div>in 2^32. And, to achieve that chance, you must collect 2^48 128-bit</d=
iv>
<div>blocks.</div>
<div></div>
<div>Regards,</div>
<div>Quynh.</div>
<div></div>
<div>From: TLS &lt;<a href=3D"mailto:tls-bounces@ietf.org">tls-bounces@ietf=
.org</a>&gt; on behalf of Markulf Kohlweiss</div>
<div>&lt;<a href=3D"mailto:markulf@microsoft.com">markulf@microsoft.com</a>=
&gt;</div>
<div>Date: Monday, February 13, 2017 at 10:34 AM</div>
<div>To: &quot;Paterson, Kenny&quot; &lt;<a href=3D"mailto:Kenny.Paterson@r=
hul.ac.uk">Kenny.Paterson@rhul.ac.uk</a>&gt;, Sean Turner</div>
<div>&lt;<a href=3D"mailto:sean@sn3rd.com">sean@sn3rd.com</a>&gt;</div>
<div>Cc: Antoine Delignat-Lavaud &lt;<a href=3D"mailto:antdl@microsoft.com"=
>antdl@microsoft.com</a>&gt;, IRTF CFRG</div>
<div>&lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;&lt;=
<a href=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;&quot; &lt;<a href=3D"m=
ailto:tls@ietf.org">tls@ietf.org</a>&gt;</div>
<div>Subject: Re: [TLS] [Cfrg] Closing out tls1.3 &quot;Limits on key usage=
&quot;</div>
<div>PRs (#765/#769)</div>
<div></div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hello,</div>
<div></div>
<div>Our analysis of miTLS also supports option a)</div>
<div></div>
<div>A security level of 2^-32 seems too low from a provable security</div>
<div>point of view, especially for a confidentiality bound.</div>
</blockquote>
</blockquote>
<div></div>
<div>When someone says AES-128 has 128 bits of security he or she means</di=
v>
<div>that 2^128 AES operations will break the cipher with probability 100%:=
</div>
<div>finding the key and the plaintext.&nbsp;&nbsp;It does not mean that at=
tackers</div>
<div>have only 2^(-128) chance of success. If an attacker could run 2^100</=
div>
<div>AES operations, his or her chance of success is way below 2^(-32):</di=
v>
<div>this does not mean that AES has a security level of 2^(-32) or</div>
<div>2^(-28).</div>
<div></div>
<div>The success probability 1/2^32 means that after 2^48 AES operations,</=
div>
<div>the attacker has a success probability of 2^-32 which is practically</=
div>
<div>zero.</div>
<div></div>
<div>Also, many users don=92t know what =93confidentiality bound=94 means.<=
/div>
<div></div>
<div>The current text Eric wrote talks about a number 2^24.5 of full-size</=
div>
<div>records. In many situations, the record sizes are not full size, but</=
div>
<div>different sizes. My latest suggestion text does not assume full size</=
div>
<div>records, it covers variable record sizes, it just counts AES-input</di=
v>
<div>blocks or AES operations.</div>
<div></div>
<div>Regards,</div>
<div>Quynh.</div>
<div></div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>We verified an implementation of the TLS 1.3 record</div>
<div>(<a href=3D"https://eprint.iacr.org/2016/1178">https://eprint.iacr.org=
/2016/1178</a>, to appear at Security &amp; Privacy</div>
<div>2017) where we arrive at a combined bound for authenticity and</div>
<div>confidentiality that is compatible with the Iwata et al. bound.</div>
<div></div>
<div>Regards,</div>
<div>Markulf (for the miTLS team)</div>
<div></div>
<div>Hi,</div>
<div></div>
<div>My preference is to go with the existing text, option a).</div>
<div></div>
<div>From the github discussion, I think option c) involves a less</div>
<div>conservative</div>
<div>security bound (success probability for IND-CPA attacker bounded by</d=
iv>
<div>2^{-32} instead of 2^{-60}). I can live with that, but the WG should</=
div>
<div>be</div>
<div>aware of the weaker security guarantees it provides.</div>
<div></div>
<div>I do not understand option b). It seems to rely on an analysis of</div=
>
<div>collisions of ciphertext blocks rather than the established security</=
div>
<div>proof</div>
<div>for AES-GCM.</div>
<div></div>
<div>Regards,</div>
<div></div>
<div>Kenny</div>
<div></div>
<div>On 10/02/2017 05:44, &quot;Cfrg on behalf of Martin Thomson&quot;</div=
>
<div>&lt;cfrg-bounces at irtf.org on behalf of martin.thomson at gmail.com&=
gt;</div>
<div>wrote:</div>
<div></div>
<div>On 10 February 2017 at 16:07, Sean Turner &lt;sean at sn3rd.com&gt; wr=
ote:</div>
<div></div>
<div>a) Close these two PRs and go with the existing text [0]</div>
<div>b) Adopt PR#765 [1]</div>
<div>c) Adopt PR#769 [2]</div>
<div></div>
<div>a) I'm happy enough with the current text (I've implemented that any</=
div>
<div></div>
<div>it's relatively easy).</div>
<div></div>
<div>I could live with c, but I'm opposed to b. It just doesn't make</div>
<div>sense.</div>
<div>It's not obviously wrong any more, but the way it is written it is</di=
v>
<div>very confusing and easily open to misinterpretation.</div>
<div></div>
<div>_______________________________________________</div>
<div>Cfrg mailing list</div>
<div>Cfrg at irtf.org</div>
<div><a href=3D"https://www.irtf.org/mailman/listinfo/cfrg">https://www.irt=
f.org/mailman/listinfo/cfrg</a></div>
</blockquote>
<div></div>
<div>_______________________________________________</div>
<div>TLS mailing list</div>
<div><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></div>
<div><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf=
.org/mailman/listinfo/tls</a></div>
<div>_______________________________________________</div>
<div>TLS mailing list</div>
<div><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></div>
<div><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf=
.org/mailman/listinfo/tls</a></div>
</blockquote>
<div><br>
</div>
</div>
</div>
</blockquote>
</span></div>
</body>
</html>

--_000_CY4PR09MB1464278F1845979862CA9C8EF3580CY4PR09MB1464namp_--


From nobody Tue Feb 14 11:45:41 2017
Return-Path: <ynir.ietf@gmail.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 7363412943B for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 11:45:39 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 lcvMBYtOz6Nx for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 11:45:37 -0800 (PST)
Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8CB8F1297C1 for <cfrg@irtf.org>; Tue, 14 Feb 2017 11:45:37 -0800 (PST)
Received: by mail-wm0-x241.google.com with SMTP id c85so5152750wmi.1 for <cfrg@irtf.org>; Tue, 14 Feb 2017 11:45:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=bzToNcj0dDUIpOb/RXD4K5BmSD4ioLRGrxo6Z4cPeRs=; b=PAUgx5Mu7Ah/ioHBtLDS0r/BF4bHW79s4+A8vpEWhypmPdwox32dUAQo/DOfyGRcIc us8zG2mTMj9Ryi1hnK5uH/nMiTht6DnRhs7+PqHyyYekR5TM2v8rEB17MbEcm6r0TkiF WbZgw4Dq/uJexyxx/r+QwzrNiEb2VHnauiFH4TzQrzFLeRV6B93ZhYzZvHWFmD2GVhQP LKrXGnwhv8p5wpwyVID3kfZO1P1pNbAu3kKBNjetxLMVYRAsS/ioT1ZA1UZvbGRaiIa7 Kw78V8N44KYE06eu0dC27BDx3JExXr4aG7jHGLZHsPwODsuxt6hFohGZ7vOK3rQL+mrY gFMA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=bzToNcj0dDUIpOb/RXD4K5BmSD4ioLRGrxo6Z4cPeRs=; b=OrLHcZt8FWLKO+Twi/fOD0vnoSeVZrSb8G4u7rqzqdY0BoHLK2Pf2m3D6MJ0hfg8UR u0ByM+A+Z/YZKrFzZaAUFtgKENhD6QEmRyrG5I/ZUwoALOrR5V0G71Ql/9Du3fJTSbTr XxNKKwI0zt5OO1AyMtzlge8uIy41O3HS9KUUCzo4TYU7dOqp0cSWM+PkexyrTQ/BTBkV BmcJXvs7cQS7WCztTRozYgsvJqlusUuLKLyEbkmWO3bGtAxKHl7Cc9fOm+auaEZBoKWM pzdxEIwFKfdghxHTn2+qunsd43szzEjZWShY6SYrML4oZ2cdM6fD2Kgsvv8akPd15bMY pOOg==
X-Gm-Message-State: AMke39nHfMD2VH2QiPBTTrmg84ojXwggBQj8bnN/isIZlOBEXMQqYdF2l6haDEeLGhWWqw==
X-Received: by 10.28.57.131 with SMTP id g125mr4744554wma.33.1487101536095; Tue, 14 Feb 2017 11:45:36 -0800 (PST)
Received: from [192.168.1.18] ([46.120.57.147]) by smtp.gmail.com with ESMTPSA id z67sm1963135wrb.49.2017.02.14.11.45.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 11:45:35 -0800 (PST)
From: Yoav Nir <ynir.ietf@gmail.com>
Message-Id: <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_FEA34146-C7F0-46C7-8686-9290B478C5FA"; protocol="application/pgp-signature"; micalg=pgp-sha512
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Tue, 14 Feb 2017 21:45:32 +0200
In-Reply-To: <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com>
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com>
X-Mailer: Apple Mail (2.3259)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/JAvUYYxOSIEJz_MMyvy84u7v5MY>
Cc: IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>, Sean Turner <sean@sn3rd.com>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 14 Feb 2017 19:45:39 -0000

--Apple-Mail=_FEA34146-C7F0-46C7-8686-9290B478C5FA
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_556D685C-4FDE-4DDB-957A-E64059C3A26E"


--Apple-Mail=_556D685C-4FDE-4DDB-957A-E64059C3A26E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8

Hi, Quynh

> On 14 Feb 2017, at 20:45, Dang, Quynh (Fed) <quynh.dang@nist.gov> =
wrote:
>=20
> Hi Sean and all,
>=20
> Beside my suggestion at =
https://www.ietf.org/mail-archive/web/tls/current/msg22381.html =
<https://www.ietf.org/mail-archive/web/tls/current/msg22381.html>, I =
have a second suggestion below.
>=20
> Just replacing this sentence: "
> For AES-GCM, up to 2^24.5 full-size records (about 24 million) may be
>    encrypted on a given connection while keeping a safety margin of
>    approximately 2^-57 for Authenticated Encryption (AE) security.
> " in Section 5.5 by this sentence: " For AES-GCM, up to 2^48 (partial =
or full) input blocks may be encrypted with one key. For other =
suggestions and analysis, see the referred paper above."
>=20
> Regards,
> Quynh.

I like the suggestion, but I=E2=80=99m probably missing something pretty =
basic about it.

2^24.5 full-size records is 2^24.5 records of 2^14 bytes each, or (since =
an AES block is 16 bytes or 2^4 bytes) 2^24.5 records of 2^10 blocks.

Why is that 2^48 input blocks rather than 2^34.5 input blocks?

Thanks

Yoav



--Apple-Mail=_556D685C-4FDE-4DDB-957A-E64059C3A26E
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D"">Hi, Quynh<div class=3D""><br class=3D""><div><blockquote =
type=3D"cite" class=3D""><div class=3D"">On 14 Feb 2017, at 20:45, Dang, =
Quynh (Fed) &lt;<a href=3D"mailto:quynh.dang@nist.gov" =
class=3D"">quynh.dang@nist.gov</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div =
id=3D"divtagdefaultwrapper" dir=3D"ltr" style=3D"font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; font-size: 12pt; font-family: Calibri, =
Arial, Helvetica, sans-serif;" class=3D""><div style=3D"margin-top: 0px; =
margin-bottom: 0px;" class=3D""><span style=3D"font-family: Cambria, =
serif; font-size: 14pt;" class=3D"">Hi Sean and all,</span></div><div =
style=3D"margin-top: 0px; margin-bottom: 0px;" class=3D""><br =
class=3D""></div><div style=3D"margin-top: 0px; margin-bottom: 0px;" =
class=3D""><span style=3D"font-family: Cambria, serif; font-size: 14pt;" =
class=3D"">Beside my suggestion at&nbsp;</span><a =
href=3D"https://www.ietf.org/mail-archive/web/tls/current/msg22381.html" =
class=3D"OWAAutoLink" id=3D"LPlnk405397" previewremoved=3D"true"><span =
style=3D"font-family: Cambria, serif; font-size: 14pt;" =
class=3D"">https://www.ietf.org/mail-archive/web/tls/current/msg22381.html=
</span></a><span style=3D"font-family: Cambria, serif; font-size: 14pt;" =
class=3D"">, I have a second suggestion below.</span></div><div =
style=3D"margin-top: 0px; margin-bottom: 0px;" class=3D""><br =
class=3D""></div><div style=3D"margin-top: 0px; margin-bottom: 0px;" =
class=3D""><span style=3D"font-family: Cambria, serif; font-size: 14pt;" =
class=3D"">Just replacing this sentence: " &nbsp;</span></div><pre =
class=3D"newpage" style=3D"font-size: 13.3333px; margin-top: 0px; =
margin-bottom: 0px; break-before: page;"><span style=3D"font-family: =
Cambria, serif; font-size: 14pt;" class=3D"">For AES-GCM, up to 2^24.5 =
full-size records (about 24 million) may be
   encrypted on a given connection while keeping a safety margin of
   approximately 2^-57 for Authenticated Encryption (AE) =
security.</span></pre><font face=3D"Cambria, serif" class=3D""><span =
style=3D"font-size: 14pt;" class=3D"">" in Section 5.5&nbsp;by this =
sentence: " For AES-GCM, up to 2^48 (partial or full) input blocks may =
be encrypted with one key. For other suggestions and analysis, see =
the<span class=3D"Apple-converted-space">&nbsp;</span></span><span =
style=3D"font-size: 18.6667px;" class=3D"">referred</span><span =
style=3D"font-size: 14pt;" class=3D"">&nbsp;paper =
above."</span></font><p style=3D"margin-top: 0px; margin-bottom: 0px;" =
class=3D""></p><div style=3D"margin-top: 0px; margin-bottom: 0px;" =
class=3D""><font face=3D"Cambria, serif" class=3D""><span =
style=3D"font-size: 14pt;" class=3D""><br =
class=3D""></span></font></div><div style=3D"margin-top: 0px; =
margin-bottom: 0px;" class=3D""><font face=3D"Cambria, serif" =
class=3D""><span style=3D"font-size: 14pt;" =
class=3D"">Regards,</span></font></div><div style=3D"margin-top: 0px; =
margin-bottom: 0px;" class=3D""><font face=3D"Cambria, serif" =
class=3D""><span style=3D"font-size: 14pt;" =
class=3D"">Quynh.&nbsp;</span></font></div></div></div></blockquote><br =
class=3D""></div><div>I like the suggestion, but I=E2=80=99m probably =
missing something pretty basic about it.</div><div><br =
class=3D""></div><div>2^24.5 full-size records is 2^24.5 records of 2^14 =
bytes each, or (since an AES block is 16 bytes or 2^4 bytes) 2^24.5 =
records of 2^10 blocks.</div><div><br class=3D""></div><div>Why is that =
2^48 input blocks rather than 2^34.5 input blocks?</div><div><br =
class=3D""></div><div>Thanks</div><div><br =
class=3D""></div><div>Yoav</div><div><br class=3D""></div><br =
class=3D""></div></body></html>=

--Apple-Mail=_556D685C-4FDE-4DDB-957A-E64059C3A26E--

--Apple-Mail=_FEA34146-C7F0-46C7-8686-9290B478C5FA
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJYo15cAAoJELhJCxUKWMyZZLkH/jEz1cx2yXnvvPPB66DUdovW
02tezRPm1rzV7fqXRwuOUCWrBMTn9KicpH0e++7aVM4ZRIqNodD7SVjgxZomb05p
O+XILGnwL0ESlz3F9kpvGFpoZm1v6xnzM/yvWTmrHxL46gXgsHc8rA+uZprlrnF/
akCjnf+4hNu6C6g1oVWBHA/xb+hTluESnVc/LC4E1ZDU/eFJKLJMhAxoeiycr3Nf
TYjiXAPAXL5OM3EfKvfep5qMpsiJvdpJf5Tefi0taQoRgOI41lAk7gOz4oWYbfxh
pADuSEq+4HWL+g3+iQCQF7SPDr07JABSfnAzibCIDOB5zArRs26iEUJR+0s3j60=
=WfZ7
-----END PGP SIGNATURE-----

--Apple-Mail=_FEA34146-C7F0-46C7-8686-9290B478C5FA--


From nobody Tue Feb 14 13:52:17 2017
Return-Path: <atul.luykx@esat.kuleuven.be>
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 A0AD61298D0 for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 13:52:11 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.201
X-Spam-Level: 
X-Spam-Status: No, score=-4.201 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001] autolearn=unavailable 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 6AJxotZGKkhU for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 13:52:08 -0800 (PST)
Received: from cavuit02.kulnet.kuleuven.be (rhcavuit02.kulnet.kuleuven.be [IPv6:2a02:2c40:0:c0::25:130]) (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 8BE4012994F for <cfrg@irtf.org>; Tue, 14 Feb 2017 13:52:07 -0800 (PST)
X-KULeuven-Envelope-From: atul.luykx@esat.kuleuven.be
X-KULeuven-Scanned: Found to be clean
X-KULeuven-ID: D7BC51280A8.A9609
X-KULeuven-Information: Katholieke Universiteit Leuven
Received: from icts-p-smtps-2.cc.kuleuven.be (icts-p-smtps-2e.kulnet.kuleuven.be [134.58.240.34]) by cavuit02.kulnet.kuleuven.be (Postfix) with ESMTP id D7BC51280A8 for <cfrg@irtf.org>; Tue, 14 Feb 2017 22:52:04 +0100 (CET)
Received: from hydrogen.esat.kuleuven.be (hydrogen.esat.kuleuven.be [134.58.56.153]) by icts-p-smtps-2.cc.kuleuven.be (Postfix) with ESMTP id D3CC520098; Tue, 14 Feb 2017 22:52:04 +0100 (CET)
Received: from cobalt.esat.kuleuven.be (cobalt.esat.kuleuven.be [134.58.56.187]) by hydrogen.esat.kuleuven.be (Postfix) with ESMTP id CFB5D2002C; Tue, 14 Feb 2017 22:52:04 +0100 (CET)
Received: from webmail.esat.kuleuven.be (localhost [127.0.0.1]) by cobalt.esat.kuleuven.be (Postfix) with ESMTP id C7C5940; Tue, 14 Feb 2017 22:52:04 +0100 (CET)
Received: from c-73-71-218-252.hsd1.ca.comcast.net ([73.71.218.252]) by webmail.esat.kuleuven.be with HTTP (HTTP/1.1 POST); Tue, 14 Feb 2017 22:52:04 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Date: Tue, 14 Feb 2017 13:52:04 -0800
X-Kuleuven: This mail passed the K.U.Leuven mailcluster
From: Atul Luykx <Atul.Luykx@esat.kuleuven.be>
To: Yoav Nir <ynir.ietf@gmail.com>
In-Reply-To: <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com>
Message-ID: <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be>
X-Sender: aluykx@esat.kuleuven.be
User-Agent: ESAT webmail service, powered by Roundcube
X-Virus-Scanned: clamav-milter 0.99.2 at cobalt
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/RMa_SWq-HQVtObCrSz0lMRDLtTg>
Cc: IRTF CFRG <cfrg@irtf.org>, tls@ietf.org
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 14 Feb 2017 21:52:11 -0000

> Why is that 2^48 input blocks rather than 2^34.5 input blocks?
Because he wants to lower the security level. The original text 
recommends switching at 2^{34.5} input blocks, corresponding to a 
success probability of 2^{-60}, whereas his text recommends switching at 
2^{48} blocks, corresponding to a success probability of 2^{-32}.

Atul

On 2017-02-14 11:45, Yoav Nir wrote:
> Hi, Quynh
> 
>> On 14 Feb 2017, at 20:45, Dang, Quynh (Fed) <quynh.dang@nist.gov>
>> wrote:
>> 
>> Hi Sean and all,
>> 
>> Beside my suggestion at
>> https://www.ietf.org/mail-archive/web/tls/current/msg22381.html [1],
>> I have a second suggestion below.
>> 
>> Just replacing this sentence: "
>> 
>> For AES-GCM, up to 2^24.5 full-size records (about 24 million) may
>> be
>> encrypted on a given connection while keeping a safety margin of
>> approximately 2^-57 for Authenticated Encryption (AE) security.
>> " in Section 5.5 by this sentence: " For AES-GCM, up to 2^48
>> (partial or full) input blocks may be encrypted with one key. For
>> other suggestions and analysis, see the referred paper above."
>> 
>> Regards,
>> Quynh.
> 
> I like the suggestion, but Iâ€™m probably missing something pretty
> basic about it.
> 
> 2^24.5 full-size records is 2^24.5 records of 2^14 bytes each, or
> (since an AES block is 16 bytes or 2^4 bytes) 2^24.5 records of 2^10
> blocks.
> 
> Why is that 2^48 input blocks rather than 2^34.5 input blocks?
> 
> Thanks
> 
> Yoav
> 
> 
> 
> Links:
> ------
> [1] https://www.ietf.org/mail-archive/web/tls/current/msg22381.html
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls


From nobody Tue Feb 14 14:00:09 2017
Return-Path: <ynir.ietf@gmail.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 574A8129585 for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 14:00:04 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 U3vb6Jq1OE3w for <cfrg@ietfa.amsl.com>; Tue, 14 Feb 2017 14:00:02 -0800 (PST)
Received: from mail-wm0-x22b.google.com (mail-wm0-x22b.google.com [IPv6:2a00:1450:400c:c09::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 055D9129865 for <cfrg@irtf.org>; Tue, 14 Feb 2017 14:00:02 -0800 (PST)
Received: by mail-wm0-x22b.google.com with SMTP id v77so27699791wmv.0 for <cfrg@irtf.org>; Tue, 14 Feb 2017 14:00:01 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=7ma3ik0oPFELXGGpiTmYxBaOOf+IiXMYsUqCuEXlkNA=; b=pNLjuboxgjU1ydHBdNK7yTZ5FuTAp6I/XxR5k+PsNJaKD7aziOWL3/2nUgzoohk601 RdddLS3bD9j69S/PJ9vXhmLxRodgQP4rOD7NwxEdyF1997FToWqMVXOdQs3P6OCkzcqi 1LXPhW+xGUJuiXUXa6liIyUF1a9YHgWhTohObXXpwXv7xAgqfyrbJSNqekUzCDGQOY/z eDSt3x8cDQ+3s3ojNih/E10eHgj+N3vtHP3d1rK3/HZF3iOXnG9Iz6EZLlj8xPkJW8WI 2E22i73+YkDdLXYWdzHZR110T91GZzpTdgYYoMDydcQvmLnPZNiPasTjx5TqVNx7Yehn 5/Dw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=7ma3ik0oPFELXGGpiTmYxBaOOf+IiXMYsUqCuEXlkNA=; b=JUK7zm7ANWXddCLFiQy5zkJm+KcFljBVtXiwC4facoQmXv3sCa/K6PzYQQfwVr4Lb+ 9lvJnULk3kriXf32cIoi0/gGLAR8aR9BKMI8iMo1IHHeqXWFfvEiuS2qg/c7I81s2bWB BZPaGzpiPjkPbbPJ8mt+NR5zgkdPjeaTASgfaDNpXOqVfzYWOeHEdgHBwA9B6GcQiOV2 UXzu2icTg7vivLLwEGxiXD2MJyhXCje1X2/E4ZJuhGp4T9FgsTCFIRec26hSOvCun4Ic uMzidIXaoywysZoVZIoO8gbHCn1auC6qWXKvMxtthEItde4ukWcCtItxGc1xRoF0JPF0 EOJw==
X-Gm-Message-State: AMke39mJZDcN2EoaWT0SPV8ieefphhjk6pzoYGggS1bZ1vxkPVsF58rrunp5OzL4xnX66Q==
X-Received: by 10.28.185.193 with SMTP id j184mr5383249wmf.86.1487109600526; Tue, 14 Feb 2017 14:00:00 -0800 (PST)
Received: from [192.168.1.18] ([46.120.57.147]) by smtp.gmail.com with ESMTPSA id l130sm5075646wmf.0.2017.02.14.13.59.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Feb 2017 13:59:59 -0800 (PST)
From: Yoav Nir <ynir.ietf@gmail.com>
Message-Id: <2B24FC67-764A-47D1-8D24-09B652DF3611@gmail.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_165036B6-63A5-4ACD-8DAB-277AC84BA695"; protocol="application/pgp-signature"; micalg=pgp-sha512
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Tue, 14 Feb 2017 23:59:57 +0200
In-Reply-To: <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be>
To: Atul Luykx <Atul.Luykx@esat.kuleuven.be>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be>
X-Mailer: Apple Mail (2.3259)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/aWxwrJxROovT70U6UNMbp3oaSyk>
Cc: IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org list" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 14 Feb 2017 22:00:04 -0000

--Apple-Mail=_165036B6-63A5-4ACD-8DAB-277AC84BA695
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_31819017-70B9-411A-9293-0193CD3E77BF"


--Apple-Mail=_31819017-70B9-411A-9293-0193CD3E77BF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On 14 Feb 2017, at 23:52, Atul Luykx <Atul.Luykx@esat.kuleuven.be> =
wrote:
>=20
>> Why is that 2^48 input blocks rather than 2^34.5 input blocks?
> Because he wants to lower the security level. The original text =
recommends switching at 2^{34.5} input blocks, corresponding to a =
success probability of 2^{-60}, whereas his text recommends switching at =
2^{48} blocks, corresponding to a success probability of 2^{-32}.

OK, missed that.

So I=E2=80=99m in favor of switching the phrasing to be about blocks =
rather than maximum-sized records, but not in favor of lowering the =
security level.

Yoav


--Apple-Mail=_31819017-70B9-411A-9293-0193CD3E77BF
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=utf-8

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dutf-8"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><blockquote type=3D"cite" class=3D""><div =
class=3D"">On 14 Feb 2017, at 23:52, Atul Luykx &lt;<a =
href=3D"mailto:Atul.Luykx@esat.kuleuven.be" =
class=3D"">Atul.Luykx@esat.kuleuven.be</a>&gt; wrote:</div><br =
class=3D"Apple-interchange-newline"><div class=3D""><div style=3D"" =
class=3D""><blockquote type=3D"cite" style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-size-adjust: auto; =
-webkit-text-stroke-width: 0px;" class=3D"">Why is that 2^48 input =
blocks rather than 2^34.5 input blocks?<br class=3D""></blockquote><span =
style=3D"font-family: Helvetica; font-size: 12px; font-style: normal; =
font-variant-caps: normal; font-weight: normal; letter-spacing: normal; =
orphans: auto; text-align: start; text-indent: 0px; text-transform: =
none; white-space: normal; widows: auto; word-spacing: 0px; =
-webkit-text-stroke-width: 0px; float: none; display: inline =
!important;" class=3D"">Because he wants to lower the security level. =
The original text recommends switching at 2^{34.5} input blocks, =
corresponding to a success probability of 2^{-60}, whereas his text =
recommends switching at 2^{48} blocks, corresponding to a success =
probability of 2^{-32}.</span><br style=3D"font-family: Helvetica; =
font-size: 12px; font-style: normal; font-variant-caps: normal; =
font-weight: normal; letter-spacing: normal; orphans: auto; text-align: =
start; text-indent: 0px; text-transform: none; white-space: normal; =
widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" =
class=3D""></div></div></blockquote></div><br class=3D""><div =
class=3D"">OK, missed that.&nbsp;</div><div class=3D""><br =
class=3D""></div><div class=3D"">So I=E2=80=99m in favor of switching =
the phrasing to be about blocks rather than maximum-sized records, but =
not in favor of lowering the security level.</div><div class=3D""><br =
class=3D""></div><div class=3D"">Yoav</div><div class=3D""><br =
class=3D""></div></body></html>=

--Apple-Mail=_31819017-70B9-411A-9293-0193CD3E77BF--

--Apple-Mail=_165036B6-63A5-4ACD-8DAB-277AC84BA695
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJYo33dAAoJELhJCxUKWMyZ7+0H/1iVd+9jaw+NwrdstvmvlrRb
QDbFBa6OaTfcjCyR4OQ2fkegshilI0KHSzo/RxgQXWft3nThOk/PPIMPiY+LO+LQ
iejfqGC2DHAQ6c3dm6LyJA4CLQe5K7aC56aVZkaZRUGUxlUec4tdGa2d0VwS4ftV
lB8Q42TUHFBjTz/DYvdR0MtRQkZmq5O7T0EOQG3+P2BqoYx3wRgO+OHg1o2sea4M
o1L0rTASAdINHlBOwaFjPN8Yy6ydNzhLbBr7e9jIGmPZbMF5aIhFOEVGgci1rsjm
+lwoB8oMY0uMmAwAv//7m3zNGo0cjlRXueD0Kpm40pbAByMkYMiiPaymloNKBOo=
=w/QY
-----END PGP SIGNATURE-----

--Apple-Mail=_165036B6-63A5-4ACD-8DAB-277AC84BA695--


From nobody Wed Feb 15 04:12:02 2017
Return-Path: <quynh.dang@nist.gov>
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 A4F25129495 for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 04:11:57 -0800 (PST)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 O1OpBe0Nvv24 for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 04:11:56 -0800 (PST)
Received: from gcc01-dm2-obe.outbound.protection.outlook.com (mail-dm2gcc01on0092.outbound.protection.outlook.com [23.103.201.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1E87912955B for <cfrg@irtf.org>; Wed, 15 Feb 2017 04:11:54 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=D7veV6v2X2BlPwUiF362sH96WxmtHtgP7BmaOQF5x2Q=; b=MAV86Yvb00JvCPifQJMFThANJpz2fYenPu9ThyC9dn840Bm3gc5/elvSU3a74aZMIdP87Pc3jywhff3DAG/8zkrSrGIQr/bobocf/kQh8F7i1ToZBRJwvPyaTYA7fewYxHVFPgMhP2fr3IUf0eYdw1RC4UFoyZ/9F7X/Qetkxuk=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1461.namprd09.prod.outlook.com (10.173.191.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Wed, 15 Feb 2017 12:11:51 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.030; Wed, 15 Feb 2017 12:11:51 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Atul Luykx <Atul.Luykx@esat.kuleuven.be>, Yoav Nir <ynir.ietf@gmail.com>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHShwyaNRpm4jTNwkW4fHeK7pLqGKFpp3IA
Date: Wed, 15 Feb 2017 12:11:50 +0000
Message-ID: <D4C9AB9C.302D5%qdang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be>
In-Reply-To: <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.105.150]
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1461; 7:3ioq2qNaXfhh2ZevHNxSFqw9v9soSxAmz8pjc9gy3+GlJVyUT+yfQfwpZ+hlq619joha/ZUxajhjRRC/b1Lr39KD7j7wUjW/LMlIVaLRgRSp/9HC7RdZgl5ZUYuFWJm0fN31mVrg297GfIuc3+K3jNzmUmanmeSpNpwdW9FxUWT3rYqd8QoajH+ORTbn+50UUXmZm70yRY+IobR7szBSQ53XutO+gSyRCzvQGQogiMzWr7F2cqDRGVzDX99gWDlKxf3Jk97ZDE5hv9ZyTCzf/CAb9f8JTe/wgqHcB00IdGZxk1fZPhQjQpDy2Ylt6m+U70oT3ivKUWFrMG6c1PNXFwgF23cDrXH/w49QMrnNtvOJhytMHVJKdTD6hK3oUWD3h+PKxcafroI06d0rvwapK2lrCs1FyTNOXDqvB670lr/aU4Hj37uewfifuyPiBJhwi87Ys1mLGp9bnf22jdcoRsFwzYGEYu6Ov1lYh5wiR724jsovabZRVx7huhm9DoEIlOl5rsSmzBc1mGHPxYsWIw==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10019020)(7916002)(39850400002)(39410400002)(39840400002)(39860400002)(39450400003)(377454003)(24454002)(199003)(189002)(377424004)(229853002)(99286003)(54906002)(50986999)(76176999)(101416001)(93886004)(102836003)(54356999)(36756003)(53936002)(3846002)(389900002)(2906002)(6116002)(86362001)(3280700002)(106116001)(81156014)(81166006)(92566002)(8676002)(106356001)(6246003)(606005)(54896002)(6512007)(6306002)(3660700001)(122556002)(105586002)(189998001)(236005)(4001350100001)(66066001)(25786008)(8936002)(4326007)(6436002)(77096006)(83506001)(2950100002)(68736007)(6506006)(7736002)(5660300001)(6486002)(53546003)(2900100001)(39060400002)(97736004)(38730400002)(7906003); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1461; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  A:1; MX:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 8c7ee9a8-5fff-4500-262d-08d4559bd2c4
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1461; 
x-microsoft-antispam-prvs: <CY4PR09MB146140E2EB3F44A797378E1FF35B0@CY4PR09MB1461.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123560025)(20161123558025)(20161123555025)(20161123564025)(6072148); SRVR:CY4PR09MB1461; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1461; 
x-forefront-prvs: 021975AE46
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4C9AB9C302D5qdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2017 12:11:50.8492 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1461
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/R-l2Jqr15nzauTHez-gDxlw7Yxk>
Cc: IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Wed, 15 Feb 2017 12:11:57 -0000

--_000_D4C9AB9C302D5qdangnistgov_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Atul,

I hope you had a happy Valentine!

From: Atul Luykx <Atul.Luykx@esat.kuleuven.be<mailto:Atul.Luykx@esat.kuleuv=
en.be>>
Date: Tuesday, February 14, 2017 at 4:52 PM
To: Yoav Nir <ynir.ietf@gmail.com<mailto:ynir.ietf@gmail.com>>
Cc: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>, IRTF CFRG <c=
frg@irtf.org<mailto:cfrg@irtf.org>>, "tls@ietf.org<mailto:tls@ietf.org>" <t=
ls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Why is that 2^48 input blocks rather than 2^34.5 input blocks?
Because he wants to lower the security level.

I respectfully disagree. 2^-32, 2^-33, 2^-57, 2^-60, 2^-112 are practically=
 the same: they are practically zero.  And, 2^-32 is an absolute chance in =
this case meaning that all attackers can=92t improve their chance: no matte=
r how much computational power the attacker has.

I don=92t understand why the number 2^-60 is your special chosen number for=
 this ? In your =93theory=94, 2^-112 would be in =93higher=94 security than=
 2^-60.

Quynh.


The original text
recommends switching at 2^{34.5} input blocks, corresponding to a
success probability of 2^{-60}, whereas his text recommends switching at
2^{48} blocks, corresponding to a success probability of 2^{-32}.

Atul

On 2017-02-14 11:45, Yoav Nir wrote:
Hi, Quynh
On 14 Feb 2017, at 20:45, Dang, Quynh (Fed) <quynh.dang@nist.gov<mailto:quy=
nh.dang@nist.gov>>
wrote:
Hi Sean and all,
Beside my suggestion at
https://www.ietf.org/mail-archive/web/tls/current/msg22381.html [1],
I have a second suggestion below.
Just replacing this sentence: "
For AES-GCM, up to 2^24.5 full-size records (about 24 million) may
be
encrypted on a given connection while keeping a safety margin of
approximately 2^-57 for Authenticated Encryption (AE) security.
" in Section 5.5 by this sentence: " For AES-GCM, up to 2^48
(partial or full) input blocks may be encrypted with one key. For
other suggestions and analysis, see the referred paper above."
Regards,
Quynh.
I like the suggestion, but I=92m probably missing something pretty
basic about it.
2^24.5 full-size records is 2^24.5 records of 2^14 bytes each, or
(since an AES block is 16 bytes or 2^4 bytes) 2^24.5 records of 2^10
blocks.
Why is that 2^48 input blocks rather than 2^34.5 input blocks?
Thanks
Yoav
Links:
------
[1] https://www.ietf.org/mail-archive/web/tls/current/msg22381.html
_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls


--_000_D4C9AB9C302D5qdangnistgov_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <D17A21DC36C92145801DEDEDC2BF5991@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>Hi Atul,</div>
<div><br>
</div>
<div>I hope you had a happy Valentine!&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>Atul Luykx &lt;<a href=3D"mai=
lto:Atul.Luykx@esat.kuleuven.be">Atul.Luykx@esat.kuleuven.be</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Tuesday, February 14, 2017 at=
 4:52 PM<br>
<span style=3D"font-weight:bold">To: </span>Yoav Nir &lt;<a href=3D"mailto:=
ynir.ietf@gmail.com">ynir.ietf@gmail.com</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>'Quynh' &lt;<a href=3D"mailto:Q=
uynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;, IRTF CFRG &lt;<a href=3D"m=
ailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;<a href=3D"mailto:tls@iet=
f.org">tls@ietf.org</a>&quot; &lt;<a href=3D"mailto:tls@ietf.org">tls@ietf.=
org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Why is that 2^48 input blocks rather than 2^34.5 input blocks?</div>
</blockquote>
<div>Because he wants to lower the security level. </div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>I respectfully disagree. 2^-32, 2^-33, 2^-57, 2^-60, 2^-112 are practi=
cally the same: they are practically zero. &nbsp;And, 2^-32 is an absolute =
chance in this case meaning that all attackers can=92t improve their chance=
: no matter how much computational power
 the attacker has. &nbsp;&nbsp;</div>
<div><br>
</div>
<div>I don=92t understand why the number 2^-60 is your special chosen numbe=
r for this ? In your =93theory=94, 2^-112 would be in =93higher=94 security=
 than 2^-60.&nbsp;</div>
<div><br>
</div>
<div>Quynh. &nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>The original text </div>
<div>recommends switching at 2^{34.5} input blocks, corresponding to a </di=
v>
<div>success probability of 2^{-60}, whereas his text recommends switching =
at </div>
<div>2^{48} blocks, corresponding to a success probability of 2^{-32}.</div=
>
<div><br>
</div>
<div>Atul</div>
<div><br>
</div>
<div>On 2017-02-14 11:45, Yoav Nir wrote:</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi, Quynh</div>
<div></div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>On 14 Feb 2017, at 20:45, Dang, Quynh (Fed) &lt;<a href=3D"mailto:quyn=
h.dang@nist.gov">quynh.dang@nist.gov</a>&gt;</div>
<div>wrote:</div>
<div></div>
<div>Hi Sean and all,</div>
<div></div>
<div>Beside my suggestion at</div>
<div><a href=3D"https://www.ietf.org/mail-archive/web/tls/current/msg22381.=
html">https://www.ietf.org/mail-archive/web/tls/current/msg22381.html</a> [=
1],</div>
<div>I have a second suggestion below.</div>
<div></div>
<div>Just replacing this sentence: &quot;</div>
<div></div>
<div>For AES-GCM, up to 2^24.5 full-size records (about 24 million) may</di=
v>
<div>be</div>
<div>encrypted on a given connection while keeping a safety margin of</div>
<div>approximately 2^-57 for Authenticated Encryption (AE) security.</div>
<div>&quot; in Section 5.5 by this sentence: &quot; For AES-GCM, up to 2^48=
</div>
<div>(partial or full) input blocks may be encrypted with one key. For</div=
>
<div>other suggestions and analysis, see the referred paper above.&quot;</d=
iv>
<div></div>
<div>Regards,</div>
<div>Quynh.</div>
</blockquote>
<div></div>
<div>I like the suggestion, but I=92m probably missing something pretty</di=
v>
<div>basic about it.</div>
<div></div>
<div>2^24.5 full-size records is 2^24.5 records of 2^14 bytes each, or</div=
>
<div>(since an AES block is 16 bytes or 2^4 bytes) 2^24.5 records of 2^10</=
div>
<div>blocks.</div>
<div></div>
<div>Why is that 2^48 input blocks rather than 2^34.5 input blocks?</div>
<div></div>
<div>Thanks</div>
<div></div>
<div>Yoav</div>
<div></div>
<div></div>
<div></div>
<div>Links:</div>
<div>------</div>
<div>[1] <a href=3D"https://www.ietf.org/mail-archive/web/tls/current/msg22=
381.html">
https://www.ietf.org/mail-archive/web/tls/current/msg22381.html</a></div>
<div>_______________________________________________</div>
<div>TLS mailing list</div>
<div><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></div>
<div><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf=
.org/mailman/listinfo/tls</a></div>
</blockquote>
<div><br>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4C9AB9C302D5qdangnistgov_--


From nobody Wed Feb 15 05:46:39 2017
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 A76631295E8 for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 05:46:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.786
X-Spam-Level: 
X-Spam-Status: No, score=-3.786 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.887, SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 L5sNvG2DcRzR for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 05:46:31 -0800 (PST)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20054.outbound.protection.outlook.com [40.107.2.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 218D4127A90 for <cfrg@irtf.org>; Wed, 15 Feb 2017 05:46:31 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=zTl04xdrJ75e17uqBfz2L0OHNo/+X6LxAHPLUiveiaw=; b=zd0dEnLK0DOkYQw8OWrhyI6fh4QFNAog+OGa7tETBqd7OTqJJKc1KA3JwLefRQiFMTz0Jkaf+B2tevNYNUlc1UsCq1gZAzQt3WM9ePxA0ZCoPp91gtQvGYQG3yf/ZapJSJV4gMXoKhp1nVh6VID7y3WxqrwjkXRImI5Ve4OhFMM=
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com (10.168.2.156) by AM4PR0301MB1908.eurprd03.prod.outlook.com (10.168.3.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Wed, 15 Feb 2017 13:46:28 +0000
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) by AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) with mapi id 15.01.0888.030; Wed, 15 Feb 2017 13:46:28 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHShwykYuvgBCblgkOlDzVRxLEvWqFp+0YAgAAacIA=
Date: Wed, 15 Feb 2017 13:46:28 +0000
Message-ID: <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be>, <D4C9AB9C.302D5%qdang@nist.gov>
In-Reply-To: <D4C9AB9C.302D5%qdang@nist.gov>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [219.59.14.82]
x-microsoft-exchange-diagnostics: 1; AM4PR0301MB1908; 7:UjeNrd4xMu3XNr7jy+YyHoJM9Imrl6CNIvn3/nNbJRoRcG/Uj80nnHTU/U3d0tNEi8cYlTQ3DFpcHaNGXyn5JTGDwHu9vbWYDmdGPAJRdADLmyCylP/TTv9JZE5H3erIecEK8aTpyxPVu+m6lDqKVLGYpqqEw6V2z+9p7OF2iUk/EWqyRFjO4Sp5H0z9xuK4wlK4QAl+ivZ/mei/hztpa8rg+rXFFyxwvi4PYMsHWo4PA9bC7iPrEihV1/6bwlvkJNKS4wKpMnKJU29V4dWajhSwP5V1iJC5XlaPhzFTKK/QhOgS0CNYONDjoWAQukhfdEU1P4M9jSSjHJ2ShJ1sGiOTFNGiDW8ESgLgC2OGAX4c00qOHSyybVTKnxP9Difh0mhvhFng8R5Eoh/IPDsO1HdeJMQSvwbUW7sur/bOO/13bt/pOfDTzNXVs0Keg/n753QijrANf5y3kZHiTijfmdsr3ZrXw9dk4meDtsXlDjp+7WiIhe3VOFoCk0zsb4KCDnucJfhDEmRFMUOT2CkN4w==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(7916002)(39450400003)(377454003)(189002)(24454002)(377424004)(199003)(6246003)(54356999)(7736002)(7906003)(106356001)(106116001)(105586002)(97736004)(101416001)(2906002)(50986999)(189998001)(74482002)(66066001)(4326007)(93886004)(33656002)(76176999)(3846002)(6116002)(102836003)(6916009)(81166006)(36756003)(2900100001)(53546003)(8936002)(8676002)(92566002)(229853002)(81156014)(38730400002)(236005)(82746002)(68736007)(83716003)(5660300001)(39060400002)(122556002)(53936002)(86362001)(54906002)(25786008)(77096006)(6512007)(2950100002)(42882006)(6436002)(8656002)(6306002)(3280700002)(6506006)(606005)(6486002)(110136004)(54896002)(389900002)(99286003)(3660700001)(104396002)(19625805005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB1908; H:AM4PR0301MB1906.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 1c2bb23d-854c-4996-932f-08d455a90aae
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR0301MB1908; 
x-microsoft-antispam-prvs: <AM4PR0301MB1908E828C6D4E687F97F0E35BC5B0@AM4PR0301MB1908.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123558025)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148); SRVR:AM4PR0301MB1908; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0301MB1908; 
x-forefront-prvs: 021975AE46
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CDDC781227AF4566AE336DF829FEB81Erhulacuk_"
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2017 13:46:28.2359 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB1908
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/IT1IQ_nIy2IMOhYGJbMhWzEFzck>
Cc: Atul Luykx <Atul.Luykx@esat.kuleuven.be>, IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Wed, 15 Feb 2017 13:46:35 -0000

--_000_CDDC781227AF4566AE336DF829FEB81Erhulacuk_
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64

SGkgUXV5bmgsDQoNCkknbSBtZWFudCB0byBiZSBvbiB2YWNhdGlvbiwgYnV0IEknbSBmaW5kaW5n
IHRoaXMgb24tZ29pbmcgZGlzY3Vzc2lvbiBmYXNjaW5hdGluZywgc28gSSdtIGNoaXBwaW5nIGlu
IGFnYWluLg0KDQpPbiAxNSBGZWIgMjAxNywgYXQgMjE6MTIsIERhbmcsIFF1eW5oIChGZWQpIDxx
dXluaC5kYW5nQG5pc3QuZ292PG1haWx0bzpxdXluaC5kYW5nQG5pc3QuZ292Pj4gd3JvdGU6DQoN
CkhpIEF0dWwsDQoNCkkgaG9wZSB5b3UgaGFkIGEgaGFwcHkgVmFsZW50aW5lIQ0KDQpGcm9tOiBB
dHVsIEx1eWt4IDxBdHVsLkx1eWt4QGVzYXQua3VsZXV2ZW4uYmU8bWFpbHRvOkF0dWwuTHV5a3hA
ZXNhdC5rdWxldXZlbi5iZT4+DQpEYXRlOiBUdWVzZGF5LCBGZWJydWFyeSAxNCwgMjAxNyBhdCA0
OjUyIFBNDQpUbzogWW9hdiBOaXIgPHluaXIuaWV0ZkBnbWFpbC5jb208bWFpbHRvOnluaXIuaWV0
ZkBnbWFpbC5jb20+Pg0KQ2M6ICdRdXluaCcgPFF1eW5oLkRhbmdAbmlzdC5nb3Y8bWFpbHRvOlF1
eW5oLkRhbmdAbmlzdC5nb3Y+PiwgSVJURiBDRlJHIDxjZnJnQGlydGYub3JnPG1haWx0bzpjZnJn
QGlydGYub3JnPj4sICJ0bHNAaWV0Zi5vcmc8bWFpbHRvOnRsc0BpZXRmLm9yZz4iIDx0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fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18NClRMUyBtYWls
aW5nIGxpc3QNClRMU0BpZXRmLm9yZzxtYWlsdG86VExTQGlldGYub3JnPg0KaHR0cHM6Ly93d3cu
aWV0Zi5vcmcvbWFpbG1hbi9saXN0aW5mby90bHMNCg0KX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX19fX18NClRMUyBtYWlsaW5nIGxpc3QNClRMU0BpZXRmLm9yZzxt
YWlsdG86VExTQGlldGYub3JnPg0KaHR0cHM6Ly93d3cuaWV0Zi5vcmcvbWFpbG1hbi9saXN0aW5m
by90bHMNCg==

--_000_CDDC781227AF4566AE336DF829FEB81Erhulacuk_
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: base64

PGh0bWw+DQo8aGVhZD4NCjxtZXRhIGh0dHAtZXF1aXY9IkNvbnRlbnQtVHlwZSIgY29udGVudD0i
dGV4dC9odG1sOyBjaGFyc2V0PXV0Zi04Ij4NCjwvaGVhZD4NCjxib2R5IGRpcj0iYXV0byI+DQo8
ZGl2PkhpIFF1eW5oLDxicj4NCjxicj4NCjwvZGl2Pg0KPGRpdiBpZD0iQXBwbGVNYWlsU2lnbmF0
dXJlIj5JJ20gbWVhbnQgdG8gYmUgb24gdmFjYXRpb24sIGJ1dCBJJ20gZmluZGluZyB0aGlzIG9u
LWdvaW5nIGRpc2N1c3Npb24gZmFzY2luYXRpbmcsIHNvIEknbSBjaGlwcGluZyBpbiBhZ2Fpbi4m
bmJzcDs8L2Rpdj4NCjxkaXY+PGJyPg0KT24gMTUgRmViIDIwMTcsIGF0IDIxOjEyLCBEYW5nLCBR
dXluaCAoRmVkKSAmbHQ7PGEgaHJlZj0ibWFpbHRvOnF1eW5oLmRhbmdAbmlzdC5nb3YiPnF1eW5o
LmRhbmdAbmlzdC5nb3Y8L2E+Jmd0OyB3cm90ZTo8YnI+DQo8YnI+DQo8L2Rpdj4NCjxibG9ja3F1
b3RlIHR5cGU9ImNpdG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XY+DQo8L2Jsb2NrcXVvdGU+DQo8L3NwYW4+PC9kaXY+DQo8L2Jsb2NrcXVvdGU+DQo8YmxvY2tx
dW90ZSB0eXBlPSJjaXRlIj4NCjxkaXY+PHNwYW4+X19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX19fX19fX188L3NwYW4+PGJyPg0KPHNwYW4+VExTIG1haWxpbmcgbGlzdDwv
c3Bhbj48YnI+DQo8c3Bhbj48YSBocmVmPSJtYWlsdG86VExTQGlldGYub3JnIj5UTFNAaWV0Zi5v
cmc8L2E+PC9zcGFuPjxicj4NCjxzcGFuPjxhIGhyZWY9Imh0dHBzOi8vd3d3LmlldGYub3JnL21h
aWxtYW4vbGlzdGluZm8vdGxzIj5odHRwczovL3d3dy5pZXRmLm9yZy9tYWlsbWFuL2xpc3RpbmZv
L3RsczwvYT48L3NwYW4+PGJyPg0KPC9kaXY+DQo8L2Jsb2NrcXVvdGU+DQo8L2Rpdj4NCjwvZGl2
Pg0KPC9ib2R5Pg0KPC9odG1sPg0K

--_000_CDDC781227AF4566AE336DF829FEB81Erhulacuk_--


From nobody Wed Feb 15 09:05:18 2017
Return-Path: <martin.thomson@gmail.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 3099112955D for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:05:17 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 qJ8HdlZTEGdO for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:05:15 -0800 (PST)
Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9B79F12966D for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:05:15 -0800 (PST)
Received: by mail-qk0-x231.google.com with SMTP id u25so157475068qki.2 for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:05:15 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=rPQLotHZVefq48IRqlZOrechzCecrcx+PJ+tH863kbE=; b=oLnwMPD6nMW1EX1vJ19xhi+46DT2g6dYbtn7Psc/wBfeha/b7UV7OkT38b0CXdnj7k OIGW5sFJRFucBPGrBXVOH+bCUK0iCyfWK60PlevhjbeQ8n2uZZp1QEX9F2tkgfbFln6m 6VVSOExDqRbaEEo9EkLDKhTscDmlvQ2CuAGT9e85A5BmY/+9cCLdcV3b3rVpvtMTfTx+ CPzRzncQmsrWd4itMs4RNxIUETIesbPVZU1wE6ZuuPsfbySyCWtuohYFhKtUShQ7Gwax 7/MnxQj4Gr17pJg86CS1HhsP4BDZOoio8V5d8r0OAsWYbmjC6DkS5HOTfJPR+eujDVD5 hIiQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=rPQLotHZVefq48IRqlZOrechzCecrcx+PJ+tH863kbE=; b=kqgge3qFdAa8yjcygCAR4ZYJd3rLYxsZ+fQgepgiqNWc//VqqEpL72TErcQAr4Tt6m O33mp5LwpkBafMV//wMeR4NcndNjela9r80uo3Ndv0y9qT+8P97Ir30fqo6MZGB2IV1c c0Z3MYcKGpQZY0+UCk/YS8eINFP3bAYn71ceDjmCE8Oo9Y8JICiwbsWGEcPz+1Xxop1B ju+/bLcO+4pt60w5YTtdJCQ+09jnsSLc2j2hBe/BhBnop03KGBPG2IB7IxDs3AAYwxpU yFqN2kjgJ75BWtqVNYSx9bYSNd9b1jQah9Y4ux4J9HK8WUO2JVacmodZZsRXDpEwdXBT 7BzA==
X-Gm-Message-State: AMke39nTNrLvKaKJawbyoDscYLCBH5Rs1+0s72lLkBm3+mfynmNMd83cWJ6GBgL0gIA3BsBryHklRdPH4Utjkw==
X-Received: by 10.233.235.66 with SMTP id b63mr36433927qkg.144.1487178314706;  Wed, 15 Feb 2017 09:05:14 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Wed, 15 Feb 2017 09:05:14 -0800 (PST)
In-Reply-To: <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be> <D4C9AB9C.302D5%qdang@nist.gov> <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 16 Feb 2017 04:05:14 +1100
Message-ID: <CABkgnnX78HnPnudEYOciS-VgJ4opYQX56OQ1R4yYvqxOQkO7Bg@mail.gmail.com>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/qX5Nzlk6bZzjPwku4JUECbzuCuc>
Cc: IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Wed, 15 Feb 2017 17:05:17 -0000

Kenny's response here is quite informative and clarifies this somewhat.

2^24.5 (the current text) is still a big number.  Though it might seem
a little small, I see no practical reason to change it.  In the most
perverse case, that means 520MB of one octet records (23MB of actual
data) before an update is forced.  It's hard to get excited about that
as a practical limitation.

Frankly, I'm more concerned that this isn't small enough and that it
could it be practical to deploy an implementation that don't support
KeyUpdate.  That would cause a real interop problem.

On 16 February 2017 at 00:46, Paterson, Kenny <Kenny.Paterson@rhul.ac.uk> w=
rote:
> Hi Quynh,
>
> I'm meant to be on vacation, but I'm finding this on-going discussion
> fascinating, so I'm chipping in again.
>
> On 15 Feb 2017, at 21:12, Dang, Quynh (Fed) <quynh.dang@nist.gov> wrote:
>
> Hi Atul,
>
> I hope you had a happy Valentine!
>
> From: Atul Luykx <Atul.Luykx@esat.kuleuven.be>
> Date: Tuesday, February 14, 2017 at 4:52 PM
> To: Yoav Nir <ynir.ietf@gmail.com>
> Cc: 'Quynh' <Quynh.Dang@nist.gov>, IRTF CFRG <cfrg@irtf.org>, "tls@ietf.o=
rg"
> <tls@ietf.org>
> Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs
> (#765/#769)
>
> Why is that 2^48 input blocks rather than 2^34.5 input blocks?
>
> Because he wants to lower the security level.
>
>
> I respectfully disagree. 2^-32, 2^-33, 2^-57, 2^-60, 2^-112 are practical=
ly
> the same: they are practically zero.
>
>
> I'm not clear what you mean by "practically" here. They're clearly not th=
e
> same as real numbers. And if we are being conservative about security, th=
en
> the extremes in your list are a long way apart.
>
> And, 2^-32 is an absolute chance in this case meaning that all attackers
> can=E2=80=99t improve their chance: no matter how much computational powe=
r the
> attacker has.
>
>
> A sufficiently powerful adversary could carry out an exhaustive key searc=
h
> for GCM's underlying AES key. So I'm not sure what you're claiming here w=
hen
> you speak of "absolute chance".
>
>
> I don=E2=80=99t understand why the number 2^-60 is your special chosen nu=
mber for
> this ?
>
>
> This is a bit subtle, but I'll try to explain in simple terms.
>
> We can conveniently prove a bound of about this size (actually 2^-57) for
> INT-CTXT for a wide range of parameters covering both TLS and DTLS (where
> many verification failures may be permitted). Then, since we're ultimatel=
y
> interested in AE security, we would like to (roughly) match this for IND-=
CPA
> security, to get as good a bound as we can for AE security (the security
> bounds for the two notions sum to give an AE security bound - see page 2 =
of
> the "AE bounds" note).
>
> In view of the INT-CTXT bound there's no point pushing the IND-CPA bound
> much lower than 2^-60 if the ultimate target is AE security. It just hurt=
s
> the data limits more without significantly improving AE security.
>
> Finally, 2^-60 is not *our* special chosen number. We wrote a note that
> contained a table of values, and it's worth noting that we did not make a
> specific recommendation in our note for which row of the table to select.
>
> (Naturally, though, we'd like security to be as high as possible without
> making rekeying a frequent event. It's a continuing surprise to me that y=
ou
> are pushing for an option that actually reduces security when achieving
> higher security does not seem to cause any problems for implementors.)
>
> In your =E2=80=9Ctheory=E2=80=9D, 2^-112 would be in =E2=80=9Chigher=E2=
=80=9D security than 2^-60.
>
>
> It certainly would, if it were achievable (which it is not for GCM withou=
t
> putting some quite extreme limits on data per key).
>
> Cheers,
>
> Kenny
>
> Quynh.
>
>
> The original text
> recommends switching at 2^{34.5} input blocks, corresponding to a
> success probability of 2^{-60}, whereas his text recommends switching at
> 2^{48} blocks, corresponding to a success probability of 2^{-32}.
>
> Atul
>
> On 2017-02-14 11:45, Yoav Nir wrote:
>
> Hi, Quynh
>
> On 14 Feb 2017, at 20:45, Dang, Quynh (Fed) <quynh.dang@nist.gov>
> wrote:
> Hi Sean and all,
> Beside my suggestion at
> https://www.ietf.org/mail-archive/web/tls/current/msg22381.html [1],
> I have a second suggestion below.
> Just replacing this sentence: "
> For AES-GCM, up to 2^24.5 full-size records (about 24 million) may
> be
> encrypted on a given connection while keeping a safety margin of
> approximately 2^-57 for Authenticated Encryption (AE) security.
> " in Section 5.5 by this sentence: " For AES-GCM, up to 2^48
> (partial or full) input blocks may be encrypted with one key. For
> other suggestions and analysis, see the referred paper above."
> Regards,
> Quynh.
>
> I like the suggestion, but I=E2=80=99m probably missing something pretty
> basic about it.
> 2^24.5 full-size records is 2^24.5 records of 2^14 bytes each, or
> (since an AES block is 16 bytes or 2^4 bytes) 2^24.5 records of 2^10
> blocks.
> Why is that 2^48 input blocks rather than 2^34.5 input blocks?
> Thanks
> Yoav
> Links:
> ------
> [1] https://www.ietf.org/mail-archive/web/tls/current/msg22381.html
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>
>
> _______________________________________________
> TLS mailing list
> TLS@ietf.org
> https://www.ietf.org/mailman/listinfo/tls
>


From nobody Wed Feb 15 09:20:47 2017
Return-Path: <ynir.ietf@gmail.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 3B59D129627 for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:20:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level: 
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 uipWXP1DlelQ for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:20:45 -0800 (PST)
Received: from mail-wr0-x242.google.com (mail-wr0-x242.google.com [IPv6:2a00:1450:400c:c0c::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C2B01129572 for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:20:44 -0800 (PST)
Received: by mail-wr0-x242.google.com with SMTP id c4so6515973wrd.1 for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:20:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=ypd6iXJmbyw8ITdPYpT0JWT9mqayqe0kORvWYMLP3ms=; b=pasFOIXVkGX9epodVrdYvEMvw/cGAS5+znIaSzon8ktL033nQNkpHyrjjfDjszc21M WSroOU2Nxbiin91jL8MiXC8CXfYKUHGC9lAMTj3VqIlBGBkE33IQEaRzEOSt1gVus9FB 5sHwYbX3HB0zSCzZ8HMTMNJKzhsx1Iz6LKNdbiXyOfKH5JqRKDzmDNtS0WG5Baillc3C QoyI30tnPNeizAFk57ctAd7DQxmys/wrI5kNYmAABcBvpYUFCf0X5UOOwj4+2jqcn/OM LlysuABeJujgnCP2kJO1k8RM81WLTTss4cTry/5BvLuAmQzHKgepFkMLA9QNydoLgspM ++0g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=ypd6iXJmbyw8ITdPYpT0JWT9mqayqe0kORvWYMLP3ms=; b=enKd7enKa2Wseko/Zzg6Qcrlx4td9v9DKiAgP1J0PE9DmiUWnp1qqo0xc1OsctJkFZ UMswtaPZvIcCtfIpI1ldJeCjIBqbE4sNnhf/JTYXyqUp/5OK00F8peJpat1ipNDY/De/ 5z9moauL5rfG2yAduW8RYRzG5XSwHawAow/fqqT9rhpi2GzYwnc2rHSjx9LtMBSIjPnB G7VrduSBinpTY8KpP+9SfdiKnZ1qx0309F8NgmeeyND0DMe4Nz5ebaOOPrKNcjgyJaHe ONPIJ5YoQjLEr3JjsrJaWDJ2BJWOtj2NnmVDiE6QWhVTMo6kAeJQCN8WI3sUCWybyovI BlgA==
X-Gm-Message-State: AMke39kAGn/utYUWLv1z4YHKpzohIFQCjJ7f2zqy9OfametpEqXfXy+uNRpMa7EiCNHu3A==
X-Received: by 10.223.152.2 with SMTP id v2mr30972319wrb.109.1487179243317; Wed, 15 Feb 2017 09:20:43 -0800 (PST)
Received: from [192.168.137.219] ([176.13.243.119]) by smtp.gmail.com with ESMTPSA id s18sm171632wmb.18.2017.02.15.09.20.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 09:20:42 -0800 (PST)
From: Yoav Nir <ynir.ietf@gmail.com>
Message-Id: <859B3094-61BF-40B3-9473-4220E830D70F@gmail.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_ED3FB0F0-8D1A-4099-AD1B-C0C107D677C6"; protocol="application/pgp-signature"; micalg=pgp-sha512
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Wed, 15 Feb 2017 19:20:39 +0200
In-Reply-To: <CABkgnnX78HnPnudEYOciS-VgJ4opYQX56OQ1R4yYvqxOQkO7Bg@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be> <D4C9AB9C.302D5%qdang@nist.gov> <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk> <CABkgnnX78HnPnudEYOciS-VgJ4opYQX56OQ1R4yYvqxOQkO7Bg@mail.gmail.com>
X-Mailer: Apple Mail (2.3259)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/U0E2jr_V7uNScvBl6FBCosyAHnY>
Cc: IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Wed, 15 Feb 2017 17:20:46 -0000

--Apple-Mail=_ED3FB0F0-8D1A-4099-AD1B-C0C107D677C6
Content-Type: multipart/alternative;
	boundary="Apple-Mail=_0F3C71CD-16F1-497A-B712-69DBA5B1F748"


--Apple-Mail=_0F3C71CD-16F1-497A-B712-69DBA5B1F748
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


On 15 Feb 2017, at 19:05, Martin Thomson <martin.thomson@gmail.com> =
wrote:
>=20
> Frankly, I'm more concerned that this isn't small enough and that it
> could it be practical to deploy an implementation that don't support
> KeyUpdate.  That would cause a real interop problem.

Maybe we should resurrect [1] and add 3DES support so as to grease =
KeyUpdate.

No, not really, but TLS is not just the web, and there are connections =
that last for a long time and transfer large amounts of data. Think =
datacenter synchronization. At packet-sized records 24 million records =
amounts to 36 GB. That is considerably larger than a 4 GB software =
update I downloaded over HTTPS a few years ago, but not out of the =
ballpark.

Yoav

[1] https://tools.ietf.org/html/draft-mcgrew-aead-aes-cbc-hmac-sha2-05 =
<https://tools.ietf.org/html/draft-mcgrew-aead-aes-cbc-hmac-sha2-05>


--Apple-Mail=_0F3C71CD-16F1-497A-B712-69DBA5B1F748
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=us-ascii

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dus-ascii"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" =
class=3D""><br class=3D""><div><div class=3D"">On 15 Feb 2017, at 19:05, =
Martin Thomson &lt;<a href=3D"mailto:martin.thomson@gmail.com" =
class=3D"">martin.thomson@gmail.com</a>&gt; wrote:</div><blockquote =
type=3D"cite" class=3D""><br class=3D""><div class=3D""><div =
class=3D"">Frankly, I'm more concerned that this isn't small enough and =
that it<br class=3D"">could it be practical to deploy an implementation =
that don't support<br class=3D"">KeyUpdate. &nbsp;That would cause a =
real interop problem.<br class=3D""></div></div></blockquote></div><br =
class=3D""><div class=3D"">Maybe we should resurrect [1] and add 3DES =
support so as to grease KeyUpdate.</div><div class=3D""><br =
class=3D""></div><div class=3D"">No, not really, but TLS is not just the =
web, and there are connections that last for a long time and transfer =
large amounts of data. Think datacenter synchronization. At packet-sized =
records 24 million records amounts to 36 GB. That is considerably larger =
than a 4 GB software update I downloaded over HTTPS a few years ago, but =
not out of the ballpark.</div><div class=3D""><br class=3D""></div><div =
class=3D"">Yoav</div><div class=3D""><br class=3D""></div><div =
class=3D"">[1]&nbsp;<a =
href=3D"https://tools.ietf.org/html/draft-mcgrew-aead-aes-cbc-hmac-sha2-05=
" =
class=3D"">https://tools.ietf.org/html/draft-mcgrew-aead-aes-cbc-hmac-sha2=
-05</a></div><div class=3D""><br class=3D""></div></body></html>=

--Apple-Mail=_0F3C71CD-16F1-497A-B712-69DBA5B1F748--

--Apple-Mail=_ED3FB0F0-8D1A-4099-AD1B-C0C107D677C6
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJYpI3oAAoJELhJCxUKWMyZxCoH/i78Njd11PRpuJ7mYbuDY1TH
mnRUTGoxtXDl6WpZNIxBhXyTewrH6HMEUlc7E6EESLwF2YN0uAPAnZZRlEqgjA8V
rI1sZ8R6zJhIIg2Zhp1gmEbQTH6DhVsA+FLkEddKtqVK9k1Htac72saurbK1kqzo
fg529uv2+/WxxENbnqzDFi6KSOjVxaFERjuR8pNWBMbkuFVWJcdeRQIo6+hH7xqn
GoqEV8hGeBLwlWMq0epSrr/QxZzDGIkj6lxbjMeugYb2dQ7fl0YaRWAc85HVf+DL
JvEHwCR6VfRbK0V2ApSREJMuC/qDQW1ZWGxkZjDWljQ1zp/0/rIZqnkXVhCQ+RY=
=Eibu
-----END PGP SIGNATURE-----

--Apple-Mail=_ED3FB0F0-8D1A-4099-AD1B-C0C107D677C6--


From nobody Wed Feb 15 09:25:39 2017
Return-Path: <martin.thomson@gmail.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 2F188129674 for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:25:38 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 dofT82zCRcja for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:25:37 -0800 (PST)
Received: from mail-qt0-x229.google.com (mail-qt0-x229.google.com [IPv6:2607:f8b0:400d:c0d::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 27F6B12964C for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:25:37 -0800 (PST)
Received: by mail-qt0-x229.google.com with SMTP id k15so143442490qtg.3 for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:25:37 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=AK113fekdUpSZpTf7ils2iO0GpV9Ztdr0+lCD+1QXq0=; b=DTtlvJwRiIvFFuSpI2eLMzO8SWX1LDecUp09RNz+QzcQcZnWWTXLEEIyhYCS4sDAZ/ EJvbtrU+4ugn38BeDbpCKNosI5pv+6h+MI9go5gFi3gkAjdLQZDTjf3voy4cSp1wlqtE Lt3S1GH/7pUpLU8Y7tP+eDODvG+dZB86NIQgMTtMAJvXJBzHZ8h5HA/P42CM6vYW80vv 3TVY+l9NMmIUFHI74JXJq5Gh+35e/8ifEN+Go46PXPCEQJqJbHiXXdrxtSjyyeLYk0f9 a/6umb6p6fTksybphjV6jpT9NWfULcoAIfLS89Dy6rkvL3zJTPiksngcn43ek5fQeRtz cQrg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=AK113fekdUpSZpTf7ils2iO0GpV9Ztdr0+lCD+1QXq0=; b=JJx9veDJwJLLw6WFGyyKDXtyN7Kf6WVVOnMjQcKMIGO4VcB8iIWrWwsBwS3Yanpo9y 1gCly7bKg91CUnF15i2iNhMlNGIgrobbjtB0URPbjCaAT6qTc/V19aqT0KPsr+/fiQ9a RGrDc9AjjxvJ9tRhTGC+4+eIFzTssS1XMmZXC4aOsJOU2qTi4zA8XNY0PLICRab/0F9t qVkeH7ClATjpDx7BbvaAV0rXgWVMHWhnAuo+i3NgFrMfWZsvNmCSR9tTfaT3lZAcMD/v wYAvvw8cieDhtS5ev3CZv2yOyeVKxYMb3mjvYm3WPRFsqLpATyrPiXx/JMPzTUNsqP8R qX9w==
X-Gm-Message-State: AMke39n57Fz/QIIioFEAL09N/Ix27jq7uC4zBshwjmIENgaYpE/XdT8nP98qNmjekMnWLpXNdLrQWZ+jKyjwnA==
X-Received: by 10.200.55.112 with SMTP id p45mr36746074qtb.278.1487179536228;  Wed, 15 Feb 2017 09:25:36 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Wed, 15 Feb 2017 09:25:35 -0800 (PST)
In-Reply-To: <859B3094-61BF-40B3-9473-4220E830D70F@gmail.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be> <D4C9AB9C.302D5%qdang@nist.gov> <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk> <CABkgnnX78HnPnudEYOciS-VgJ4opYQX56OQ1R4yYvqxOQkO7Bg@mail.gmail.com> <859B3094-61BF-40B3-9473-4220E830D70F@gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 16 Feb 2017 04:25:35 +1100
Message-ID: <CABkgnnURRPNEGEFKJvBJ=of=pqSD6CLJ+M3CB5KepEQA38XeHQ@mail.gmail.com>
To: Yoav Nir <ynir.ietf@gmail.com>
Content-Type: text/plain; charset=UTF-8
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/tvMJl-sYMDkQ4ua5vln-ynnC9GM>
Cc: IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Wed, 15 Feb 2017 17:25:38 -0000

On 16 February 2017 at 04:20, Yoav Nir <ynir.ietf@gmail.com> wrote:
> No, not really, but TLS is not just the web, and there are connections that
> last for a long time and transfer large amounts of data. Think datacenter
> synchronization. At packet-sized records 24 million records amounts to 36
> GB. That is considerably larger than a 4 GB software update I downloaded
> over HTTPS a few years ago, but not out of the ballpark.

I realize that's going to require updates pretty often (once you open
up the CWND), but I don't think that it is frequent enough to be a
concern.

I well know that HTTP gets used at these volumes more often than
people realize.  I'd rather recommend ChaCha for those niche uses
though if the rate was sufficiently high.


From nobody Wed Feb 15 09:30:17 2017
Return-Path: <ynir.ietf@gmail.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 DF44A129572 for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:30:10 -0800 (PST)
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, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 TgnoTBQFN3od for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:30:09 -0800 (PST)
Received: from mail-wr0-x244.google.com (mail-wr0-x244.google.com [IPv6:2a00:1450:400c:c0c::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2E0DE1293DC for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:30:09 -0800 (PST)
Received: by mail-wr0-x244.google.com with SMTP id q39so1391171wrb.2 for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:30:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=+P9AJ22m0W1uR0IeGX8lhwirkFyNvSm4ddY0ivyy1EE=; b=l2G2/eWiTmKtTmyxMJSTgK9UaOIK9so4V60VJ3ZOpTEc3AcnpdRXaS50KcxbDxYcGC qv7br8TfEkdxbnIeyI2kLOclKMQSn24igR3IZGxSDiumkoFdyUwpRV4vO+na7+81lZX3 hD4dW5iVqSvoMHchS9QAgoce5GQ2Ds5EK+N80A+Q72tH5xaC7kuPTyPJvVAoV5G8WRzA vVqLw9DQsV63yRrscmU6+gG1eTh1sXdLrEQ7oBgPWMl9EuVPj5KaAsPki+SxrkztY4/U JKzftGXBCVfFNBDGhOs9Q7G/pTDzwOFpwXz88chAj6uVkmBlVrkiVQLtwOatYJLrE7pm 8//w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=+P9AJ22m0W1uR0IeGX8lhwirkFyNvSm4ddY0ivyy1EE=; b=Dm2tsaICyzfnLM69+xLJQ0UskznAd1VC8oB/lAC7ERvtENHk82RDzogkt7qibKM61t lcSpIYAgwQ/lBrtMNuQ8f7W33TWPAdS9374mxLsQGBlFGUWVBmnnQv8n5E3p7pETRdhx 0+y4XkumTVXTSo4ZiwYm8bWi/HzH7uenonwWQg7fqltfaQc6P25L3NCNsrnRw2z01pQ7 baWm2/s+R03ipQg6FfauGXO+MfXlgcpSYcWM3D7hIi/y7CgCjPm70mm421hBI/Iz/nRF JlskFM+7HbGTS8G0AEltdAwcxhZko1MRWLpzQxq0PBI84wEtFXguDkMn4v7qIRAcFymt CJQw==
X-Gm-Message-State: AMke39nzHb3tR1NnDom1aoTbEYONri9J57jgBR82AiNmyhejCA8uDBglJ1qaQpNSd6wJpw==
X-Received: by 10.223.161.130 with SMTP id u2mr35286995wru.127.1487179807685;  Wed, 15 Feb 2017 09:30:07 -0800 (PST)
Received: from [192.168.137.219] ([176.13.243.119]) by smtp.gmail.com with ESMTPSA id i73sm212628wmd.11.2017.02.15.09.30.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 09:30:06 -0800 (PST)
From: Yoav Nir <ynir.ietf@gmail.com>
Message-Id: <4639F8A9-1DD7-48E5-ABE4-2658311E0C33@gmail.com>
Content-Type: multipart/signed; boundary="Apple-Mail=_89B8EC13-4F33-4FF1-AD79-19F8A4074C04"; protocol="application/pgp-signature"; micalg=pgp-sha512
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Wed, 15 Feb 2017 19:30:04 +0200
In-Reply-To: <CABkgnnURRPNEGEFKJvBJ=of=pqSD6CLJ+M3CB5KepEQA38XeHQ@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be> <D4C9AB9C.302D5%qdang@nist.gov> <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk> <CABkgnnX78HnPnudEYOciS-VgJ4opYQX56OQ1R4yYvqxOQkO7Bg@mail.gmail.com> <859B3094-61BF-40B3-9473-4220E830D70F@gmail.com> <CABkgnnURRPNEGEFKJvBJ=of=pqSD6CLJ+M3CB5KepEQA38XeHQ@mail.gmail.com>
X-Mailer: Apple Mail (2.3259)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/zXYbO5UgTiyy_ct67HLc5nPSO9M>
Cc: IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Wed, 15 Feb 2017 17:30:11 -0000

--Apple-Mail=_89B8EC13-4F33-4FF1-AD79-19F8A4074C04
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8


> On 15 Feb 2017, at 19:25, Martin Thomson <martin.thomson@gmail.com> =
wrote:
>=20
> On 16 February 2017 at 04:20, Yoav Nir <ynir.ietf@gmail.com> wrote:
>> No, not really, but TLS is not just the web, and there are =
connections that
>> last for a long time and transfer large amounts of data. Think =
datacenter
>> synchronization. At packet-sized records 24 million records amounts =
to 36
>> GB. That is considerably larger than a 4 GB software update I =
downloaded
>> over HTTPS a few years ago, but not out of the ballpark.
>=20
> I realize that's going to require updates pretty often (once you open
> up the CWND), but I don't think that it is frequent enough to be a
> concern.
>=20
> I well know that HTTP gets used at these volumes more often than
> people realize.  I'd rather recommend ChaCha for those niche uses
> though if the rate was sufficiently high.

And now I=E2=80=99ve lost you. A moment ago I thought you were concerned =
that people would fail to implement KeyUpdate. Are you now suggesting =
that it be removed entirely from TLS 1.3?

There=E2=80=99s no getting around the fact that AES-GCM is faster on =
certain processors than ChaCha, and speed is likely to be a major =
concern for exactly the same systems that use the high data volumes.

Yoav



--Apple-Mail=_89B8EC13-4F33-4FF1-AD79-19F8A4074C04
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----

iQEcBAEBCgAGBQJYpJAcAAoJELhJCxUKWMyZFHMH/jaqnZ0ip7jimuowadDp4sEU
STdxpj3GcmISV/+f+J1Aeod/ZSa4WniM+R+liPsONEVQOOkbBI/aCqb5HnuyDskn
R3old6vEGfbzk5JWAEB9WtCQWVpOeuruJgAMpvI+32HyX6j7nDxzpEqtvKMWff+V
d97+o0hvW3jI+9dPmOkVN/FXfw2Eh/2qx4aqyotbw11iZxTaFvSAIgOGiI3DsF8Z
ULq5B4laFejs454CukmctJ/TShWqHUSDJTnft5l8AcdDSskwqIkxzy3o5k8sytzx
q4I/CXHkeVgG+M4otbM+uBnps4fvhAyqRrXS5HtBAfyLPQXpQIjG+vOvNCmZIGs=
=amz4
-----END PGP SIGNATURE-----

--Apple-Mail=_89B8EC13-4F33-4FF1-AD79-19F8A4074C04--


From nobody Wed Feb 15 09:33:36 2017
Return-Path: <martin.thomson@gmail.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 78ADE1296B4 for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:33:35 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 tf8C1fnYNEqw for <cfrg@ietfa.amsl.com>; Wed, 15 Feb 2017 09:33:22 -0800 (PST)
Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 82DC21296A9 for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:33:22 -0800 (PST)
Received: by mail-qk0-x231.google.com with SMTP id p22so66592076qka.0 for <cfrg@irtf.org>; Wed, 15 Feb 2017 09:33:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=zJYzbrH0hTyIR14j/7bll3X852dqxW5Den39cRhYLCo=; b=svnN8FTt0+W3K2etYF3e1STN5Ceh2NBGhu32C2nJvG3K0LFdaQFp/2Hfe2ZuOfvPjP lHuzgcTciQADC4xbCk26BAq6ye7pFoEaNDPIcHxUDGVPMmGi60jW9mcO1HNCJotCQf6h 0AoFW/awysYdlubSC2mLDJNaTwL+/zFjJy6QiMjxscchziokl9CQR6eQwLI6xABRklpj sQ69qfB2YpA9pSsf2hWptfACIuhgGlysO6Vp36ymg5NlPbQPVS6SQ981o6j51fs9CD7W FDo/U16Y3Y1LeScgOHZDgh9f6QlKK26Jn+WaQL6RfF6GO1SzotEUR4sERjc9aIcpc+7o hg2w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=zJYzbrH0hTyIR14j/7bll3X852dqxW5Den39cRhYLCo=; b=aplOJwQwI3IJZDS64wcI6FkFnRf6KJq8equz72hckTFPxKDS6vUJh/2SEpsS6l8qPz WEEIEfGQRmtIVkgW7VeuO/8eD+egPW14fv17jOe0dQnWJ/6zq1OwVvKfkwxwwVnyz8p6 jaCHusD5ztHFMRf3E8fjgy5+rRlX2BnLtNMoyraBUKWfyKc0am9wqd6iNdwrDS+bVZIO DSbByb23nW6cCjvRozp/O0TNcqL6qbIVgTFNzAhdrcMecMC9ld/07M9IWvG7UWH+5Qv5 MyhBu0QORZJ+8t/OKpNMCkyKQHwEreznXUkCbrTHmbi/3hIB/od6xsIYRSnuw6+VOWYL 9jjQ==
X-Gm-Message-State: AMke39m1KtCIdk1GrOKGMgQ8nB64+iump9Kp70iPey57W1q6mKo4Lc9N760JQgjwGXeFBPWSne+QTt1Eq628RA==
X-Received: by 10.233.235.66 with SMTP id b63mr36582482qkg.144.1487180001787;  Wed, 15 Feb 2017 09:33:21 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Wed, 15 Feb 2017 09:33:21 -0800 (PST)
In-Reply-To: <4639F8A9-1DD7-48E5-ABE4-2658311E0C33@gmail.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be> <D4C9AB9C.302D5%qdang@nist.gov> <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk> <CABkgnnX78HnPnudEYOciS-VgJ4opYQX56OQ1R4yYvqxOQkO7Bg@mail.gmail.com> <859B3094-61BF-40B3-9473-4220E830D70F@gmail.com> <CABkgnnURRPNEGEFKJvBJ=of=pqSD6CLJ+M3CB5KepEQA38XeHQ@mail.gmail.com> <4639F8A9-1DD7-48E5-ABE4-2658311E0C33@gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Thu, 16 Feb 2017 04:33:21 +1100
Message-ID: <CABkgnnU0FzaeRy3wXzerYL8EdzWJsSmo7Wh+ce3PmDtDYUfzww@mail.gmail.com>
To: Yoav Nir <ynir.ietf@gmail.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/uqQVGY_EqcI9tjYwmxqexQ41dYA>
Cc: IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Wed, 15 Feb 2017 17:33:35 -0000

On 16 February 2017 at 04:30, Yoav Nir <ynir.ietf@gmail.com> wrote:
> And now I=E2=80=99ve lost you. A moment ago I thought you were concerned =
that people would fail to implement KeyUpdate. Are you now suggesting that =
it be removed entirely from TLS 1.3?


No.  My point was that if GCM requires more updates than you can
handle (because you are running well in excess of 1Tbps perhaps, I
don't know, my crystal ball isn't that good), then use ChaCha where
you don't need to update so often.  Obviously there is a tradeoff
there given the relative availability of hardware support, which you
likely need at those rates, but again the crystal ball is imperfect in
telling us how that story plays out.


From nobody Thu Feb 16 04:23:13 2017
Return-Path: <quynh.dang@nist.gov>
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 040AA129AC7 for <cfrg@ietfa.amsl.com>; Thu, 16 Feb 2017 04:23:12 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 yBFwM1ygYYaB for <cfrg@ietfa.amsl.com>; Thu, 16 Feb 2017 04:23:08 -0800 (PST)
Received: from gcc01-dm2-obe.outbound.protection.outlook.com (mail-dm2gcc01on0091.outbound.protection.outlook.com [23.103.201.91]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7AC67129AC5 for <cfrg@irtf.org>; Thu, 16 Feb 2017 04:23:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Mn427C0mM0Y1SKWnGL0lLQfr4uMnjO2JxwenELlWOjg=; b=dT3KPENs+l9JSnAPpaPIba6ZVlO11b53psU6lxpHwY1zShArPJLv8kRmSmeDgMmFd+qPf3aj9xjwL0C2tLk5w4+3zxnPWRD2MN9kObo5zqyKZr0lDkBIzzqHBumwg9p4LeK2VZ+R4Hr9SODIhilxXe/y5gDsx9kHoiRGdL1AT3s=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1463.namprd09.prod.outlook.com (10.173.191.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.888.16; Thu, 16 Feb 2017 12:23:06 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0888.034; Thu, 16 Feb 2017 12:23:05 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>, "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
Thread-Topic: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
Thread-Index: AQHShwyaNRpm4jTNwkW4fHeK7pLqGKFpp3IAgABuRACAASc0AA==
Date: Thu, 16 Feb 2017 12:23:05 +0000
Message-ID: <D4CAF736.3040C%qdang@nist.gov>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be> <D4C9AB9C.302D5%qdang@nist.gov> <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk>
In-Reply-To: <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=quynh.dang@nist.gov; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.219.235]
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1463; 7:PNqhs7Oz7bssgbJDv8FflZ5IyyGxCn67rxc6v4oUTehPAkehfhi/AjVPmyirnpII+pE3aw8ahmf9hiSGbjWMdiznZxrje37UOGw7iu/O5QYqpQ28eWj9nZkxpB1XMuHc6PfaEcUQtRSpcB/YJJSpqneKnZjv+8siaLzuJzISCtH1LqQ+6wNL7ucVmmyEiRv2rRG3cWFYDtZif0By6jDyyMr31OwS6OQ5FLuUV3T8BSRX+z7/tuAmPu/F+XVRgrkDEC02R28+NR4eduLeZin3h8lkgkDq424qL8/bbK4hgn0YolyssB8qi8fyZxWiR7TNugX51j7hD5RSY8jfLXq4qg==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10019020)(7916002)(39840400002)(39410400002)(39860400002)(39450400003)(39850400002)(189002)(199003)(377424004)(377454003)(24454002)(6306002)(6512007)(25786008)(66066001)(83506001)(97736004)(3660700001)(606005)(54896002)(4001350100001)(6246003)(8936002)(105586002)(5660300001)(122556002)(236005)(7906003)(53546003)(6506006)(7736002)(389900003)(39060400002)(6436002)(2900100001)(6486002)(38730400002)(8656002)(68736007)(77096006)(2950100002)(102836003)(4326007)(2906002)(54356999)(93886004)(50986999)(76176999)(229853002)(99286003)(101416001)(189998001)(92566002)(54906002)(81166006)(8676002)(106356001)(3280700002)(106116001)(81156014)(3846002)(86362001)(36756003)(53936002)(6116002); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1463; H:CY4PR09MB1464.namprd09.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords;  MX:1; A:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 44fe5b57-84a4-4403-6e9e-08d456668f4a
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1463; 
x-microsoft-antispam-prvs: <CY4PR09MB1463ECE8A8EAF0B4F31D192EF35A0@CY4PR09MB1463.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(65766998875637)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123558025)(20161123555025)(20161123560025)(20161123564025)(6072148); SRVR:CY4PR09MB1463; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1463; 
x-forefront-prvs: 0220D4B98D
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_D4CAF7363040Cqdangnistgov_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Feb 2017 12:23:05.5154 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1463
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/kllOII-0d_GRDGXSlwT8pXmrcwk>
Cc: Atul Luykx <Atul.Luykx@esat.kuleuven.be>, IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 16 Feb 2017 12:23:12 -0000

--_000_D4CAF7363040Cqdangnistgov_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Kenny,

I am glad to see that you enjoyed the discussion more than what you planed =
for the time on your vacation.  We love crypto and the IETF!

From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk<mailto:Kenny.Paterson@rh=
ul.ac.uk>>
Date: Wednesday, February 15, 2017 at 8:46 AM
To: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>
Cc: Atul Luykx <Atul.Luykx@esat.kuleuven.be<mailto:Atul.Luykx@esat.kuleuven=
.be>>, Yoav Nir <ynir.ietf@gmail.com<mailto:ynir.ietf@gmail.com>>, IRTF CFR=
G <cfrg@irtf.org<mailto:cfrg@irtf.org>>, "tls@ietf.org<mailto:tls@ietf.org>=
" <tls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Hi Quynh,

I'm meant to be on vacation, but I'm finding this on-going discussion fasci=
nating, so I'm chipping in again.

On 15 Feb 2017, at 21:12, Dang, Quynh (Fed) <quynh.dang@nist.gov<mailto:quy=
nh.dang@nist.gov>> wrote:

Hi Atul,

I hope you had a happy Valentine!

From: Atul Luykx <Atul.Luykx@esat.kuleuven.be<mailto:Atul.Luykx@esat.kuleuv=
en.be>>
Date: Tuesday, February 14, 2017 at 4:52 PM
To: Yoav Nir <ynir.ietf@gmail.com<mailto:ynir.ietf@gmail.com>>
Cc: 'Quynh' <Quynh.Dang@nist.gov<mailto:Quynh.Dang@nist.gov>>, IRTF CFRG <c=
frg@irtf.org<mailto:cfrg@irtf.org>>, "tls@ietf.org<mailto:tls@ietf.org>" <t=
ls@ietf.org<mailto:tls@ietf.org>>
Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#76=
5/#769)

Why is that 2^48 input blocks rather than 2^34.5 input blocks?
Because he wants to lower the security level.

I respectfully disagree. 2^-32, 2^-33, 2^-57, 2^-60, 2^-112 are practically=
 the same: they are practically zero.

I'm not clear what you mean by "practically" here.

As far as I know, such chance has not happened in history for any targeted =
search where the chance for hitting the target is 1 in 2^32.

They're clearly not the same as real numbers. And if we are being conservat=
ive about security, then the extremes in your list are a long way apart.

And, 2^-32 is an absolute chance in this case meaning that all attackers ca=
n=92t improve their chance: no matter how much computational power the atta=
cker has.

A sufficiently powerful adversary could carry out an exhaustive key search =
for GCM's underlying AES key. So I'm not sure what you're claiming here whe=
n you speak of "absolute chance".

I described my point not in a best way, sorry. For key recovery, if an atta=
cker can do 2^96 AES operations, his chance of finding the key is 2^-32, bu=
t this chance will get improved if the attacker does more computation. On t=
he contrary, the chance for the distinguishing attack won=92t change with t=
he proposed data limit.


I don=92t understand why the number 2^-60 is your special chosen number for=
 this ?

This is a bit subtle, but I'll try to explain in simple terms.

We can conveniently prove a bound of about this size (actually 2^-57) for I=
NT-CTXT for a wide range of parameters covering both TLS and DTLS (where ma=
ny verification failures may be permitted). Then, since we're ultimately in=
terested in AE security, we would like to (roughly) match this for IND-CPA =
security, to get as good a bound as we can for AE security (the security bo=
unds for the two notions sum to give an AE security bound - see page 2 of t=
he "AE bounds" note).

In view of the INT-CTXT bound there's no point pushing the IND-CPA bound mu=
ch lower than 2^-60 if the ultimate target is AE security. It just hurts th=
e data limits more without significantly improving AE security.

I just checked the paper. There is a small error I think. AES-GCM in TLS 1.=
3 is a prf. Under a given key, every input block or just one repeated block=
 2^35 times, their ciphertext blocks are 2^35 random 128-bit blocks assumin=
g the key has 128 bits of entropy. If there is a collision among the cipher=
text blocks, it does not mean anything because it does not say anything abo=
ut the plaintext blocks.



Finally, 2^-60 is not *our* special chosen number. We wrote a note that con=
tained a table of values, and it's worth noting that we did not make a spec=
ific recommendation in our note for which row of the table to select.

(Naturally, though, we'd like security to be as high as possible without ma=
king rekeying a frequent event. It's a continuing surprise to me that you a=
re pushing for an option that actually reduces security when achieving high=
er security does not seem to cause any problems for implementors.)

I respectfully disagree. As I explained before, 2^-32, 2^-57 and 2^-60 are =
all safe choices. If someone wants to rekey sooner (or often) for operation=
al reason or any other reason, that would be just fine. I just hope that we=
 don=92t have text which might imply that 2^-32 is not a safe choice.  In o=
ur guidelines, we basically indicate that 2^-32 or below is safe.



In your =93theory=94, 2^-112 would be in =93higher=94 security than 2^-60.

It certainly would, if it were achievable (which it is not for GCM without =
putting some quite extreme limits on data per key).

Cheers,

Kenny

I am going to propose another option and I hope that you and all other peop=
le will be happy with.

Thank you and Regards,
Quynh.


Quynh.


The original text
recommends switching at 2^{34.5} input blocks, corresponding to a
success probability of 2^{-60}, whereas his text recommends switching at
2^{48} blocks, corresponding to a success probability of 2^{-32}.

Atul

On 2017-02-14 11:45, Yoav Nir wrote:
Hi, Quynh
On 14 Feb 2017, at 20:45, Dang, Quynh (Fed) <quynh.dang@nist.gov<mailto:quy=
nh.dang@nist.gov>>
wrote:
Hi Sean and all,
Beside my suggestion at
https://www.ietf.org/mail-archive/web/tls/current/msg22381.html [1],
I have a second suggestion below.
Just replacing this sentence: "
For AES-GCM, up to 2^24.5 full-size records (about 24 million) may
be
encrypted on a given connection while keeping a safety margin of
approximately 2^-57 for Authenticated Encryption (AE) security.
" in Section 5.5 by this sentence: " For AES-GCM, up to 2^48
(partial or full) input blocks may be encrypted with one key. For
other suggestions and analysis, see the referred paper above."
Regards,
Quynh.
I like the suggestion, but I=92m probably missing something pretty
basic about it.
2^24.5 full-size records is 2^24.5 records of 2^14 bytes each, or
(since an AES block is 16 bytes or 2^4 bytes) 2^24.5 records of 2^10
blocks.
Why is that 2^48 input blocks rather than 2^34.5 input blocks?
Thanks
Yoav
Links:
------
[1] https://www.ietf.org/mail-archive/web/tls/current/msg22381.html
_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls

_______________________________________________
TLS mailing list
TLS@ietf.org<mailto:TLS@ietf.org>
https://www.ietf.org/mailman/listinfo/tls

--_000_D4CAF7363040Cqdangnistgov_
Content-Type: text/html; charset="Windows-1252"
Content-ID: <5ACDD6F01661D047B3EB2DC07E8FB180@namprd09.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
</head>
<body style=3D"word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-lin=
e-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-fami=
ly: Calibri, sans-serif;">
<div>Hi Kenny,</div>
<div><br>
</div>
<div>I am glad to see that you enjoyed the discussion more than what you pl=
aned for the time on your vacation. &nbsp;We love crypto and the IETF!&nbsp=
;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>&quot;Paterson, Kenny&quot; &=
lt;<a href=3D"mailto:Kenny.Paterson@rhul.ac.uk">Kenny.Paterson@rhul.ac.uk</=
a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Wednesday, February 15, 2017 =
at 8:46 AM<br>
<span style=3D"font-weight:bold">To: </span>'Quynh' &lt;<a href=3D"mailto:Q=
uynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>Atul Luykx &lt;<a href=3D"mailt=
o:Atul.Luykx@esat.kuleuven.be">Atul.Luykx@esat.kuleuven.be</a>&gt;, Yoav Ni=
r &lt;<a href=3D"mailto:ynir.ietf@gmail.com">ynir.ietf@gmail.com</a>&gt;, I=
RTF CFRG &lt;<a href=3D"mailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;,
 &quot;<a href=3D"mailto:tls@ietf.org">tls@ietf.org</a>&quot; &lt;<a href=
=3D"mailto:tls@ietf.org">tls@ietf.org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div dir=3D"auto">
<div>Hi Quynh,<br>
<br>
</div>
<div id=3D"AppleMailSignature">I'm meant to be on vacation, but I'm finding=
 this on-going discussion fascinating, so I'm chipping in again.&nbsp;</div=
>
<div><br>
On 15 Feb 2017, at 21:12, Dang, Quynh (Fed) &lt;<a href=3D"mailto:quynh.dan=
g@nist.gov">quynh.dang@nist.gov</a>&gt; wrote:<br>
<br>
</div>
<blockquote type=3D"cite">
<div>
<div>Hi Atul,</div>
<div><br>
</div>
<div>I hope you had a happy Valentine!&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<div style=3D"font-family:Calibri; font-size:11pt; text-align:left; color:b=
lack; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM:=
 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid;=
 BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style=3D"font-weight:bold">From: </span>Atul Luykx &lt;<a href=3D"mai=
lto:Atul.Luykx@esat.kuleuven.be">Atul.Luykx@esat.kuleuven.be</a>&gt;<br>
<span style=3D"font-weight:bold">Date: </span>Tuesday, February 14, 2017 at=
 4:52 PM<br>
<span style=3D"font-weight:bold">To: </span>Yoav Nir &lt;<a href=3D"mailto:=
ynir.ietf@gmail.com">ynir.ietf@gmail.com</a>&gt;<br>
<span style=3D"font-weight:bold">Cc: </span>'Quynh' &lt;<a href=3D"mailto:Q=
uynh.Dang@nist.gov">Quynh.Dang@nist.gov</a>&gt;, IRTF CFRG &lt;<a href=3D"m=
ailto:cfrg@irtf.org">cfrg@irtf.org</a>&gt;, &quot;<a href=3D"mailto:tls@iet=
f.org">tls@ietf.org</a>&quot; &lt;<a href=3D"mailto:tls@ietf.org">tls@ietf.=
org</a>&gt;<br>
<span style=3D"font-weight:bold">Subject: </span>Re: [TLS] [Cfrg] Closing o=
ut tls1.3 &quot;Limits on key usage&quot; PRs (#765/#769)<br>
</div>
<div><br>
</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Why is that 2^48 input blocks rather than 2^34.5 input blocks?</div>
</blockquote>
<div>Because he wants to lower the security level. </div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>I respectfully disagree. 2^-32, 2^-33, 2^-57, 2^-60, 2^-112 are practi=
cally the same: they are practically zero. &nbsp;</div>
</div>
</blockquote>
<div><br>
</div>
<div>I'm not clear what you mean by &quot;practically&quot; here.</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>As far as I know, such chance has not happened in history for any targ=
eted search where the chance for hitting the target is 1 in 2^32.&nbsp;</di=
v>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div dir=3D"auto">
<div>They're clearly not the same as real numbers. And if we are being cons=
ervative about security, then the extremes in your list are a long way apar=
t.&nbsp;</div>
<div><br>
</div>
<blockquote type=3D"cite">
<div>
<div>And, 2^-32 is an absolute chance in this case meaning that all attacke=
rs can=92t improve their chance: no matter how much computational power the=
 attacker has. &nbsp;&nbsp;</div>
</div>
</blockquote>
<div><br>
</div>
A sufficiently powerful adversary could carry out an exhaustive key search =
for GCM's underlying AES key. So I'm not sure what you're claiming here whe=
n you speak of &quot;absolute chance&quot;.&nbsp;</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>I described my point not in a best way, sorry. For key recovery, if an=
 attacker can do 2^96 AES operations, his chance of finding the key is 2^-3=
2, but this chance will get improved if the attacker does more computation.=
 On the contrary, the chance for
 the distinguishing attack won=92t change with the proposed data limit.&nbs=
p;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div dir=3D"auto">
<div>&nbsp;
<div>
<blockquote type=3D"cite">
<div>
<div>I don=92t understand why the number 2^-60 is your special chosen numbe=
r for this ?
</div>
</div>
</blockquote>
<div><br>
</div>
<div>This is a bit subtle, but I'll try to explain in simple terms.&nbsp;</=
div>
<div><br>
</div>
We can conveniently prove a bound of about this size (actually 2^-57) for I=
NT-CTXT for a wide range of parameters covering both TLS and DTLS (where ma=
ny verification failures may be permitted). Then, since we're ultimately in=
terested in AE security, we would
 like to (roughly) match this for IND-CPA security, to get as good a bound =
as we can for AE security (the security bounds for the two notions sum to g=
ive an AE security bound - see page 2 of the &quot;AE bounds&quot; note).&n=
bsp;</div>
<div><br>
</div>
<div>In view of the INT-CTXT bound there's no point pushing the IND-CPA bou=
nd much lower than 2^-60 if the ultimate target is AE security. It just hur=
ts the data limits more without significantly improving AE security.&nbsp;<=
/div>
</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>I just checked the paper. There is a small error I think. AES-GCM in T=
LS 1.3 is a prf. Under a given key, every input block or just one repeated =
block 2^35 times, their ciphertext blocks are 2^35 random 128-bit blocks as=
suming the key has 128 bits of entropy.
 If there is a collision among the ciphertext blocks, it does not mean anyt=
hing because it does not say anything about the plaintext blocks. &nbsp;</d=
iv>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div dir=3D"auto">
<div>
<div><br>
</div>
<div>Finally, 2^-60 is not *our* special chosen number. We wrote a note tha=
t contained a table of values, and it's worth noting that we did not make a=
 specific recommendation in our note for which row of the table to select.&=
nbsp;</div>
<div><br>
</div>
<div>(Naturally, though, we'd like security to be as high as possible witho=
ut making rekeying a frequent event. It's a continuing surprise to me that =
you are pushing for an option that actually reduces security when achieving=
 higher security does not seem to
 cause any problems for implementors.)&nbsp;</div>
</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>I respectfully disagree. As I explained before, 2^-32, 2^-57 and 2^-60=
 are all safe choices. If someone wants to rekey sooner (or often) for oper=
ational reason or any other reason, that would be just fine. I just hope th=
at we don=92t have text which might
 imply that 2^-32 is not a safe choice. &nbsp;In our guidelines, we basical=
ly indicate that 2^-32 or below is safe.&nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div dir=3D"auto">
<div>
<div><br>
</div>
<div>
<blockquote type=3D"cite">
<div>
<div>In your =93theory=94, 2^-112 would be in =93higher=94 security than 2^=
-60.&nbsp;</div>
</div>
</blockquote>
<div><br>
</div>
<div>It certainly would, if it were achievable (which it is not for GCM wit=
hout putting some quite extreme limits on data per key).&nbsp;</div>
<div><br>
</div>
<div>Cheers,</div>
<div><br>
</div>
<div>Kenny&nbsp;</div>
</div>
</div>
</div>
</div>
</blockquote>
</span>
<div><br>
</div>
<div>I am going to propose another option and I hope that you and all other=
 people will be happy with.&nbsp;</div>
<div><br>
</div>
<div>Thank you and Regards,</div>
<div>Quynh.&nbsp;</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div dir=3D"auto">
<div>
<div><br>
<blockquote type=3D"cite">
<div>
<div></div>
<div>Quynh. &nbsp;</div>
<div><br>
</div>
<div><br>
</div>
<span id=3D"OLK_SRC_BODY_SECTION">
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>
<div>
<div>The original text </div>
<div>recommends switching at 2^{34.5} input blocks, corresponding to a </di=
v>
<div>success probability of 2^{-60}, whereas his text recommends switching =
at </div>
<div>2^{48} blocks, corresponding to a success probability of 2^{-32}.</div=
>
<div><br>
</div>
<div>Atul</div>
<div><br>
</div>
<div>On 2017-02-14 11:45, Yoav Nir wrote:</div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>Hi, Quynh</div>
<div></div>
<blockquote id=3D"MAC_OUTLOOK_ATTRIBUTION_BLOCKQUOTE" style=3D"BORDER-LEFT:=
 #b5c4df 5 solid; PADDING:0 0 0 5; MARGIN:0 0 0 5;">
<div>On 14 Feb 2017, at 20:45, Dang, Quynh (Fed) &lt;<a href=3D"mailto:quyn=
h.dang@nist.gov">quynh.dang@nist.gov</a>&gt;</div>
<div>wrote:</div>
<div></div>
<div>Hi Sean and all,</div>
<div></div>
<div>Beside my suggestion at</div>
<div><a href=3D"https://www.ietf.org/mail-archive/web/tls/current/msg22381.=
html">https://www.ietf.org/mail-archive/web/tls/current/msg22381.html</a> [=
1],</div>
<div>I have a second suggestion below.</div>
<div></div>
<div>Just replacing this sentence: &quot;</div>
<div></div>
<div>For AES-GCM, up to 2^24.5 full-size records (about 24 million) may</di=
v>
<div>be</div>
<div>encrypted on a given connection while keeping a safety margin of</div>
<div>approximately 2^-57 for Authenticated Encryption (AE) security.</div>
<div>&quot; in Section 5.5 by this sentence: &quot; For AES-GCM, up to 2^48=
</div>
<div>(partial or full) input blocks may be encrypted with one key. For</div=
>
<div>other suggestions and analysis, see the referred paper above.&quot;</d=
iv>
<div></div>
<div>Regards,</div>
<div>Quynh.</div>
</blockquote>
<div></div>
<div>I like the suggestion, but I=92m probably missing something pretty</di=
v>
<div>basic about it.</div>
<div></div>
<div>2^24.5 full-size records is 2^24.5 records of 2^14 bytes each, or</div=
>
<div>(since an AES block is 16 bytes or 2^4 bytes) 2^24.5 records of 2^10</=
div>
<div>blocks.</div>
<div></div>
<div>Why is that 2^48 input blocks rather than 2^34.5 input blocks?</div>
<div></div>
<div>Thanks</div>
<div></div>
<div>Yoav</div>
<div></div>
<div></div>
<div></div>
<div>Links:</div>
<div>------</div>
<div>[1] <a href=3D"https://www.ietf.org/mail-archive/web/tls/current/msg22=
381.html">
https://www.ietf.org/mail-archive/web/tls/current/msg22381.html</a></div>
<div>_______________________________________________</div>
<div>TLS mailing list</div>
<div><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></div>
<div><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.ietf=
.org/mailman/listinfo/tls</a></div>
</blockquote>
<div><br>
</div>
</div>
</div>
</blockquote>
</span></div>
</blockquote>
<blockquote type=3D"cite">
<div><span>_______________________________________________</span><br>
<span>TLS mailing list</span><br>
<span><a href=3D"mailto:TLS@ietf.org">TLS@ietf.org</a></span><br>
<span><a href=3D"https://www.ietf.org/mailman/listinfo/tls">https://www.iet=
f.org/mailman/listinfo/tls</a></span><br>
</div>
</blockquote>
</div>
</div>
</div>
</div>
</blockquote>
</span>
</body>
</html>

--_000_D4CAF7363040Cqdangnistgov_--


From nobody Thu Feb 16 11:33:48 2017
Return-Path: <azet@azet.org>
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 7B405129697 for <cfrg@ietfa.amsl.com>; Thu, 16 Feb 2017 11:33:46 -0800 (PST)
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 autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=azet.org
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 729kz6G_IP2Q for <cfrg@ietfa.amsl.com>; Thu, 16 Feb 2017 11:33:45 -0800 (PST)
Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1CB1012955E for <cfrg@irtf.org>; Thu, 16 Feb 2017 11:33:45 -0800 (PST)
Received: by mail-wr0-x22e.google.com with SMTP id i10so18617403wrb.0 for <cfrg@irtf.org>; Thu, 16 Feb 2017 11:33:45 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=azet.org; s=gmail; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=fw2jktFOTSwYWkYtcPGQS13BqI8oauZo3a0+Xvpcc9Q=; b=ID6PGVxtjoWxu9B/gfGZTeClZQEATGGW5CC5hsKjTAT5JtIBFHNaTEI4Yzi911DhFh qMpZXHaytKRRWx1t9c4IDnxGgkwcjsTq8h/LNhrfsJPwMPcNrNw1AGTkT4yCuNbJmn93 xpZHnEpKlgT5dk5xpjl/oUX2Cy21T0ADGMrao=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=fw2jktFOTSwYWkYtcPGQS13BqI8oauZo3a0+Xvpcc9Q=; b=bKyzfWsmvnEZEP/Lg5eMfQ3ZxnxN7+9udtdJAmZE35+1zx1tv6oKF2ZeBFDmZc84VM JWWd9qrsv0dJV4ozlI3avZ8jU6UdIzBoepRTB6FsQ4lZMP05kekan5O2NpvDuTChyP7J ZHsXsp/n5yNOH3cqIgagT/+49iYsH+datclBEhKpoxhtIce2bXYsDpxJ+S9wDiTn6D9i sDViAXdWP/erV7qqqG26uga7YrGNNMMWs3xKRzWT1N8ekH+AcXOZXqw0pTHCfbpOTkWK Hq4k0EnJ1l/4WuiTdkVVOLO+RdlyVKqICxRtGQP5NM+IBhE+1LLZcdRvoVJc0PyRFLWY 6IlA==
X-Gm-Message-State: AMke39ls3ztHkr3DX9NqQuoVmW0NiX5H6AIFf2V75LvwcSOEXJcKZ/BJeYfTHeeDTAPgmw==
X-Received: by 10.223.131.99 with SMTP id 90mr3791850wrd.146.1487273623585; Thu, 16 Feb 2017 11:33:43 -0800 (PST)
Received: from [192.168.1.120] ([156.218.58.77]) by smtp.gmail.com with ESMTPSA id v128sm1464652wmv.2.2017.02.16.11.33.41 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 11:33:42 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Content-Type: multipart/signed; boundary="Apple-Mail=_461E11DF-8232-41A2-B8E2-A699F4C242C4"; protocol="application/pgp-signature"; micalg=pgp-sha512
X-Pgp-Agent: GPGMail
From: Aaron Zauner <azet@azet.org>
In-Reply-To: <CABkgnnURRPNEGEFKJvBJ=of=pqSD6CLJ+M3CB5KepEQA38XeHQ@mail.gmail.com>
Date: Thu, 16 Feb 2017 21:33:39 +0200
Message-Id: <FFCF8465-1B10-4202-8AE6-37DE152C5D17@azet.org>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be> <D4C9AB9C.302D5%qdang@nist.gov> <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk> <CABkgnnX78HnPnudEYOciS-VgJ4opYQX56OQ1R4yYvqxOQkO7Bg@mail.gmail.com> <859B3094-61BF-40B3-9473-4220E830D70F@gmail.com> <CABkgnnURRPNEGEFKJvBJ=of=pqSD6CLJ+M3CB5KepEQA38XeHQ@mail.gmail.com>
To: Martin Thomson <martin.thomson@gmail.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/_PY0xwX5TLHeqi2UOvpBJ3oXeJo>
Cc: IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 16 Feb 2017 19:33:46 -0000

--Apple-Mail=_461E11DF-8232-41A2-B8E2-A699F4C242C4
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


> On 15 Feb 2017, at 19:25, Martin Thomson <martin.thomson@gmail.com> =
wrote:
>=20
> On 16 February 2017 at 04:20, Yoav Nir <ynir.ietf@gmail.com> wrote:
>> No, not really, but TLS is not just the web, and there are =
connections that
>> last for a long time and transfer large amounts of data. Think =
datacenter
>> synchronization. At packet-sized records 24 million records amounts =
to 36
>> GB. That is considerably larger than a 4 GB software update I =
downloaded
>> over HTTPS a few years ago, but not out of the ballpark.
>=20
> I realize that's going to require updates pretty often (once you open
> up the CWND), but I don't think that it is frequent enough to be a
> concern.
>=20
> I well know that HTTP gets used at these volumes more often than
> people realize.  I'd rather recommend ChaCha for those niche uses
> though if the rate was sufficiently high.

I agree with Yoav Nir here, it's certainly not a niche use* and one's =
implementation should not be forced to use a certain cipher mode if =
there would be better options (e.g. because -- as pointed out earlier -- =
hardware support is available).

* We'll all agree that most of the TLS traffic is made up by HTTPS =
requests, still, there are many other uses and we design protocols not =
just for the web. That's W3C.

Aaron


--Apple-Mail=_461E11DF-8232-41A2-B8E2-A699F4C242C4
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYpf6UAAoJEOTbZJL9ubXVaBoQAIOmxMA1AwJ8CJTdqugN+jUS
t65bY6qAJA0trFn+aQy/U3HAAZ8GF5QfoYqKlenUI5t7M9Hh392yIp81DahEfa0E
f/n1YRWM+oxiwRpxM0QYHI9DEcseexwW4A9JIoByj4aNay/yhLazMSzv6bfJ6sMS
V2DC+64VbfyPAGLZbD4dsyWsL4JYigm347bN13Iw5LqNqK6M0t7J26o3iUp5wISl
BW8LSeTn3R354y7junwBk9sMbJCOcutREYHRzj2rgyfwbth+A+oi66xkeVY7nuXH
ImjlBVMugVhs59wnwH6AAdoqVl6Ky9/+8Jc+bPNROnlziaHprx67wvhQeM6FkbUn
CXWs/ShYgsptAYh60GsNFEgcgdT0Vzb508y0Ga+xC6NzQ8o5p5+4jEouWcFIEcHo
DHIPgo1Ds8hs86tVrgrR6Zkub0canTmU4rHv+M3ypl9UQbD/twnqPt68t+h3LkVf
yfZCKTrUiz5t4PLKnQvJyR2zYCZ3G4yBGeAzcwIBQTHmjQTulJGjKOqhHJMsizdM
4B03obkE08w3Y+Oot+CcrwLbhpi7AvedOmDESW8l2APanElLv6Uo/KAsw6K3+gS3
WjKaQtMv1Z6RqBIKGcViT+3wg4quvrZvcwgwXK73lVRZmyLsDLsOpnvOZSNBtJBg
Dc9iA3OMOsgZj4IN2rLx
=UNkw
-----END PGP SIGNATURE-----

--Apple-Mail=_461E11DF-8232-41A2-B8E2-A699F4C242C4--


From nobody Thu Feb 16 11:51:32 2017
Return-Path: <azet@azet.org>
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 591081294A5 for <cfrg@ietfa.amsl.com>; Thu, 16 Feb 2017 11:51:30 -0800 (PST)
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 autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=azet.org
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 U0zAj51K7FsT for <cfrg@ietfa.amsl.com>; Thu, 16 Feb 2017 11:51:28 -0800 (PST)
Received: from mail-wr0-x233.google.com (mail-wr0-x233.google.com [IPv6:2a00:1450:400c:c0c::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8B021129470 for <cfrg@irtf.org>; Thu, 16 Feb 2017 11:51:28 -0800 (PST)
Received: by mail-wr0-x233.google.com with SMTP id i10so18852777wrb.0 for <cfrg@irtf.org>; Thu, 16 Feb 2017 11:51:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=azet.org; s=gmail; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=RP4xmjiRaKg7T4jJ97gb2pPn4Ltw9WKeNIyOX3mryIg=; b=Af4dCvKReirZmYe9Qg7O37V4D39sHCQ6eGwmA+sD6v1px8L4p6R1GJpzPF3r9zvr0t SOqW22TOQboo8oISjcYbJ3wke0cY+XFGK2ROQ67OSNfZoroqxT0OZQ8amvuoz36L9aEw NXxy7Mtdc9T6++Xjz5PSzaVFnFAUUdwv7+2Tc=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=RP4xmjiRaKg7T4jJ97gb2pPn4Ltw9WKeNIyOX3mryIg=; b=NQzOqRlcHzGMjD+BycWXAHAglNv7s2Qhj9XsVBu08DNgg1U26thdTxrGBVBU4i1qyv dD1GGBgA+O2/sKTG+tC9Ygmno+VVxWAEmxxWud63q3iQ9t5ztXsmhwSS63vhdMyN3bpV MKPuIQr7GVpK3g0qBVuTpLWgkR/xnmMOfcV2ppf/XlI05vjnuqIO4WmnPw6ZLT2ClB5d bZAghFjDV/Kge00QnmrlHOZr7SQqCuAEoOv6EBBOlKm+1QlBulIIOiFB4ixEVohUa8wZ ovLBjJX37tA+CUgUZiCx42O/A19BFDQa1HWGvdSEyMUCMPMcHAizjWFybZ0ADj2SWqec DE3g==
X-Gm-Message-State: AMke39lvkhVmPkSmJ1gzoQkkMklUY3GNjbE0dQZ18C49PdJ2+ZUIem5n9FLlHJpW0jvF7Q==
X-Received: by 10.223.179.87 with SMTP id k23mr4226551wrd.32.1487274686969; Thu, 16 Feb 2017 11:51:26 -0800 (PST)
Received: from [192.168.1.120] ([156.218.58.77]) by smtp.gmail.com with ESMTPSA id c202sm1492730wmd.10.2017.02.16.11.51.24 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 16 Feb 2017 11:51:26 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Content-Type: multipart/signed; boundary="Apple-Mail=_CCC50BF9-9974-4826-9AA3-BB3678A146E9"; protocol="application/pgp-signature"; micalg=pgp-sha512
X-Pgp-Agent: GPGMail
From: Aaron Zauner <azet@azet.org>
In-Reply-To: <D4CAF736.3040C%qdang@nist.gov>
Date: Thu, 16 Feb 2017 21:51:22 +0200
Message-Id: <8EEF5E9A-FFCD-44F9-9A68-920EDC4C9FA7@azet.org>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com> <CABkgnnVrFGHe0eKREXbG_pv=y18ouopZsE2c5+Czz0HAGko6rg@mail.gmail.com> <D4C331C7.86224%kenny.paterson@rhul.ac.uk> <VI1PR8303MB0094D686941D99290BB431FCAB590@VI1PR8303MB0094.EURPRD83.prod.outlook.com> <D4C73D19.2FB4B%qdang@nist.gov> <D4C85054.2FDA4%qdang@nist.gov> <be49d59e37339cbaea8fef9bdb2a8971@esat.kuleuven.be> <D4C8AE28.30145%qdang@nist.gov> <CY4PR09MB1464278F1845979862CA9C8EF3580@CY4PR09MB1464.namprd09.prod.outlook.com> <BD6FC1F4-F2ED-46F8-9E53-862B69D9C00A@gmail.com> <e7c9bc1fb1b57333bacbe2def2687d18@esat.kuleuven.be> <D4C9AB9C.302D5%qdang@nist.gov> <CDDC7812-27AF-4566-AE33-6DF829FEB81E@rhul.ac.uk> <D4CAF736.3040C%qdang@nist.gov>
To: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/L-MvL4Ut_6OHxvbbvdGNW2nAuBU>
Cc: Atul Luykx <Atul.Luykx@esat.kuleuven.be>, IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" <tls@ietf.org>
Subject: Re: [Cfrg] [TLS] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 16 Feb 2017 19:51:30 -0000

--Apple-Mail=_CCC50BF9-9974-4826-9AA3-BB3678A146E9
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


> On 16 Feb 2017, at 14:23, Dang, Quynh (Fed) <quynh.dang@nist.gov> =
wrote:
>=20
> Hi Kenny,
>=20
> I am glad to see that you enjoyed the discussion more than what you =
planed for the time on your vacation.  We love crypto and the IETF!
>=20
> From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
> Date: Wednesday, February 15, 2017 at 8:46 AM
> To: 'Quynh' <Quynh.Dang@nist.gov>
> Cc: Atul Luykx <Atul.Luykx@esat.kuleuven.be>, Yoav Nir =
<ynir.ietf@gmail.com>, IRTF CFRG <cfrg@irtf.org>, "tls@ietf.org" =
<tls@ietf.org>
> Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" PRs =
(#765/#769)
>=20
>> Hi Quynh,
>>=20
>> I'm meant to be on vacation, but I'm finding this on-going discussion =
fascinating, so I'm chipping in again.
>>=20
>> On 15 Feb 2017, at 21:12, Dang, Quynh (Fed) <quynh.dang@nist.gov> =
wrote:
>>=20
>>> Hi Atul,
>>>=20
>>> I hope you had a happy Valentine!
>>>=20
>>> From: Atul Luykx <Atul.Luykx@esat.kuleuven.be>
>>> Date: Tuesday, February 14, 2017 at 4:52 PM
>>> To: Yoav Nir <ynir.ietf@gmail.com>
>>> Cc: 'Quynh' <Quynh.Dang@nist.gov>, IRTF CFRG <cfrg@irtf.org>, =
"tls@ietf.org" <tls@ietf.org>
>>> Subject: Re: [TLS] [Cfrg] Closing out tls1.3 "Limits on key usage" =
PRs (#765/#769)
>>>=20
>>>>> Why is that 2^48 input blocks rather than 2^34.5 input blocks?
>>>> Because he wants to lower the security level.
>>>=20
>>> I respectfully disagree. 2^-32, 2^-33, 2^-57, 2^-60, 2^-112 are =
practically the same: they are practically zero.
>>=20
>> I'm not clear what you mean by "practically" here.
>=20
> As far as I know, such chance has not happened in history for any =
targeted search where the chance for hitting the target is 1 in 2^32.
>=20
>> They're clearly not the same as real numbers. And if we are being =
conservative about security, then the extremes in your list are a long =
way apart.
>>=20
>>> And, 2^-32 is an absolute chance in this case meaning that all =
attackers can=92t improve their chance: no matter how much computational =
power the attacker has.
>>=20
>> A sufficiently powerful adversary could carry out an exhaustive key =
search for GCM's underlying AES key. So I'm not sure what you're =
claiming here when you speak of "absolute chance".
>=20
> I described my point not in a best way, sorry. For key recovery, if an =
attacker can do 2^96 AES operations, his chance of finding the key is =
2^-32, but this chance will get improved if the attacker does more =
computation. On the contrary, the chance for the distinguishing attack =
won=92t change with the proposed data limit.

Maybe I don't comprehend what you're trying to propose - but why change =
this paragraph then?

Coming from an HPC background: It seems to be that with frequent =
rekeying the chance of successfully performing an exhaustive search =
attack is -- even for the most advanced adversary -- so slim that we do =
not need to worry about that. In reality this is a cost-for-computation =
tradeoff that no one is going to invest in if there're more practical =
ways to attack (e.g. HUMINT/bad OPSEC, steal a private key, intrude a =
given network etc.) given the resources and thus money/power needed.

>=20
>>=20
>>> I don=92t understand why the number 2^-60 is your special chosen =
number for this ?
>>=20
>> This is a bit subtle, but I'll try to explain in simple terms.
>>=20
>> We can conveniently prove a bound of about this size (actually 2^-57) =
for INT-CTXT for a wide range of parameters covering both TLS and DTLS =
(where many verification failures may be permitted). Then, since we're =
ultimately interested in AE security, we would like to (roughly) match =
this for IND-CPA security, to get as good a bound as we can for AE =
security (the security bounds for the two notions sum to give an AE =
security bound - see page 2 of the "AE bounds" note).
>>=20
>> In view of the INT-CTXT bound there's no point pushing the IND-CPA =
bound much lower than 2^-60 if the ultimate target is AE security. It =
just hurts the data limits more without significantly improving AE =
security.
>=20
> I just checked the paper. There is a small error I think. AES-GCM in =
TLS 1.3 is a prf. Under a given key, every input block or just one =
repeated block 2^35 times, their ciphertext blocks are 2^35 random =
128-bit blocks assuming the key has 128 bits of entropy. If there is a =
collision among the ciphertext blocks, it does not mean anything because =
it does not say anything about the plaintext blocks.
>=20
>=20
>>=20
>> Finally, 2^-60 is not *our* special chosen number. We wrote a note =
that contained a table of values, and it's worth noting that we did not =
make a specific recommendation in our note for which row of the table to =
select.
>>=20
>> (Naturally, though, we'd like security to be as high as possible =
without making rekeying a frequent event. It's a continuing surprise to =
me that you are pushing for an option that actually reduces security =
when achieving higher security does not seem to cause any problems for =
implementors.)
>=20
> I respectfully disagree. As I explained before, 2^-32, 2^-57 and 2^-60 =
are all safe choices. If someone wants to rekey sooner (or often) for =
operational reason or any other reason, that would be just fine. I just =
hope that we don=92t have text which might imply that 2^-32 is not a =
safe choice.  In our guidelines, we basically indicate that 2^-32 or =
below is safe.

...

>=20
>=20
>>=20
>>> In your =93theory=94, 2^-112 would be in =93higher=94 security than =
2^-60.
>>=20
>> It certainly would, if it were achievable (which it is not for GCM =
without putting some quite extreme limits on data per key).
>>=20
>> Cheers,
>>=20
>> Kenny
>=20
> I am going to propose another option and I hope that you and all other =
people will be happy with.

I'd strongly suggest that any changes made to this text are as clear as =
possible to non-mathematicians/cryptographers. Years of dealing with TLS =
implementation and protocol vulnerabilities tell us that uncertain =
wording and missing, clear, explanation for certain choices in standards =
have caused real-world security problems. It seems to me that the =
general consensus is that option A is preferable anyhow.

Aaron


--Apple-Mail=_CCC50BF9-9974-4826-9AA3-BB3678A146E9
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYpgK6AAoJEOTbZJL9ubXVsJEQANBLO8lUu6DeslzpstBMWPvF
hywZbI38GH+4tYNZxJsH6vhAgAQawaaCt7ex7MpiPSA1hezT+rPZIJbDZt+K2kKx
M5g9nsqJoXzbLKxgbs/HERGU+3RSuC55XZhT6W9D5AuBFtuieLqPkQwadGvJbWyv
ITlFKPQu8ocMaTXWhjiUZ2fQlX3IMw7xkxPgO4tI7btyRr2D/jCmFHLckxLlp+If
A6omkKmTcDPyWaMymXLEYFC5RA1/dTazzEJiqxTlfHwllCDmOWfCOcMJKtgizY92
/UznpTtAnIoqqCL7oJ24aWbqjCUtTjLP5Ovd4yzwtR9f46nvhufJQ3vIMly/LgHi
IN6RkJn22nTIzN0u0RJq+sibKIhBa1X2zEka8Zdav+s0nF6E7LQc3agtxW77VKl3
U0OS+ybJ+SQu+dFth2l5VgUUqKxidksFpaxXY3AK/YRSLy4XnIVR7gx8Cv8e0cmG
Xqft4+6Sl/T9UTTHhPtFoU9dk8yH7ISfyd/8X6w9r7mYHIQxWeDrhTmu3ZF2LiNn
7VVlhmKCtXDU9OtQB5B4YYTQLyFMF8bUR87CHNn7/UZtVs7ZJkk7gs0Oy9HbqZST
SrM1+ocrhC+7BgrHZCe/YiZgRT5Xrsx8Ns9xHygpKdptx41ozReSCjpX9tE6DfRN
i+WAEa9q5j4F5TghjJH0
=nMe+
-----END PGP SIGNATURE-----

--Apple-Mail=_CCC50BF9-9974-4826-9AA3-BB3678A146E9--


From nobody Thu Feb 16 16:02:56 2017
Return-Path: <markokr@gmail.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 308AD1294E9 for <cfrg@ietfa.amsl.com>; Thu, 16 Feb 2017 16:02:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 vJy-Q2JEl69Y for <cfrg@ietfa.amsl.com>; Thu, 16 Feb 2017 16:02:52 -0800 (PST)
Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 615EE1293EE for <cfrg@irtf.org>; Thu, 16 Feb 2017 16:02:52 -0800 (PST)
Received: by mail-lf0-x232.google.com with SMTP id o140so1577925lff.1 for <cfrg@irtf.org>; Thu, 16 Feb 2017 16:02:52 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=date:from:to:subject:message-id:mime-version:content-disposition;  bh=Js/75KJWrIg8ps1K9cUklKR0ayF5VmSYDtIdkYkMGZk=; b=CxlvNs1wcm9bVPAB1JDmbOXNZn37V/9oLibCr0rlQUa9fqsjpA4AakfJnHfl9gKOWe +Jo4ygsbonRIXuMWUJ90jjJIn1srAKyLxl1292kn7J8q3afppaQBrrerg22KTFWAH4Li 9OzvqS2s1Gf2N7HaT5GdkA3C2AEiDNvEH2e0A130qELci0LPSG7KssgAXEfRh+PMmOXT Gcc4HIdIfocQY6BAF1K4H63g/3XS3Fi7DER9bDDl5Ot+6Q2gSeDMcatkqCkXnXgDD+wb qpB9sKwCFNFVm+6v0WjC5L52zubh4SZSNcO2BTG9xnFZ5qViTyj3JmVr5096ZqMnZyVs MAhg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=Js/75KJWrIg8ps1K9cUklKR0ayF5VmSYDtIdkYkMGZk=; b=bjeEZgDng9J/eCWM5kqoNZ+sCRUgc/uh8DAFQQBV0zKqEDXgsq5DsmoS2UI3z0ENvp ag8CT9+vARe5AMxqDkpvqhtZP0BKn5UvbNz9R+AnEu4Duga1fkxI9swZTjipPv3WOOfK RsSQn0OnDGeEi4EpXFBcQM3eZiqsxMIKn5gXi5G/kawoIrzASNNvSVDM5fB1RfHjBY4m /jQiSKRA6IyJ6+T61NX8fDaml3W0kZAIIDJKf1xosA1KBHbtI2aNeQW5sSQzML4h0l21 Hp7HhdKGbFgpjZaaELd6vMdHDCJ8ZFbNUUX+TbdvnOY6YiUeHcUCqb6eD2gFsyXfMhc/ eHwQ==
X-Gm-Message-State: AMke39lL+ee5P17JCdezjF+NkCGXpa7QDisbyRQnhQgT6gs+7wnUoD+Nf1bn+3oHxioE8Q==
X-Received: by 10.46.0.68 with SMTP id 65mr1152793lja.64.1487289770074; Thu, 16 Feb 2017 16:02:50 -0800 (PST)
Received: from gmail.com (103-169-191-90.dyn.estpak.ee. [90.191.169.103]) by smtp.gmail.com with ESMTPSA id s7sm2087368lja.27.2017.02.16.16.02.48 for <cfrg@irtf.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Feb 2017 16:02:49 -0800 (PST)
Date: Fri, 17 Feb 2017 02:02:47 +0200
From: Marko Kreen <markokr@gmail.com>
To: CFRG <cfrg@irtf.org>
Message-ID: <20170217000247.GB23785@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/E5UacJcZTSbgSQqUbqasnHbNMks>
Subject: [Cfrg] Critique of AES-GCM-SIV
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 17 Feb 2017 00:02:54 -0000

Hello CFRG!

I have reviewed the AES-GCM-SIV proposal (draft 3).  And while there
are parts I like - overall direction to higher security and
getting rid of GCM bitflipping - current design feels "ugly".
(That's a cryptographic term.)

Specifically, it is supposed to be Nonce-Misuse-Resistant mode.
That means even if nonce+key repeat, you get enough unpredictability
from message hash, so security does not fundamentally change.
Except it is now possible to detect if same message repeats.

But this does not apply to draft-03 version - if key+nonce repeat,
mode fundamentally changes - it uses fresh key and counter in one
case and only fresh counter other case.  That is ugly.

Instead it would be clearer (less ugly) if MAC(message) is always
used as extension of nonce.  They both affect counter.  Similarly,
either both affect encryption key or neither affects encryption key:

1) No rekey, only counter is synthesized - that would be basically AES-SIV
   with modern hash.  This would be strict improvement over AES-GCM,
   better security (but not too good), but same performance.

2) MAC(Plaintext) always affects encryption key.  This would give
   significantly better boundaries than just synthesized counter.
   But at the cost of extra keygen per message, which is slow for AES,
   so the mode will seem more costly than current AES-GCM.

While I like the current direction of AES-GCM-SIV of trying to achieve
higher security level by using rekey, I wonder if it would be
good to standardise a simple AES-POLYVAL mode like 1) that is also
clearly securitywise better than AES-GCM.  For use in new designs
that do care about maximum performance.  Just a thought.


To throw out some ideas on 2), here is my proposal how to synthesize
both key and counter based on MAC.


AES-GCM-SAFE
============

Cipher mode that uses key, nonce and MAC(message)
to synthesize both counter and encryption key.

Input:
  K = 128/256-bit key
  N = 128-bit Nonce
  P = plaintext
  A = additional data

Process:
  AuthKey = AES(K, N)
  SubKey1 = AES(K, N xor 1)
  RawTag = POLYVAL(AuthKey, PAD(A) || PAD(P) || LEN(A) || LEN(P))
  Tag = AES(K, N xor RawTag)
  Counter = AES(K, Tag)
  SubKey2 = AES(K, Tag xor 1)
  EncKey/128 = SubKey1 xor SubKey2
  EncKey/256 = SubKey1 || SubKey2
  CipherText = AES-CTR(EncKey, Counter, P) || Tag

Where:
  || - concat
  xor 1 - flip lowest bit of first byte
  LEN(V) - number of bits in V in 64-bit little-endian format
  PAD(V) - zero-pad to full block
  AES(K, V) - Encrypt V with key K
  AES-CTR(K, C, V) - Encrypt V with key K and counter C

Improvements

+ When key and nonce repeat, then same AuthKey is used.  But both
  counter and encryption key will be synthesized based on MAC.

+ EncKey is used only for encrypting plaintext, so no need to waste
  bits on domain-separation.  Thus full 128-bit counter can be used.

* There are no steps that need dropping bits so 128-bit nonce can
  be used.  As this is supposed to be high-security mode.

+ More natural 128/256-bit keygen for EncKey.  It's faster too
  due to less blocks encrypted. 

+ Counter is not sent in clear.  While sending counter in clear does
  not change probability of catastrophic failure, it does make
  exploiting it less expensive.

Notes

* If AES256 has related-key problems when only half of the key changes,

    EncKey/256 = (SubKey1 xor Counter) || SubKey2

  should fix it.  This may be also useful if shorter nonce is used.

* Its possible to use domain-separation for AES(K,N) vs. AES(K,Tag)
  but it does not seem necessary.

Comments?

-- 
marko


From nobody Fri Feb 17 02:01:01 2017
Return-Path: <bleichen@google.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 09AC5129480 for <cfrg@ietfa.amsl.com>; Fri, 17 Feb 2017 02:01:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 JSqcw_0dGA42 for <cfrg@ietfa.amsl.com>; Fri, 17 Feb 2017 02:00:58 -0800 (PST)
Received: from mail-yw0-x233.google.com (mail-yw0-x233.google.com [IPv6:2607:f8b0:4002:c05::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C44181294E2 for <cfrg@irtf.org>; Fri, 17 Feb 2017 02:00:57 -0800 (PST)
Received: by mail-yw0-x233.google.com with SMTP id l19so20880991ywc.2 for <cfrg@irtf.org>; Fri, 17 Feb 2017 02:00:57 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=okqRaRwBwVNX5SAIcpeULV4CquW5m/XtV0qY0tI1RzE=; b=WV9xvBbJiw7WorVBx17tVGmggDbIpHw4hiqd/9sRtteBP1Q4rzRojh1fsB3KIkx1Wo 48NfjGd86cfqiLYiTWw1QE1KWJQERpraQB1zZX1DNKa2ySSai86vdptnMnMSVzck7SeZ J+Hgos56llCv6wIBDyEGREMrrv3fBDUco5LlGh1HwUqMhvjl61m+6LG3nLDxfFWwI83u 6kKyBYgP9UId30A7k3TIaXfMYq8ybuAyX68kSmKuW3iq5rWQ3I4rmQUU9YAwNU7mTxQ+ 32r7BbpRyiWx3A7E87eGba54lm25tuFpuplgtLxuFerLlQBkSUD4BEoj9Jla15VjYJY0 jHUg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=okqRaRwBwVNX5SAIcpeULV4CquW5m/XtV0qY0tI1RzE=; b=HWXKJdYuWQ6r7KRW3kGqsp/VXuIF4AP2WSdAKM18SBPMNWGR90ApmS6GWidol5KTtf v9ae3aCxpVBkCcD1nfIaAeKvVYJC53sN5XwbBblVtOtKPXZsNmNQxp9TzbDYBW8Oepc0 2xrljtANcICppNXAvRSVTZwFKohJi+sFxSKY80x7qfnDoU74dP7ZO4PNfzp01B+BO4Kd S/0PBSQBhcTvsKCVbbtTlGN1KqAIfTos1WRxWvBaaJ3HeLyNurPOjtjYyE9PwmlrWLHA 4zJNHkyVSM2BUittoJpOCQU1DdAD35qT7HHXitPeRdmCMHj9Ic0s+2KedRUQqKfyy/5C 0JXQ==
X-Gm-Message-State: AMke39l7WnRPmpg4CoTV27kDXWCH0zgYljXmqkeIPZ+DML2PFVJ1IEzrVLu4SdcFiUiVViuwFxci8Rs8CVzCmRt0
X-Received: by 10.129.129.3 with SMTP id r3mr5056463ywf.0.1487325656770; Fri, 17 Feb 2017 02:00:56 -0800 (PST)
MIME-Version: 1.0
Received: by 10.37.207.149 with HTTP; Fri, 17 Feb 2017 02:00:56 -0800 (PST)
In-Reply-To: <20170217000247.GB23785@gmail.com>
References: <20170217000247.GB23785@gmail.com>
From: Daniel Bleichenbacher <bleichen@google.com>
Date: Fri, 17 Feb 2017 11:00:56 +0100
Message-ID: <CAPqF7e2xFVqbw0cCi4468_Ag+Lp4QuXPMaR2cNsU4m_F7hFppQ@mail.gmail.com>
To: Marko Kreen <markokr@gmail.com>
Content-Type: multipart/alternative; boundary=94eb2c07dd3e701d9f0548b6fd04
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/SZQHDxJp8jeBTowIhqPdlz81UDQ>
Cc: CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] Critique of AES-GCM-SIV
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 17 Feb 2017 10:01:00 -0000

--94eb2c07dd3e701d9f0548b6fd04
Content-Type: text/plain; charset=UTF-8

On Fri, Feb 17, 2017 at 1:02 AM, Marko Kreen <markokr@gmail.com> wrote:

>
> Hello CFRG!
>
> I have reviewed the AES-GCM-SIV proposal (draft 3).  And while there
> are parts I like - overall direction to higher security and
> getting rid of GCM bitflipping - current design feels "ugly".
> (That's a cryptographic term.)
>
> Specifically, it is supposed to be Nonce-Misuse-Resistant mode.
> That means even if nonce+key repeat, you get enough unpredictability
> from message hash, so security does not fundamentally change.
> Except it is now possible to detect if same message repeats.
>
> But this does not apply to draft-03 version - if key+nonce repeat,
> mode fundamentally changes - it uses fresh key and counter in one
> case and only fresh counter other case.  That is ugly.
>
> Instead it would be clearer (less ugly) if MAC(message) is always
> used as extension of nonce.  They both affect counter.  Similarly,
> either both affect encryption key or neither affects encryption key:
>
> 1) No rekey, only counter is synthesized - that would be basically AES-SIV
>    with modern hash.  This would be strict improvement over AES-GCM,
>    better security (but not too good), but same performance.
>
> 2) MAC(Plaintext) always affects encryption key.  This would give
>    significantly better boundaries than just synthesized counter.
>    But at the cost of extra keygen per message, which is slow for AES,
>    so the mode will seem more costly than current AES-GCM.
>
> While I like the current direction of AES-GCM-SIV of trying to achieve
> higher security level by using rekey, I wonder if it would be
> good to standardise a simple AES-POLYVAL mode like 1) that is also
> clearly securitywise better than AES-GCM.  For use in new designs
> that do care about maximum performance.  Just a thought.
>
>
> To throw out some ideas on 2), here is my proposal how to synthesize
> both key and counter based on MAC.
>
>
> AES-GCM-SAFE
> ============
>
> Cipher mode that uses key, nonce and MAC(message)
> to synthesize both counter and encryption key.
>
> Input:
>   K = 128/256-bit key
>   N = 128-bit Nonce
>   P = plaintext
>   A = additional data
>
> Process:
>   AuthKey = AES(K, N)
>   SubKey1 = AES(K, N xor 1)
>   RawTag = POLYVAL(AuthKey, PAD(A) || PAD(P) || LEN(A) || LEN(P))
>   Tag = AES(K, N xor RawTag)
>   Counter = AES(K, Tag)
>   SubKey2 = AES(K, Tag xor 1)
>   EncKey/128 = SubKey1 xor SubKey2
>   EncKey/256 = SubKey1 || SubKey2
>   CipherText = AES-CTR(EncKey, Counter, P) || Tag
>
> Where:
>   || - concat
>   xor 1 - flip lowest bit of first byte
>   LEN(V) - number of bits in V in 64-bit little-endian format
>   PAD(V) - zero-pad to full block
>   AES(K, V) - Encrypt V with key K
>   AES-CTR(K, C, V) - Encrypt V with key K and counter C
>
> Improvements
>
> + When key and nonce repeat, then same AuthKey is used.  But both
>   counter and encryption key will be synthesized based on MAC.
>
> + EncKey is used only for encrypting plaintext, so no need to waste
>   bits on domain-separation.  Thus full 128-bit counter can be used.
>
> * There are no steps that need dropping bits so 128-bit nonce can
>   be used.  As this is supposed to be high-security mode.
>
> + More natural 128/256-bit keygen for EncKey.  It's faster too
>   due to less blocks encrypted.
>
> + Counter is not sent in clear.  While sending counter in clear does
>   not change probability of catastrophic failure, it does make
>   exploiting it less expensive.
>
> Notes
>
> * If AES256 has related-key problems when only half of the key changes,
>
>     EncKey/256 = (SubKey1 xor Counter) || SubKey2
>
>   should fix it.  This may be also useful if shorter nonce is used.
>
> * Its possible to use domain-separation for AES(K,N) vs. AES(K,Tag)
>   but it does not seem necessary.
>
> Comments?
>
> --
> marko
>
> _______________________________________________
> Cfrg mailing list
> Cfrg@irtf.org
> https://www.irtf.org/mailman/listinfo/cfrg
>

I have problems to see how this proposal is safe.
I.e. Cooley used that POLYVAL returns 0 if A and P are empty in the
AES-GCM-SIV cryptanalysis.
In the proposal above using A="" and P = "" results in
Tag = AES(K,N)
Therefore an attacker can use the proposal above as an oracle to for
encrypting single blocks with K.
This is all that is needed to break the proposal.
Hence it seems to me that even a nonce respecting adversary can break this
proposal.

I actually don't know what "ugly" means as a cryptographic term.
My guess would something like difficult to formally analyze.
E.g. in the proposal above if N and N xor 1 are both used as nonces then
AuthKey and SubKey1 change their role and that seems to add a lot of
complexity
to a potential analysis.

--94eb2c07dd3e701d9f0548b6fd04
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">=
On Fri, Feb 17, 2017 at 1:02 AM, Marko Kreen <span dir=3D"ltr">&lt;<a href=
=3D"mailto:markokr@gmail.com" target=3D"_blank">markokr@gmail.com</a>&gt;</=
span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e=
x;border-left:1px #ccc solid;padding-left:1ex"><br>
Hello CFRG!<br>
<br>
I have reviewed the AES-GCM-SIV proposal (draft 3).=C2=A0 And while there<b=
r>
are parts I like - overall direction to higher security and<br>
getting rid of GCM bitflipping - current design feels &quot;ugly&quot;.<br>
(That&#39;s a cryptographic term.)<br>
<br>
Specifically, it is supposed to be Nonce-Misuse-Resistant mode.<br>
That means even if nonce+key repeat, you get enough unpredictability<br>
from message hash, so security does not fundamentally change.<br>
Except it is now possible to detect if same message repeats.<br>
<br>
But this does not apply to draft-03 version - if key+nonce repeat,<br>
mode fundamentally changes - it uses fresh key and counter in one<br>
case and only fresh counter other case.=C2=A0 That is ugly.<br>
<br>
Instead it would be clearer (less ugly) if MAC(message) is always<br>
used as extension of nonce.=C2=A0 They both affect counter.=C2=A0 Similarly=
,<br>
either both affect encryption key or neither affects encryption key:<br>
<br>
1) No rekey, only counter is synthesized - that would be basically AES-SIV<=
br>
=C2=A0 =C2=A0with modern hash.=C2=A0 This would be strict improvement over =
AES-GCM,<br>
=C2=A0 =C2=A0better security (but not too good), but same performance.<br>
<br>
2) MAC(Plaintext) always affects encryption key.=C2=A0 This would give<br>
=C2=A0 =C2=A0significantly better boundaries than just synthesized counter.=
<br>
=C2=A0 =C2=A0But at the cost of extra keygen per message, which is slow for=
 AES,<br>
=C2=A0 =C2=A0so the mode will seem more costly than current AES-GCM.<br>
<br>
While I like the current direction of AES-GCM-SIV of trying to achieve<br>
higher security level by using rekey, I wonder if it would be<br>
good to standardise a simple AES-POLYVAL mode like 1) that is also<br>
clearly securitywise better than AES-GCM.=C2=A0 For use in new designs<br>
that do care about maximum performance.=C2=A0 Just a thought.<br>
<br>
<br>
To throw out some ideas on 2), here is my proposal how to synthesize<br>
both key and counter based on MAC.<br>
<br>
<br>
AES-GCM-SAFE<br>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D<br>
<br>
Cipher mode that uses key, nonce and MAC(message)<br>
to synthesize both counter and encryption key.<br>
<br>
Input:<br>
=C2=A0 K =3D 128/256-bit key<br>
=C2=A0 N =3D 128-bit Nonce<br>
=C2=A0 P =3D plaintext<br>
=C2=A0 A =3D additional data<br>
<br>
Process:<br>
=C2=A0 AuthKey =3D AES(K, N)<br>
=C2=A0 SubKey1 =3D AES(K, N xor 1)<br>
=C2=A0 RawTag =3D POLYVAL(AuthKey, PAD(A) || PAD(P) || LEN(A) || LEN(P))<br=
>
=C2=A0 Tag =3D AES(K, N xor RawTag)<br>
=C2=A0 Counter =3D AES(K, Tag)<br>
=C2=A0 SubKey2 =3D AES(K, Tag xor 1)<br>
=C2=A0 EncKey/128 =3D SubKey1 xor SubKey2<br>
=C2=A0 EncKey/256 =3D SubKey1 || SubKey2<br>
=C2=A0 CipherText =3D AES-CTR(EncKey, Counter, P) || Tag<br>
<br>
Where:<br>
=C2=A0 || - concat<br>
=C2=A0 xor 1 - flip lowest bit of first byte<br>
=C2=A0 LEN(V) - number of bits in V in 64-bit little-endian format<br>
=C2=A0 PAD(V) - zero-pad to full block<br>
=C2=A0 AES(K, V) - Encrypt V with key K<br>
=C2=A0 AES-CTR(K, C, V) - Encrypt V with key K and counter C<br>
<br>
Improvements<br>
<br>
+ When key and nonce repeat, then same AuthKey is used.=C2=A0 But both<br>
=C2=A0 counter and encryption key will be synthesized based on MAC.<br>
<br>
+ EncKey is used only for encrypting plaintext, so no need to waste<br>
=C2=A0 bits on domain-separation.=C2=A0 Thus full 128-bit counter can be us=
ed.<br>
<br>
* There are no steps that need dropping bits so 128-bit nonce can<br>
=C2=A0 be used.=C2=A0 As this is supposed to be high-security mode.<br>
<br>
+ More natural 128/256-bit keygen for EncKey.=C2=A0 It&#39;s faster too<br>
=C2=A0 due to less blocks encrypted.<br>
<br>
+ Counter is not sent in clear.=C2=A0 While sending counter in clear does<b=
r>
=C2=A0 not change probability of catastrophic failure, it does make<br>
=C2=A0 exploiting it less expensive.<br>
<br>
Notes<br>
<br>
* If AES256 has related-key problems when only half of the key changes,<br>
<br>
=C2=A0 =C2=A0 EncKey/256 =3D (SubKey1 xor Counter) || SubKey2<br>
<br>
=C2=A0 should fix it.=C2=A0 This may be also useful if shorter nonce is use=
d.<br>
<br>
* Its possible to use domain-separation for AES(K,N) vs. AES(K,Tag)<br>
=C2=A0 but it does not seem necessary.<br>
<br>
Comments?<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
--<br>
marko<br>
<br>
______________________________<wbr>_________________<br>
Cfrg mailing list<br>
<a href=3D"mailto:Cfrg@irtf.org">Cfrg@irtf.org</a><br>
<a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" rel=3D"noreferrer" t=
arget=3D"_blank">https://www.irtf.org/mailman/<wbr>listinfo/cfrg</a><br>
</font></span></blockquote></div><br></div><div class=3D"gmail_extra">I hav=
e problems to see how this proposal is safe.</div><div class=3D"gmail_extra=
">I.e. Cooley used that POLYVAL returns 0 if A and P are empty in the AES-G=
CM-SIV cryptanalysis.</div><div class=3D"gmail_extra">In the proposal above=
 using A=3D&quot;&quot; and P =3D &quot;&quot; results in=C2=A0</div><div c=
lass=3D"gmail_extra">Tag =3D AES(K,N)</div><div class=3D"gmail_extra">There=
fore an attacker can use the proposal above as an oracle to for encrypting =
single blocks with K.</div><div class=3D"gmail_extra">This is all that is n=
eeded to break the proposal.</div><div class=3D"gmail_extra">Hence it seems=
 to me that even a nonce respecting adversary can break this proposal.</div=
><div class=3D"gmail_extra"><br></div><div class=3D"gmail_extra">I actually=
 don&#39;t know what &quot;ugly&quot; means as a cryptographic term.</div><=
div class=3D"gmail_extra">My guess would something like difficult to formal=
ly analyze.</div><div class=3D"gmail_extra">E.g. in the proposal above if N=
 and N xor 1 are both used as nonces then</div><div class=3D"gmail_extra">A=
uthKey and SubKey1 change their role and that seems to add a lot of complex=
ity</div><div class=3D"gmail_extra">to a potential analysis.=C2=A0</div><di=
v class=3D"gmail_extra"><br></div></div>

--94eb2c07dd3e701d9f0548b6fd04--


From nobody Fri Feb 17 04:53:03 2017
Return-Path: <markokr@gmail.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 184F01299D9 for <cfrg@ietfa.amsl.com>; Fri, 17 Feb 2017 04:53:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 OOU3tG2JP052 for <cfrg@ietfa.amsl.com>; Fri, 17 Feb 2017 04:53:00 -0800 (PST)
Received: from mail-lf0-x244.google.com (mail-lf0-x244.google.com [IPv6:2a00:1450:4010:c07::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5BF7A1299D6 for <cfrg@irtf.org>; Fri, 17 Feb 2017 04:53:00 -0800 (PST)
Received: by mail-lf0-x244.google.com with SMTP id q89so3778892lfi.1 for <cfrg@irtf.org>; Fri, 17 Feb 2017 04:53:00 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=gxq7BeN2t5XP32Qco0S2n54IdrHiUws5hEaZoiGuuD0=; b=pzfm2n8Zw34Mjky1xCwLhVL4NtayYNZch7q6GRvJMptcLoaHxOE0WZwcfOo4Ki/02K hQt7R5UUvqd6djCaBkimrFUdSNLIAiw3VcT2GffzwltEkLHscjcuCSX19jJ2WAukMZIl EpHn2wN49kFut6VlvfxyGWTf9G1CpsZWntIEz8v7dkPV0XIa8rmczviDJE/lNg7ruCBt Hk3cmq93Qjohc2qwdHP1o+7wBpboW/l66FD+1pzBcdo23X1oN9gPCR8Q1zramgUlrLYa WBo5K/xcFMbMiDljjf28hhsz0nFE3tAixifGEwcpFrYcauhv3w+JBcQj6IM05Hjr3pNf dhfA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=gxq7BeN2t5XP32Qco0S2n54IdrHiUws5hEaZoiGuuD0=; b=eCMOXhV56MEOSEhNIiY5kLw8881v4DV9eLSAbaQQ+jbz4tcwisl8AJG/uRTwM+Vwea DGGiqGnVOhsPx71u5FrFQcQ70Qi25H2a9P045jIA9x6LtdEj2VaK1DmZKKYP43UV+7+u OJ5rUBM+RarRi1FvnzMwOHvyrzeOPUq8BbuFetvvw8IokT/W3/TeASOeLl1+sd6lTCXP 5K/iCcJEZXsLUiGxohkCLMhwEEhsKRgvgZ8GwfI3H58wTht9A7OalXycZdiJThRoTA9c CPFTRzon218HAsBCpq94QNM8dhE7xTcIuqDvju4MMfOarNWrz1G4d+VpJyC92jqIn48z 6WxA==
X-Gm-Message-State: AMke39mKhZtM46q4/JHfYg/JZhpKoGf09uVVr6L+CjYmDZcrUkHmsQ0vIXPK6HamjBpZ7A==
X-Received: by 10.25.196.146 with SMTP id u140mr1832384lff.21.1487335978499; Fri, 17 Feb 2017 04:52:58 -0800 (PST)
Received: from gmail.com (138.246.50.84.sta.estpak.ee. [84.50.246.138]) by smtp.gmail.com with ESMTPSA id 12sm2506604lju.16.2017.02.17.04.52.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Feb 2017 04:52:57 -0800 (PST)
Date: Fri, 17 Feb 2017 14:52:55 +0200
From: Marko Kreen <markokr@gmail.com>
To: Daniel Bleichenbacher <bleichen@google.com>
Message-ID: <20170217125255.GA16732@gmail.com>
References: <20170217000247.GB23785@gmail.com> <CAPqF7e2xFVqbw0cCi4468_Ag+Lp4QuXPMaR2cNsU4m_F7hFppQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CAPqF7e2xFVqbw0cCi4468_Ag+Lp4QuXPMaR2cNsU4m_F7hFppQ@mail.gmail.com>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/D2omEoDbiNM-IHrCtYROa9RxuD8>
Cc: CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] Critique of AES-GCM-SIV
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 17 Feb 2017 12:53:02 -0000

On Fri, Feb 17, 2017 at 11:00:56AM +0100, Daniel Bleichenbacher wrote:
> On Fri, Feb 17, 2017 at 1:02 AM, Marko Kreen <markokr@gmail.com> wrote:
> > I have reviewed the AES-GCM-SIV proposal (draft 3).  And while there
> > are parts I like - overall direction to higher security and
> > getting rid of GCM bitflipping - current design feels "ugly".
> > (That's a cryptographic term.)

> I actually don't know what "ugly" means as a cryptographic term.

Well, it was supposed to be a joke...

> My guess would something like difficult to formally analyze.

But I think we are mostly on same page.  My main complaint was that
if it's nonce-misuse-resistant mode, then why does nonce misuse
have such a big effect on behaviour: on one case message is protected
by fresh key and counter, on other case only fresh counter.

So nonce misuse makes it behave as different mode that needs to
be analyzed separately.

> E.g. in the proposal above if N and N xor 1 are both used as nonces then
> AuthKey and SubKey1 change their role and that seems to add a lot of
> complexity
> to a potential analysis.

But they are used for completely different algorithms?  If such
cross-algorithm usage is exploitable, it seems to mean both
algorithms are unexpectedly weak and should not be used?

Still, it should be simple to fix it.

> > Comments?

> I have problems to see how this proposal is safe.
> I.e. Cooley used that POLYVAL returns 0 if A and P are empty in the
> AES-GCM-SIV cryptanalysis.
> In the proposal above using A="" and P = "" results in
> Tag = AES(K,N)
> Therefore an attacker can use the proposal above as an oracle to for
> encrypting single blocks with K.
> This is all that is needed to break the proposal.
> Hence it seems to me that even a nonce respecting adversary can break this
> proposal.

Thank you for your review.  Funny thing is that I was rather unsure
about xor N part when encrypting RawTag, but then I simply copied
what current AES-GCM-SIV does.

But main thing I take from your comment is that encrypting with K
does need domain separation between public and private values.

Here is draft 2 of AES-GCM-SAFE with following changes:
- remove xor 1, instead use recursive encryption
- remove xor N when encrypting RawTag
- spent 1 bit to separate public and private encryptions with K.
- add xor N to SubKey2 to keep all nonce bits in play.
- add AuthIV to get rid of special cases of zero-len and zero-filled
  data for POLYVAL.

AES-GCM-SAFE (draft 2)
======================

Cipher mode that uses key, nonce and MAC(message)
to synthesize both counter and encryption key.

Input:
  K = 128/256-bit key
  N = 128-bit Nonce
  P = plaintext
  A = additional data

Process:
  AuthKey = AES(K, SetBit(N, 0))
  SubKey1 = AES(K, SetBit(AuthKey, 0))
  AuthIV = AES(K, SetBit(SubKey1, 0))
  RawTag = POLYVAL(AuthKey, AuthIV || PAD(A) || PAD(P) || LEN(A) || LEN(P))
  Tag = AES(K, SetBit(RawTag, 1))
  SubKey2 = AES(K, SetBit(Tag, 0)) xor N
  Counter = AES(K, SetBit(SubKey2, 0))
  EncKey/128 = SubKey1 xor SubKey2
  EncKey/256 = SubKey1 || SubKey2
  CipherText = AES-CTR(EncKey, Counter, P) || Tag

Where:
  || - concat
  SetBit(v, bit) - set low bit value
  LEN(V) - number of bits in V in 64-bit little-endian format
  PAD(V) - zero-pad to full block
  AES(K, V) - Encrypt V with key K
  AES-CTR(K, C, V) - Encrypt V with key K and counter C

I don't see the need to separate internal encryptions, but than means
any of (AuthKey, AuthIV, SubKey1, SubKey2, Counter) may be equal.  It seems
like a good thing - less constrants for attacker to expoit.

Your thoughts?


-- 
marko


From nobody Fri Feb 17 06:23:27 2017
Return-Path: <azet@azet.org>
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 1615A129A9D for <cfrg@ietfa.amsl.com>; Fri, 17 Feb 2017 06:23:26 -0800 (PST)
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, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=azet.org
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 I-4S7W-fjpE8 for <cfrg@ietfa.amsl.com>; Fri, 17 Feb 2017 06:23:23 -0800 (PST)
Received: from mail-wr0-x235.google.com (mail-wr0-x235.google.com [IPv6:2a00:1450:400c:c0c::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C41C7129A9A for <cfrg@irtf.org>; Fri, 17 Feb 2017 06:23:22 -0800 (PST)
Received: by mail-wr0-x235.google.com with SMTP id z61so30743081wrc.1 for <cfrg@irtf.org>; Fri, 17 Feb 2017 06:23:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=azet.org; s=gmail; h=subject:mime-version:from:in-reply-to:date:cc:message-id:references :to; bh=/9c/zluxLLGSksyRj6iiDlygv2CG5c0k+zAkk7noBos=; b=CMbkdys746soUHyUBP0cmDAEUsTKmZrsLCQa1FNV0efZK8YlL2TWuy9GhummLMOQHl 0VktRYxm9IaZS+0gIjQy20xxRcPvHMinqTox6tsOCPaziwELqSw5wBL+mV5CHV7G25Yy tfBCGBvJe+tTgUkGMCGU5NGJY0nPEThUSJh0E=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :message-id:references:to; bh=/9c/zluxLLGSksyRj6iiDlygv2CG5c0k+zAkk7noBos=; b=jjSf8gslZZ+kBBqWKms2Ez5grUfj1HHx3FLrwxbYw5bAlHhYd9wOp2G2QvySnFZkZI xoNevGIGPLvQPddJJku5RI3wnAHiCoIxqwjMIZ/LwdD3Jz1Nr3/UlD9Z1DxV4jSQ0DOL GdKLowJIVHlvYqgwWI5RmaSLhl7HfGjDe9wihw5pZslF+zbMhwvo5Z1UbqlrwJ9dL848 EjAqoQSzfTTzXt5X5rsw77fSmjK2JMOEICLlmtUMTxNKErR2dGRKg3ghiypRx32TMrbo nsDOYddKwSDAZfVkcglXXF2Qabcvfstwtyi3nv9lhkSANbStkbK8nhu8U31EcpBTH9aI ymCQ==
X-Gm-Message-State: AMke39liJtf69Kz98KP6zY+szYeebCQX1btwuq/8aexxz6cFG1cLVGpK6pFAJtB1uLbT7g==
X-Received: by 10.223.160.206 with SMTP id n14mr6810658wrn.31.1487341401264; Fri, 17 Feb 2017 06:23:21 -0800 (PST)
Received: from [192.168.1.120] ([156.218.58.77]) by smtp.gmail.com with ESMTPSA id k44sm13143269wrk.59.2017.02.17.06.23.19 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 17 Feb 2017 06:23:20 -0800 (PST)
Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\))
Content-Type: multipart/signed; boundary="Apple-Mail=_1E848329-558C-47DE-9CE7-7C9331AB8C77"; protocol="application/pgp-signature"; micalg=pgp-sha512
X-Pgp-Agent: GPGMail
From: Aaron Zauner <azet@azet.org>
In-Reply-To: <20170217125255.GA16732@gmail.com>
Date: Fri, 17 Feb 2017 16:23:16 +0200
Message-Id: <D5AC33AD-0FC1-48FD-AB97-27B31730454D@azet.org>
References: <20170217000247.GB23785@gmail.com> <CAPqF7e2xFVqbw0cCi4468_Ag+Lp4QuXPMaR2cNsU4m_F7hFppQ@mail.gmail.com> <20170217125255.GA16732@gmail.com>
To: Marko Kreen <markokr@gmail.com>
X-Mailer: Apple Mail (2.3124)
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/GiTB3Hc6ae1qXFFqJg7iBVb35gY>
Cc: CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] Critique of AES-GCM-SIV
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 17 Feb 2017 14:23:26 -0000

--Apple-Mail=_1E848329-558C-47DE-9CE7-7C9331AB8C77
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=us-ascii


> On 17 Feb 2017, at 14:52, Marko Kreen <markokr@gmail.com> wrote:
>=20
> On Fri, Feb 17, 2017 at 11:00:56AM +0100, Daniel Bleichenbacher wrote:
>> On Fri, Feb 17, 2017 at 1:02 AM, Marko Kreen <markokr@gmail.com> =
wrote:
>>> I have reviewed the AES-GCM-SIV proposal (draft 3).  And while there
>>> are parts I like - overall direction to higher security and
>>> getting rid of GCM bitflipping - current design feels "ugly".
>>> (That's a cryptographic term.)
>=20
>> I actually don't know what "ugly" means as a cryptographic term.
>=20
> Well, it was supposed to be a joke...
>=20
>> My guess would something like difficult to formally analyze.
>=20
> But I think we are mostly on same page.  My main complaint was that
> if it's nonce-misuse-resistant mode, then why does nonce misuse
> have such a big effect on behaviour: on one case message is protected
> by fresh key and counter, on other case only fresh counter.

Quick comment: This came up in an earlier thread on that topic already, =
I've also brought it up last spring. I think for this I-D in it's =
current form "nonce misuse resistant" might not be the best term (too =
strong, many people assume you can do what you want with the nonce with =
such a construction -- which certainly isn't the case for AES-GCM-SIV as =
proposed here). "nonce-misuse tolerant" came up and other suggestions. I =
haven't seen an update yet.

Aaron

--Apple-Mail=_1E848329-558C-47DE-9CE7-7C9331AB8C77
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----

iQIcBAEBCgAGBQJYpwdVAAoJEOTbZJL9ubXVXz8P/itBtVMqd5Bf3Zf3xyJMKc/n
QHyKyLxHgDYbnzJ2NBvTcZ+sFEJM6/KGwTk61bgLVZpGi6pc/pQwGSUPpdlr1MGN
dST9cNOsF1JLuyTB0/9wNhHXhDaYXffUcmzB4QHZ+mUNn2gi6aV+dvwYrp3FdFzn
8I8UP4vEtfl7gLcqORyoTdr9RrWUCdsknmKkzC60EnaB45lb5Rxdpo6Zkk0/bnV4
bN6JCf17N2Rt+Yy7ylYEUwCz6fne9GAbA+m4kRwLlZYnXMrYm1JENBF6Tye34pGU
dKnfMCmGxxxgGqXPO/Fc2AmNswTLaUv7IEz6s6VFWJ5WfYf52zDj/ZgTu6vbD0fj
9LbnsqTkX+5IpLGGJPtssmCRnNnVLfXCgw3y8BwuAC0/hyKnvAO22bLRJyWgDRBa
hcZjhlWvSMoRdm8LVQAiw/oSoII5Glvshc/csia0Wmu7hKREJeNWKsfQQta5Pbyb
rgmKSwTycvF2zEwF1sKWDe/fHbMAwG5fvrmv7868RHbSeXv3u4/YCiEiVFZqhGY4
rsOPN8wwFw1BQuM/tc8XkLV5DTPHM86JaPbmtypXZEXf+89yeDwQnhCAq20MpxG0
wt4pH0E5DphDvhgtzulLnWWRhEuuCdNssfwnRnA7Y0D2krKE9oFQ5Y3s/9XG8paL
PyMtLEHjXseJAzSQHDt9
=J7Nb
-----END PGP SIGNATURE-----

--Apple-Mail=_1E848329-558C-47DE-9CE7-7C9331AB8C77--


From nobody Fri Feb 17 07:05:26 2017
Return-Path: <markokr@gmail.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 ABC411294A7 for <cfrg@ietfa.amsl.com>; Fri, 17 Feb 2017 07:05:24 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 0UXcor5MsE0c for <cfrg@ietfa.amsl.com>; Fri, 17 Feb 2017 07:05:23 -0800 (PST)
Received: from mail-lf0-x243.google.com (mail-lf0-x243.google.com [IPv6:2a00:1450:4010:c07::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F3D16126BF7 for <cfrg@irtf.org>; Fri, 17 Feb 2017 07:05:22 -0800 (PST)
Received: by mail-lf0-x243.google.com with SMTP id z127so1676011lfa.2 for <cfrg@irtf.org>; Fri, 17 Feb 2017 07:05:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=9RiXnDKq9s0WGPhgQdA1kmsQsLzW8JAHdNM1PJSrl7k=; b=iQqi8s3LhuaNJBK5mxe43QtC2WvpNgMHyV6gC7o8BZqwDystIf40PuBP62nnYu6Ljm cruqju5mH95eqouun/uZj1/HgfvlqK3pnvO/gSdwEyH1/QamMoK7YAMQNW0JA+NzwJRX HpasK8Plr8TzBKQ+oO3Nx7ol8dP1VBnrZ5hPoDMpfO+t5aV5gTAH5K+V2eDoSKgAmlGR XTDR5TFTH8AzassfQDKMOWXOnpezJPJ+RXwoH3kb/wNjcrAZ3Cg4tEIJwBvFmzVyxOCF xig56x/ToCAfizhlXQGZ8ZOuAdegUxVB8PE0PRPrLaAHspUAJqJnZrCYlUcPkpaw9FH/ vCkg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=9RiXnDKq9s0WGPhgQdA1kmsQsLzW8JAHdNM1PJSrl7k=; b=ciM7lBhHeWrULpyL5JJIyNRbABqKMh7Gmwk0tdeNRonYbcpRlhjIB934p/VB98+hIw +G92L0BOiSZhx4Z1e8sX1asl0IT2oTF1NwD4u80HweXOhz/mXJ8QlDtWLTiZ7zCUCrLU jQCVOs//JDxAUlPTUm/tb+/np1GyY5tjtmHXMDqpt7029v8EdxZNXFywWN0jknIedIn5 yia2VfIEpGQVcvyGuCjBvbh/tY82fJrVwjYOy6R2KgcUwCCIQIgJHFmC8U/Td1KdEvHP ownZ4kB70zHl2Nw4kAE0rGSV1zdajDO85/lvYcO2zX37V3rrNtwx6LlYifrTWt3YjTYv 5k3A==
X-Gm-Message-State: AMke39lvEVrpbSp7eNb6V85nHRLn4nhkw9+06UOcGvE2tDO/FDBNSUzH4wl1KE1S5ow54A==
X-Received: by 10.25.44.21 with SMTP id s21mr2422425lfs.56.1487343921118; Fri, 17 Feb 2017 07:05:21 -0800 (PST)
Received: from gmail.com (138.246.50.84.sta.estpak.ee. [84.50.246.138]) by smtp.gmail.com with ESMTPSA id 187sm2559560ljf.12.2017.02.17.07.05.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Feb 2017 07:05:20 -0800 (PST)
Date: Fri, 17 Feb 2017 17:05:18 +0200
From: Marko Kreen <markokr@gmail.com>
To: Aaron Zauner <azet@azet.org>
Message-ID: <20170217150518.GA23850@gmail.com>
References: <20170217000247.GB23785@gmail.com> <CAPqF7e2xFVqbw0cCi4468_Ag+Lp4QuXPMaR2cNsU4m_F7hFppQ@mail.gmail.com> <20170217125255.GA16732@gmail.com> <D5AC33AD-0FC1-48FD-AB97-27B31730454D@azet.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <D5AC33AD-0FC1-48FD-AB97-27B31730454D@azet.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/KLwdyeZ-BZ9SmXwWTm2RM8Tkhs0>
Cc: CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] Critique of AES-GCM-SIV
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 17 Feb 2017 15:05:24 -0000

On Fri, Feb 17, 2017 at 04:23:16PM +0200, Aaron Zauner wrote:
> 
> > On 17 Feb 2017, at 14:52, Marko Kreen <markokr@gmail.com> wrote:
> > 
> > On Fri, Feb 17, 2017 at 11:00:56AM +0100, Daniel Bleichenbacher wrote:
> >> On Fri, Feb 17, 2017 at 1:02 AM, Marko Kreen <markokr@gmail.com> wrote:
> >>> I have reviewed the AES-GCM-SIV proposal (draft 3).  And while there
> >>> are parts I like - overall direction to higher security and
> >>> getting rid of GCM bitflipping - current design feels "ugly".
> >>> (That's a cryptographic term.)
> > 
> >> I actually don't know what "ugly" means as a cryptographic term.
> > 
> > Well, it was supposed to be a joke...
> > 
> >> My guess would something like difficult to formally analyze.
> > 
> > But I think we are mostly on same page.  My main complaint was that
> > if it's nonce-misuse-resistant mode, then why does nonce misuse
> > have such a big effect on behaviour: on one case message is protected
> > by fresh key and counter, on other case only fresh counter.
> 
> Quick comment: This came up in an earlier thread on that topic
> already, I've also brought it up last spring. I think for this I-D in
> it's current form "nonce misuse resistant" might not be the best term
> (too strong, many people assume you can do what you want with the
> nonce with such a construction -- which certainly isn't the case for
> AES-GCM-SIV as proposed here). "nonce-misuse tolerant" came up and
> other suggestions. I haven't seen an update yet.

I'm not complaining about security level as their goal is to replace
AES-GCM, so anything better is a win.

Although better categorization may be good idea, I still feel current
approach can be categorized as "clumsy":

- AEAD with synthesized key and IV when master key or nonce are unique.
- AEAD with only synthesized IV when master key and nonce repeat.

Clearer would be just one mode which does not change category if nonce
repeats:

- AEAD with just synthesized IV (like AES-SIV), no rekey.
- AEAD with synthesized key and IV.

If there is already decision that rekey is OK, then I think it's better
to take time and synthesize both key and IV properly, thus
achieve full nonce misuse resistance.

-- 
marko


From nobody Mon Feb 20 18:12:23 2017
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 D8299129595 for <cfrg@ietfa.amsl.com>; Mon, 20 Feb 2017 18:12:21 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.92
X-Spam-Level: 
X-Spam-Status: No, score=-1.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 R-S6DVAHdfTz for <cfrg@ietfa.amsl.com>; Mon, 20 Feb 2017 18:12:18 -0800 (PST)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0074.outbound.protection.outlook.com [104.47.1.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 4AF2E129586 for <cfrg@irtf.org>; Mon, 20 Feb 2017 18:12:18 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=e4wW8ONYGSlz26J8ioUS+XU9mmZa/W0G2FzLr9BeFqE=; b=WkRJo4yCVWpEH5wPchY4Q6lcJtVk4NyU2+Cd4VzTDE+I+bt5BnkI/c1+1iOMrg9Dfxh/nRQYyxzB9n+tRZhUih+E/MeNHkYLHTxDdbpEb2cXrc1SOn2U5a0HTQzPmfDoUlLWY94b2QBR/yinSb96fQ5AOVV/A1mZ+PSCjvXB3pA=
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com (10.168.2.156) by AM4PR0301MB1908.eurprd03.prod.outlook.com (10.168.3.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Tue, 21 Feb 2017 02:12:14 +0000
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) by AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) with mapi id 15.01.0919.015; Tue, 21 Feb 2017 02:12:13 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "draft-irtf-cfrg-xmss-hash-based-signatures@ietf.org" <draft-irtf-cfrg-xmss-hash-based-signatures@ietf.org>
Thread-Topic: Review of draft-irtf-cfrg-xmss-hash-based-signatures-07 
Thread-Index: AQHSi+fq7bZUKu69YEqbWcQECptCAA==
Date: Tue, 21 Feb 2017 02:12:13 +0000
Message-ID: <D4D152DC.88C79%kenny.paterson@rhul.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [153.224.139.152]
x-microsoft-exchange-diagnostics: 1; AM4PR0301MB1908; 7:aoS90lQ3BiIHIgNktV/3H40/1wm9W4bLTeJsVdTn22kdrI8mim6O8eeCh9cAV2zx5pGDGOAGlmK8hmvAYgJNeKDsqIS9dKc2SQ9HCXFf0O1PMjt/1LgiepOpZ96/cGPIre0VA2/x6a864upFeo7f/949y1MCM6E9pgah4bFOEWZACbr3/x8/saY7P+eqfolekxuOcA2gufKnRQdScv3MYZN9Q3wttyzv+RpmeKbtE2BDKlzLh7RNjxa0LMlU0VkrEQ87BGBsg7WQ4d88AZnEmhyf/VxxSwOqpE7MCq2cT05isj+F9Jfjm/YODUGsOserRrVrU+UTiwU7xrN42Wj4nA==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(199003)(189002)(7736002)(106116001)(92566002)(2900100001)(66066001)(54356999)(97736004)(101416001)(230783001)(2501003)(36756003)(3280700002)(50986999)(8676002)(189998001)(54906002)(6512007)(122556002)(305945005)(81166006)(4001350100001)(81156014)(99286003)(6306002)(4326007)(53936002)(2351001)(25786008)(86362001)(38730400002)(6916009)(110136004)(42882006)(3660700001)(68736007)(77096006)(106356001)(6486002)(3846002)(6116002)(105586002)(5640700003)(5660300001)(74482002)(2906002)(102836003)(8936002)(6436002)(83506001)(6506006); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB1908; H:AM4PR0301MB1906.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 17fa0581-52c0-49d9-fdc3-08d459ff0d23
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR0301MB1908; 
x-microsoft-antispam-prvs: <AM4PR0301MB19087D1BC4265E5F6AEFB1B5BC510@AM4PR0301MB1908.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(120809045254105)(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123558025)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148); SRVR:AM4PR0301MB1908; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0301MB1908; 
x-forefront-prvs: 0225B0D5BC
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <056BBFAC91FF8049B13697D884C1941F@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2017 02:12:13.7347 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB1908
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/X7LpPDDoKGtiKV91jcddHzti-P4>
Cc: Andreas Huelsing <andreas@huelsing.net>, "cfrg@irtf.org" <cfrg@irtf.org>
Subject: [Cfrg] Review of draft-irtf-cfrg-xmss-hash-based-signatures-07
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 21 Feb 2017 02:12:22 -0000

RGVhciBBdXRob3JzLA0KDQpQbGVhc2UgZmluZCBiZWxvdyBteSByZXZpZXcgb2YNCmRyYWZ0LWly
dGYtY2Z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nMgZ2VuZXJpYw0KYXR0YWNrcy4gQWRkaXRpb25hbCBjbGFyaXR5IHdvdWxkIGJlIGJlbmVm
aWNpYWwgaGVyZS4NCnAuNTI6IEknbSBub3Qgc3VyZSB3aGF0IHRoZSBzdHlsZSByZXF1aXJlbWVu
dHMgb24gcmVmZXJlbmNlcyBhcmUsIGJ1dCBpdA0Kd291bGQgYmUgZ29vZCB0byBpbmNsdWRlIHN0
YWJsZSBVUkxzIGZvciB0aGluZ3MgbGlrZSBbSHVlbHNpbmcxM2FdLg0KcC42NTogV2Ugc2hvdWxk
IGRlbGV0ZSBBcHBlbmRpeCBEIGluIGR1ZSBjb3Vyc2UuDQoNCg0KDQo=


From nobody Tue Feb 21 03:49:56 2017
Return-Path: <dbutin@cdc.informatik.tu-darmstadt.de>
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 701571298CA; Tue, 21 Feb 2017 03:49:55 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.2
X-Spam-Level: 
X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.001, URIBL_BLOCKED=0.001] 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 vHoGXE46m2rb; Tue, 21 Feb 2017 03:49:53 -0800 (PST)
Received: from lnx503.hrz.tu-darmstadt.de (lnx503.hrz.tu-darmstadt.de [130.83.156.232]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D1C501298C1; Tue, 21 Feb 2017 03:49:51 -0800 (PST)
Received: from mail.cdc.informatik.tu-darmstadt.de (cdc-info.cdc.informatik.tu-darmstadt.de [130.83.167.6]) by lnx503.hrz.tu-darmstadt.de (8.14.4/8.14.4/HRZ/PMX) with ESMTP id v1LBnYr0012452; Tue, 21 Feb 2017 12:49:34 +0100 (envelope-from dbutin@cdc.informatik.tu-darmstadt.de)
Received: from roundcube.cdc.informatik.tu-darmstadt.de (roundcube.cdc.informatik.tu-darmstadt.de [130.83.167.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mail.cdc.informatik.tu-darmstadt.de (Postfix) with ESMTPSA id 9D9DA23A52; Tue, 21 Feb 2017 12:49:34 +0100 (CET)
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: 7bit
Date: Tue, 21 Feb 2017 12:49:34 +0100
From: Denis Butin <dbutin@cdc.informatik.tu-darmstadt.de>
To: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
Organization: TU Darmstadt
In-Reply-To: <D4D152DC.88C79%kenny.paterson@rhul.ac.uk>
References: <D4D152DC.88C79%kenny.paterson@rhul.ac.uk>
Message-ID: <6196590934811e6740dffbb8417cd1ad@cdc.informatik.tu-darmstadt.de>
X-Sender: dbutin@cdc.informatik.tu-darmstadt.de
User-Agent: Roundcube Webmail/1.1.5
X-PMX-TU: seen v1.2 by 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2017.2.21.113616
X-PMX-RELAY: outgoing
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/l2gsBAexRg0Q5Ctoj50KxYU4Ot0>
Cc: Andreas Huelsing <andreas@huelsing.net>, draft-irtf-cfrg-xmss-hash-based-signatures@ietf.org, cfrg@irtf.org, Stefan Gazdag <stefan-lukas_gazdag@genua.de>
Subject: Re: [Cfrg] Review of draft-irtf-cfrg-xmss-hash-based-signatures-07
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 21 Feb 2017 11:49:55 -0000

Hi Kenny,

Many thanks for your efforts, much appreciated! We are now revising the 
document based your comments and will come up with a new version 
shortly.

Best,
Denis

On 2017-02-21 03:12, Paterson, Kenny wrote:
> Dear Authors,
> 
> Please find below my review of
> draft-irtf-cfrg-xmss-hash-based-signatures-07
> (https://datatracker.ietf.org/doc/draft-irtf-cfrg-xmss-hash-based-signature
> s/).
> 
> Regards,
> 
> Kenny
> 
> ----
> 
> Review of draft-irtf-cfrg-xmss-hash-based-signatures-07
> 
> The draft is a mature, clear, and useful document. It is almost ready 
> for
> publication; only minor nits below.
> 
> p.1: "hash-based signatures withstand attacks using quantum computers"
> ---> ""hash-based signatures are believed to withstand attacks using
> quantum computers" or ""hash-based signatures can withstand attacks 
> using
> quantum computers"
> p.3: "from 2006 onwards" --> "from the mid 2000s onwards".
> p.3: "composed of" --> "composed from".
> p.4: "standardizing and introducing" --> "introducing and 
> standardizing"
> (depends to whom the introducing is being done here!).
> p.4: check for update to the text claiming that [BDH11] is the "latest
> stateful hash-based signature scheme".
> p.5: "Addition for XMSS"--> "Additionally, for XMSS:"
> p.6: "used implicitly" --> "omitted".
> p.7: "aside of" --> "aside from".
> p.7: "a n-byte value" --> "an n-byte value".
> p.7: setter methods?
> p.8: text beginning: "One type for the hashes ..." is not a grammatical
> sentence - it lacks verbs. You could insert "is used" in a couple of
> places.
> p.8: "The latter being" --> "The latter is".
> p.12: "hold" --> "held".
> p.13: here you introduce functions F and PRF for the first time, 
> referring
> to security requirements in Section 8 for some more details. I think 
> you
> should also include a forward reference here to Section 5 for specific
> instantiations.
> p.14: "end of this section" --> "section 3.1.7".
> p.16: the pseudocode for Algorithm 5 (WOTS_sign) has a loop in which 
> csum
> is increased by values w-1-msg[i]. Is it possible that csum could 
> overflow
> in an implementation, and what would be the consequences? Is a note 
> needed
> to explain the required bitsize of csum to avoid this?
> p.19: "If they match, the signature is valid." --> "If they match, the
> signature is declared valid.".
> p.19:  In Section 4.1.2, you introduce functions H and H_msg. Here you
> should refer to Section 5 for specific instantiations and Section 8 for
> security considerations.
> p.19: "2 * n" --> "2n" (for consistency).
> p.20: "The WOTS+ private keys MUST be generated as described in Section
> 3.1. To reduce the private key size, a cryptographic pseudorandom 
> method
> MAY be used as discussed at the end of this section." The "MUST" and 
> the
> "MAY" here initially seem incompatible. If you MUST do X, then you 
> cannot
> ever do Y which is different from X. But it turns out that Section 3.1
> also mentions the pseudorandom approach as an option, and refers to a
> later section, so the "MUST" and "MAY" are not strictly incompatible.
> However, it would be nice to find a way to address this small issue.
> p.23: In the pseudocode for Algorithm 10, we have "PK = root || SEED".
> Should OID be included here also? It's included in the byte structure 
> on
> page 24.
> p.24: You talk about the authentication path being h*n bytes and being 
> an
> array of h n-byte strings. Are the conversions clear? (Perhaps this is
> covered by notation introduced in Section 2?)
> p.25: "before the updated private key" --> "before the private key is
> updated". (This one is important: the current text could read as: 
> "output
> the signature first, then output the updated private key"!
> p.26: delete "just".
> p.32: again, should OID be part of the public key, PK_MT?
> p.39: "Finally, for the PRF no full-fledged HMAC is needed as the 
> message
> length is fixed." Here you could add "meaning that standard length
> extension attacks are not a concern here".
> p.39: "We use n-bytes for domain separation for consistency with the 
> SHA2
> implementations". This was a bit unclear to me. What domain separation? 
> Do
> you mean in the calls to the "toByte" function?
> p.43: Delete the text "Other signatures methods are out of scope....
> follow-up work." This is not a research paper!
> p.43: "The draft" --> "This note".
> p.44: "available on most platforms" does not seem to make sense - the 
> part
> about availability in crypto libraries does.
> p.44: "leads parameters that provides" --> "leads to parameters that
> provide".
> p.44: "less common" --> "less widely supported".
> p.44: "more assignments" --> "further assignments".
> p.44: "sufficient details" --> "sufficient detail".
> p.48: "message signature pair" --> "message, signature pair" ?
> p.48: "estimates when" --> "estimates for when".
> p.48: "A full security proof for the scheme described here can be found 
> in
> [HRS16]". Can you be more precise about which schemes are covered in
> [HRS16]? WOTS+, XMSS, or XMSS^MT (or all three?).
> p.48: "This proof shows that an attacker..." - this text may need to be
> modified, depending on which schemes you are talking about.
> p.49: "allows to prove that it is not enough for an adversary to break 
> the
> collision resistance of the underlying hash function". This feels like
> awkward phrasing. I don't think you've proved an impossibility result;
> rather I think you have proof of unforgeability under a different
> assumption than collision resistance. Is the assumption you need 
> strictly
> weaker than collision resistance? This text needs some reworking, I 
> think.
> How about "allows a proof of security under a weaker assumption than
> collision resistance"?
> p.49: "This can also be shown formally in the random oracle model." 
> What
> can? That the "above attack" is thwarted? If so, what positive security
> result do you then obtain? I think it's probably worth stating at this
> point.
> p.49: "The given bit security values...". I would suggest adding an 
> extra
> sentence here to say that while generic attacks are prevented by your
> choices of parameters, there could be quantum speed-ups for specific 
> hash
> functions (since we don't yet know the full power of quantum 
> algorithms).
> p.50: "relies on the security of a cryptographic hash function". This 
> is a
> bit vague. Can you be more specific about which security properties are
> relied upon, or maybe just say "relies on specific security properties 
> of
> cryptographic hash functions"?
> p.50: Section 8.3: same issue as above: there could be quantum 
> speed-ups
> for specific hash functions, but the text only covers generic
> attacks. Additional clarity would be beneficial here.
> p.52: I'm not sure what the style requirements on references are, but 
> it
> would be good to include stable URLs for things like [Huelsing13a].
> p.65: We should delete Appendix D in due course.


From nobody Thu Feb 23 08:28:28 2017
Return-Path: <internet-drafts@ietf.org>
X-Original-To: cfrg@ietf.org
Delivered-To: cfrg@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id A5E57129A25; Thu, 23 Feb 2017 08:28:26 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.45.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <148786730667.20244.7762484121330383342.idtracker@ietfa.amsl.com>
Date: Thu, 23 Feb 2017 08:28:26 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/YwYVOpfgZWCgS3sRwsSCaGBUqpU>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-gcmsiv-04.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 23 Feb 2017 16:28:27 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Crypto Forum of the IETF.

        Title           : AES-GCM-SIV: Nonce Misuse-Resistant Authenticated Encryption
        Authors         : Shay Gueron
                          Adam Langley
                          Yehuda Lindell
	Filename        : draft-irtf-cfrg-gcmsiv-04.txt
	Pages           : 46
	Date            : 2017-02-23

Abstract:
   This memo specifies two authenticated encryption algorithms that are
   nonce misuse-resistant - that is that they do not fail
   catastrophically if a nonce is repeated.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-irtf-cfrg-gcmsiv/

There's also a htmlized version available at:
https://tools.ietf.org/html/draft-irtf-cfrg-gcmsiv-04

A diff from the previous version is available at:
https://www.ietf.org/rfcdiff?url2=draft-irtf-cfrg-gcmsiv-04


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/


From nobody Thu Feb 23 08:32:16 2017
Return-Path: <alangley@gmail.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 523C7129A20 for <cfrg@ietfa.amsl.com>; Thu, 23 Feb 2017 08:32:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.597
X-Spam-Level: 
X-Spam-Status: No, score=-2.597 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 e00ScJGsjGOp for <cfrg@ietfa.amsl.com>; Thu, 23 Feb 2017 08:32:13 -0800 (PST)
Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6328312995A for <cfrg@ietf.org>; Thu, 23 Feb 2017 08:32:13 -0800 (PST)
Received: by mail-it0-x230.google.com with SMTP id y135so7554769itc.1 for <cfrg@ietf.org>; Thu, 23 Feb 2017 08:32:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=AD/YOXnU/fUv+gA7zMSbIqGMPNwqql2YpdAFwD5jglw=; b=R4ArHgIiL2cz6Zfq0FFCsP3Pj7tcGKGkABRIkpSLivg13dz9pHt/CBmRX4pKR9tJVM W6mhTx/d0D0Mjmeb6mMV2TKcnu/pcg+STG3X/K8O8Mpq3Q9si57RppHJoJNsEp3ti6dC Agz6pukWmbvBZ86FH18dcaNY05cUuf0oGW51BOE5/p95NP8kkJ3rmtO72SHSZtZE28U1 ZPlNSWVOAd1GbeP/o2S9QVD21j+kvrC4ZNJtU8K756JOBhLHw74Hci4uxvOgzaRG6scy qmwVw6jyzIAmsHzi255pNKzr7RxOrzTrDybE2hxwCtPaXjq/26+3NMlP7gJmLQQoXgpc b38g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=AD/YOXnU/fUv+gA7zMSbIqGMPNwqql2YpdAFwD5jglw=; b=fac9qyYlenH2H2odxMFu0aMnuotowjX/qSQRYvGsSX1g3yZxZH4RQO2AadRBM2fYOO 4oNjRsA+WcRvv2oVvqABTcwN8LyQfsWHxQYfVe1IRklIcLP1ICdTa1gApgzstLZ7MLmv k2pvMpz04WITsLD3jfMx4J6t9VG5gIaywC+Gm1282pVqTYH8xN2IcxI84wVSpX/QgPEH PNFy10dkyqsONiWX0n270ZEKPs8XGu7URzHz6P0EwTT6blIL86fMxmWqVsNMHGROiDOa U9rCG9qjqaTKCS7cLnvIUF1lXC3sSZQNb81R9/uAH/VlS3HuWo8QvvHwMLCVPMFT/s3+ jmvw==
X-Gm-Message-State: AMke39nRSUKyatCPbgIs/7TJTa01Pomg+E9UZl126bV+5mkRvscHtNImVDZ/Yud2ZoUJpMTz4eeHkRvXsnbtfw==
X-Received: by 10.36.216.9 with SMTP id b9mr3205867itg.82.1487867532646; Thu, 23 Feb 2017 08:32:12 -0800 (PST)
MIME-Version: 1.0
Sender: alangley@gmail.com
Received: by 10.36.144.4 with HTTP; Thu, 23 Feb 2017 08:32:12 -0800 (PST)
In-Reply-To: <148786730667.20244.7762484121330383342.idtracker@ietfa.amsl.com>
References: <148786730667.20244.7762484121330383342.idtracker@ietfa.amsl.com>
From: Adam Langley <agl@imperialviolet.org>
Date: Thu, 23 Feb 2017 08:32:12 -0800
X-Google-Sender-Auth: 8_zqpajoGt_8Tpd4i35EAgTkfxI
Message-ID: <CAMfhd9VumcZ76MJjx3Kr8gw6mbUJc7x_pPcSDR2V0Jiuz+sm-w@mail.gmail.com>
To: cfrg@ietf.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/hiTNn6B-FuvXBgPrgw42xT3meFw>
Cc: Yehuda Lindell <yehuda.lindell@biu.ac.il>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-gcmsiv-04.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 23 Feb 2017 16:32:15 -0000

On Thu, Feb 23, 2017 at 8:28 AM,  <internet-drafts@ietf.org> wrote:
> A New Internet-Draft is available from the on-line Internet-Drafts direct=
ories.
> This draft is a work item of the Crypto Forum of the IETF.
>
>         Title           : AES-GCM-SIV: Nonce Misuse-Resistant Authenticat=
ed Encryption
>         Authors         : Shay Gueron
>                           Adam Langley
>                           Yehuda Lindell
>         Filename        : draft-irtf-cfrg-gcmsiv-04.txt
>         Pages           : 46
>         Date            : 2017-02-23

Dear all,

Revision 04 of the AES-GCM-SIV draft
(https://tools.ietf.org/html/draft-irtf-cfrg-gcmsiv-04) has just been
published. This contains only tidy-ups from revision 03=E2=80=94no substant=
ive
changes have been made.

Most importantly, it now references a paper
(https://eprint.iacr.org/2017/168) by Shay and Yehuda in which they
give precise security bounds for AES-GCM-SIV. Specifically I'd like to
highlight to the group theorem six (which gives those bounds) and
section 5.3 (which gives concrete values of those bounds at a number
of locations in the configuration space).

In light of previous discussions in the working group, section seven
includes some remarks about the meaning of nonce-misuse resistance.

(Comments about the paper, including sightings of typos, are welcome
to be sent to us directly; no need to clutter this list with them.)


Cheers

AGL


From nobody Thu Feb 23 15:12:30 2017
Return-Path: <dfoxfranke@gmail.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 D3E2A129C33 for <cfrg@ietfa.amsl.com>; Thu, 23 Feb 2017 15:12:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 fzeAeHc3RHXi for <cfrg@ietfa.amsl.com>; Thu, 23 Feb 2017 15:12:27 -0800 (PST)
Received: from mail-qk0-x22d.google.com (mail-qk0-x22d.google.com [IPv6:2607:f8b0:400d:c09::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 93E2B129B08 for <cfrg@irtf.org>; Thu, 23 Feb 2017 15:12:27 -0800 (PST)
Received: by mail-qk0-x22d.google.com with SMTP id n127so5855749qkf.0 for <cfrg@irtf.org>; Thu, 23 Feb 2017 15:12:27 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:from:date:message-id:subject:to; bh=DiuHQyc6mQhyqmaU6urgYHTx9gjoqwpQEY1s55JkPOI=; b=fS84jPwtBUsEj23Bwx9PHkRrJedY3na4kUJtacV1N3B40q22XLCAK+mUei4i9MItlh RzcxXtQI+4DACClh60LG8MR0/6JnSnJz+q3edOjVZJ0Yw5xWc5N/VnX0kMLtr9IzmBWt DSP+txNO5+qj5yeRAIseYw/dI3rFpS+xQaQ5o28Gu/5BBgqkaTNB+S9O5S8Gg3gMc4es WhKOCdHbRiCJvNl62PM9UDLc0bYj38Ur4+t49rU2hTo3P0d3Qy+J4nPHmTHekcN9YhhU VpiHYK7jJIxmJlBPRMIP3Uq8YAbvMj7quzfqZdKQoI3zQJ32X4r9Fm8YYalYlq6/omyN /3UA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DiuHQyc6mQhyqmaU6urgYHTx9gjoqwpQEY1s55JkPOI=; b=aOtbkmQczZfsbkq799YMuo8s0jVIL2BmvEO/vXF42/Cop7iPbz927F31ucBcDNHqQT tTmQxPE0zvm1kptO1P95Sdbvk8Kz+fWelQZE/IXKjeWiM8ybUAhjyk+PZvu/kjOb1Qug /jQPPmAALCFfHrZQyCR/9v8odvfNP+gqY8+/1sKVRBd4M+CvCzrXKR1t0EB3VGjPey6F WVlbr0H2fGoC/+i4oMEllkWTlahgCXEeKQgcPgQNFL8BQU4vCQk1H3jAoBtDeB8bamVQ fIRTk4H7VnNbio1hsuKRhUaIvjsDCXaY7CMCpzyDaRisDiBlHl7/Vw0/RP16M7vaUFOu 1NyQ==
X-Gm-Message-State: AMke39lP+CoYtXp0Io04XZ3qHjPq1vACyC63OVtSM1JocrjTKawCtphfpMw4ePeYvB1sK7QymObWyvuuyggzvA==
X-Received: by 10.55.95.131 with SMTP id t125mr43886033qkb.279.1487891546806;  Thu, 23 Feb 2017 15:12:26 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.136.33 with HTTP; Thu, 23 Feb 2017 15:12:26 -0800 (PST)
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Thu, 23 Feb 2017 18:12:26 -0500
Message-ID: <CAJm83bB22+9L3Rcn43hyDuGx1=ncse5cLYCm+dAP9hCPqnd8Hw@mail.gmail.com>
To: dharkins@arubanetworks.com, cfrg@irtf.org
Content-Type: text/plain; charset=UTF-8
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/Gu5cyorHPLrQ_CGYe775Xc6SV1c>
Subject: [Cfrg] RFC 5297 and absent vs. zero-length nonces
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Thu, 23 Feb 2017 23:12:29 -0000

The IANA considerations section of RFC 5297 (Synthetic Initialization
Vector (SIV) Authenticated Encryption Using the Advanced Encryption
Standard (AES)) gives N_MIN as 1. However, S2V is perfectly capable of
accepting zero-length arguments. Furthermore, passing a zero-length
argument to S2V is distinct from not passing that argument at all (as
done in the case deterministic encryption). How should an
implementation behave when provided with a zero-length nonce?

Should it return an error, since its length is under N_MIN?

Should it pass it along to S2V just like any other nonce input?

Or should it treat this as a request for deterministic encryption and
not pass any nonce to S2V?


From nobody Thu Feb 23 16:07:09 2017
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 C0A881293E4 for <cfrg@ietfa.amsl.com>; Thu, 23 Feb 2017 16:07:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.92
X-Spam-Level: 
X-Spam-Status: No, score=-1.92 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 ipDfE034ft3O for <cfrg@ietfa.amsl.com>; Thu, 23 Feb 2017 16:07:05 -0800 (PST)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0040.outbound.protection.outlook.com [104.47.2.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 102E91293E1 for <cfrg@ietf.org>; Thu, 23 Feb 2017 16:07:03 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ySXGpx671osuMLs5y7fdW0E5l069fhfPnVYSrNyVX4o=; b=SHhvz//7P32q2nnjbezO0IvdduruqFY+w8fvdPhmz04GUet/I5DNjz3HQhUZlNdZphTnKT0+n4UeHSKGfaknp6eOlz+Xv/ImusqN2NNqWI+74XQI9N9h+4hSDm/xOjotOFdex4tzDyV+TPv8dsxtw0hGpf9iz9PVBFjtP68DmDg=
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com (10.168.2.156) by AM4PR0301MB1905.eurprd03.prod.outlook.com (10.168.2.155) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Fri, 24 Feb 2017 00:07:00 +0000
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) by AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) with mapi id 15.01.0919.018; Fri, 24 Feb 2017 00:06:59 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: Adam Langley <agl@imperialviolet.org>, "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: [Cfrg] I-D Action: draft-irtf-cfrg-gcmsiv-04.txt
Thread-Index: AQHSjfILPJEKyD2c8U+2aZYUqmbh9aF2yOAAgAB/nAA=
Date: Fri, 24 Feb 2017 00:06:59 +0000
Message-ID: <D4D52910.8A146%kenny.paterson@rhul.ac.uk>
References: <148786730667.20244.7762484121330383342.idtracker@ietfa.amsl.com> <CAMfhd9VumcZ76MJjx3Kr8gw6mbUJc7x_pPcSDR2V0Jiuz+sm-w@mail.gmail.com>
In-Reply-To: <CAMfhd9VumcZ76MJjx3Kr8gw6mbUJc7x_pPcSDR2V0Jiuz+sm-w@mail.gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [183.77.227.125]
x-microsoft-exchange-diagnostics: 1; AM4PR0301MB1905; 7:4xrXIyaHcqiKHnZHzuGTDZegQZ9S+pu9jdTV6vD/2b8x+Td2qmKMfEvIi+kNguI8NyJtSHnJCax/5kV6Y/Aw3eIZByYKco+Y+dgUP4oixz0onjyUEnnoyXjN35C0+MymRBEewDWrepMrw3EKJ5T+YjOB5yI7cgQQ0l38U4bHxfYpfU/veKOI2fFaSeHmQOH9KpZX/v4oJ6XCLgQ5hlF+jUy4EuSglwSQwDeBKn2JRawdhJb4M286gZTOsMmHqFkGwSMhKDAn2brELj8iCqPaihOgkDzn/sQSZs63Xp4zJT1ZEYkRoZjPl+3hJLiNWJjEPoPjIubRKZ3MpdrfKDDudA==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(377454003)(24454002)(189002)(199003)(377424004)(2900100001)(74482002)(106356001)(92566002)(5660300001)(53546006)(3280700002)(50986999)(229853002)(81156014)(97736004)(54356999)(81166006)(3660700001)(2906002)(36756003)(76176999)(8676002)(101416001)(25786008)(106116001)(105586002)(4001350100001)(102836003)(68736007)(6436002)(6486002)(66066001)(230783001)(99286003)(189998001)(77096006)(2950100002)(6506006)(6116002)(83506001)(2501003)(8936002)(38730400002)(7736002)(305945005)(42882006)(86362001)(122556002)(6306002)(3846002)(6246003)(6512007)(53936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB1905; H:AM4PR0301MB1906.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 75fe67d4-b8e4-4259-cc32-08d45c490d8b
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR0301MB1905; 
x-microsoft-antispam-prvs: <AM4PR0301MB19057CE5FB4C18E182796053BC520@AM4PR0301MB1905.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(20161123558025)(6072148); SRVR:AM4PR0301MB1905; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0301MB1905; 
x-forefront-prvs: 0228DDDDD7
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <A18A190B877BC343A1C7380849C4386A@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Feb 2017 00:06:59.5175 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB1905
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/sWfgR_P_To75BxAdhRBU6LCDr6M>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-gcmsiv-04.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 24 Feb 2017 00:07:08 -0000

RGVhciB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BhIG51
bWJlcg0KPm9mIGxvY2F0aW9ucyBpbiB0aGUgY29uZmlndXJhdGlvbiBzcGFjZSkuDQo+DQo+SW4g
bGlnaHQgb2YgcHJldmlvdXMgZGlzY3Vzc2lvbnMgaW4gdGhlIHdvcmtpbmcgZ3JvdXAsIHNlY3Rp
b24gc2V2ZW4NCj5pbmNsdWRlcyBzb21lIHJlbWFya3MgYWJvdXQgdGhlIG1lYW5pbmcgb2Ygbm9u
Y2UtbWlzdXNlIHJlc2lzdGFuY2UuDQo+DQo+KENvbW1lbnRzIGFib3V0IHRoZSBwYXBlciwgaW5j
bHVkaW5nIHNpZ2h0aW5ncyBvZiB0eXBvcywgYXJlIHdlbGNvbWUNCj50byBiZSBzZW50IHRvIHVz
IGRpcmVjdGx5OyBubyBuZWVkIHRvIGNsdXR0ZXIgdGhpcyBsaXN0IHdpdGggdGhlbS4pDQo+DQo+
DQo+Q2hlZXJzDQo+DQo+QUdMDQo+DQo+X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fX19fX18NCj5DZnJnIG1haWxpbmcgbGlzdA0KPkNmcmdAaXJ0Zi5vcmcNCj5odHRw
czovL3d3dy5pcnRmLm9yZy9tYWlsbWFuL2xpc3RpbmZvL2NmcmcNCg0K


From nobody Thu Feb 23 18:09:02 2017
Return-Path: <dharkins@lounge.org>
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 D9BCA12948A for <cfrg@ietfa.amsl.com>; Thu, 23 Feb 2017 18:09:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.202
X-Spam-Level: 
X-Spam-Status: No, score=-4.202 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 DjgD41gYjSVt for <cfrg@ietfa.amsl.com>; Thu, 23 Feb 2017 18:08:59 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id D5E91129488 for <cfrg@irtf.org>; Thu, 23 Feb 2017 18:08:59 -0800 (PST)
Received: from thinny.local (69-12-173-8.static.dsltransport.net [69.12.173.8]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by colo.trepanning.net (Postfix) with ESMTPSA id A818BA888004 for <cfrg@irtf.org>; Thu, 23 Feb 2017 18:08:59 -0800 (PST)
To: cfrg@irtf.org
References: <CAJm83bB22+9L3Rcn43hyDuGx1=ncse5cLYCm+dAP9hCPqnd8Hw@mail.gmail.com>
From: Dan Harkins <dharkins@lounge.org>
Message-ID: <288933e2-c982-1761-9b14-3b6215978bb6@lounge.org>
Date: Thu, 23 Feb 2017 18:08:57 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <CAJm83bB22+9L3Rcn43hyDuGx1=ncse5cLYCm+dAP9hCPqnd8Hw@mail.gmail.com>
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/UIZnotCX6Yf5sjYVxDCHXQX7Nbc>
Subject: Re: [Cfrg] RFC 5297 and absent vs. zero-length nonces
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 24 Feb 2017 02:09:01 -0000

   Hi Daniel,

On 2/23/17 3:12 PM, Daniel Franke wrote:
> The IANA considerations section of RFC 5297 (Synthetic Initialization
> Vector (SIV) Authenticated Encryption Using the Advanced Encryption
> Standard (AES)) gives N_MIN as 1. However, S2V is perfectly capable of
> accepting zero-length arguments. Furthermore, passing a zero-length
> argument to S2V is distinct from not passing that argument at all (as
> done in the case deterministic encryption). How should an
> implementation behave when provided with a zero-length nonce?

The registry that RFC 5297 updated with its IANA Considerations was
created by RFC 5116 to specify parameters for nonce-based AEAD modes. So
when using RFC 5297 through that interface you're saying you want to
use a nonce. RFC 5297 places the most minimal of requirements on such
use: N_MIN of 1 octet.

   The registry does not say what to do if someone tries to use the
mode in a way that is not defined for the registry so officially I
don't know what the answer is. We can evaluate your suggestions though.

(As an example, AES-GCM can take a nonce of 16 octets but the registry
makes N_MIN = N_MAX = 12. What do you do if you send 16 octets to
AES-GCM through this interface? Got me.)

> Should it return an error, since its length is under N_MIN?

   That would seem like the prudent thing to do since it is in violation
of the registry parameters.
>
> Should it pass it along to S2V just like any other nonce input?

   Since the registry mandates N_MIN as 1 then passing a zero length
nonce "just like any other nonce input" seems wrong. So I'd say don't
do that.

>
> Or should it treat this as a request for deterministic encryption and
> not pass any nonce to S2V?

   Well the registry is not for deterministic encryption so I would
say using it that way is not appropriate and would not think this
is correct.

   Seems to me that if you want to use AES-SIV (or any of the AEAD
modes from RFC 5116) in a way that is not defined by RFC 5116 then
use them through some raw interface and not the constrained one
created by RFC 5116. You'll note that the RFC 5116 interface also
assumes that all AAD is a single blob and does not support AES-SIV's
vector of AAD. What do you do with this registry if you need/want
to pass a vector of AAD to AES-SIV? Well, I'd say you don't use this
registry as your interface.

   Hope this helps,

   Dan.



From nobody Fri Feb 24 04:26:41 2017
Return-Path: <mcgrew@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 18FA5129D65 for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 04:26:40 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.523
X-Spam-Level: 
X-Spam-Status: No, score=-14.523 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, 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 KxLF_nSc4CyE for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 04:26:38 -0800 (PST)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5D3671296D1 for <cfrg@irtf.org>; Fri, 24 Feb 2017 04:26:38 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=5798; q=dns/txt; s=iport; t=1487939198; x=1489148798; h=from:to:subject:date:message-id:references:in-reply-to: content-id:content-transfer-encoding:mime-version; bh=VSePYKds/J+Ff/jxjOAnRIV5+0l+UEGUg4nwWEqhlls=; b=ULBsOGAsORip9ftqYifTa0Mws4MyFXPbG0U8Oq0vpVIRBrLmZ1h+CjKf JdTaMnJYdLy5Mh6fCM3evNTaBbi1a6+o6fMPtFoEm4rPax2hpbBp50DPg tKKeRMMHKDbftMxWjaIpVIBlSmj3D1dM0bFjQbJnJdBE6yiyO0Hq5JFo9 w=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AlBACwJbBY/5RdJa1dGQEBAQEBAQEBA?= =?us-ascii?q?QEBBwEBAQEBg1BhgQkHg1SbSB+VNYINHwuFeAIagwVAFwECAQEBAQEBAWIohHA?= =?us-ascii?q?BAQEDAQEBIRE6GwIBCA4KAgImAgICJQsVEAIEARKJbAgOrQeCJotCAQEBAQEBA?= =?us-ascii?q?QEBAQEBAQEBAQEBAQEBGAWBC4dGCIJigTyBOoFegwYugjEFnBoBkiSRFpMsASE?= =?us-ascii?q?DM4EBVBU+EQGESoFxdYkcgQ0BAQE?=
X-IronPort-AV: E=Sophos;i="5.35,200,1484006400"; d="scan'208";a="202192637"
Received: from rcdn-core-12.cisco.com ([173.37.93.148]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 24 Feb 2017 12:26:37 +0000
Received: from XCH-ALN-002.cisco.com (xch-aln-002.cisco.com [173.36.7.12]) by rcdn-core-12.cisco.com (8.14.5/8.14.5) with ESMTP id v1OCQbmM027015 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 24 Feb 2017 12:26:37 GMT
Received: from xch-aln-004.cisco.com (173.36.7.14) by XCH-ALN-002.cisco.com (173.36.7.12) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 24 Feb 2017 06:26:36 -0600
Received: from xch-aln-004.cisco.com ([173.36.7.14]) by XCH-ALN-004.cisco.com ([173.36.7.14]) with mapi id 15.00.1210.000; Fri, 24 Feb 2017 06:26:36 -0600
From: "David McGrew (mcgrew)" <mcgrew@cisco.com>
To: Dan Harkins <dharkins@lounge.org>, "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: [Cfrg] RFC 5297 and absent vs. zero-length nonces
Thread-Index: AQHSjipTl+Ef8WslxECa2966+7UoSqF3zimAgABYwAA=
Date: Fri, 24 Feb 2017 12:26:36 +0000
Message-ID: <47B1124D-F656-49A7-9385-A06F68428B27@cisco.com>
References: <CAJm83bB22+9L3Rcn43hyDuGx1=ncse5cLYCm+dAP9hCPqnd8Hw@mail.gmail.com> <288933e2-c982-1761-9b14-3b6215978bb6@lounge.org>
In-Reply-To: <288933e2-c982-1761-9b14-3b6215978bb6@lounge.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/f.15.1.160411
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.117.10.228]
Content-Type: text/plain; charset="utf-8"
Content-ID: <744565D0AF6E8448B09EA7F4A56C1BA8@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/N4GRDw_8PkZN2CBOZd0K7DjCH1U>
Subject: Re: [Cfrg] RFC 5297 and absent vs. zero-length nonces
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 24 Feb 2017 12:26:40 -0000

SGkgRGFuLA0KDQoNCg0KUkZDIDUxMTYgZG9lcyBhbGxvdyB6ZXJvLWxlbmd0aCBub25jZXMgY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gbmVlZC93YW50DQo+dG8gcGFzcyBhIHZlY3RvciBvZiBBQUQgdG8gQUVT
LVNJVj8gV2VsbCwgSSdkIHNheSB5b3UgZG9uJ3QgdXNlIHRoaXMNCj5yZWdpc3RyeSBhcyB5b3Vy
IGludGVyZmFjZS4NCj4NCj4gICBIb3BlIHRoaXMgaGVscHMsDQo+DQo+ICAgRGFuLg0KPg0KPg0K
Pl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fDQo+Q2ZyZyBt
YWlsaW5nIGxpc3QNCj5DZnJnQGlydGYub3JnDQo+aHR0cHM6Ly93d3cuaXJ0Zi5vcmcvbWFpbG1h
bi9saXN0aW5mby9jZnJnDQo=


From nobody Fri Feb 24 04:40:54 2017
Return-Path: <mcgrew@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 350D8129D97 for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 04:40:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.523
X-Spam-Level: 
X-Spam-Status: No, score=-14.523 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, 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 kuKH_fdhxn1U for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 04:40:51 -0800 (PST)
Received: from alln-iport-8.cisco.com (alln-iport-8.cisco.com [173.37.142.95]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E37A41296CD for <cfrg@ietf.org>; Fri, 24 Feb 2017 04:40:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=2842; q=dns/txt; s=iport; t=1487940050; x=1489149650; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=bMdphacCpZv4y8WQBzUPC9gHb3HURQwB0Wsr1ZmSQC8=; b=LQHnFQ8ygXlkxxa4nzrBpW+mfFerKVm965/vR/NWKJyzmN3aoOLaBXTr FOqUvKpv9hwZ6SxdZxA1CD+i5ap5bOQ+HT/giA2SgNtPZ8p7yyO8oeM8T ctxX5mzuqJG2CNQA6JHj67vVyxIOn9yxKLWfFcy26OCPJX1I7ruLsPTsN 4=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0CVAQDFKLBY/4MNJK1dGQEBAQEBAQEBA?= =?us-ascii?q?QEBBwEBAQEBg1BhgQkHg1SKCJFflTWCDR8LhXgCGoJ9PxgBAgEBAQEBAQFiKIR?= =?us-ascii?q?xAQEEAQEhEToLEAIBCA4KAgImAgICJQsVEAIEAQ0FiXQOrQaCJotCAQEBAQEBA?= =?us-ascii?q?QEBAQEBAQEBAQEBAQEBGAWBC4dGgmqEVIMGLoIxBYkGkxQBhnOLMZEWiFqKUgE?= =?us-ascii?q?fOIEBVBUYJhEBhjt1iRyBDQEBAQ?=
X-IronPort-AV: E=Sophos;i="5.35,200,1484006400"; d="scan'208";a="389884664"
Received: from alln-core-1.cisco.com ([173.36.13.131]) by alln-iport-8.cisco.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 24 Feb 2017 12:40:50 +0000
Received: from XCH-ALN-005.cisco.com (xch-aln-005.cisco.com [173.36.7.15]) by alln-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id v1OCenxI013398 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 24 Feb 2017 12:40:50 GMT
Received: from xch-aln-004.cisco.com (173.36.7.14) by XCH-ALN-005.cisco.com (173.36.7.15) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Fri, 24 Feb 2017 06:40:49 -0600
Received: from xch-aln-004.cisco.com ([173.36.7.14]) by XCH-ALN-004.cisco.com ([173.36.7.14]) with mapi id 15.00.1210.000; Fri, 24 Feb 2017 06:40:49 -0600
From: "David McGrew (mcgrew)" <mcgrew@cisco.com>
To: Adam Langley <agl@imperialviolet.org>, "cfrg@ietf.org" <cfrg@ietf.org>
Thread-Topic: [Cfrg] I-D Action: draft-irtf-cfrg-gcmsiv-04.txt
Thread-Index: AQHSjfICKnIXjxyGdEilsml5swIbPaF3LXYAgAD93AA=
Date: Fri, 24 Feb 2017 12:40:49 +0000
Message-ID: <A3FAEDD6-6F58-448C-A3DA-42ADEC51AEA0@cisco.com>
References: <148786730667.20244.7762484121330383342.idtracker@ietfa.amsl.com> <CAMfhd9VumcZ76MJjx3Kr8gw6mbUJc7x_pPcSDR2V0Jiuz+sm-w@mail.gmail.com>
In-Reply-To: <CAMfhd9VumcZ76MJjx3Kr8gw6mbUJc7x_pPcSDR2V0Jiuz+sm-w@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/f.15.1.160411
x-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.117.10.228]
Content-Type: text/plain; charset="utf-8"
Content-ID: <E561DF416F500C4AB43EE05F12A24207@emea.cisco.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/rI_Zk3sXcCVUv3WgXqK0FRCB4rk>
Cc: Yehuda Lindell <yehuda.lindell@biu.ac.il>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-gcmsiv-04.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 24 Feb 2017 12:40:52 -0000

SGkgQWRhbSwNCg0KT25lIHF1aWNrIGNvbW1lbnQ6IHRoZSBkcmFmdCBkb2VzbuKAmXQgcmVxdWVz
dCB0aGF0IElBTkEgY3JlYXRlIHJlZ2lzdHJ5IGVudHJpZXMgZm9yIHRoZSBhbGdvcyB0aGF0IGl0
IGRlZmluZXMgKGFzIHBlciBodHRwczovL3Rvb2xzLmlldGYub3JnL2h0bWwvcmZjNTExNiNzZWN0
aW9uLTYpOyB3ZSBzdXJlbHkgd2FudCB0byBpbmNsdWRlIHRoZW0gaW4gdGhlIHJlZ2lzdHJ5Lg0K
DQpiZXN0DQoNCkRhdmlkDQoNCnAucy4gLSBhIG5pdCB0aGF0IEkgbm90aWNlZCBpbiB0aGUgQWNr
IHNlY3Rpb246IE1vc25hJiMyNjk7ZWsNCg0KDQoNCg0KDQoNCk9uIDIvMjMvMTcsIDExOjMyIEFN
LCAiQ2ZyZyBvbiBiZWhhbGYgb2YgQWRhbSBMYW5nbGV5IiA8Y2ZyZy1ib3VuY2VzQGlydGYub3Jn
IG9uIGJlaGFsZiBvZiBhZ2xAaW1wZXJpYWx2aW9sZXQub3JnPiB3cm90ZToNCg0KPk9uIFRodSwg
RmViIDIzL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bWFuL2xpc3RpbmZvL2NmcmcNCg==


From nobody Fri Feb 24 07:49:31 2017
Return-Path: <dfoxfranke@gmail.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 6C15612989E for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 07:49:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.7
X-Spam-Level: 
X-Spam-Status: No, score=-2.7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 zuUKzN5xqhkR for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 07:49:29 -0800 (PST)
Received: from mail-qk0-x230.google.com (mail-qk0-x230.google.com [IPv6:2607:f8b0:400d:c09::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 32A3812968F for <cfrg@irtf.org>; Fri, 24 Feb 2017 07:49:29 -0800 (PST)
Received: by mail-qk0-x230.google.com with SMTP id u188so21686730qkc.2 for <cfrg@irtf.org>; Fri, 24 Feb 2017 07:49:29 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to;  bh=OM90YpFMibhhfnH7fiy4s2VdH+ssmMjKcoky9QPwY38=; b=PkSDhi/RxaEH4G6GVj/uLbuUpEe8Cu0eyC/dWU41x4sKqUBYiKmvOcLATXBsHBnlaK f6LES5cr6H8qmr9i/PL2ykRE6tg5x2rlDbvooB+wSpGwbLoDwVeJkZQ0X2sQGU1Qy36e 20VDfiO2XrImDCinkYru8/QR1niBnhW3Sg7+8Y+h9DI9pOVLBNsWMkp/j1zx4f/nPf/1 hGJf4l5bWj98ssRD/VYjrgXJvanYES10979j5Rd1cQRkQjb/ZASBhXGXpVZtFXpbGEEA gvv9WW40eEkQ2C/S6S6XKi3U1H/BADMVfzRvdmaORJd5kIbuTrnxjekDEORq5gfcjIrM oH2A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=OM90YpFMibhhfnH7fiy4s2VdH+ssmMjKcoky9QPwY38=; b=mViWm1V9DckGpWplIZ1NUS098IyPSYk2gIr7G50u+77ereT3Z2rLoQQwMql1SrEx7U nR3u4z0mBmrrpG2WfmRzKUHLX14NFF27fhANhOrHSm5usZEoje3DO8RIFFvm7Q0kOSeO Np91hIDwxLm5cE0sDPdaqqL0UZfxMwi8DlYIBv9zxSjjSsDtut143N+UTCGXbom8yBTx V3pvZwkB26AkNyJyYHM2puC5R3NggmMdFx0lPVupFO5MoGl5xwkgod8hXkQooCZMBkxX ibwcE5KX47OabCe+Pzh+xIhSZitdSlM1LC4tansmA9wKH9FpwRG56BSJgY7eJXGHP6zI LwNg==
X-Gm-Message-State: AMke39kBkpAWvyIEyC6+prsIc+TOUzwmm8cl0iWZyVG9x2Jt5pYJf5eS7c5HsWugd1LQL1Ot6fYhTDvU2aGpXw==
X-Received: by 10.55.18.232 with SMTP id 101mr3026823qks.10.1487951368345; Fri, 24 Feb 2017 07:49:28 -0800 (PST)
MIME-Version: 1.0
Received: by 10.12.136.33 with HTTP; Fri, 24 Feb 2017 07:49:27 -0800 (PST)
In-Reply-To: <22B2CCFE-368C-4659-8828-FC11AC685441@cisco.com>
References: <CAJm83bB22+9L3Rcn43hyDuGx1=ncse5cLYCm+dAP9hCPqnd8Hw@mail.gmail.com> <288933e2-c982-1761-9b14-3b6215978bb6@lounge.org> <47B1124D-F656-49A7-9385-A06F68428B27@cisco.com> <22B2CCFE-368C-4659-8828-FC11AC685441@cisco.com>
From: Daniel Franke <dfoxfranke@gmail.com>
Date: Fri, 24 Feb 2017 10:49:27 -0500
Message-ID: <CAJm83bAcyQG6RvM-tqhDuO_RNfzhD14CMkQ1uUJY2XGxwLCPqA@mail.gmail.com>
To: "David McGrew (mcgrew)" <mcgrew@cisco.com>, dharkins <dharkins@arubanetworks.com>, cfrg@irtf.org
Content-Type: text/plain; charset=UTF-8
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/4rKBZaosxcVa7tbWDWi40VB7OJs>
Subject: Re: [Cfrg] RFC 5297 and absent vs. zero-length nonces
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 24 Feb 2017 15:49:30 -0000

On 2/24/17, David McGrew (mcgrew) <mcgrew@cisco.com> wrote:
>Clearly SIV modes can and should set N_MIN to zero.  I guess the N_MIN=1
> got missed during the review of RFC 5297.  (I recall discussing the N_MAX
> guidance during the review process, but I think N_MIN went unnoticed.)
>
>If N_MIN can be changed in RFC 5297 from 1 to 0 with an Errata, that would
> be the best way to go.   Otherwise, I suggest creating new IANA entries
> for the existing SIV modes that reference that RFC, but change N_MIN to
> zero.

If we agree that a change is in order, that I hope we can also agree
that an erratum would suffice. Having two different IANA codepoints
that differ only in the value of N_MIN sounds like it would sow a
hideous amount of confusion.

It sounds like the three of us agree, at least, that my option 3,
treating a zero-length nonce as a request for deterministic
encryption, is the Wrong Thing. For my own purposes, I'm just doing an
RFC 5297 implementation (look for a release announcement RSN) and not
aspiring to create a general RFC 5116 interface, so I think I can go
ahead and allow zero-length nonces regardless of whether it's strictly
RFCily-correct to do so. My function signature looks like this:

int AES_SIV_Encrypt(AES_SIV_CTX *ctx,
                    uint8_t *out, size_t *out_len,
                    uint8_t const* key, size_t key_len,
                    uint8_t const* nonce, size_t nonce_len,
                    uint8_t const* plaintext, size_t plaintext_len,
                    uint8_t const* ad, size_t ad_len);

It'll give you deterministic encryption if the `nonce` argument is
NULL, and encryption with a zero-length nonce if `nonce` is non-NULL
and `nonce_len` is 0.


From nobody Fri Feb 24 11:57:29 2017
Return-Path: <alangley@gmail.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 F2A061294EA for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 11:57:27 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.598
X-Spam-Level: 
X-Spam-Status: No, score=-2.598 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 BaDyGUjioS-V for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 11:57:26 -0800 (PST)
Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 19CAA1294ED for <cfrg@ietf.org>; Fri, 24 Feb 2017 11:57:24 -0800 (PST)
Received: by mail-io0-x235.google.com with SMTP id j13so671736iod.3 for <cfrg@ietf.org>; Fri, 24 Feb 2017 11:57:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=CF+WkHPi8ABa0ldKiY28oP1poX233YKj9veyo/ZSMhk=; b=u/RhYswMnIzyN++AK4gm3CyqoUpWbpOX1vWAV02Bgj5t4oT3Ay156yyiC+l9Fldvli e5gMqHDz51tbaOhkUx6dlvdMxUd65bL7ceTJ3AcrBcCqJX8C5s1SCF1Npa7DVZkkcKI0 daZMDbtpcMyVcfI37FSWTpWMKKZ0IbiwGqrHtGd/la0OLDttrdXiQa2zXsOfJhEuQxWi YX4CGrbh3KT5E7vqJReS4q+Fq9on2wZzegQnUjn1h1F67CfcGdM9z7gs8u7wd5bMnsIu qWv3asQQDlPqRSlUZ9Cdo2+nmAcxvw1LnTdD9moQ/TithjAQOwvlqhQY4g5fRK6BrYhh XHeg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=CF+WkHPi8ABa0ldKiY28oP1poX233YKj9veyo/ZSMhk=; b=X0i/wTyYhHkczFS15m+S7J3T2+LjSWqEXHnmmaJ6z97vd1Y9PuSoG45kQsYId18uUV PR4PhB39DWl4mRG64EUHH1RbkjQUm94E8pMf8WoJMptFgfLsWIvcc7QhhR1AOCiImz4P wEY1rnDF/DNqhxeSQN4SueKGUbIV5zXRHoiXDjUhlA857RmChUZ8yqFDiTZpBoUw+2jk 7BYkGLoGLMdOo/VVUezEkECqJBwPxA1a6nZwE/D7mmeRQpdevbd8Bu+0RTNWY1f4a0Jq j9ochhWPR0XvEoJLeZw3s30Fuka/SX9Fee71OLKYapIMIRu55zJPhgHRc2Ha1qyasRW2 b3rQ==
X-Gm-Message-State: AMke39kJe8s3gllfwHRCHM8bySzHVcUaEtMx2T666xedFmVpG9x35DdE+d8b8GfZruRBBMm1J8pOtE29259O3Q==
X-Received: by 10.107.141.80 with SMTP id p77mr4228208iod.97.1487966243439; Fri, 24 Feb 2017 11:57:23 -0800 (PST)
MIME-Version: 1.0
Sender: alangley@gmail.com
Received: by 10.36.144.4 with HTTP; Fri, 24 Feb 2017 11:57:23 -0800 (PST)
In-Reply-To: <A3FAEDD6-6F58-448C-A3DA-42ADEC51AEA0@cisco.com>
References: <148786730667.20244.7762484121330383342.idtracker@ietfa.amsl.com> <CAMfhd9VumcZ76MJjx3Kr8gw6mbUJc7x_pPcSDR2V0Jiuz+sm-w@mail.gmail.com> <A3FAEDD6-6F58-448C-A3DA-42ADEC51AEA0@cisco.com>
From: Adam Langley <agl@imperialviolet.org>
Date: Fri, 24 Feb 2017 11:57:23 -0800
X-Google-Sender-Auth: IFzFhThrKeorMe6wg9jnmj4qluU
Message-ID: <CAMfhd9UKHtCThVbz81xMC+JS4Cy7EC5gQzjiDsvHqb7uShGwUg@mail.gmail.com>
To: "David McGrew (mcgrew)" <mcgrew@cisco.com>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/q4PhovEIeHg1vCtWHs1ywMLxG1g>
Cc: Yehuda Lindell <yehuda.lindell@biu.ac.il>, "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-gcmsiv-04.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 24 Feb 2017 19:57:28 -0000

On Fri, Feb 24, 2017 at 4:40 AM, David McGrew (mcgrew) <mcgrew@cisco.com> w=
rote:
> One quick comment: the draft doesn=E2=80=99t request that IANA create reg=
istry entries for the algos that it defines (as per https://tools.ietf.org/=
html/rfc5116#section-6); we surely want to include them in the registry.

Good point, thanks. The next version will include this.

> p.s. - a nit that I noticed in the Ack section: Mosna&#269;ek

Yes, it appears that the IETF processing doesn't handle UTF-8 :( I've
hammered that name into ASCII, I hope Ondrej doesn't mind.


Cheers

AGL


From nobody Fri Feb 24 13:26:18 2017
Return-Path: <dharkins@lounge.org>
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 9E9A5129515 for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 13:26:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.202
X-Spam-Level: 
X-Spam-Status: No, score=-4.202 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] 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 KAFnBaN5utqZ for <cfrg@ietfa.amsl.com>; Fri, 24 Feb 2017 13:26:15 -0800 (PST)
Received: from colo.trepanning.net (colo.trepanning.net [69.55.226.174]) by ietfa.amsl.com (Postfix) with ESMTP id 52293129511 for <cfrg@irtf.org>; Fri, 24 Feb 2017 13:26:15 -0800 (PST)
Received: from thinny.local (ext-104-36-248-13.arubanetworks.com [104.36.248.13]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by colo.trepanning.net (Postfix) with ESMTPSA id B81363E000A; Fri, 24 Feb 2017 13:26:14 -0800 (PST)
To: "David McGrew (mcgrew)" <mcgrew@cisco.com>, "cfrg@irtf.org" <cfrg@irtf.org>
References: <CAJm83bB22+9L3Rcn43hyDuGx1=ncse5cLYCm+dAP9hCPqnd8Hw@mail.gmail.com> <288933e2-c982-1761-9b14-3b6215978bb6@lounge.org> <47B1124D-F656-49A7-9385-A06F68428B27@cisco.com>
From: Dan Harkins <dharkins@lounge.org>
Message-ID: <b79e12c7-eb75-058b-1bfc-957774e7ca46@lounge.org>
Date: Fri, 24 Feb 2017 13:26:11 -0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
In-Reply-To: <47B1124D-F656-49A7-9385-A06F68428B27@cisco.com>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/txBMODTtnAtTAbS0ZAFImhkeMtY>
Subject: Re: [Cfrg] RFC 5297 and absent vs. zero-length nonces
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Fri, 24 Feb 2017 21:26:16 -0000

   Hi David,

On 2/24/17 4:26 AM, David McGrew (mcgrew) wrote:
> Hi Dan,
>
>
>
> RFC 5116 does allow zero-length nonces and provide guidance around their use.   From that doc:
>
>        A nonce N.  Each nonce provided to distinct invocations of the
>        Authenticated Encryption operation MUST be distinct, for any
>        particular value of the key, unless each and every nonce is zero-
>        length.  Applications that can generate distinct nonces SHOULD use
>        the nonce formation method defined in Section 3.2, and MAY use any
>        other method that meets the uniqueness requirement.  Other
>        applications SHOULD use zero-length nonces.
>
>
>     Each AEAD algorithm MUST accept any nonce with a length between N_MIN
>     and N_MAX octets, inclusive, where the values of N_MIN and N_MAX are
>     specific to that algorithm.  The values of N_MAX and N_MIN MAY be
>     equal.  Each algorithm SHOULD accept a nonce with a length of twelve
>     (12) octets.  Randomized or stateful algorithms, which are described
>     below, MAY have an N_MAX value of zero.
>
>
> Clearly SIV modes can and should set N_MIN to zero.  I guess the N_MIN=1 got missed during the review of RFC 5297.  (I recall discussing the N_MAX guidance during the review process, but I think N_MIN went unnoticed.)

   Yes, SIV _can_ accept a zero-length nonce but since SIV is unique in that
it is both a probabilistic AEAD mode and a deterministic "keywrapping" mode
that also accepts AAD such a change might create some confusion. (Option 
3 of
Daniel's question).

>
> If N_MIN can be changed in RFC 5297 from 1 to 0 with an Errata, that would be the best way to go.   Otherwise, I suggest creating new IANA entries for the existing SIV modes that reference that RFC, but change N_MIN to zero.

   I can see why one would want to use SIV deterministically as a better
keywrapping scheme than AES-Keywrap (accepts AAD, no odd length requirements
on plaintext, no padding needed, has a security proof) but I don't see why
someone would want to use it probabilistically with a zero length nonce.
RFC 5116 is for AE modes not deterministic keywrapping modes and if someone
wants to use SIV in its AE mode then what's wrong with mandating he or she
passes at least a 1 byte nonce?

   Unless you can think of a way to avoid the confusion I'd rather not make
the change.

   regards,

   Dan.

> Best,
>
> David
>
> On 2/23/17, 9:08 PM, "Cfrg on behalf of Dan Harkins" <cfrg-bounces@irtf.org on behalf of dharkins@lounge.org> wrote:
>
>>    Hi Daniel,
>>
>> On 2/23/17 3:12 PM, Daniel Franke wrote:
>>> The IANA considerations section of RFC 5297 (Synthetic Initialization
>>> Vector (SIV) Authenticated Encryption Using the Advanced Encryption
>>> Standard (AES)) gives N_MIN as 1. However, S2V is perfectly capable of
>>> accepting zero-length arguments. Furthermore, passing a zero-length
>>> argument to S2V is distinct from not passing that argument at all (as
>>> done in the case deterministic encryption). How should an
>>> implementation behave when provided with a zero-length nonce?
>> The registry that RFC 5297 updated with its IANA Considerations was
>> created by RFC 5116 to specify parameters for nonce-based AEAD modes. So
>> when using RFC 5297 through that interface you're saying you want to
>> use a nonce. RFC 5297 places the most minimal of requirements on such
>> use: N_MIN of 1 octet.
>>
>>    The registry does not say what to do if someone tries to use the
>> mode in a way that is not defined for the registry so officially I
>> don't know what the answer is. We can evaluate your suggestions though.
>>
>> (As an example, AES-GCM can take a nonce of 16 octets but the registry
>> makes N_MIN = N_MAX = 12. What do you do if you send 16 octets to
>> AES-GCM through this interface? Got me.)
>>
>>> Should it return an error, since its length is under N_MIN?
>>    That would seem like the prudent thing to do since it is in violation
>> of the registry parameters.
>>> Should it pass it along to S2V just like any other nonce input?
>>    Since the registry mandates N_MIN as 1 then passing a zero length
>> nonce "just like any other nonce input" seems wrong. So I'd say don't
>> do that.
>>
>>> Or should it treat this as a request for deterministic encryption and
>>> not pass any nonce to S2V?
>>    Well the registry is not for deterministic encryption so I would
>> say using it that way is not appropriate and would not think this
>> is correct.
>>
>>    Seems to me that if you want to use AES-SIV (or any of the AEAD
>> modes from RFC 5116) in a way that is not defined by RFC 5116 then
>> use them through some raw interface and not the constrained one
>> created by RFC 5116. You'll note that the RFC 5116 interface also
>> assumes that all AAD is a single blob and does not support AES-SIV's
>> vector of AAD. What do you do with this registry if you need/want
>> to pass a vector of AAD to AES-SIV? Well, I'd say you don't use this
>> registry as your interface.
>>
>>    Hope this helps,
>>
>>    Dan.
>>
>>
>> _______________________________________________
>> Cfrg mailing list
>> Cfrg@irtf.org
>> https://www.irtf.org/mailman/listinfo/cfrg


From nobody Sat Feb 25 06:28:50 2017
Return-Path: <quynh.dang@nist.gov>
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 71310129FF3 for <cfrg@ietfa.amsl.com>; Sat, 25 Feb 2017 06:28:49 -0800 (PST)
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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nistgov.onmicrosoft.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 Dc_OhVGsAhlh for <cfrg@ietfa.amsl.com>; Sat, 25 Feb 2017 06:28:43 -0800 (PST)
Received: from gcc01-dm2-obe.outbound.protection.outlook.com (mail-dm2gcc01on0117.outbound.protection.outlook.com [23.103.201.117]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1592D129FE4 for <cfrg@irtf.org>; Sat, 25 Feb 2017 06:28:42 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nistgov.onmicrosoft.com; s=selector1-nist-gov; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Od3Ef4DCLz8hNSHvVNx4JVtf0Mky28hWGoN9Y+UJaF0=; b=0euVVzJtewUt/61bEEikJmV8WCKJ2Oa0ELUIbJVpXQhm7dSBC0wapO/IC6WmZNUBAq7d1oh1a77edOWvSwmM9nn3avLVnnuG0r4DXOcaANKPRkl9hx1R0SBf4o/u3ZsSnwmt4nbs27mJ1nzmaFPJD4Q4kgirxQ5nxL0rRG0FNDA=
Received: from CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) by CY4PR09MB1464.namprd09.prod.outlook.com (10.173.191.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Sat, 25 Feb 2017 14:28:40 +0000
Received: from CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) by CY4PR09MB1464.namprd09.prod.outlook.com ([10.173.191.22]) with mapi id 15.01.0919.020; Sat, 25 Feb 2017 14:28:40 +0000
From: "Dang, Quynh (Fed)" <quynh.dang@nist.gov>
To: Sean Turner <sean@sn3rd.com>, "<tls@ietf.org>" <tls@ietf.org>
Thread-Topic: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769).
Thread-Index: AQHSj3N1z8IXvDyfJEuMUkRo/k0w1A==
Date: Sat, 25 Feb 2017 14:28:40 +0000
Message-ID: <CY4PR09MB1464243342F19FCBE48C37E7F3550@CY4PR09MB1464.namprd09.prod.outlook.com>
References: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.com>
In-Reply-To: <352D31A3-5A8B-4790-9473-195C256DEEC8@sn3rd.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-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [129.6.222.69]
x-ms-office365-filtering-correlation-id: f4717a3b-d5fa-4dc8-7c92-08d45d8a9830
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:CY4PR09MB1464; 
x-microsoft-exchange-diagnostics: 1; CY4PR09MB1464; 7:aFdcPV0BTTlXJbSHfbMQU4d5FIcE57SmcmMXLypSaAfsDrXI2ss3tQGU4ehsxoiTtYPluFI9XNxIqqRWYlLo6hYl41Jw+JXst0MhQFbHAP5se+UJmUAWXQMp8y2qjZQpGuWJb3eXlDpJxYEziF3lKUwTabUsHoKYu5itf5FtA7y04OlyJXvr0mlOSqVdsd1qAjcAenEcqxmPM2g/yhD5sjEe+die/s/P9su4gXFMUc42cgHzFIQcSp6x+4UAOkGoezL0s9hWzVyio4/Wdi7DiOL/gQERAOqlPHlcfAItiiZFQGCAFFGAJ0CuaAGVLQJ9fDgHraDrJkasNdTOUewFbA==
x-microsoft-antispam-prvs: <CY4PR09MB14649679EF771591928AD5FEF3550@CY4PR09MB1464.namprd09.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(166708455590820)(100405760836317);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123564025)(20161123558025)(20161123555025)(6072148); SRVR:CY4PR09MB1464; BCL:0; PCL:0; RULEID:; SRVR:CY4PR09MB1464; 
x-forefront-prvs: 02296943FF
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(7916002)(39850400002)(39410400002)(39450400003)(39840400002)(39860400002)(189002)(199003)(377454003)(102836003)(5660300001)(3846002)(2950100002)(6116002)(81166006)(6436002)(6506006)(53936002)(19627405001)(7906003)(7696004)(74316002)(7736002)(229853002)(68736007)(2900100001)(8676002)(81156014)(8936002)(86362001)(97736004)(92566002)(54356999)(76176999)(50986999)(55016002)(99286003)(77096006)(38730400002)(105586002)(106116001)(53546006)(101416001)(106356001)(122556002)(6246003)(3280700002)(6606003)(606005)(4326007)(66066001)(2906002)(25786008)(189998001)(33656002)(3660700001)(236005)(9686003)(54896002)(6306002)(491001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY4PR09MB1464; H:CY4PR09MB1464.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:99
spamdiagnosticmetadata: NSPM
Content-Type: multipart/alternative; boundary="_000_CY4PR09MB1464243342F19FCBE48C37E7F3550CY4PR09MB1464namp_"
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-originalarrivaltime: 25 Feb 2017 14:28:40.3925 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR09MB1464
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/H3z3cXgT8RrFNG2XOe1H4H2_ijk>
Cc: IRTF CFRG <cfrg@irtf.org>
Subject: Re: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769).
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sat, 25 Feb 2017 14:28:49 -0000

--_000_CY4PR09MB1464243342F19FCBE48C37E7F3550CY4PR09MB1464namp_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

Hi Sean, Joe, Eric and all,


I would like to address my thoughts/suggestions on 2 issues in option a.


1) The data limit should be addressed in term of blocks, not records. When =
the record size is not the full size, some user might not know what to do. =
When the record size is 1 block, the limit of 2^24.5 blocks (records) is wa=
y too low unnecessarily for the margin of 2^-60.  In that case, 2^34.5 1-bl=
ock records is the limit which still achieves the margin of 2^-60.


2) To achieve the margin of 2^-57 as the current text says, the limit numbe=
r should be 2^36 blocks.


Regards,

Quynh.


________________________________
From: Cfrg <cfrg-bounces@irtf.org> on behalf of Sean Turner <sean@sn3rd.com=
>
Sent: Friday, February 10, 2017 12:07 AM
To: <tls@ietf.org>
Cc: IRTF CFRG
Subject: [Cfrg] Closing out tls1.3 "Limits on key usage" PRs (#765/#769)

All,

We=92ve got two outstanding PRs that propose changes to draft-ietf-tls-tls1=
3 Section 5.5 =93Limits on Key Usage=94.  As it relates to rekeying, these =
limits have been discussed a couple of times and we need to resolve once an=
d for all whether the TLS WG wants to:

a) Close these two PRs and go with the existing text [0]
b) Adopt PR#765 [1]
c) Adopt PR#769 [2]

Please indicate you preference to the TLS mailing list before Feb 17.  Note=
 that unless there=92s clear consensus to change the text will remain as is=
 (i.e., option a).

J&S

[0] https://tlswg.github.io/tls13-spec/#rfc.section.5.5
[1] https://github.com/tlswg/tls13-spec/pull/765
[2] https://github.com/tlswg/tls13-spec/pull/769
_______________________________________________
Cfrg mailing list
Cfrg@irtf.org
https://www.irtf.org/mailman/listinfo/cfrg

--_000_CY4PR09MB1464243342F19FCBE48C37E7F3550CY4PR09MB1464namp_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1=
252">
<style type=3D"text/css" style=3D"display:none;"><!-- P {margin-top:0;margi=
n-bottom:0;} --></style>
</head>
<body dir=3D"ltr">
<div id=3D"divtagdefaultwrapper" style=3D"font-size: 12pt; color: rgb(0, 0,=
 0); font-family: Calibri, Arial, Helvetica, sans-serif, &quot;Apple Color =
Emoji&quot;, &quot;Segoe UI Emoji&quot;, NotoColorEmoji, &quot;Segoe UI Sym=
bol&quot;, &quot;Android Emoji&quot;, EmojiSymbols;" dir=3D"ltr">
<p>Hi Sean, Joe, Eric and all,</p>
<p><br>
</p>
<p>I would like to address my thoughts/suggestions on 2 issues in option a.=
&nbsp;</p>
<p><br>
</p>
<p>1) The data limit should be addressed in term of blocks, not records. Wh=
en the record size is not the full size, some user might not know what to d=
o. When the record size is 1 block, the limit of 2^24.5 blocks (records) is=
 way too low unnecessarily for the
 margin of 2^-60. &nbsp;In that case, 2^34.5 1-block records is the limit w=
hich still&nbsp;achieves the margin of 2^-60.&nbsp;</p>
<p><br>
</p>
<p>2) To achieve the margin of 2^-57 as the current text says, the limit nu=
mber should be 2^36 blocks.</p>
<p><br>
</p>
<p>Regards,</p>
<p>Quynh.&nbsp;</p>
<br>
<br>
<div style=3D"color: rgb(0, 0, 0);">
<div>
<hr tabindex=3D"-1" style=3D"display:inline-block; width:98%">
<div id=3D"x_divRplyFwdMsg" dir=3D"ltr"><font face=3D"Calibri, sans-serif" =
color=3D"#000000" style=3D"font-size:11pt"><b>From:</b> Cfrg &lt;cfrg-bounc=
es@irtf.org&gt; on behalf of Sean Turner &lt;sean@sn3rd.com&gt;<br>
<b>Sent:</b> Friday, February 10, 2017 12:07 AM<br>
<b>To:</b> &lt;tls@ietf.org&gt;<br>
<b>Cc:</b> IRTF CFRG<br>
<b>Subject:</b> [Cfrg] Closing out tls1.3 &quot;Limits on key usage&quot; P=
Rs (#765/#769)</font>
<div>&nbsp;</div>
</div>
</div>
<font size=3D"2"><span style=3D"font-size:10pt;">
<div class=3D"PlainText">All,<br>
<br>
We=92ve got two outstanding PRs that propose changes to draft-ietf-tls-tls1=
3 Section 5.5 =93Limits on Key Usage=94.&nbsp; As it relates to rekeying, t=
hese limits have been discussed a couple of times and we need to resolve on=
ce and for all whether the TLS WG wants to:<br>
<br>
a) Close these two PRs and go with the existing text [0]<br>
b) Adopt PR#765 [1]<br>
c) Adopt PR#769 [2]<br>
<br>
Please indicate you preference to the TLS mailing list before Feb 17.&nbsp;=
 Note that unless there=92s clear consensus to change the text will remain =
as is (i.e., option a).<br>
<br>
J&amp;S<br>
<br>
[0] <a href=3D"https://tlswg.github.io/tls13-spec/#rfc.section.5.5" id=3D"L=
Plnk285625" previewremoved=3D"true">
https://tlswg.github.io/tls13-spec/#rfc.section.5.5</a><br>
[1] <a href=3D"https://github.com/tlswg/tls13-spec/pull/765" id=3D"LPlnk755=
207" previewremoved=3D"true">
https://github.com/tlswg/tls13-spec/pull/765</a><br>
[2] <a href=3D"https://github.com/tlswg/tls13-spec/pull/769" id=3D"LPlnk567=
309" previewremoved=3D"true">
https://github.com/tlswg/tls13-spec/pull/769</a><br>
_______________________________________________<br>
Cfrg mailing list<br>
Cfrg@irtf.org<br>
<a href=3D"https://www.irtf.org/mailman/listinfo/cfrg" id=3D"LPlnk340440" p=
reviewremoved=3D"true">https://www.irtf.org/mailman/listinfo/cfrg</a><br>
</div>
</span></font></div>
</div>
</body>
</html>

--_000_CY4PR09MB1464243342F19FCBE48C37E7F3550CY4PR09MB1464namp_--


From nobody Sun Feb 26 06:32:58 2017
Return-Path: <Kenny.Paterson@rhul.ac.uk>
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 A547D129957 for <cfrg@ietfa.amsl.com>; Sun, 26 Feb 2017 06:32:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.021
X-Spam-Level: 
X-Spam-Status: No, score=-0.021 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=rhul.onmicrosoft.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 yQlCw6zP6OAu for <cfrg@ietfa.amsl.com>; Sun, 26 Feb 2017 06:32:54 -0800 (PST)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20074.outbound.protection.outlook.com [40.107.2.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BFF45129715 for <cfrg@irtf.org>; Sun, 26 Feb 2017 06:32:53 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rhul.onmicrosoft.com;  s=selector1-rhul-ac-uk; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mU6maG6cZrFZAKLiBazsLKZ0UAH3CxCPRXypjtJGhlk=; b=FlDsNyrTmAXwoPWD7Hc9yqHhIoPpgQJcYsrP2+xIXnvT32J28p9LDqXjCi74Z9tgY6DH5AR8SR+p4YYXLdHoBazAIbXN6dsLIQwDH4hp2KSy4gGEtmIJL6maWGvFyUCPN/21wgdrwkM4QmKOsZejDFci87XfIWnZuBKNiCr4a34=
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com (10.168.2.156) by AM4PR0301MB1908.eurprd03.prod.outlook.com (10.168.3.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Sun, 26 Feb 2017 14:32:50 +0000
Received: from AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) by AM4PR0301MB1906.eurprd03.prod.outlook.com ([10.168.2.156]) with mapi id 15.01.0919.021; Sun, 26 Feb 2017 14:32:49 +0000
From: "Paterson, Kenny" <Kenny.Paterson@rhul.ac.uk>
To: "cfrg@irtf.org" <cfrg@irtf.org>
Thread-Topic: CFRG NOT meeting at IETF 98/interim meeting in Paris, April 30th
Thread-Index: AQHSkD00i+Qp1q9N30m3Ote044DYuQ==
Date: Sun, 26 Feb 2017 14:32:49 +0000
Message-ID: <D4D8980E.8A45B%kenny.paterson@rhul.ac.uk>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
user-agent: Microsoft-MacOutlook/14.7.1.161129
authentication-results: spf=none (sender IP is ) smtp.mailfrom=Kenny.Paterson@rhul.ac.uk; 
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [183.77.227.119]
x-microsoft-exchange-diagnostics: 1; AM4PR0301MB1908; 7:G44tQQLhsebZq3nYipxgtmtEmFOjtzLZCGjEUqjcVxDBAdhEdPKdjPIUJUDpS2mJy7R64XaYsPCy9J95NtgDVEeB57MZ1YRULidW6ih25RZck47p35gdpv3CFR9ty0zLbr/dBSJLxnkOOMXFMpFBFJ0JBVG/YE9ZgI7NjNHpvOCx/rMC841evU7ROsUjc1MdRJFrTiBlPlHpts2+EpMiOY7vbEU2ljPh8Ud4vwOHBhF3kVAIGL4/JfKoiWwQq/CkWXKnGcMss1HQx3M+mcqdEU1qQh7XbObleE2pJT0DO+oJ6pYeHsw4lFmHp6tKSss3XTY9DbJNvCZLo6LfNtF4iw==
x-forefront-antispam-report: SFV:SKI; SCL:-1SFV:NSPM; SFS:(10009020)(6009001)(7916002)(39450400003)(199003)(189002)(50854003)(106116001)(66066001)(54356999)(6486002)(106356001)(6436002)(36756003)(77096006)(50986999)(101416001)(6506006)(2501003)(83506001)(6916009)(53936002)(110136004)(6306002)(3280700002)(38730400002)(6512007)(3660700001)(42882006)(25786008)(189998001)(5640700003)(74482002)(4001350100001)(5660300001)(105586002)(97736004)(2900100001)(450100001)(99286003)(3846002)(92566002)(2351001)(86362001)(305945005)(7736002)(2906002)(122556002)(8676002)(81156014)(81166006)(68736007)(1730700003)(8936002)(102836003)(6116002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0301MB1908; H:AM4PR0301MB1906.eurprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; 
x-ms-office365-filtering-correlation-id: 841694af-3b70-4334-01d2-08d45e545724
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:AM4PR0301MB1908; 
x-microsoft-antispam-prvs: <AM4PR0301MB1908B29A1494B13BE464609DBC540@AM4PR0301MB1908.eurprd03.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(192374486261705);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(20161123558025)(6072148); SRVR:AM4PR0301MB1908; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0301MB1908; 
x-forefront-prvs: 0230B09AC4
received-spf: None (protection.outlook.com: rhul.ac.uk does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <A3D50B740B220740B5D36CECEE2DB660@eurprd03.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: rhul.ac.uk
X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Feb 2017 14:32:49.6522 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2efd699a-1922-4e69-b601-108008d28a2e
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0301MB1908
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/KaT9UdB_b5PZ6rrgS74-y0WIQ4c>
Subject: [Cfrg] CFRG NOT meeting at IETF 98/interim meeting in Paris, April 30th
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 26 Feb 2017 14:32:56 -0000

RGVhciBDRlJHLA0KDQpXZSB3aWxsIG5vdCBiZSBtZWV0aW5nIGF0IElFVEYgOTggaW4gQ2hpY2Fn
by4gUGxlYXNlIGFjY2VwdCBteSBhcG9sb2dpZXMNCmlmIHlvdSBoYWQgcGxhbm5lZCBhIHRyaXAg
c3BlY2lmaWNhbGx5IGFyb3VuZCBDRlJHLg0KDQpPdXIgbmV4dCBtZWV0aW5nIHdpbGwgYmUgYW4g
aW50ZXJpbSBvbmUsIGp1c3QgYmVmb3JlIEV1cm9jcnlwdCAyMDE3IGluDQpQYXJpcywgb24gU3Vu
ZGF5IDMwdGggQXByaWwuDQoNCklmIHlvdSBhcmUgcGxhbm5pbmcgdG8gYXR0ZW5kIEV1cm9jcnlw
dCBhbmQvb3Igb3RoZXIgb2YgdGhlIGFzc29jaWF0ZWQNCndvcmtzaG9wcyAob2Ygd2hpY2ggdGhl
cmUgYXJlIG1hbnksIHNlZToNCmh0dHBzOi8vZXVyb2NyeXB0MjAxNy5kaS5lbnMuZnIvYWNjZXB0
ZWRFdmVudHMuaHRtbCkgdGhlbiB5b3Ugd2lsbCBuZWVkIHRvDQpyZWdpc3RlciB0aHJvdWdoIHRo
ZSBFdXJvY3J5cHQgd2Vic2l0ZSwgYXMgdGhlcmUgaXMgYSBzbWFsbCBldmVudCBhbmQNCmNhdGVy
aW5nIGZlZSBmb3IgdGhlIHdvcmtzaG9wcy4NCg0KSG93ZXZlciBpZiB5b3UgYXJlIE9OTFkgcGxh
bm5pbmcgdG8gYXR0ZW5kIHRoZSBDRlJHIG1lZXRpbmcsIHR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rZSBhIGZ1biB3ZWVrZW5kIC0gYXQgbGVhc3QgZm9yIHNvbWUN
CmRlZmluaXRpb24gb2YgImZ1biIhDQoNClJlZ2FyZHMsDQoNCktlbm55IA0KDQoNCg==


From nobody Sun Feb 26 15:21:51 2017
Return-Path: <n.brownlee@auckland.ac.nz>
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 82C611295C6 for <cfrg@ietfa.amsl.com>; Sun, 26 Feb 2017 15:21:50 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.302
X-Spam-Level: 
X-Spam-Status: No, score=-4.302 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_MED=-2.3, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=auckland.ac.nz
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 VTR4aRNaXrB8 for <cfrg@ietfa.amsl.com>; Sun, 26 Feb 2017 15:21:47 -0800 (PST)
Received: from mx4.auckland.ac.nz (mx4.auckland.ac.nz [130.216.125.248]) (using TLSv1.2 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7B4D91295CF for <cfrg@irtf.org>; Sun, 26 Feb 2017 15:21:47 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=auckland.ac.nz; i=@auckland.ac.nz; q=dns/txt; s=mail; t=1488151307; x=1519687307; h=to:cc:from:subject:message-id:date:mime-version: content-transfer-encoding; bh=3X8j7qUjbKzrl3V20691yBiySW/kP0BR2pf4UzRUQM0=; b=BKFaaoH789eNdZJCz5sQ8wz8LN5A6Xfj7aqf+9iNaILNIfvDKsaw0J/J c3G1K6Hzf/qCAPqRmxh6UseU4YmXEw1ebWXc7ZwnlojnKk7QgawvJF5v8 ks2maXL0UqZlgjHgX+GEP+Rs/Hwh/70J+S9eiJIoSaePzil76JILthpTz NEpEJp4lLFiEO/K1fptnJR38Ezq/yi+ua4eHUMFndHaIouiWxwgnYYxWX odpVtejdTBMDn8iAmtdenkIC4+zYO5pK6xTkqtA6qVYILkwnr6XrB+0Az FjxB/5FD7Qk9GNcLarepBKa2n8T/Z6VY6j0NLWgUlMxWaclrnsO9WuC27 g==;
X-IronPort-AV: E=Sophos;i="5.35,211,1483959600"; d="scan'208";a="137617427"
X-Ironport-HAT: UNIVERSITY - $RELAY-THROTTLE
X-Ironport-Source: 130.216.38.7 - Outgoing - Outgoing-SSL
Received: from sc-cs-316051.cs.auckland.ac.nz (HELO [130.216.38.7]) ([130.216.38.7]) by mx4-int.auckland.ac.nz with ESMTP; 27 Feb 2017 12:21:42 +1300
To: cfrg Review Panel <cfrg@irtf.org>
From: Nevil Brownlee <n.brownlee@auckland.ac.nz>
Message-ID: <00a06d56-5186-4150-5ba5-810e8961d2e8@auckland.ac.nz>
Date: Mon, 27 Feb 2017 12:21:42 +1300
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/8_G4V5xBqXEhPTX1JpgKXqpB87s>
Cc: ISE <rfc-ise@rfc-editor.org>
Subject: [Cfrg] ISE needs reviews for draft-hao-jpake-04 and draft-hao-schnorr-04
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Sun, 26 Feb 2017 23:21:50 -0000

Hi CFRG Review Panel members:

I don't have a mail alias for the review panel, so I'm sending to
the CFRG list.

These two drafts have been sent to me as Independent Submissions,
please review them for me.

Cheers, Nevil

-- 
---------------------------------------------------------------------
  Nevil Brownlee                          Computer Science Department
  Phone: +64 9 373 7599 x88941             The University of Auckland
  FAX: +64 9 373 7453   Private Bag 92019, Auckland 1142, New Zealand


From nobody Sun Feb 26 17:46:58 2017
Return-Path: <martin.thomson@gmail.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 468EE1295B2 for <cfrg@ietfa.amsl.com>; Sun, 26 Feb 2017 17:46:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level: 
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 PQ5TFPXs6uc4 for <cfrg@ietfa.amsl.com>; Sun, 26 Feb 2017 17:46:56 -0800 (PST)
Received: from mail-qk0-x235.google.com (mail-qk0-x235.google.com [IPv6:2607:f8b0:400d:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1269C1295A5 for <cfrg@ietf.org>; Sun, 26 Feb 2017 17:46:56 -0800 (PST)
Received: by mail-qk0-x235.google.com with SMTP id n127so76960357qkf.0 for <cfrg@ietf.org>; Sun, 26 Feb 2017 17:46:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;  h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=wVhsJj52WXhugqzTEPPQOWK9iAjsvEBPQhDin4v2KFo=; b=IQUEBxDK5cS/V0dDEB35ce2m3uUgJxAPBTu4Hi8sQ3KEPvnjp2CR9ezoqVxlLheKij yqOKHoaQebWEC6oHcGsl2knGC9BbD47nWwI3StjUUSIL+xZMrzNtBj0k8Qh2RhFZIFcq PQqpCCANFySH3r1mPc6oUnJGAyygKQSiGUYGDKWt/4N/pwE80DnzMZFlsSi7g+uJ1dQn Oxqj02ZTUsWffGHzjdYmS4wQO6PGHBtKnFFS+TBZiTlLe3rfs5+017nzO05BJwPAxnLr wuUTgsyjFYfuUizj9EspvtPdB8bmLiC05rsGGM4gxzaPQHslMG9+VBoQzqu2jxaDWYcL OGpg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=wVhsJj52WXhugqzTEPPQOWK9iAjsvEBPQhDin4v2KFo=; b=YWOi3RpCH+kuAS7ihGN2Djm98G2xIuQRzMmaUvzvaXp6FGB1WwzdaYKlepny4iImjo pwiSBmqf47tM4w1wWS/Ix6vFMApMnLXKLllNn3ykmBeMx7pO2CtYC5SfBDayJ9XDUuz3 Fr9hBtoP1KQUj7wuHiAx2ytL9ESwF7NhYv1CXJ9VNAEBZKH6kXzKF0VB5CsvuPCMt5Ix CWcht8AlUJ0QtWFuqd4sZbCpQADAOQyRVaYJ7MPyqbKPwj+3u8I8/72UqzTLyC+VpqjM qThq3KheRqZn4dBqN/wxbx/04WAh1bfKdOppl5nucRC+KgUuYkmI9Q7U+wkA6O/K8qQO kODQ==
X-Gm-Message-State: AMke39n1z7mTNzS2WQH+O8wq1lUeUIcZwpgnPs8+vG7OqJSFnN+GBnxuAcMm45PQcMczMZ1QFpD7J02OWyIzpg==
X-Received: by 10.55.27.219 with SMTP id m88mr4623682qkh.147.1488160015301; Sun, 26 Feb 2017 17:46:55 -0800 (PST)
MIME-Version: 1.0
Received: by 10.140.19.112 with HTTP; Sun, 26 Feb 2017 17:46:54 -0800 (PST)
In-Reply-To: <CAMfhd9UKHtCThVbz81xMC+JS4Cy7EC5gQzjiDsvHqb7uShGwUg@mail.gmail.com>
References: <148786730667.20244.7762484121330383342.idtracker@ietfa.amsl.com> <CAMfhd9VumcZ76MJjx3Kr8gw6mbUJc7x_pPcSDR2V0Jiuz+sm-w@mail.gmail.com> <A3FAEDD6-6F58-448C-A3DA-42ADEC51AEA0@cisco.com> <CAMfhd9UKHtCThVbz81xMC+JS4Cy7EC5gQzjiDsvHqb7uShGwUg@mail.gmail.com>
From: Martin Thomson <martin.thomson@gmail.com>
Date: Mon, 27 Feb 2017 12:46:54 +1100
Message-ID: <CABkgnnV_Dm-8mm+qQ5-=JE3HLwvprX3bFCBXDjKHp3GtcCRZJg@mail.gmail.com>
To: Adam Langley <agl@imperialviolet.org>
Content-Type: text/plain; charset=UTF-8
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/JsINoAvUAfauKk3CUgFrdad_zgQ>
Cc: Yehuda Lindell <yehuda.lindell@biu.ac.il>, "David McGrew \(mcgrew\)" <mcgrew@cisco.com>, "cfrg@ietf.org" <cfrg@ietf.org>
Subject: Re: [Cfrg] I-D Action: draft-irtf-cfrg-gcmsiv-04.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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: Mon, 27 Feb 2017 01:46:57 -0000

On 25 February 2017 at 06:57, Adam Langley <agl@imperialviolet.org> wrote:
> Yes, it appears that the IETF processing doesn't handle UTF-8 :(

Yet... https://tools.ietf.org/html/rfc7997 is on a slow path to being
usable.  Maybe this time next year if we're all very good and eat our
greens.


From nobody Tue Feb 28 05:25:35 2017
Return-Path: <internet-drafts@ietf.org>
X-Original-To: cfrg@ietf.org
Delivered-To: cfrg@ietfa.amsl.com
Received: from ietfa.amsl.com (localhost [IPv6:::1]) by ietfa.amsl.com (Postfix) with ESMTP id 7CC73129602; Tue, 28 Feb 2017 05:25:22 -0800 (PST)
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
From: internet-drafts@ietf.org
To: <i-d-announce@ietf.org>
X-Test-IDTracker: no
X-IETF-IDTracker: 6.46.0
Auto-Submitted: auto-generated
Precedence: bulk
Message-ID: <148828832247.30665.1938517213721291830.idtracker@ietfa.amsl.com>
Date: Tue, 28 Feb 2017 05:25:22 -0800
Archived-At: <https://mailarchive.ietf.org/arch/msg/cfrg/xHd3wCVSMMGl4gGlIu-fHOwS4-0>
Cc: cfrg@ietf.org
Subject: [Cfrg] I-D Action: draft-irtf-cfrg-re-keying-00.txt
X-BeenThere: cfrg@irtf.org
X-Mailman-Version: 2.1.17
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, 28 Feb 2017 13:25:22 -0000

A New Internet-Draft is available from the on-line Internet-Drafts directories.
This draft is a work item of the Crypto Forum of the IETF.

        Title           : Re-keying Mechanisms for Symmetric Keys
        Authors         : Stanislav Smyshlyaev
                          Russ Housley
                          Mihir Bellare
                          Evgeny Alekseev
                          Ekaterina Smyshlyaeva
	Filename        : draft-irtf-cfrg-re-keying-00.txt
	Pages           : 36
	Date            : 2017-02-27

Abstract:
   This specification contains a description of a variety of methods to
   increase the lifetime of symmetric keys.  It provides external and
   internal re-keying mechanisms that can be used with such modes of
   operations as CTR, GCM, CBC, CFB, OFB and OMAC.


The IETF datatracker status page for this draft is:
https://datatracker.ietf.org/doc/draft-irtf-cfrg-re-keying/

There's also a htmlized version available at:
https://tools.ietf.org/html/draft-irtf-cfrg-re-keying-00


Please note that it may take a couple of minutes from the time of submission
until the htmlized version and diff are available at tools.ietf.org.

Internet-Drafts are also available by anonymous FTP at:
ftp://ftp.ietf.org/internet-drafts/

