Re: [Emu] Consensus call on EAP-TLS key derivation

John Mattsson <john.mattsson@ericsson.com> Mon, 10 May 2021 17:53 UTC

Return-Path: <john.mattsson@ericsson.com>
X-Original-To: emu@ietfa.amsl.com
Delivered-To: emu@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EF2EB3A2552 for <emu@ietfa.amsl.com>; Mon, 10 May 2021 10:53:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.798
X-Spam-Level:
X-Spam-Status: No, score=-2.798 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.698, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-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=ericsson.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 cyMU_jOSqVbM for <emu@ietfa.amsl.com>; Mon, 10 May 2021 10:53:51 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2054.outbound.protection.outlook.com [40.107.21.54]) (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 99DB53A2551 for <emu@ietf.org>; Mon, 10 May 2021 10:53:50 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DVJwcatCspCfel01hUeUHKZHR1AS8rfCfJeh16Cr2peTjbV97fBw7QiXNzYPjk3p7KJP2vGt2MKQBhNJfzl15BY5IpKM29Cn3B4Jeg9H3GSDijy5nU+mjxXTEBy7EBsTYe5mVsumIaMkmJU429kswni3fLrgjhXgMKUedKbChRpmL+SFzB9vY4sG7TkQ4QD7GZnV3wt1y/DsxfXjAkuDEXFxHZi99caByAzav3GEPYbq7I+JvWPVpsfWNFX+N5yaPKzbn3Rn4Zvt8FyKyEtEadF2nHLRaIkfhB7f7bfw7Sp1MABvT9Kv+S/po0BgRopyVX4RLdXgHwgS0Z+iCO9YhA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c1PzOVP/TQvBGb+wuJUCSP5PSFOpR3y0NziF0vs68Zc=; b=RbMET3JWtx2/bw4/hlLbatj2ZnLgVAD6j+2O7MS0hr8JkhaExgOLvm+6ujX7AxOfkMta5Rl//JS9dOI2UNyqCE5/lPTi8t8vIB0bK2w61MeDloegWRSv+fKSvvxAYOt1xL7UT1Jp+CfobkuJ+dbiZvJyToEQdBmOi5WdckjZZlcJeqHQd3uws4agFYQQ4QVWn5Sdky56hn2qocdsVExfllnpFNsOrT4jCtsRv4MLOE8phgCptxlFtpN4Q2w7WdqKyyvM/9YudvE5L6c2tRx3KqS14ZWzQB+IcisSWuQwb4xO+6+GLlT/jD1rMxrbbkpAXkRtacQL+4arB2VYh73f+A==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c1PzOVP/TQvBGb+wuJUCSP5PSFOpR3y0NziF0vs68Zc=; b=rZNGU8XVM6sR/Ti6JmMGi9KaEVDVm3CEbhryzkhZL8Hv2SiKIUCsEC7k5TZwWN9A74HNjbVyICgvaMUIBmBin5gofFjRUxDp9rjxse0/9Q5tYhbcDG2hi4+yZwHVrRpcHXAZhUBTmkFST1/sC3mB/pgjUiU3FKAt66CTjD2JeDE=
Received: from DB6PR0701MB3047.eurprd07.prod.outlook.com (2603:10a6:4:74::7) by DBAPR07MB6518.eurprd07.prod.outlook.com (2603:10a6:10:182::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4129.23; Mon, 10 May 2021 17:53:47 +0000
Received: from DB6PR0701MB3047.eurprd07.prod.outlook.com ([fe80::f0fb:72b:8eac:53e8]) by DB6PR0701MB3047.eurprd07.prod.outlook.com ([fe80::f0fb:72b:8eac:53e8%4]) with mapi id 15.20.4129.023; Mon, 10 May 2021 17:53:47 +0000
From: John Mattsson <john.mattsson@ericsson.com>
To: Joseph Salowey <joe@salowey.net>, EMU WG <emu@ietf.org>
Thread-Topic: [Emu] Consensus call on EAP-TLS key derivation
Thread-Index: AQHXRPxpGnxKFtMIskGoFhPf6r9YFKrdImcA
Date: Mon, 10 May 2021 17:53:46 +0000
Message-ID: <D8592424-2A53-43BA-B1EE-6661CFAF6537@ericsson.com>
References: <CAOgPGoDtd2HAG8RrpLAZ8XQoiyXpJNz2k6+CAyxU2+gnbqEwjg@mail.gmail.com>
In-Reply-To: <CAOgPGoDtd2HAG8RrpLAZ8XQoiyXpJNz2k6+CAyxU2+gnbqEwjg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.48.21041102
authentication-results: salowey.net; dkim=none (message not signed) header.d=none;salowey.net; dmarc=none action=none header.from=ericsson.com;
x-originating-ip: [81.225.97.222]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 932f8985-f1d5-483f-85a0-08d913dc8f7a
x-ms-traffictypediagnostic: DBAPR07MB6518:
x-microsoft-antispam-prvs: <DBAPR07MB6518CDE18E7E6D8FBAC584AA89549@DBAPR07MB6518.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: O6tP4fPY8eJuocPqpcLElzHe3qnauVg4ERC81JLyaeeHUYch0j+qFkUSc9HxTo3LNSghIgm6Zv5hgVcZXPYaSjRTK4GXYfSemkMRmbCdQ2G7D1amgFqGwomw3rBkpjnjpUDjkAuF+xAbosJHJWdGzQRPjAffXV7c1j/xWaCxzTyWTGtD6HWMqMfOBXtArleELMDQpGCcbBXrKk0lWMyd7foVdqVHeXmKPH2GB76A8OR9kWFc/TJ/PLtICxpBmiElGnK9vsQkvJc4wOWw8jAybYmYu2RYjy495tnLJ7Q4PxY31dntwMZvHrl/WHs6igJX2F0tYGbz/C9M3dEPJUPfE7P4zUxCt/dyA/hlcznu6y+USNQPpvqL+aMXaMJhhtoFUGlOtpVC16fDisxwJxrgNV3Jy/NyAIZ/u5xOg+tI4t88Ckic1KgV9hAGyLs6WzAgu0fMHXg/FMqLFCFbW/27DEu1D+OXvwN44YWVkrxv1UCgNDKWldY15vtzl8Uzx5ip+XgamEs/qUm7cQRghGNy9wUsbk+1CTzKUtpxTcF2kXhyE1Wk383IGBtX8SJhlp/0iRlyXSjoA25WYXzBgoRKE8pWdoMykJOsZp4ZBpHLP1DO/PN1oBvDfB5VeFk6L8yMOWM5Tmxq9p74zu//trKz16a/pX2bMBHx6bvNLiJUlRBT0fXArmhfAjgfixgpBDMl9w2cIJWmFSmqqQ6gP6AZIyrb3CfKNG755ahvJ8bT+ZxiuAWMy6Xs5/eU48g10PAw
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DB6PR0701MB3047.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(346002)(366004)(376002)(396003)(39860400002)(66946007)(91956017)(76116006)(186003)(5660300002)(83380400001)(2906002)(66556008)(66476007)(64756008)(66446008)(26005)(6506007)(2616005)(44832011)(38100700002)(122000001)(8676002)(316002)(966005)(478600001)(71200400001)(110136005)(8936002)(33656002)(6486002)(6512007)(36756003)(53546011)(86362001)(45980500001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: b2G/nruuQDvgEBD8USx7Qrz1KlUvx/MrNwZT03KUSkB41Rcb6qn3ONNExhy+oF08emAjD0QHHEdUcpUY5tRC70aPnB+2T1XhiH9WG6qPwa1wc0FrIj4hhzGgJ0pCTV+wWrlyzr6z5tv8rP7PHj++HuOp6QLZkH+/cY43zW6MCIoRfvABbceaQo6RZ6MVJduIiJZu9HmhryQmSIBENK0OKC2wOExUOAZwRxlmQtBKo41RSg2o4+4yr4a7BNYByQTt41Xdwk/OhKyYHUqdJXPY1vnXluYewRRw0LlA/A1HrODg2EJqLiCyVzx2nzJyRjyviVcfJ3/fKYOmH+I63nD64f3yjXBr1whsZZ5DGijTm1iqELpoFa1feVddiSMeuOHslZV+9yt6HYhPaQdubQDBC/XXP2gkJTgXpGXLAMZ/wN9BBaEgSGy6s0en5UJVpmmqFsJag/p5b4qiogEboRhgDcfYLQokZ5voAfu6dP0l2hHYbtphzsLhs0CYtpWY7KXhmqC3Ol2Qrm1spQoyChOMZdbdW4KgXhaO0cPMkzHUQ4nrwKrbBwShIP4cB4CFmP3tnpnle/KPNGI1DyhehYciCNSqCHeytqlLCrcka3ZjQ8YQjRZibAUQnIPBEb6B+rznI3VtNS5R0zGl43IqNET0KyHApE3nca0gSiVdzHNtFILfCUt1z80145WAo/5UMkomKHI6DC8IdPFJhj30hAyw1xZ/GYuN82pUGnzqHeX4eYwYVmreL5CgLOvnWtD+mUtjfxLij0LpsxgYhhur3z7juvM7iI3Vohk7zTsWNQqk0oBJ3IBS5xnshLLuJBhRBHOBkYKIpDIZcKpYsVXRfaILway2TKjO1bHAP+0Df0MaihO+rJIHyHT6Yw5RZlUgOzoaB/U9SkyJXErKnsHIo37TO0BOBtY+TmVntjlANk5wGgbRoszf5bpFoaz7GcMhLhRLM2MjHUBBYX6Y2Rke1QNjVuGLJxHlFXWKpbcT2rq9eqwH3bxxb+fi3g75cBlrPQeVZq3IOc5H/6f4nawHfDj5tePLfTbOw4j3y7VR+XrVOpvxcF3tH0f05X617XaGQnyGwfPl1ZubEtG4e2/Mcx/zgKzfjsy3qwlozJNRgR+rVi4kkfdFX8oOe+1GUTx9FjpDyrF0/27mKar9HZVUvMd+zKSua61RL5UdQhltmzRe4s7faGQd7TnvaxyO05wzh3O+fn2c4KK4GFCn44r5gcgNugJsfk0bJtLrw5Kjnn0yDD0UAKJnYGDZfsXsu97ovhvEYm/AcSFQq1oMvk/NBN3oS+IqvGbHxlDJr/Fccot79fybnuzAVB2YhLxphRyWXfSU
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_D85924242A5343BAB1EE6661CFAF6537ericssoncom_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: DB6PR0701MB3047.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 932f8985-f1d5-483f-85a0-08d913dc8f7a
X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2021 17:53:46.8541 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Gb677dZN67fWQFdBcYjc3jp981Y9MTjbCRkNsLjHXB9K8XRH935g3l3O6kJMJdrYlvJRajfpa4uHHzAImxPLNhQ9ULKrR7RZfLbUoJUILcI=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DBAPR07MB6518
Archived-At: <https://mailarchive.ietf.org/arch/msg/emu/Zbpy8rPnEkvVFbIpBXS8KxRf3P8>
Subject: Re: [Emu] Consensus call on EAP-TLS key derivation
X-BeenThere: emu@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "EAP Methods Update \(EMU\)" <emu.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/emu>, <mailto:emu-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/emu/>
List-Post: <mailto:emu@ietf.org>
List-Help: <mailto:emu-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/emu>, <mailto:emu-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 10 May 2021 17:53:57 -0000

I don’t see any strong reasons to keep the -15 key derivation. I started to prepare a PR for the likely change back to -13.

https://github.com/emu-wg/draft-ietf-emu-eap-tls13/pull/68

- Version 15 has the following wrong text that need to change. Key_Material can now be kept, but IV should be removed.

  “the Key_Material, IV, and Method-Id SHALL be derived”
  ”derivation of Key_Material, IV and Method-Id”

- The IANA table need to change.

- I would suggest to have the text agreed in -13 stating stating that the derivation from Key_Material is the same as in RFC 5216.

       The MSK and EMSK are derived in the same manner as with EAP-TLS [RFC5216], Section 2.3. The definitions are repeated below for simplicity:

       MSK = Key_Material(0, 63)
       EMSK = Key_Material(64, 127)

John

From: Emu <emu-bounces@ietf.org> on behalf of Joseph Salowey <joe@salowey.net>
Date: Sunday, 9 May 2021 at 19:54
To: EMU WG <emu@ietf.org>
Subject: [Emu] Consensus call on EAP-TLS key derivation

We had discussion on the list on whether to include context in the key derivation, but we never closed on the issue of separating out the MSK and EMSK derivation.  As a result several implementers have gone down the path of implementing what is in draft 13 and not separating out the derivation.  The main difference is that draft 15 separated out the EMSK and MSK derivation using two different labels while draft 13 used a single label to derive key material which is partitioned into two keys.   The reason for the change was to enable different access control for these two different quantities for different callers, however in practice it is EAP-TLS application which needs access to both keys that is the caller of the TLS library so this separation is not particularly useful.   Therefore the recommendation is to align with implementation and derive the MSK and EMSK by partitioning the key material from the key material produced by a single label of the exporter function.

Please respond to the list if you support the change below or not to revert some of the text in the key derivation section.  If you object to the change please state why.  Please respond by May 20,2021.

Thanks,

Joe

The proposal is to use the following key derivation which is largely a reversion to draft 13:

Draft-15 Text:

Type-Code = 0x0D

MSK        = TLS-Exporter("EXPORTER_EAP_TLS_MSK",Type-Code,64)

EMSK       = TLS-Exporter("EXPORTER_EAP_TLS_EMSK",Type-Code,64)

Method-Id  = TLS-Exporter("EXPORTER_EAP_TLS_Method-Id",Type-Code,64)

Session-Id = Type-Code || Method-Id

Proposed New Text:

Type-Code = 0x0D

Key_Material = TLS-Exporter("EXPORTER_EAP_TLS_Key_Material",

                               Type-Code, 128)

MSK          = Key_Material(0, 63)

EMSK         = Key_Material(64, 127)

Method-Id    = TLS-Exporter("EXPORTER_EAP_TLS_Method-Id",

                               Type-Code, 64)

Session-Id = Type-Code || Method-Id



The rest of the text of the section remains the same as draft-15.