Re: [Lake] Review of draft-ietf-lake-edhoc-12

Göran Selander <goran.selander@ericsson.com> Mon, 13 December 2021 14:47 UTC

Return-Path: <goran.selander@ericsson.com>
X-Original-To: lake@ietfa.amsl.com
Delivered-To: lake@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BF7083A00E5 for <lake@ietfa.amsl.com>; Mon, 13 Dec 2021 06:47:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.801
X-Spam-Level:
X-Spam-Status: No, score=-2.801 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.701, 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=unavailable 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 lIyvUEMEKzEf for <lake@ietfa.amsl.com>; Mon, 13 Dec 2021 06:47:11 -0800 (PST)
Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04lp2058.outbound.protection.outlook.com [104.47.13.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 AD7B83A0128 for <lake@ietf.org>; Mon, 13 Dec 2021 06:47:09 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=c0Nm6gk1UtxhApiwTsCrUEs8tUQpWsi4Rz0tJn9cE1bY1ioLpHCC1exmZwWYs1IRhtWWKmSeMgGcrxxh6qjfwG4PSqh2aodk46rCuG04zX8iWqFuTDnOIDos9kjB5gaXqAeHtv3qDcM+2PHGViXixNVxDVHAUAStRqr38O7xSA4gEZL6SYR9XC632xGMq8wmqgkjXutwjsWMLsFmvfLWIuxP76MgJckT9EJ10aHwT2aIOXQPkqePWiljIJuObIAGK2I8tXrlHmg2uQNZzuU6OydcBGE2ojpht2P6h4G6+2LKEq0YBKQDiIhG+BvrQUGouh1pbkosEDLdIIq4gADv3A==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=P6RFyxvZDF0hYghuAYOGppygLF7gmGrrX1mxSGDhX7I=; b=NoppvsiYPwmysV7R0B38isKz5L6DnbJR6mRw/lFuzYiZDW/KP6BJsmQgl5H3un2X8l8f8ZBMBp+z8kBYJUZqG+U7QsbjjydWmYdC/Xm/C583ezIGvqEQu8te1/pZ3BJK9l2MANws+r3hqpvcYSBVF2g55FjdErk054nQTx88yvOFP93RR7xrltp3biQBhXUGYfNP61hJyOz/NikZlimcsdiTi7bWDseyuz6uTeGvH4fAIOb5dPlwY9yiiouR/MhdGeM230XUpFkOwcUwNKSix6bSN20xmBOTrrjThDxpxpEAKN7vLNf9skL/rmP9XfnxqT5ngUxD2J1hrz4X3suGrA==
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=P6RFyxvZDF0hYghuAYOGppygLF7gmGrrX1mxSGDhX7I=; b=qdPHsS/Hyb18ifwcQ9USRlIJZADelpg8E/oQ5GDSEqmJaTTi/E+ECunoKA+NUw9v3lKbhTYcQ33EaqEnBlscIzwvXl2VevqsGPp60kqgb6P0KirpSSh+b1anpN0zzDaPVU5F3EeS/VpzQOJubWpFWuP4+o4dTPnPQdSJ360NFVg=
Received: from AM4PR0701MB2195.eurprd07.prod.outlook.com (2603:10a6:200:45::6) by AM4PR0701MB2100.eurprd07.prod.outlook.com (2603:10a6:200:4b::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4801.13; Mon, 13 Dec 2021 14:47:02 +0000
Received: from AM4PR0701MB2195.eurprd07.prod.outlook.com ([fe80::90a9:5a2d:efb8:744b]) by AM4PR0701MB2195.eurprd07.prod.outlook.com ([fe80::90a9:5a2d:efb8:744b%4]) with mapi id 15.20.4801.013; Mon, 13 Dec 2021 14:47:02 +0000
From: Göran Selander <goran.selander@ericsson.com>
To: Marco Tiloca <marco.tiloca=40ri.se@dmarc.ietf.org>, "lake@ietf.org" <lake@ietf.org>
Thread-Topic: [Lake] Review of draft-ietf-lake-edhoc-12
Thread-Index: AQHX0M+U3ZO5X7wwWEat1MQe9YOC86wfBaBf
Date: Mon, 13 Dec 2021 14:47:02 +0000
Message-ID: <AM4PR0701MB219541145A4E91D7624F5E3AF4699@AM4PR0701MB2195.eurprd07.prod.outlook.com>
References: <5bc7e680-1513-f838-1188-8e2b67630430@ri.se>
In-Reply-To: <5bc7e680-1513-f838-1188-8e2b67630430@ri.se>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
suggested_attachment_session_id: 27230665-54bc-6613-4e9b-a27e0993a708
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: d28ab516-110c-4762-da4f-08d9be476ca1
x-ms-traffictypediagnostic: AM4PR0701MB2100:EE_
x-microsoft-antispam-prvs: <AM4PR0701MB2100B02D96406A098D6DEDC8F4749@AM4PR0701MB2100.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: cTUG6lrQzukmphADTL31hY2Gt8A3hVXxrj0nXGOPTB7jwDQtNQdc5Ju9BfumQAB5ifCsgpYxfibXHvrVEakfJDQ247M486aMsRnYIthGlPD5Fo4DHOf+kVi8aaA3ugXW1E6uUcO2+FB9R6sBjTGc/xpr59Ao/FOt8ePWaagGv2N75xWgwsivtDO8LNzDn1qT7cOQcHQKxLHh9AwMFthsaPJxbRSp8RxB456avVl5k48Ga2BzmSTGb1qJUjnF71PUQhxTf3ZgsTpdlUkz9fU02UnKoCjMJcmzMCpo8jS+7sM7SDZR6aTprzwDmVa2sJK3feZK0KOFk5yZPyEXk7Xttx1Jqrnr9WAco3mBxnyVAe8KeaeS04vieTYD8Csk2WsfoXC6Hj0zwOYvWNmnq48pPTYivzxs3jkeuKqix4zAJnyLjQVjGAlYbfVM08r6YtV4fu+tD/ykSgmPUrtSZ6/sp2kWwWG2pnuNwfvf/YWWx1aJoXJsiIWqjlw9PkMYFXtRUSV/UwTI1Iik//9m8RjDD+Pyd1h2FpuANCtO2+mmXuXjLTaEldRMkZCXJqrK/LS8OIFqHmQhW1NoSJz/k4GVMzpZzXxgzWRblFWJ+zXb9TYpQQmOD3MNQC1QF/GLoWOW8iMwVDHXrt8S1KHlqSeainuX/RKdIuPh+tTuR44q5LiDrFYHDQs9C0AxJ2q0d9aCoPAnhsijTQWcjnttv7+g8g==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM4PR0701MB2195.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(26005)(33656002)(82960400001)(186003)(122000001)(38100700002)(52536014)(2906002)(5660300002)(19627405001)(30864003)(55016003)(8936002)(110136005)(8676002)(66556008)(91956017)(66476007)(64756008)(38070700005)(86362001)(66946007)(66446008)(316002)(6506007)(7696005)(9686003)(71200400001)(53546011)(76116006)(66574015)(83380400001)(508600001)(559001)(579004)(20210929001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: Ta/JZ8mjrWV4xW7tLe86Ep5va/P6a74h4PYD0gQs93k6/8/rkj1yPGr6ADITgUWrNzzB21blnjcui0H9Y9b8j2yjCp/jE2KRyiCMMzUbsq+7Np49J/FfGuuqi1Nog3hRu+m4AFUhdBF5x1mFzAFwigfHG8JHYsznWuYVs7wXDVvc2AXB/mJ8vt3jByiUv4HbfSQovHP4LOn+EbPtiHaBctFcFYCsw/4bjSbyOhBV6s5IV73HGlyk4mvFEMW3VXInwAc3+HXOW85xCu42StGd7wSVysYVCfS2iZ3RGZ6aKCv4tFAI/ddjl4rDUxoHia5a6ebHaRB4nOHaWEkQPneKWyBb9UG4T4YSwCUmyqw2Vq8hmH2vmCUgZ0TOO98Pa7XfLFNJCbpPMaSLgR0m7fnCsdeylDcLj84JOPYUwl0+x+Wp7ctl1bIl5LVfcfilb89NrD+OJn876cNZTLZYZsbmzSiT8FLe+QJ9HQY5Cn58u70FWG6rthM0HsbUiPoJUiGiSv8u+Xy3ZcRFZLG55YiIEUvS5aZNmhcrzZO8yR98Ld5xqqWZznipu2OD7NdYajmGq38RGwjcUD1UcFvSN1O4veDbp6/1kdaEccR4NtRmNWEgHVl4tjstPWrPf9IF/ltsxTx8XQW6NsxB9qabY/CI7L1WyWXomBmDDLhBTnyASX+u2ZVlNdVCnW91GyL+DzXMt2E/h3cCw9zgSN6kG+Fvjkd0+9GF6a4Aw/qOa9Naek++3SCHQp84ds8Fl6cyRtCahjvdJU3NqeB2ttFzjhdH5fFuU7O0HKwHes7HdroTud1z0tsbqyJbnkuQ0pJLEmgC9kjUVGfQZdjVClRZSCIActQNRbBkHT/GunhFs+rdZf42xJRBZqSZTPmf40lhUtstPjTpO25w0EHRwiVsukQmZZPy93z5inEkLL+5qc5zZ1xpkOQ/4qBfOzWF7uMDxsrdncFfB0CGcTNnN3hpgm9Y/jww9JagqfB0GerxGp0V8Li2j8ml1iTFc2gGyGfMoNdPHkiM1D8Nz9bByRywDU/dw70U4Rz2he7bD3co1/YZxEBphCMf3O/NkHJH+dINGIj47MVInz8cbrAdyInL7o7+WI46kYFH32RxM1A4tAFOJWGp1ZmdGlXR1HhpCcy62miJGlIeYcf3sMImAICdUhA0NxIyE2dFmiALQB+2d1krNPXU8fIfuL8uiSRsxOCndJB7QAlwN474Qpbhm+Kwtmc/mi2EIL8pMEDp6ZNrYtl0IFBPQ7cAqZiXlubXLJvfw9Ih0hHim9TS5rPvNTZD9DHRfG6MXdYXlCPKHJEJMJgFcfHBH4+0KawNJIwGaTfEj05BBWNOUBEEV8quxSIcVeK2Ty37eT5He8SfKlo67GvA9kvLbHDiivNnwCizHAjecbsnizbUGQbvNsXDJYcjXo9s4UZrIcPGXV1rp/XcNtFAwyDmOtQ+XmK5RIRLlb4WKKjWxje/hXzAsS+dztsTM0Hbw6ErtgVbi5txBtci7D/ToHGa5Lzs3qBtm0dd2/Jk/k70WtlxypoWFchOkdoVx9wQ6RdYN1NgQnmAWGUtabxmPt06p4nvQm44x3cSm2GTXT5PP9ldoLVHH3YfnkBCWChGsPz9e+7EBVJgh9sfUe1VuHPO/zjcaQRVQSK2L6RE0cBWh6avVJZ2fYT+wj+cTbjkqg==
Content-Type: multipart/alternative; boundary="_000_AM4PR0701MB219541145A4E91D7624F5E3AF4699AM4PR0701MB2195_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM4PR0701MB2195.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: d28ab516-110c-4762-da4f-08d9be476ca1
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2021 14:47:02.3356 (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: vZ1W2BqTM2q3bjHCFjac4zBvjNUXE1/2Qm2+X2pF0AjsgvSlhK8G0h5C/ohkPEhY5HmPLqdz4912oAh3teoBNjyBHTuZf8GDB2jzHMM55+o=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0701MB2100
Archived-At: <https://mailarchive.ietf.org/arch/msg/lake/XVVJIwEddQ5XLZskbxjjnZNoMEE>
Subject: Re: [Lake] Review of draft-ietf-lake-edhoc-12
X-BeenThere: lake@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Lightweight Authenticated Key Exchange <lake.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lake>, <mailto:lake-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lake/>
List-Post: <mailto:lake@ietf.org>
List-Help: <mailto:lake-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lake>, <mailto:lake-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Dec 2021 14:47:16 -0000

Hi Marco,

Thanks for the review. It is recorded as github issue #192 and a proposed update to the draft is in PR #199.

Comments inline. Please let us know if you have further comments on the updates made or if it is OK to merge #199 and close #192.


From: Lake <lake-bounces@ietf.org> on behalf of Marco Tiloca <marco.tiloca=40ri.se@dmarc.ietf.org>
Date: Wednesday, 3 November 2021 at 17:26
To: lake@ietf.org <lake@ietf.org>
Subject: [Lake] Review of draft-ietf-lake-edhoc-12
Hi all,

As promised, please find below my review of EDHOC v -12.

Best,
/Marco

=============

[Section 1.1]

* "This specification focuses on referencing instead of transporting
credentials to reduce message overhead."

    It is possible to transport credentials both by reference and by
value. What suggests the case of transport by reference to be the
"focus"? Perhaps you mean that it is possible and preferable/recommended
to transport credentials by reference?
[GS] According to the requirements document draft-ietf-lake-reqs-04, the initial focus as of June 2020 was on RPK (by reference and value) and certificate by reference. Since then several participants have requested the draft to be more explicit about how to use ID_CRED_x for transport of credentials, which just follows from the use of COSE. I rephrased as:
NEW
This specification emphasizes the possibility to reference rather than to transport credentials in order to reduce message overhead, but the latter is also supported.


* "future algorithms and credentials targeting IoT"

    This probably means "future algorithms and identity credential types
targeting IoT".

[GS] The term "identity credential" is not previously used in the draft so I settled for "credential types".


* s/compromise of the long-term keys/compromise of the long-term
identity keys

[GS] The term "identity key" is not used elsewhere in the document. The term "long-term key" is used throughout the document including the security considerations and is a common term used in protocol analysis which is what this text talks about. So I think it makes sense to not change here. The alternative would be to talk about "private authentication key" which is also used in the document, but more in the context of identities.



[Section 1.3]

* s/the number of bytes in EDHOC + CoAP can be/the EDHOC message size in
bytes when transferred in CoAP can be

[GS] Changed to
NEW
the EDHOC message size when transferred in CoAP can be


[Section 1.5]

* "and CDDL [RFC8610]. The Concise Data Definition Language (CDDL) is
used to express CBOR data structures [RFC8949]"

    can be rephrased as:

    "and the Concise Data Definition Language (CDDL) [RFC8610], which is
used to express CBOR data structures [RFC8949]"

[GS] Harmonizing with previous references, and removed the reference to CBOR which is already in this paragraph, I changed to:
NEW
"and the Concise Data Definition Language (CDDL, [RFC8610]), which is used to express CBOR data structures."



[Section 2]

* "Verification of a common preferred cipher suite"

    Shouldn't this say: "Verification of a commonly supported cipher
suite which is most preferred by the Initiator" ?

[GS] Changed to
NEW
"Verification of the selected cipher suite"



[Section 3.2]

* In Figure 4, the second and third column can rather have labels
"Initiator Authentication Key" and "Responder Authentication Key".

[GS] Done. Also replaced first column label "Value" with "Method Type Value".

[Section 3.3]

* "or in a subsequent application protocol"

    can be expanded as:

    "or of an application/security context in a subsequent application
protocol"

[GS] Changed to
NEW
or in subsequent applications of EDHOC

[Section 3.4.1]

* "EDHOC transports that do not inherently provide correlation across
all messages of an exchange"

    can be rephrased as:

    "Transports that do not inherently provide correlation across all
EDHOC messages of an exchange"

[GS] Done



[Section 3.5.1]

* "The EDHOC implementation or the application must enforce information
about ..."

    can be rephrased as:

    "The EDHOC implementation or the application must take a decision on
allowing or not a connection based on information about ..."

[GS] Changed to
NEW
The EDHOC implementation or the application must decide on allowing a connection or not depending on the intended endpoint


* s/if it is allowed to communicate with/if it is allowed to communicate
with those

[GS] Rephrased to harmonize with PKI text. Note that further changes are expected to 3.5 following Stephen's review comment about restructuring.

[Section 4.3]

* The context can for example be the empty (zero-length) sequence or a
single CBOR byte string.

    Isn't the context supposed to be just a single CBOR byte string? See
how it is defined in Section 4.2 when introducing Expand.

[GS]  Changed to:

NEW
The context can for example be the empty CBOR byte string.

* s/where H() is the hash function/where H() is the EDHOC hash algorithm

[GS] Done


[Section 5.1]

* s/a second time for EDHOC processing/a second time for EDHOC
processing within the same ongoing session

[GS] Fixed.

[Section 5.2.3]

* "If an error message is sent, the session MUST be discontinued."

    Is this sentence actually required? Regardless sending an error
message or not, the session is discontinued if any processing step
fails, which is the reason for possibly sending an error message. Or are
there situations where an error message is sent even if no processing
step fails?

[GS] This sentence does not talk about failed processing, it is a general implication stating the necessity of discontinuing the session if an error message is sent (for whatever reason), in contrast to the converse statement in the preceding sentence which states that there is no necessity of sending an error message if the session is discontinued. I opened issue #208 for potential further discussion on the topic.

[Section 5.3.1]

* "G_Y, the ephemeral public key of the Responder, and ..."

    Just to avoid any risk to interpret this as the concatenation of
three elements, I suggest to rephrase as:

    "G_Y (i.e., the ephemeral public key of the Responder) and ..."
[GS] Done.


[Section 5.3.2]

* s/H() is the hash function in/H() is the EDHOC hash algorithm in
[GS] Done


* "is the 'signature' field of a COSE_Sign1 object as defined in Section
4.4 of [I-D.ietf-cose-rfc8152bis-struct] using the signature algorithm ..."

    should be rephrased as:

    "is the 'signature' field of a COSE_Sign1 object as defined in
Section 4.2 of [I-D.ietf-cose-rfc8152bis-struct], computed as defined in
Section 4.4 of [I-D.ietf-cose-rfc8152bis-struct] by using the signature
algorithm ..."

[GS] I think it suffices to refer to how it is computed, which in turn references how it is defined:
NEW
is the 'signature' field of a COSE_Sign1 object, computed as specified in Section 4.4 of {{I-D.ietf-cose-rfc8152bis-struct}} using the signature algorithm

[Section 5.3.3]

* "If an error message is sent, the session MUST be discontinued."

    Is this sentence actually required? Regardless sending an error
message or not, the session is discontinued if any processing step
fails, which is the reason for possibly sending an error message. Or are
there situations where an error message is sent even if no processing
step fails?

[GS] Same as above



[Section 5.4.2]

* s/H() is the hash function in/H() is the EDHOC hash algorithm in

[GS] Done


* "is the 'signature' field of a COSE_Sign1 object as defined in Section
4.4 of [I-D.ietf-cose-rfc8152bis-struct] using the signature algorithm ..."

    should be rephrased as:

    "is the 'signature' field of a COSE_Sign1 object as defined in
Section 4.4 of [I-D.ietf-cose-rfc8152bis-struct], computed as defined in
Section 4.4 of [I-D.ietf-cose-rfc8152bis-struct] by using the signature
algorithm ..."

[GS] Same as above


* s/as defined in Section 5.3 of [I-D.ietf-cose-rfc8152bis-struct]/as
defined in Sections 5.2 and 5.3 of [I-D.ietf-cose-rfc8152bis-struct]

[GS] Done

[Section 5.4.3]

* s/or the prepended C_I/or the prepended C_R

[GS] Done


* s/as defined in Section 5.3 of [I-D.ietf-cose-rfc8152bis-struct]/as
defined in Sections 5.2 and 5.3 of [I-D.ietf-cose-rfc8152bis-struct]

[GS] Done


* "If an error message is sent, the session MUST be discontinued."

    Is this sentence actually required? Regardless sending an error
message or not, the session is discontinued if any processing step
fails, which is the reason for possibly sending an error message. Or are
there situations where an error message is sent even if no processing
step fails?

[GS] Same as above

* s/no other party than the Responder/no other party than the Initiator
[GS] Done

[Section 5.5]

* "In deployments where no protected application message is sent from
the Responder to the Initiator, the Responder MUST send message_4."

    Consider to rephrase as:

    "In deployments where no protected application message is sent from
the Responder to the Initiator, message_4 MUST be supported and the
Responder MUST send message_4"

[GS] Changed to ", message_4 MUST be supported and MUST be used" to apply to I as well as R.

"Responder MUST send message_4" is still strange, would about I? Maybe just "message_4 MUST be used"?




[Section 5.5.2]

* s/as defined in Section 5.3 of [I-D.ietf-cose-rfc8152bis-struct]/as
defined in Sections 5.2 and 5.3 of [I-D.ietf-cose-rfc8152bis-struct]

[GS] Done



[Section 5.5.3]

* s/as defined in Section 5.3 of [I-D.ietf-cose-rfc8152bis-struct]/as
defined in Sections 5.2 and 5.3 of [I-D.ietf-cose-rfc8152bis-struct]

[GS] Done


* "If an error message is sent, the session MUST be discontinued."

    Is this sentence actually required? Regardless sending an error
message or not, the session is discontinued if any processing step
fails, which is the reason for possibly sending an error message. Or are
there situations where an error message is sent even if no processing
step fails?

[GS] See above



[Section 6]

* s/error SHALL be/An error message SHALL be

[GS] This change is not done, note that "error" refers to the name of the CBOR sequence defined below.


[Section 6.3]

* "Error code 2 MUST only be used in a response to message_1 ..."

    can be rephrased as:

    "Error code 2 MUST only be used when replying to message_1" ,
avoiding to use words like "request" and "response".

[GS] Done

[Section 6.3.2]

* s/the Responder shall only accept message_1 if/the Responder SHALL
accept message_1 only if

[GS] Done

* The last two paragraph are not further comments on the examples, but
are rather related to the cipher suite negotiation. I think they better
fit as last paragraphs of Section 6.3.1.

[GS] Done


[Section 8]

* "Compromise of PRK_4x3m leads to compromise of all exported keying
material derived after the last invocation of the EDHOC-KeyUpdate function."

    I suggest to expand as follows:

    "Compromise of PRK_4x3m leads to compromise of all exported keying
material derived from that key through the EDHOC-Exporter function. If
the EDHOC-KeyUpdate function has been used to renew PRK_4x3m, the
compromise is limited to the exported keying material derived from the
PRK_4x3m installed after the last invocation of the EDHOC-KeyUpdate
function."
[GS] Changed to
NEW
Compromise of PRK_4x3m leads to compromise of all keying material derived with the EDHOC-Exporter since the last invocation (if any) of the EDHOC-KeyUpdate function.


[Section 8.6]

* The way the first paragraph starts is probably a remnant of when CoAP
was still part of the document body rather than in Appendix A. Also, as
later discussed in Appendix A.3, the Echo exchange is started by a CoAP
server, regardless if it acts exactly as Responder. I suggest to
rephrase the paragraph as follows.

    "EDHOC itself does not provide countermeasures against
Denial-of-Service attacks. In particular, by sending a number of new or
replayed message_1 an attacker may cause the Responder to allocate
state, perform cryptographic operations, and amplify messages. To
mitigate such attacks, an implementation SHOULD rely on lower layer
mechanisms. For instance, when EDHOC is transferred  as an exchange of
CoAP messages, the CoAP server can use the Echo option defined in
[I-D.ietf-core-echo-request-tag], which forces the CoAP client to
demonstrate its reachability at its apparent network address."

[GS] Done



[Section 8.7]

* "... but intended to simplify ..."

    Since "security context" is mentioned in the following sentences, it
is better to explicitly mention that they are referring to the
application protocol and not to EDHOC anymore.

[GS] I didn't make this proposed change because "security context" is not limited to OSCORE, so this sentence applies also to EDHOC. If you still find this misleading, please explain in what way it is so.

[Appendix A.3]

* "EDHOC message_2 or the EDHOC error message is sent from the server to
the client in the payload of a 2.04 (Changed) response. EDHOC message_3
or the EDHOC error message is sent from the client to the server's
resource in the payload of a POST request. If needed, an EDHOC error
message is sent from the server to the client in the payload of a 2.04
(Changed) response."

    This text should also be a remnant of old versions. When using EDHOC
for OSCORE, EDHOC error messages as CoAP responses are sent as error
responses, see the first paragraph in Appendix A.3.1. The text above can
rather, more generically, be:

    "The server sends to the client EDHOC message_2 in the payload of a
2.04 (Changed) response, or an EDHOC error message in the payload of a
response. If needed, the client sends to the server an EDHOC error
message in the payload of a POST request. Otherwise, the client sends to
the server EDHOC message_3 in the payload of a POST request. If needed,
the server sends to the client an EDHOC error message in the payload of
a response."

[GS] Good spotted, I modifed the original text in a different way:
NEW
EDHOC message_2 or the EDHOC error message is sent from the server to the client in the payload of the response, in the former case with response code 2.04 (Changed), in the latter with response code as specified in Section 8.3.1  EDHOC message_3 or the EDHOC error message is sent from the client to the server's resource in the payload of a POST request. If EDHOC message_4 is used, or in case of an error message, it is sent from the server to the client in the payload of the response, with response codes analogously to message_2.


[Appendix A.3.1]

* The last sentence can be extended, to mention what additionally is
defined in draft-ietf-core-oscore-edhoc, besides the EDHOC+OSCORE
request. This includes especially: a deterministic and efficient
conversion from OSCORE Sender/Recipient IDs to EDHOC connection
identifiers; web-linking and target attributes for discovering of EDHOC
resources.

[GS] Done


[Nits]

* Three instances of "key material" should be "keying material" for
consistency.
[GS] Done


* Section 3.3.1, s/and sends in message_2/and sends it in message_2
[GS] Done


* Section 3.3.2, s/and a EDHOC connection/and an EDHOC connection
[GS] Done


* Section 3.6
--- s/pre-defined int label/pre-defined integer label
--- s/Implementation can either use/Implementations can either use
[GS] Done


* Section 3.7, s/requires an 'y' parameter/requires a 'y' parameter
[GS] Done


* Section 3.8, s/protected out of scope of EDHOC/whose protection is out
of the scope of EDHOC
[GS] Done

* Section 3.9
--- s/verifying cipher suite/verifying a cipher suite
--- s/know identity of Responder/know identity of the Responder
--- s/know identity of Initiator/know identity of the Initiator
[GS] Done

* Section 4.3, s/same key kan be/same key can be
[GS] Done


* Section 5.1, s/then process according to Section 6, else process
as/then process it according to Section 6, else process it as
[GS] Done


* Section 5.3.2, s/facilitate retrieval of/facilitate the retrieval of
[GS] Done


* Section 5.4.2
--- s/facilitate retrieval of/facilitate the retrieval of
--- s/intialization vector/initialization vector
--- s/or derived application keys/or derive application keys
[GS] Done


* Section 5.4.2, s/intialization vector/initialization vector
[GS] Done


* Section 6.3.2, s/then Responder MUST discontinue/then the Responder
MUST discontinue
[GS] Done


* Section 8, s/protection is provided/protection are provided
[GS] Done

* Section 8.2
--- s/and instead rely/and instead relies
--- s/the Responders identity/the Responder's identity
--- s/Requirement for how/Requirements for how
[GS] Done


* Section 8.6
--- s/forces the initiator/forces the Initiator
[GS] Done


* Section 9.6, s/an CWT Claims Set/a CWT Claims Set
[GS] Done


* Section 9.14, s/is defined as/are defined as
[GS] Done


* Appendix A.3, s/using resource directory/using a resource directory
[GS] Done

* Appendix B, s/compatibily/compatibility
[GS] Done


* Appendix C.1, s/dignostic/diagnostic
[GS] Done

* Appendix E
--- s/which does not handle/which do not handle
--- s/with respect the current/with respect to the current
[GS] Done

* Appendix F, s/for message 1/for message_1
[GS] Done

Thanks!
Göran