Re: [Secdispatch] [Ace] FW: [secdir] EDHOC and Transports

Göran Selander <goran.selander@ericsson.com> Mon, 18 February 2019 17:38 UTC

Return-Path: <goran.selander@ericsson.com>
X-Original-To: secdispatch@ietfa.amsl.com
Delivered-To: secdispatch@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1EA23130F3B for <secdispatch@ietfa.amsl.com>; Mon, 18 Feb 2019 09:38:16 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.322
X-Spam-Level:
X-Spam-Status: No, score=-3.322 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_EXCESS_BASE64=0.979, RCVD_IN_DNSWL_MED=-2.3, 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=ericsson.com header.b=b+PREENP; dkim=pass (1024-bit key) header.d=ericsson.com header.b=JJiqeF/X
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 3eDooyt6--Fb for <secdispatch@ietfa.amsl.com>; Mon, 18 Feb 2019 09:38:14 -0800 (PST)
Received: from sessmg22.ericsson.net (sessmg22.ericsson.net [193.180.251.58]) (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 091CA130F3E for <secdispatch@ietf.org>; Mon, 18 Feb 2019 09:38:13 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; d=ericsson.com; s=mailgw201801; c=relaxed/relaxed; q=dns/txt; i=@ericsson.com; t=1550511491; x=1553103491; h=From:Sender:Reply-To:Subject:Date:Message-ID:To:CC:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=3SjGC7/y7xEBsNVFzl038+NPnoj59jj/a6LmGayACRI=; b=b+PREENPbVYXb6i11X9ndnJfOCkp5Pesvki6PFldTLcsyXQrUo2/nVEztUcblf7Q ZllXw34DVmyO+KSoRugePCL5bsBI/9mc1a1Pl3LXX0ALUqCgYZQOIuEEObauXi60 viyiWNVP4A+wlrSiG2Y3aUHNvVY6ql0yurgQh1Lbn0I=;
X-AuditID: c1b4fb3a-5c9c29e00000672c-82-5c6aed83f84f
Received: from ESESSMB504.ericsson.se (Unknown_Domain [153.88.183.122]) by sessmg22.ericsson.net (Symantec Mail Security) with SMTP id 8A.BC.26412.38DEA6C5; Mon, 18 Feb 2019 18:38:11 +0100 (CET)
Received: from ESESBMR501.ericsson.se (153.88.183.129) by ESESSMB504.ericsson.se (153.88.183.192) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 18 Feb 2019 18:38:10 +0100
Received: from ESESSMB504.ericsson.se (153.88.183.165) by ESESBMR501.ericsson.se (153.88.183.129) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3; Mon, 18 Feb 2019 18:38:10 +0100
Received: from EUR03-VE1-obe.outbound.protection.outlook.com (153.88.183.157) by ESESSMB504.ericsson.se (153.88.183.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1466.3 via Frontend Transport; Mon, 18 Feb 2019 18:38:09 +0100
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=3SjGC7/y7xEBsNVFzl038+NPnoj59jj/a6LmGayACRI=; b=JJiqeF/XV+Qeyoca/TGyaeFHDV+38Qfp5Amnhgd+nL7+yn2kynZ313tj2rW2V54dWzMRDWUOVompLlCYx3jjEX4mOw2WZQEkwa73Kua9kXqkaHMVCAcvnDlpOAFcgAvrLsCv8ve1YcVyH0pt3QYv8bR3A8tsI+LJNqqkj8NcQNQ=
Received: from HE1PR07MB4172.eurprd07.prod.outlook.com (20.176.166.25) by HE1PR07MB3355.eurprd07.prod.outlook.com (10.170.247.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1643.13; Mon, 18 Feb 2019 17:38:08 +0000
Received: from HE1PR07MB4172.eurprd07.prod.outlook.com ([fe80::68c4:9b7b:a2ad:8b5a]) by HE1PR07MB4172.eurprd07.prod.outlook.com ([fe80::68c4:9b7b:a2ad:8b5a%3]) with mapi id 15.20.1643.012; Mon, 18 Feb 2019 17:38:08 +0000
From: Göran Selander <goran.selander@ericsson.com>
To: Valery Smyslov <smyslov.ietf@gmail.com>
CC: "secdispatch@ietf.org" <secdispatch@ietf.org>, "ace@ietf.org" <ace@ietf.org>
Thread-Topic: [Secdispatch] [Ace] FW: [secdir] EDHOC and Transports
Thread-Index: AQHUx1ifAKECGoKSoUGnzs8nKxxIaqXl434A
Date: Mon, 18 Feb 2019 17:38:08 +0000
Message-ID: <2F99BE31-7193-4DE8-9509-4902EA8E4EBE@ericsson.com>
References: <4FA72889-F601-4255-962E-9A13E932EE21@ericsson.com> <CAL02cgTM93+ij+ottP_xR+OTvdj3S+pCKNOAAjEsj8Srt7EeYA@mail.gmail.com> <998ABFEF-7E5B-4B91-80DB-20ED43DE9A5C@ericsson.com> <CAL02cgQFyB4YOMr=hDdTVQ6Vc8LFo+RxVB9JA2EucdRK8_-wbA@mail.gmail.com> <12390.1550453705@localhost> <01f601d4c758$8e9d25e0$abd771a0$@gmail.com>
In-Reply-To: <01f601d4c758$8e9d25e0$abd771a0$@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.15.0.190117
x-originating-ip: [192.176.1.95]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 570320b9-1d37-4aee-9ada-08d695c7d8b5
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600110)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:HE1PR07MB3355;
x-ms-traffictypediagnostic: HE1PR07MB3355:
x-ms-exchange-purlcount: 2
x-microsoft-exchange-diagnostics: 1;HE1PR07MB3355;23:F6EoMoPkVajgohoQpcPQeHQH4W5Pli/cQYz+QLq+TyJOnIFxIBB40O/f8OLkwAjIiboWRI6RR1zZOJyWRYsXw41F+t7+gS6kaY9QE3HegGPhEb7MO1wGi3jJjJNm3c8qD6qm4lSpHOIAjArJjlAvNqlfOisfqBnikR+EFXDbQFskYIAvO9DvqxijGo6jwiuAQOLpsBkMF9L/HGfBvF5Q8dLluMFEPXxD/ra6H5gxqttXfV50/kOupYcMyQr+tKOxyntuqbeZNGoFOIe1EVPmMm4Qqp4VhvoIdWXykn6Zv9GQWwZxL2hcGbZLUIEIciakOeeO7gGomVHNqpvNe0Yga+ERy4vzy7gtkYld7LqGSz333F35+qqMr0zscBINdQlmUMa03NVIssfhBEsEcQTAEbM6lA6K8X3eBOR6D0SyJPRpysZQ87tAM2AhdZC2aWZc3lyLvQULBlchkH6NevkT05NmgFfR8RyWcMSoTek3xK6h953agNM9WN3UWBE1dEnjDdWQK01qyMCMsmSC/SbEcMQBBuCW0ujkhfWuYH+3w7KuF3xXp051UAB/0kEAxXlthAvVZHt2KpkupWi6uXipY9kw/21p9861B0gniQQ9k9UCrLT6/fm3y9qEipxkVtan5NZtXQGtYBdOGrtl3/Buus23VPPSTUZlDwZfIupWUsv1ovFwoYBcIJnaZpY7wDgSy/DIaOzMnfKbz0MmTM4lUGAMd+WDMUMoTebE4ThQh+37v0T5JMu5agwnRTpyaxvIsclMA0IS9b3hEsq5m9eu7ucoYHvH41mGKyT7ltDstnus7o3PE6unkT1wdfm5KuEt/zNlqrFcIxqkk/uJ841qezBtqHntVHm7z3nAIzWnjbLt2i/7c+cyDt7WeiP718AGc3iHP7AClqfKDTnf+Of8fcxb5Y5n1z9AZXC0sE0zzoquPfITV2PzUmrC5GiKinHnKJcv7i9nIbK8Gjv/3L+rHT3mUmvuMna4v5z5/pD9jaZuXAikpVOqQK+CxS1hlQkqzW27QgP2xAaTR++UgU8GugFoQF/wSWTCcagbU748NtPS0OOvnvLKrdhlqR5DQlBlVKYsFfpg/8q/OxUaEEHpRjssl6LVQR8KoCuIv/2RWe2gCuvKho9CZo2WGq2Qi77rVMsxmMyE9QMYddIOmZtyI2Y7UR+7SulylDMyzF1JCTsTY6GusavVQ6YxPbGMveXSQf0oxVGijiO28rfqM8j0zfuqvQYY3U6cL/7q7AmKXJkMQQ3uBPoY8tPAd6/jWOI2b3FlNU8v+KU+1oJUU5s+OL/kFxE6UZIamVZNJI+Jr5s8MpUNfUQZSfv0DgykgNI8a1sjGfgheODtVWkAzhVqlkKBcnYCAFvQl8Fbwwc8Fgw=
x-microsoft-antispam-prvs: <HE1PR07MB33555B9645E6C6A11A434A4EF4630@HE1PR07MB3355.eurprd07.prod.outlook.com>
x-forefront-prvs: 09525C61DB
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(396003)(136003)(39860400002)(199004)(189003)(6486002)(83716004)(71190400001)(71200400001)(305945005)(446003)(7736002)(85202003)(106356001)(6346003)(4326008)(2906002)(6246003)(82746002)(85182001)(97736004)(5660300002)(8936002)(229853002)(86362001)(256004)(81166006)(81156014)(8676002)(476003)(186003)(2616005)(33656002)(478600001)(11346002)(53936002)(6306002)(6512007)(76176011)(14454004)(36756003)(3846002)(102836004)(6506007)(6116002)(99286004)(93886005)(54906003)(66066001)(316002)(58126008)(25786009)(105586002)(6436002)(966005)(6916009)(486006)(26005)(68736007); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3355; H:HE1PR07MB4172.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
authentication-results: spf=none (sender IP is ) smtp.mailfrom=goran.selander@ericsson.com;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: 1q8WVZaDzbKSxXctuZe/qpoNMerpxgkzdDTvUrq8sDz3fAZXrwrEcJhcwKiJkL2TF0Nzkl2Yndi6idpjlZSVqmQ2mPVZ5HnwFXj5De/POwOWwBaOBYAdSVPRyENxWRa8w66cYwBRh9RkksAMDR9s95duYi3/YmKHGbOpLqF+/cEXLweLKu+Y32UJRulH635hlMh9qIy6qZ6fjXIgIyjSpjpYtHJ2VaFghU+u6Dacq3EXIJfVJ6z8y8dGGh/o75SC+9LJ0l9DYrcFG97Lz+c6lZR/aCJFxlbyUzDHFPAG0b9k26Ta8VR1XBsHHSZWvTVN/MErH6lb4UthLEv+W10Brn2jCaR5kE8c3cZyFEc0zEThp3ya/2O5rouB2E2NvmMFGvk7A6AddcsN2K/TvCHq7YxCdhEO4/gv0Cg8lyewOio=
Content-Type: text/plain; charset="utf-8"
Content-ID: <623FEEB57925F143ABEC0925C3B1CE7B@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 570320b9-1d37-4aee-9ada-08d695c7d8b5
X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Feb 2019 17:38:08.4673 (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-Transport-CrossTenantHeadersStamped: HE1PR07MB3355
X-OriginatorOrg: ericsson.com
X-Brightmail-Tracker: H4sIAAAAAAAAA02Sa0hTYRjHec8585yNBq/L6dMqbAuDDF1a0JS0m9AgooggKaGGnqZzzrWj ln6IiebwRpILcSmKLoMQzArUNLxURmVlRt5oajq7YAVZ6sy1cjsr+vZ7nv//ub28DCmxCmRM miGLNRk0ekWAiKpObMuLKPiiS9r+1r1OtbRYRqqah0cEqtaB6/ReUt1hc9Bqu32ZOEqcFO1O YfVpOaxJGX9GlLrgXKaNFXBhuuiEGfWElCCGAbwT3D/iSpCQkeCHCGYfyUuQaJUXEXje26h/ QVFzt4AP7ASM/pqnvCUUriCh9msUL1QS0Oi6j/hgGsHSVL3PFYATYMo8TXg5CG+DN8UO2ssk PgaThROkl9fiAzBY6qJ4TwLcWvgu4DkaqjwD/mlhcKndEeBlMd4D5fWj/pVeEFBse+xrKsQq cJRN+QoQDoalp80EPywExp11PgaMwd71kuRZCp9mPL5hUqyElRvPKD6/CYp7Pvv9G2GorhTx fBh6LFd8VwIeQ3C59SPNC+Hws7PFXyCDpZlvNG96JYG2mWv+rukw0tBI80+/Adrnd1WgKNt/ +9lWFRJvhZZ7Sj6thu6CfIJnOVhL39E23/2B8KTaSdUjwU0k5ViOy9BGR0eyprRkjss0RBrY rNto9a/03l2JbUe9H/b1IcwgxRqxcU6XJBFocrjcjD4EDKkIEvePrqbEKZrcPNaUedqUrWe5 PrSeoRQhYrckMEmCtZosNp1ljazpr0owQpkZWfNnYxIDk8MSJ1PkUaF773Tb3YXScoUjm776 PL7cou8URThf6w42PLAKtcNjjNs9I/ZoXQ152i2D9vNJ6b+rdBMBXbG1soaY4Kqz7I4al6nf ruzKGkroODJnlOD9TcfJxpRQ5OwsrDk0bgjWjknz5ZY486nNTbqL5yzqSgXFpWqiwkkTp/kD RLspFScDAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/secdispatch/L_twxyVnpwq-Yj3Ws4ZhqXer63w>
Subject: Re: [Secdispatch] [Ace] FW: [secdir] EDHOC and Transports
X-BeenThere: secdispatch@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Security Dispatch <secdispatch.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/secdispatch>, <mailto:secdispatch-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/secdispatch/>
List-Post: <mailto:secdispatch@ietf.org>
List-Help: <mailto:secdispatch-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/secdispatch>, <mailto:secdispatch-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 18 Feb 2019 17:38:16 -0000

Hi Valery,

On 2019-02-18, 08:07, "Valery Smyslov" <smyslov.ietf@gmail.com> wrote:

    Hi,
    
    > Richard Barnes <rlb@ipv.sx> wrote:
    >     > Finally, to be totally honest, I find the EDHOC spec pretty inscrutable. A
    >     > little more prose to explain what's going on would go a long way toward
    >     > helping this discussion be productive.
    > 
    > Sure.
    > Find a WG to adopt it, and we can make the text beautiful.
    > The packets are all there, and the references pretty much explain all the crypto.
    > This stuff is not any newer than IKEv2.
    
    I have only a quick look over the draft, but one thing strikes me - the protocol 
    is claimed not to bound to a particular transport (so I assume that implementing
    it on top of pure UDP is fine), and it has an odd number of messages.
    That's OK from cryptographic point of view, but it's a headache for 
    implementations if the transport protocol is unreliable, since in this case retransmissions 
    must be sent by both parties. We learned this lesson from IKEv1 (Aggressive and Quick modes) 
    and in IKEv2 the number of messages in any exchange is always even, 
    that simplifies implementations and makes protocol more reliable.
    Of course if only reliable transports are considered, then this doesn't matter.
    

Current version of EDHOC is 3-pass to allow traffic data after one round trip, which reduces latency in many applications. 
A 4-pass version has also been discussed: https://mailarchive.ietf.org/arch/msg/ace/ZDHYEhvI0PenU6nGrhGlULIz0oQ

When EDHOC is used as key exchange for OSCORE, and also in other settings, EDHOC will commonly run on top of CoAP. For example, in 6tisch the join protocol relies on CoAP proxy functionality. CoAP is defined for reliable transport (RFC 8323) as well as UDP (RFC 7252), the latter handles retransmissions by client and server. An example of using EDHOC with CoAP is given in appendix D.1:
 https://tools.ietf.org/html/draft-selander-ace-cose-ecdhe-11#appendix-D.1

It sounds like we should add some considerations for the setting you outline. Do you have an example or pointer explaining the specific problem in more detail? 

Thanks,
Göran