<?xml version="1.0" encoding="utf-8"?>
  <?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
  <!-- generated by https://github.com/cabo/kramdown-rfc2629 version 1.3.11 -->

<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY I-D.ietf-cose-x509 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-cose-x509.xml">
<!ENTITY I-D.ietf-core-echo-request-tag SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-core-echo-request-tag.xml">
<!ENTITY I-D.ietf-lake-reqs SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-lake-reqs.xml">
<!ENTITY RFC2119 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC5116 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.5116.xml">
<!ENTITY RFC5869 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.5869.xml">
<!ENTITY RFC6090 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6090.xml">
<!ENTITY RFC6979 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.6979.xml">
<!ENTITY RFC7252 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7252.xml">
<!ENTITY RFC7748 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7748.xml">
<!ENTITY RFC8949 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8949.xml">
<!ENTITY RFC7959 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7959.xml">
<!ENTITY RFC8152 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8152.xml">
<!ENTITY RFC8174 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8174.xml">
<!ENTITY RFC8376 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8376.xml">
<!ENTITY RFC8610 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8610.xml">
<!ENTITY RFC8613 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8613.xml">
<!ENTITY RFC8724 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8724.xml">
<!ENTITY RFC8742 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8742.xml">
<!ENTITY I-D.ietf-6tisch-dtsecurity-zerotouch-join SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-6tisch-dtsecurity-zerotouch-join.xml">
<!ENTITY I-D.ietf-ace-oauth-authz SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-ace-oauth-authz.xml">
<!ENTITY I-D.ietf-core-resource-directory SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-core-resource-directory.xml">
<!ENTITY I-D.ietf-lwig-security-protocol-comparison SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-lwig-security-protocol-comparison.xml">
<!ENTITY I-D.ietf-tls-dtls13 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.ietf-tls-dtls13.xml">
<!ENTITY I-D.selander-ace-ake-authz SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.selander-ace-ake-authz.xml">
<!ENTITY I-D.palombini-core-oscore-edhoc SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.palombini-core-oscore-edhoc.xml">
<!ENTITY I-D.mattsson-cose-cbor-cert-compress SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml3/reference.I-D.mattsson-cose-cbor-cert-compress.xml">
<!ENTITY RFC7228 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7228.xml">
<!ENTITY RFC7258 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7258.xml">
<!ENTITY RFC7296 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.7296.xml">
<!ENTITY RFC8446 SYSTEM "https://xml2rfc.tools.ietf.org/public/rfc/bibxml/reference.RFC.8446.xml">
]>

<?rfc toc="yes"?>
<?rfc sortrefs="yes"?>
<?rfc symrefs="yes"?>
<?rfc tocdepth="2"?>

<rfc ipr="trust200902" docName="draft-ietf-lake-edhoc-04" category="std">

  <front>
    <title>Ephemeral Diffie-Hellman Over COSE (EDHOC)</title>

    <author initials="G." surname="Selander" fullname="Göran Selander">
      <organization>Ericsson AB</organization>
      <address>
        <email>goran.selander@ericsson.com</email>
      </address>
    </author>
    <author initials="J." surname="Mattsson" fullname="John Preuß Mattsson">
      <organization>Ericsson AB</organization>
      <address>
        <email>john.mattsson@ericsson.com</email>
      </address>
    </author>
    <author initials="F." surname="Palombini" fullname="Francesca Palombini">
      <organization>Ericsson AB</organization>
      <address>
        <email>francesca.palombini@ericsson.com</email>
      </address>
    </author>

    <date year="2021" month="January" day="27"/>

    
    
    

    <abstract>


<t>This document specifies Ephemeral Diffie-Hellman Over COSE (EDHOC), a very compact and lightweight authenticated Diffie-Hellman key exchange with ephemeral keys. EDHOC provides mutual authentication, perfect forward secrecy, and identity protection. EDHOC is intended for usage in constrained scenarios and a main use case is to establish an OSCORE security context. By reusing COSE for cryptography, CBOR for encoding, and CoAP for transport, the additional code size can be kept very low.</t>



    </abstract>


  </front>

  <middle>


<section anchor="introduction" title="Introduction">

<section anchor="motivation" title="Motivation">

<t>Many Internet of Things (IoT) deployments require technologies which are highly performant in constrained environments <xref target="RFC7228"/>. IoT devices may be constrained in various ways, including memory, storage, processing capacity and power. The connectivity for these settings may also exhibit constraints such as unreliable and lossy channels, highly restricted bandwidth and dynamic topology. The IETF has acknowledged this problem by standardizing a range of lightweight protocols and enablers designed for the IoT, including the Constrained Application Protocol (CoAP, <xref target="RFC7252"/>), Concise Binary Object Representation (CBOR, <xref target="RFC8949"/>), and Static Context Header Compression (SCHC, <xref target="RFC8724"/>).</t>

<t>The need for special protocols targeting constrained IoT deployments extends also to the security domain <xref target="I-D.ietf-lake-reqs"/>. Important characteristics in constrained environments are the number of round trips and protocol message sizes, which if kept low can contribute to good performance by enabling transport over a small number of radio frames, reducing latency due to fragmentation or duty cycles, etc. Another important criteria is code size, which may be prohibitive for certain deployments due to device capabilities or network load during firmware update. Some IoT deployments also need to support a variety of underlying transport technologies, potentially even with a single connection.</t>

<t>Some security solutions for such settings exist already. CBOR Object Signing and Encryption (COSE) <xref target="RFC8152"/>) specifies basic application-layer security services efficiently encoded in CBOR. Another example is Object Security for Constrained RESTful Environments (OSCORE) <xref target="RFC8613"/> which is a lightweight communication security extension to CoAP using CBOR and COSE. In order to establish good quality cryptographic keys for security protocols such as COSE and OSCORE, the two endpoints may run an authenticated key exchange protocol, from which shared secret key material can be derived. Such a key exchange protocol should also be lightweight; to prevent bad performance in case of repeated use, e.g., due to device rebooting or frequent rekeying for security reasons; or to avoid latencies in a network formation setting with many devices authenticating at the same time.</t>

<t>This document specifies Ephemeral Diffie-Hellman Over COSE (EDHOC), a lightweight authenticated key exchange protocol providing good security properties including perfect forward secrecy, identity protection, and cipher suite negotation. Authentication can be based on raw public keys (RPK) or public key certificates, and requires the application to provide input on how to verify that endpoints are trusted. This specificaton focuses on referencing instead of transporting credentials to reduce message overhead.</t>

<t>EDHOC makes use of known protocol constructions, such as SIGMA <xref target="SIGMA"/> and Extract-and-Expand <xref target="RFC5869"/>. COSE also provides crypto agility and enables the use of future algorithms targeting IoT.</t>

</section>
<section anchor="use-of-edhoc" title="Use of EDHOC">

<t>EDHOC is designed for highly constrained settings making it especially suitable for low-power wide area networks <xref target="RFC8376"/> such as Cellular IoT, 6TiSCH, and LoRaWAN. A main objective for EDHOC is to be a lightweight AKE for OSCORE, i.e. to provide authentication and session key establishment for IoT use cases such as those built on CoAP <xref target="RFC7252"/>. CoAP is a specialized web transfer protocol for use with constrained nodes and networks, providing a request/response interaction model between application endpoints. As such, EDHOC is targeting a large variety of use cases involving ‘things’ with embedded microcontrollers, sensors and actuators.</t>

<t>A typical setting is when one of the endpoints is constrained or in a constrained network, and the other endpoint is a node on the Internet (such as a mobile phone) or at the edge of the constrained network (such as a gateway). Thing-to-thing interactions over constrained networks are also relevant since both endpoints would then benefit from the lightweight properties of the protocol. EDHOC could e.g. be run when a device/device(s) connect(s) for the first time, or to establish fresh keys which are not revealed by a later compromise of the long-term keys. Further security properties are described in <xref target="sec-prop"/>.</t>

<t>EDHOC builds on the same lightweight primitives as OSCORE: CBOR for encoding, COSE for cryptography, and CoAP for transport. By reusing existing libraries the additional code size can be kept very low. EDHOC is not bound to a particular transport, but it is recommended to transfer EDHOC messages in CoAP payloads.</t>

</section>
<section anchor="message-size-examples" title="Message Size Examples">

<t>Compared to the DTLS 1.3 handshake <xref target="I-D.ietf-tls-dtls13"/> with ECDH and connection ID, the number of bytes in EDHOC + CoAP can be less than 1/6 when RPK authentication is used, see <xref target="I-D.ietf-lwig-security-protocol-comparison"/>. <xref target="fig-sizes"/> shows two examples of message sizes for EDHOC with different kinds of authentication keys and different COSE header parameters for identification: static Diffie-Hellman keys identified by ‘kid’ <xref target="RFC8152"/>, and X.509 signature certificates identified by a hash value using ‘x5t’ <xref target="I-D.ietf-cose-x509"/>. Further reductions of message sizes are possible, for example by eliding redundant length indications.</t>

<figure title="Example of message sizes in bytes." anchor="fig-sizes"><artwork align="center"><![CDATA[
=================================
                    kid       x5t                     
---------------------------------
message_1            37        37                     
message_2            46       117       
message_3            20        91        
----------------------------------
Total               103       245      
=================================
]]></artwork></figure>

</section>
<section anchor="document-structure" title="Document Structure">

<t>The remainder of the document is organized as follows: <xref target="background"/> outlines EDHOC authenticated with digital signatures, <xref target="overview"/> describes the protocol elements of EDHOC, including message flow, formatting of the ephemeral public keys, and key derivation, <xref target="asym"/> specifies EDHOC with authentication based on signature keys or static Diffie-Hellman keys, <xref target="error"/> specifies the EDHOC error message, and <xref target="transfer"/> describes how EDHOC can be transferred in CoAP and used to establish an OSCORE security context.</t>

</section>
<section anchor="terminology-and-requirements-language" title="Terminology and Requirements Language">

<t>The key words “MUST”, “MUST NOT”, “REQUIRED”, “SHALL”, “SHALL NOT”, “SHOULD”, “SHOULD NOT”, “RECOMMENDED”, “NOT RECOMMENDED”, “MAY”, and “OPTIONAL” in this document are to be interpreted as described in BCP 14 <xref target="RFC2119"/> <xref target="RFC8174"/> when, and only when, they appear in all capitals, as shown here.</t>

<t>Readers are expected to be familiar with the terms and concepts described in CBOR <xref target="RFC8949"/>, CBOR Sequences <xref target="RFC8742"/>, COSE <xref target="RFC8152"/>, and CDDL <xref target="RFC8610"/>. The Concise Data Definition Language (CDDL) is used to express CBOR data structures <xref target="RFC8949"/>. Examples of CBOR and CDDL are provided in <xref target="CBOR"/>.</t>

<t>The single output from authenticated encryption (including the authentication tag) is called ‘ciphertext’, following <xref target="RFC5116"/>.</t>

</section>
</section>
<section anchor="background" title="EDHOC Outline">

<t>EDHOC specifies different authentication methods of the Diffie-Hellman key exchange: digital signatures and static Diffie-Hellman keys. This section outlines the digital signature based method. Further details of protocol elements and other authentication methods are provided in the remainder of this document.</t>

<t>SIGMA (SIGn-and-MAc) is a family of theoretical protocols with a large number of variants <xref target="SIGMA"/>. Like IKEv2 <xref target="RFC7296"/> and (D)TLS 1.3 <xref target="RFC8446"/>, EDHOC authenticated with digital signatures is built on a variant of the SIGMA protocol which provide identity protection of the initiator (SIGMA-I), and like IKEv2 <xref target="RFC7296"/>, EDHOC implements the SIGMA-I variant as MAC-then-Sign. The SIGMA-I protocol using an authenticated encryption algorithm is shown in <xref target="fig-sigma"/>.</t>

<figure title="Authenticated encryption variant of the SIGMA-I protocol." anchor="fig-sigma"><artwork align="center"><![CDATA[
Initiator                                               Responder
   |                          G_X                            |
   +-------------------------------------------------------->|
   |                                                         |
   |  G_Y, AEAD( K_2; ID_CRED_R, Sig(R; CRED_R, G_X, G_Y) )  |
   |<--------------------------------------------------------+
   |                                                         |
   |     AEAD( K_3; ID_CRED_I, Sig(I; CRED_I, G_Y, G_X) )    |
   +-------------------------------------------------------->|
   |                                                         |
]]></artwork></figure>

<t>The parties exchanging messages are called Initiator (I) and Responder (R). They exchange ephemeral public keys, compute the shared secret, and derive symmetric application keys.</t>

<t><list style="symbols">
  <t>G_X and G_Y are the ECDH ephemeral public keys of I and R, respectively.</t>
  <t>CRED_I and CRED_R are the credentials containing the public authentication keys of I and R, respectively.</t>
  <t>ID_CRED_I and ID_CRED_R are data enabling the recipient party to retrieve the credential of I and R, respectively.</t>
  <t>Sig(I; . ) and S(R; . ) denote signatures made with the private authentication key of I and R, respectively.</t>
  <t>AEAD(K; . ) denotes authenticated encryption with additional data using a key K derived from the shared secret.</t>
</list></t>

<t>In order to create a “full-fledged” protocol some additional protocol elements are needed. EDHOC adds:</t>

<t><list style="symbols">
  <t>Explicit connection identifiers C_I, C_R chosen by I and R, respectively, enabling the recipient to find the protocol state.</t>
  <t>Transcript hashes (hashes of message data) TH_2, TH_3, TH_4 used for key derivation and as additional authenticated data.</t>
  <t>Computationally independent keys derived from the ECDH shared secret and used for authenticated encryption of different messages.</t>
  <t>Verification of a common preferred cipher suite:  <list style="symbols">
      <t>The Initiator lists supported cipher suites in order of preference</t>
      <t>The Responder verifies that the selected cipher suite is the first supported cipher suite</t>
    </list></t>
  <t>Method types and error handling.</t>
  <t>Transport of opaque auxiliary data.</t>
</list></t>

<t>EDHOC is designed to encrypt and integrity protect as much information as possible, and all symmetric keys are derived using as much previous information as possible. EDHOC is furthermore designed to be as compact and lightweight as possible, in terms of message sizes, processing, and the ability to reuse already existing CBOR, COSE, and CoAP libraries.</t>

<t>To simplify for implementors, the use of CBOR and COSE in EDHOC is summarized in <xref target="CBORandCOSE"/> and test vectors including CBOR diagnostic notation are given in <xref target="vectors"/>.</t>

</section>
<section anchor="overview" title="Protocol Elements">

<section anchor="general" title="General">

<t>EDHOC consists of three messages (message_1, message_2, message_3) between Initiator and Responder, plus an EDHOC error message. EDHOC messages are CBOR Sequences <xref target="RFC8742"/>, see <xref target="fig-flow"/>. The protocol elements in the figure are introduced in the following sections. Message formatting and processing is specified in <xref target="asym"/> and <xref target="error"/>. An implementation may support only Initiator or only Responder.</t>

<t>Application data is protected using the agreed application algorithms (AEAD, hash) in the selected cipher suite (see <xref target="cs"/>) and the application can make use of the established connection identifiers C_I and C_R (see <xref target="corr"/>). EDHOC may be used with the media type application/edhoc defined in <xref target="iana"/>.</t>

<t>The Initiator can derive symmetric application keys after creating EDHOC message_3, see <xref target="exporter"/>. Application protected data can therefore be sent in parallel with EDHOC message_3, optionally in the same CoAP message <xref target="I-D.palombini-core-oscore-edhoc"/>.</t>

<figure title="EDHOC Message Flow" anchor="fig-flow"><artwork align="center"><![CDATA[
Initiator                                                   Responder
|               METHOD_CORR, SUITES_I, G_X, C_I, AD_1               |
+------------------------------------------------------------------>|
|                             message_1                             |
|                                                                   |
|      C_I, G_Y, C_R, Enc(ID_CRED_R, Signature_or_MAC_2, AD_2)      |
|<------------------------------------------------------------------+
|                             message_2                             |
|                                                                   |
|       C_R, AEAD(K_3ae; ID_CRED_I, Signature_or_MAC_3, AD_3)       |
+------------------------------------------------------------------>|
|                             message_3                             |
]]></artwork></figure>

</section>
<section anchor="method-and-correlation" title="Method and Correlation">

<t>The first data item of message_1, METHOD_CORR (see <xref target="asym-msg1-form"/>), is an integer specifying the method and the correlation properties of the transport, which are described in this section.</t>

<section anchor="method" title="Method">

<t>EDHOC supports authentication with signature or static Diffie-Hellman keys, as defined in the four authentication methods: 0, 1, 2, and 3, see <xref target="fig-method-types"/>. (Method 0 corresponds to the case outlined in <xref target="background"/> where both Initiator and Responder authenticate with signature keys.)</t>

<t>An implementation may support only a single method. The Initiator and the Responder need to have agreed on a single method to be used for EDHOC, see <xref target="applicability"/>.</t>

<figure title="Method Types" anchor="fig-method-types"><artwork align="center"><![CDATA[
+-------+-------------------+-------------------+-------------------+
| Value | Initiator         | Responder         | Reference         |
+-------+-------------------+-------------------+-------------------+
|     0 | Signature Key     | Signature Key     | [[this document]] |
|     1 | Signature Key     | Static DH Key     | [[this document]] |
|     2 | Static DH Key     | Signature Key     | [[this document]] |
|     3 | Static DH Key     | Static DH Key     | [[this document]] |
+-------+-------------------+-------------------+-------------------+
]]></artwork></figure>

</section>
<section anchor="ci" title="Connection Identifiers">

<t>EDHOC includes connection identifiers (C_I, C_R) to correlate messages. The connection identifiers C_I and C_R do not have any cryptographic purpose in EDHOC. They contain information facilitating retrieval of the protocol state and may therefore be very short. One byte connection identifiers are realistic in many scenarios as most constrained devices only have a few connections. In cases where a node only has one connection, the identifiers may even be the empty byte string.</t>

<t>The connection identifier MAY be used with an application protocol (e.g. OSCORE) for which EDHOC establishes keys, in which case the connection identifiers SHALL adhere to the requirements for that protocol. Each party choses a connection identifier it desires the other party to use in outgoing messages. (For OSCORE this results in the endpoint selecting its Recipient ID, see Section 3.1 of <xref target="RFC8613"/>).</t>

</section>
<section anchor="transport" title="Transport">

<t>Cryptographically, EDHOC does not put requirements on the lower layers. EDHOC is not bound to a particular transport layer, and can be used in environments without IP. The transport is responsible to handle message loss, reordering, message duplication, fragmentation, and denial of service protection, where necessary.</t>

<t>The Initiator and the Responder need to have agreed on a transport to be used for EDHOC, see <xref target="applicability"/>. It is recommended to transport EDHOC in CoAP payloads, see <xref target="transfer"/>.</t>

</section>
<section anchor="corr" title="Message Correlation">

<t>If the transport provides a mechanism for correlating messages, some of the connection identifiers may be omitted. There are four cases:</t>

<t><list style="symbols">
  <t>corr = 0, the transport does not provide a correlation mechanism.</t>
  <t>corr = 1, the transport provides a correlation mechanism that enables the Responder to correlate message_2 and message_1.</t>
  <t>corr = 2, the transport provides a correlation mechanism that enables the Initiator to correlate message_3 and message_2.</t>
  <t>corr = 3, the transport provides a correlation mechanism that enables both parties to correlate all three messages.</t>
</list></t>

<t>For example, if the key exchange is transported over CoAP, the CoAP Token can be used to correlate messages, see <xref target="coap"/>.</t>

</section>
</section>
<section anchor="auth-key-id" title="Authentication Parameters">

<section anchor="authentication-keys" title="Authentication Keys">

<t>The authentication key MUST be a signature key or static Diffie-Hellman key. The Initiator and the Responder
 MAY use different types of authentication keys, e.g. one uses a signature key and the other uses a static Diffie-Hellman key. When using a signature key, the authentication is provided by a signature. When using a static Diffie-Hellman key the authentication is provided by a Message Authentication Code (MAC) computed from an ephemeral-static ECDH shared secret which enables significant reductions in message sizes. The MAC is implemented with an AEAD algorithm. When using a static Diffie-Hellman keys the Initiator’s and Responder’s private authentication keys are called I and R, respectively, and the public authentication keys are called G_I and G_R, respectively.</t>

<t><list style="symbols">
  <t>Only the Responder SHALL have access to the Responder’s private authentication key.</t>
  <t>Only the Initiator SHALL have access to the Initiator’s private authentication key.</t>
</list></t>

</section>
<section anchor="identities" title="Identities">

<t>EDHOC assumes the existence of mechanisms (certification authority, trusted third party, manual distribution, etc.) for specifying and distributing authentication keys and identities. Policies are set based on the identity of the other party, and parties typically only allow connections from a specific identity or a small restricted set of identities. For example, in the case of a device connecting to a network, the network may only allow connections from devices which authenticate with certificates having a particular range of serial numbers in the subject field and signed by a particular CA. On the other side, the device may only be allowed to connect to a network which authenticate with a particular public key (information of which may be provisioned, e.g., out of band or in the Auxiliary Data, see <xref target="AD"/>).</t>

<t>The EDHOC implementation must be able to receive and enforce information from the application about what is the intended peer endpoint, and in particular whether it is a specific identity or a set of identities.</t>

<t><list style="symbols">
  <t>When a Public Key Infrastructure (PKI) is used, the trust anchor is a Certification Authority (CA) certificate, and the identity is the subject whose unique name (e.g. a domain name, NAI, or EUI) is included in the endpoint’s certificate. Before running EDHOC each party needs at least one CA public key certificate, or just the public key, and a specific identity or set of identities it is allowed to communicate with. Only validated public-key certificates with an allowed subject name, as specified by the application, are to be accepted. EDHOC provides proof that the other party possesses the private authentication key corresponding to the public authentication key in its certificate. The certification path provides proof that the subject of the certificate owns the public key in the certificate.</t>
  <t>When public keys are used but not with a PKI (RPK, self-signed certificate), the trust anchor is the public authentication key of the other party. In this case, the identity is typically directly associated to the public authentication key of the other party. For example, the name of the subject may be a canonical representation of the public key. Alternatively, if identities can be expressed in the form of unique subject names assigned to public keys, then a binding to identity can be achieved by including both public key and associated subject name in the protocol message computation: CRED_I or CRED_R may be a self-signed certificate or COSE_Key containing the public authentication key and the subject name, see <xref target="auth-cred"/>. Before running EDHOC, each endpoint needs a specific public authentication key/unique associated subject name, or a set of public authentication keys/unique associated subject names, which it is allowed to communicate with. EDHOC provides proof that the other party possesses the private authentication key corresponding to the public authentication key.</t>
</list></t>

</section>
<section anchor="auth-cred" title="Authentication Credentials">

<t>The authentication credentials, CRED_I and CRED_R, contain the public authentication key of the Initiator and the Responder, respectively.
The Initiator and the Responder MAY use different types of credentials, e.g. one uses an RPK and the other uses a public key certificate.</t>

<t>The credentials CRED_I and CRED_R are signed or MAC:ed (depending on method) by the Initiator and the Responder, respectively, see <xref target="m3"/> and <xref target="m2"/>.</t>

<t>When the credential is a certificate, CRED_x is an end-entity certificate (i.e. not the certificate chain) encoded as a CBOR bstr.
In X.509 certificates, signature keys typically have key usage “digitalSignature” and Diffie-Hellman keys typically have key usage “keyAgreement”</t>

<t>When the credential is a COSE_Key, CRED_x is a CBOR map only containing specific fields from the COSE_Key:</t>

<t><list style="symbols">
  <t>For COSE_Keys of type OKP the CBOR map SHALL only include the parameters 1 (kty), -1 (crv), and -2 (x-coordinate).</t>
  <t>For COSE_Keys of type EC2 the CBOR map SHALL only include the parameters 1 (kty), -1 (crv), -2 (x-coordinate), and -3 (y-coordinate).</t>
</list></t>

<t>To prevent misbinding attacks in systems where an attacker can register public keys without proving knowledge of the private key, SIGMA <xref target="SIGMA"/> enforces a MAC to be calculated over the “Identity”, which in case of a X.509 certificate would be the ‘subject’ and ‘subjectAltName’ fields. EDHOC follows SIGMA by calculating a MAC over the whole certificate. While SIGMA paper only focuses on the identity, the same principle is true for any information such as policies connected to the public key.</t>

<t>If the parties have agreed on an identity besides the public key, the identity is included in the CBOR map with the label “subject name”, otherwise the subject name is the empty text string.
The parameters SHALL be encoded in decreasing order with int labels first and text string labels last.
An example of CRED_x when the RPK contains an X25519 static Diffie-Hellman key and the parties have agreed on an EUI-64 identity is shown below:</t>

<figure><artwork><![CDATA[
CRED_x = {
  1:  1,
 -1:  4,
 -2:  h'b1a3e89460e88d3a8d54211dc95f0b90
        3ff205eb71912d6db8f4af980d2db83a',
 "subject name" : "42-50-31-FF-EF-37-32-39"
}
]]></artwork></figure>

</section>
<section anchor="id_cred" title="Identification of Credentials">

<t>ID_CRED_I and ID_CRED_R are identifiers of the public authentication keys of the Initiator and the Responder, respectively. 
ID_CRED_I and ID_CRED_R do not have any cryptographic purpose in EDHOC.</t>

<t><list style="symbols">
  <t>ID_CRED_R is intended to facilitate for the Initiator to retrieve the Responder’s public authentication key.</t>
  <t>ID_CRED_I is intended to facilitate for the Responder to retrieve the Initiator’s public authentication key.</t>
</list></t>

<t>The identifiers ID_CRED_I and ID_CRED_R are COSE header_maps, i.e. CBOR maps containing COSE Common Header Parameters, see Section 3.1 of <xref target="RFC8152"/>).
In the following we give some examples of COSE header_maps.</t>

<t>Raw public keys are most optimally stored as COSE_Key objects and identified with a ‘kid’ parameter:</t>

<t><list style="symbols">
  <t>ID_CRED_x = { 4 : kid_x }, where kid_x : bstr, for x = I or R.</t>
</list></t>

<t>Public key certificates can be identified in different ways. Header parameters for identifying CBOR certificates and X.509 certificates are defined in <xref target="I-D.mattsson-cose-cbor-cert-compress"/> and <xref target="I-D.ietf-cose-x509"/>, for example:</t>

<t><list style="symbols">
  <t>by a hash value with the ‘c5t’ or ‘x5t’ parameters;  <list style="symbols">
      <t>ID_CRED_x = { 34 : COSE_CertHash }, for x = I or R,</t>
      <t>ID_CRED_x = { TDB3 : COSE_CertHash }, for x = I or R,</t>
    </list></t>
  <t>by a URI with the ‘c5u’ or ‘x5u’ parameters;  <list style="symbols">
      <t>ID_CRED_x = { 35 : uri }, for x = I or R,</t>
      <t>ID_CRED_x = { TBD4 : uri }, for x = I or R,</t>
    </list></t>
</list></t>

<t>ID_CRED_x MAY contain the actual credential used for authentication, CRED_x.
It is RECOMMENDED that they uniquely identify the public authentication key as the recipient may otherwise have to try several keys.
ID_CRED_I and ID_CRED_R are transported in the ‘ciphertext’, see <xref target="m3"/> and <xref target="m2"/>.</t>

<t>When ID_CRED_x does not contain the actual credential it may be very short.
One byte credential identifiers are realistic in many scenarios as most constrained devices only have a few keys. In cases where a node only has one key, the identifier may even be the empty byte string.</t>

</section>
</section>
<section anchor="cs" title="Cipher Suites">

<t>An EDHOC cipher suite consists of an ordered set of COSE code points from the “COSE Algorithms” and “COSE Elliptic Curves” registries:</t>

<t><list style="symbols">
  <t>EDHOC AEAD algorithm</t>
  <t>EDHOC hash algorithm</t>
  <t>EDHOC ECDH curve</t>
  <t>EDHOC signature algorithm</t>
  <t>EDHOC signature algorithm curve</t>
  <t>Application AEAD algorithm</t>
  <t>Application hash algorithm</t>
</list></t>

<t>Each cipher suite is identified with a pre-defined int label.</t>

<t>EDHOC can be used with all algorithms and curves defined for COSE. Implementation can either use one of the pre-defined cipher suites (<xref target="suites-registry"/>) or use any combination of COSE algorithms to define their own private cipher suite. Private cipher suites can be identified with any of the four values -24, -23, -22, -21.</t>

<t>The following cipher suites are for constrained IoT where message overhead is a very important factor:</t>

<figure><artwork><![CDATA[
   0. ( 10, -16, 4, -8, 6, 10, -16 )
      (AES-CCM-16-64-128, SHA-256, X25519, EdDSA, Ed25519,
       AES-CCM-16-64-128, SHA-256)

   1. ( 30, -16, 4, -8, 6, 10, -16 )
      (AES-CCM-16-128-128, SHA-256, X25519, EdDSA, Ed25519,
       AES-CCM-16-64-128, SHA-256)

   2. ( 10, -16, 1, -7, 1, 10, -16 )
      (AES-CCM-16-64-128, SHA-256, P-256, ES256, P-256,
       AES-CCM-16-64-128, SHA-256)

   3. ( 30, -16, 1, -7, 1, 10, -16 )
      (AES-CCM-16-128-128, SHA-256, P-256, ES256, P-256,
       AES-CCM-16-64-128, SHA-256)
]]></artwork></figure>

<t>The following cipher suite is for general non-constrained applications. It uses very high performance algorithms that also are widely supported:</t>

<figure><artwork><![CDATA[
   4. ( 1, -16, 4, -7, 1, 1, -16 )
      (A128GCM, SHA-256, X25519, ES256, P-256,
       A128GCM, SHA-256)
]]></artwork></figure>

<t>The following cipher suite is for high security application such as government use and financial applications. It is compatible with the CNSA suite <xref target="CNSA"/>.</t>

<figure><artwork><![CDATA[
   5. ( 3, -43, 2, -35, 2, 3, -43 )
      (A256GCM, SHA-384, P-384, ES384, P-384,
       A256GCM, SHA-384)
]]></artwork></figure>

<t>The different methods use the same cipher suites, but some algorithms are not used in some methods. The EDHOC signature algorithm and the EDHOC signature algorithm curve are not used in methods without signature authentication.</t>

<t>The Initiator needs to have a list of cipher suites it supports in order of preference. The Responder needs to have a list of cipher suites it supports. SUITES_I is a CBOR array containing cipher suites that the Initiator supports. SUITES_I is formatted and processed as detailed in <xref target="asym-msg1-form"/> to secure the cipher suite negotation.</t>

</section>
<section anchor="cose_key" title="Ephemeral Public Keys">

<t>The ECDH ephemeral public keys are formatted as a COSE_Key of type EC2 or OKP according to Sections 13.1 and 13.2 of <xref target="RFC8152"/>, but only the ‘x’ parameter is included G_X and G_Y. For Elliptic Curve Keys of type EC2, compact representation as per <xref target="RFC6090"/> MAY be used also in the COSE_Key. If the COSE implementation requires an ‘y’ parameter, any of the possible values of the y-coordinate can be used, see Appendix C of <xref target="RFC6090"/>. COSE <xref target="RFC8152"/> always use compact output for Elliptic Curve Keys of type EC2.</t>

</section>
<section anchor="AD" title="Auxiliary Data">

<t>In order to reduce round trips and number of messages, and in some cases also streamline processing, certain security applications may be integrated into EDHOC by transporting auxiliary data together with the messages. One example is the transport of third-party authorization information protected outside of EDHOC <xref target="I-D.selander-ace-ake-authz"/>. Another example is the embedding of a certificate enrolment request or a newly issued certificate.</t>

<t>EDHOC allows opaque auxiliary data (AD) to be sent in the EDHOC messages. Unprotected Auxiliary Data (AD_1, AD_2) may be sent in message_1 and message_2, respectively. Protected Auxiliary Data (AD_3) may be sent in message_3.</t>

<t>Since data carried in AD_1 and AD_2 may not be protected, and the content of AD_3 is available to both the Initiator and the Responder, special considerations need to be made such that the availability of the data a) does not violate security and privacy requirements of the service which uses this data, and b) does not violate the security properties of EDHOC.</t>

</section>
<section anchor="communication-of-protocol-features" title="Communication of Protocol Features">

<t>EDHOC allows the communication or negotiation of various protocol features during the execution of the protocol.</t>

<t><list style="symbols">
  <t>The Initiator proposes a cipher suite (see <xref target="cs"/>), and the Responder either accepts or rejects, and may make a counter proposal.</t>
  <t>The Initiator decides on the correlation parameter corr (see <xref target="corr"/>). This is typically given by the transport which the Initiator and the Responder have agreed on beforehand. The Responder either accepts or rejects.</t>
  <t>The Initiator decides on the method parameter, see <xref target="fig-method-types"/>. The Responder either accepts or rejects.</t>
  <t>The Initiator and the Responder decide on the representation of the identifier of their respective credentials, ID_CRED_I and ID_CRED_R. The decision is reflected by the label used in the CBOR map, see for example <xref target="id_cred"/>.</t>
</list></t>

<t>Editor’s note: This section needs to be aligned with <xref target="applicability"/>.</t>

</section>
</section>
<section anchor="key-der" title="Key Derivation">

<t>EDHOC uses Extract-and-Expand <xref target="RFC5869"/> with the EDHOC hash algorithm in the selected cipher suite to derive keys. Extract is used to derive fixed-length uniformly pseudorandom keys (PRK) from ECDH shared secrets. Expand is used to derive additional output keying material (OKM) from the PRKs. The PRKs are derived using Extract.</t>

<figure><artwork><![CDATA[
   PRK = Extract( salt, IKM )
]]></artwork></figure>

<t>If the EDHOC hash algorithm is SHA-2, then Extract( salt, IKM ) = HKDF-Extract( salt, IKM ) <xref target="RFC5869"/>. If the EDHOC hash algorithm is SHAKE128, then Extract( salt, IKM ) = KMAC128( salt, IKM, 256, “” ). If the EDHOC hash algorithm is SHAKE256, then Extract( salt, IKM ) = KMAC256( salt, IKM, 512, “” ).</t>

<t>PRK_2e is used to derive a keystream to encrypt message_2. PRK_3e2m is used to derive keys and IVs to produce a MAC in message_2 and to encrypt message_3. PRK_4x3m is used to derive keys and IVs to produce a MAC in message_3 and to derive application specific data.</t>

<t>PRK_2e is derived with the following input:</t>

<t><list style="symbols">
  <t>The salt SHALL be the empty byte string. Note that <xref target="RFC5869"/> specifies that if the salt is not provided, it is set to a string of zeros (see Section 2.2 of <xref target="RFC5869"/>). For implementation purposes, not providing the salt is the same as setting the salt to the empty byte string.</t>
  <t>The input keying material (IKM) SHALL be the ECDH shared secret G_XY (calculated from G_X and Y or G_Y and X) as defined in Section 12.4.1 of <xref target="RFC8152"/>.</t>
</list></t>

<t>Example: Assuming the use of SHA-256 the extract phase of HKDF produces PRK_2e as follows:</t>

<figure><artwork><![CDATA[
   PRK_2e = HMAC-SHA-256( salt, G_XY )
]]></artwork></figure>

<t>where salt = 0x (the empty byte string).</t>

<t>The pseudorandom keys PRK_3e2m and PRK_4x3m are defined as follow:</t>

<t><list style="symbols">
  <t>If the Responder authenticates with a static Diffie-Hellman key, then PRK_3e2m = Extract( PRK_2e, G_RX ), where G_RX is the ECDH shared secret calculated from G_R and X, or G_X and R, else PRK_3e2m = PRK_2e.</t>
  <t>If the Initiator authenticates with a static Diffie-Hellman key, then PRK_4x3m = Extract( PRK_3e2m, G_IY ), where G_IY is the ECDH shared secret calculated from G_I and Y, or G_Y and I, else PRK_4x3m = PRK_3e2m.</t>
</list></t>

<t>Example: Assuming the use of curve25519, the ECDH shared secrets G_XY, G_RX, and G_IY are the outputs of the X25519 function <xref target="RFC7748"/>:</t>

<figure><artwork><![CDATA[
   G_XY = X25519( Y, G_X ) = X25519( X, G_Y )
]]></artwork></figure>

<t>The keys and IVs used in EDHOC are derived from PRK using Expand <xref target="RFC5869"/> where the EDHOC-KDF is instantiated with the EDHOC AEAD algorithm in the selected cipher suite.</t>

<figure><artwork><![CDATA[
   OKM = EDHOC-KDF( PRK, transcript_hash, label, length )
       = Expand( PRK, info, length )
]]></artwork></figure>

<t>where info is the CBOR encoding of</t>

<figure><artwork><![CDATA[
info = [
   edhoc_aead_id : int / tstr,
   transcript_hash : bstr,
   label : tstr,
   length : uint
]
]]></artwork></figure>

<t>where</t>

<t><list style="symbols">
  <t>edhoc_aead_id is an int or tstr containing the algorithm identifier of the EDHOC AEAD algorithm in the selected cipher suite encoded as defined in <xref target="RFC8152"/>. Note that a single fixed edhoc_aead_id is used in all invocations of EDHOC-KDF, including the derivation of KEYSTREAM_2 and invocations of the EDHOC-Exporter.</t>
  <t>transcript_hash is a bstr set to one of the transcript hashes TH_2, TH_3, or TH_4 as defined in Sections <xref target="asym-msg2-form" format="counter"/>, <xref target="asym-msg3-form" format="counter"/>, and <xref target="exporter" format="counter"/>.</t>
  <t>label is a tstr set to the name of the derived key or IV, i.e. “K_2m”, “IV_2m”, “KEYSTREAM_2”, “K_3m”, “IV_3m”, “K_3ae”, or “IV_3ae”.</t>
  <t>length is the length of output keying material (OKM) in bytes</t>
</list></t>

<t>If the EDHOC hash algorithm is SHA-2, then Expand( PRK, info, length ) = HKDF-Expand( PRK, info, length ) <xref target="RFC5869"/>. If the EDHOC hash algorithm is SHAKE128, then Expand( PRK, info, length ) = KMAC128( PRK, info, L, “” ). If the EDHOC hash algorithm is SHAKE256, then Expand( PRK, info, length ) = KMAC256( PRK, info, L, “” ).</t>

<t>KEYSTREAM_2 are derived using the transcript hash TH_2 and the pseudorandom key PRK_2e. K_2m and IV_2m are derived using the transcript hash TH_2 and the pseudorandom key PRK_3e2m. K_3ae and IV_3ae are derived using the transcript hash TH_3 and the pseudorandom key PRK_3e2m. K_3m and IV_3m are derived using the transcript hash TH_3 and the pseudorandom key PRK_4x3m. IVs are only used if the EDHOC AEAD algorithm uses IVs.</t>

<section anchor="exporter" title="EDHOC-Exporter Interface">

<t>Application keys and other application specific data can be derived using the EDHOC-Exporter interface defined as:</t>

<figure><artwork><![CDATA[
   EDHOC-Exporter(label, length)
     = EDHOC-KDF(PRK_4x3m, TH_4, label, length) 
]]></artwork></figure>

<t>where label is a tstr defined by the application and length is a uint defined by the application. The label SHALL be different for each different exporter value. The transcript hash TH_4 is a CBOR encoded bstr and the input to the hash function is a CBOR Sequence.</t>

<figure><artwork><![CDATA[
   TH_4 = H( TH_3, CIPHERTEXT_3 )
]]></artwork></figure>

<t>where H() is the hash function in the selected cipher suite. Example use of the EDHOC-Exporter is given in Sections <xref target="oscore" format="counter"/>.</t>

<t>To provide forward secrecy in an even more efficient way than re-running EDHOC, EDHOC provides the function EDHOC-Rekey-FS. When EHDOC-Rekey-FS is called the old PRK_4x3m is deleted and the new PRk_4x3m is calculated as a “hash” of the old key using the Extract function as illustrated by the following pseudocode:</t>

<figure><artwork><![CDATA[
   EHDOC-Rekey-FS( nonce ):
      PRK_4x3m = Extract( [ "TH_4", nonce ], PRK_4x3m )
]]></artwork></figure>

</section>
</section>
<section anchor="asym" title="Message Formatting and Processing">

<t>This section specifies formatting of the messages and processing steps. Error messages are specified in <xref target="error"/>.</t>

<t>An EDHOC message is encoded as a sequence of CBOR data (CBOR Sequence, <xref target="RFC8742"/>).
Additional optimizations are made to reduce message overhead.</t>

<t>While EDHOC uses the COSE_Key, COSE_Sign1, and COSE_Encrypt0 structures, only a subset of the parameters is included in the EDHOC messages. The unprotected COSE header in COSE_Sign1, and COSE_Encrypt0 (not included in the EDHOC message) MAY contain parameters (e.g. ‘alg’).</t>

<section anchor="bstr_id" title="Encoding of bstr_identifier">

<t>Byte strings are encoded in CBOR as two or more bytes, whereas integers in the interval -24 to 23 are encoded in CBOR as one byte.</t>

<t>bstr_identifier is a special encoding of byte strings, used throughout the protocol to enable the encoding of the shortest byte strings as integers that only require one byte of CBOR encoding.</t>

<t>The bstr_identifier encoding is defined as follows: Byte strings in the interval h’00’ to h’2f’ are encoded as the corresponding integer minus 24, which are all represented by one byte CBOR ints. Other byte strings are encoded as CBOR byte strings.</t>

<t>For example, the byte string h’59e9’ encoded as a bstr_identifier is equal to h’59e9’, while the byte string h’2a’ is encoded as the integer 18.</t>

<t>The CDDL definition of the bstr_identifier is given below:</t>

<figure><artwork type="CDDL"><![CDATA[
bstr_identifier = bstr / int
]]></artwork></figure>

<t>Note that, despite what could be interpreted by the CDDL definition only, bstr_identifier once decoded are always byte strings.</t>

</section>
<section anchor="edhoc-message-1" title="EDHOC Message 1">

<section anchor="asym-msg1-form" title="Formatting of Message 1">

<t>message_1 SHALL be a CBOR Sequence (see <xref target="CBOR"/>) as defined below</t>

<figure><artwork type="CDDL"><![CDATA[
message_1 = (
  METHOD_CORR : int,
  SUITES_I : [ selected : suite, supported : 2* suite ] / suite,
  G_X : bstr,
  C_I : bstr_identifier,  
  ? AD_1 : bstr,
)

suite = int
]]></artwork></figure>

<t>where:</t>

<t><list style="symbols">
  <t>METHOD_CORR = 4 * method + corr, where method = 0, 1, 2, or 3 (see <xref target="fig-method-types"/>) and the correlation parameter corr is chosen based on the transport and determines which connection identifiers that are omitted (see <xref target="corr"/>).</t>
  <t>SUITES_I - cipher suites which the Initiator supports in order of (decreasing) preference. The list of supported cipher suites can be truncated at the end, as is detailed in the processing steps below. One of the supported cipher suites is selected. The selected suite is the first suite in the SUITES_I CBOR array. If a single supported cipher suite is conveyed then that cipher suite is selected and the selected cipher suite is encoded as an int instead of an array.</t>
  <t>G_X - the ephemeral public key of the Initiator</t>
  <t>C_I - variable length connection identifier, encoded as a bstr_identifier (see <xref target="bstr_id"/>).</t>
  <t>AD_1 - bstr containing unprotected opaque auxiliary data</t>
</list></t>

</section>
<section anchor="init-proc-msg1" title="Initiator Processing of Message 1">

<t>The Initiator SHALL compose message_1 as follows:</t>

<t><list style="symbols">
  <t>The supported cipher suites and the order of preference MUST NOT be changed based on previous error messages. However, the list SUITES_I sent to the Responder MAY be truncated such that cipher suites which are the least preferred are omitted. The amount of truncation MAY be changed between sessions, e.g. based on previous error messages (see next bullet), but all cipher suites which are more preferred than the least preferred cipher suite in the list MUST be included in the list.</t>
  <t>Determine the cipher suite to use with the Responder in message_1. If the Initiator previously received from the Responder an error message to a message_1 with diagnostic payload identifying a cipher suite that the Initiator supports, then the Initiator SHALL use that cipher suite. Otherwise the first supported (i.e. the most preferred) cipher suite in SUITES_I MUST be used.</t>
  <t>Generate an ephemeral ECDH key pair as specified in Section 5 of <xref target="SP-800-56A"/> using the curve in the selected cipher suite and format it as a COSE_Key. Let G_X be the ‘x’ parameter of the COSE_Key.</t>
  <t>Choose a connection identifier C_I and store it for the length of the protocol.</t>
  <t>Encode message_1 as a sequence of CBOR encoded data items as specified in <xref target="asym-msg1-form"/></t>
</list></t>

</section>
<section anchor="resp-proc-msg1" title="Responder Processing of Message 1">

<t>The Responder SHALL process message_1 as follows:</t>

<t><list style="symbols">
  <t>Decode message_1 (see <xref target="CBOR"/>).</t>
  <t>Verify that the selected cipher suite is supported and that no prior cipher suite in SUITES_I is supported.</t>
  <t>Pass AD_1 to the security application.</t>
</list></t>

<t>If any verification step fails, the Responder MUST send an EDHOC error message back, formatted as defined in <xref target="error"/>, and the protocol MUST be discontinued. If the Responder does not support the selected cipher suite, then SUITES_R MUST include one or more supported cipher suites. If the Responder does not support the selected cipher suite, but supports another cipher suite in SUITES_I, then SUITES_R MUST include the first supported cipher suite in SUITES_I.</t>

</section>
</section>
<section anchor="m2" title="EDHOC Message 2">

<section anchor="asym-msg2-form" title="Formatting of Message 2">

<t>message_2 and data_2 SHALL be CBOR Sequences (see <xref target="CBOR"/>) as defined below</t>

<figure><artwork type="CDDL"><![CDATA[
message_2 = (
  data_2,
  CIPHERTEXT_2 : bstr,
)
]]></artwork></figure>

<figure><artwork type="CDDL"><![CDATA[
data_2 = (
  ? C_I : bstr_identifier,
  G_Y : bstr,
  C_R : bstr_identifier,
)
]]></artwork></figure>

<t>where:</t>

<t><list style="symbols">
  <t>G_Y - the ephemeral public key of the Responder</t>
  <t>C_R - variable length connection identifier, encoded as a bstr_identifier (see <xref target="bstr_id"/>).</t>
</list></t>

</section>
<section anchor="asym-msg2-proc" title="Responder Processing of Message 2">

<t>The Responder SHALL compose message_2 as follows:</t>

<t><list style="symbols">
  <t>If corr (METHOD_CORR mod 4) equals 1 or 3, C_I is omitted, otherwise C_I is not omitted.</t>
  <t>Generate an ephemeral ECDH key pair as specified in Section 5 of <xref target="SP-800-56A"/> using the curve in the selected cipher suite and format it as a COSE_Key. Let G_Y be the ‘x’ parameter of the COSE_Key.</t>
  <t>Choose a connection identifier C_R and store it for the length of the protocol.</t>
  <t>Compute the transcript hash TH_2 = H(message_1, data_2) where H() is the hash function in the selected cipher suite. The transcript hash TH_2 is a CBOR encoded bstr and the input to the hash function is a CBOR Sequence.</t>
  <t>Compute an inner COSE_Encrypt0 as defined in Section 5.3 of <xref target="RFC8152"/>, with the EDHOC AEAD algorithm in the selected cipher suite, K_2m, IV_2m, and the following parameters:  <list style="symbols">
      <t>protected =  « ID_CRED_R »      <list style="symbols">
          <t>ID_CRED_R - identifier to facilitate retrieval of CRED_R, see <xref target="id_cred"/></t>
        </list></t>
      <t>external_aad = « TH_2, CRED_R, ? AD_2 »      <list style="symbols">
          <t>CRED_R - bstr containing the credential of the Responder, see <xref target="id_cred"/>.</t>
          <t>AD_2 = bstr containing opaque unprotected auxiliary data</t>
        </list></t>
      <t>plaintext = h’’</t>
    </list>
COSE constructs the input to the AEAD <xref target="RFC5116"/> as follows:  <list style="symbols">
      <t>Key K = EDHOC-KDF( PRK_3e2m, TH_2, “K_2m”, length )</t>
      <t>Nonce N = EDHOC-KDF( PRK_3e2m, TH_2, “IV_2m”, length )</t>
      <t>Plaintext P = 0x (the empty string)</t>
      <t>Associated data A =      <vspace blankLines='1'/>
[ “Encrypt0”, « ID_CRED_R », « TH_2, CRED_R, ? AD_2 » ]</t>
    </list>
MAC_2 is the ‘ciphertext’ of the inner COSE_Encrypt0.</t>
  <t>If the Responder authenticates with a static Diffie-Hellman key (method equals 1 or 3), then Signature_or_MAC_2 is MAC_2. If the Responder authenticates with a signature key (method equals 0 or 2), then Signature_or_MAC_2 is the ‘signature’ of a COSE_Sign1 object as defined in Section 4.4 of <xref target="RFC8152"/> using the signature algorithm in the selected cipher suite, the private authentication key of the Responder, and the following parameters:  <list style="symbols">
      <t>protected =  « ID_CRED_R »</t>
      <t>external_aad = « TH_2, CRED_R, ? AD_2 »</t>
      <t>payload = MAC_2</t>
    </list>
COSE constructs the input to the Signature Algorithm as:  <list style="symbols">
      <t>The key is the private authentication key of the Responder.</t>
      <t>The message M to be signed =      <vspace blankLines='1'/>
[ “Signature1”, « ID_CRED_R », « TH_2, CRED_R, ? AD_2 », MAC_2 ]</t>
    </list></t>
  <t>CIPHERTEXT_2 is encrypted by using the Expand function as a binary additive stream cipher.  <list style="symbols">
      <t>plaintext = ( ID_CRED_R / bstr_identifier, Signature_or_MAC_2, ? AD_2 )      <list style="symbols">
          <t>Note that if ID_CRED_R contains a single ‘kid’ parameter, i.e., ID_CRED_R = { 4 : kid_R }, only the byte string kid_R is conveyed in the plaintext encoded as a bstr_identifier, see <xref target="id_cred"/> and <xref target="bstr_id"/>.</t>
        </list></t>
      <t>CIPHERTEXT_2 = plaintext XOR KEYSTREAM_2</t>
    </list></t>
  <t>Encode message_2 as a sequence of CBOR encoded data items as specified in <xref target="asym-msg2-form"/>.</t>
</list></t>

</section>
<section anchor="initiator-processing-of-message-2" title="Initiator Processing of Message 2">

<t>The Initiator SHALL process message_2 as follows:</t>

<t><list style="symbols">
  <t>Decode message_2 (see <xref target="CBOR"/>).</t>
  <t>Retrieve the protocol state using the connection identifier C_I and/or other external information such as the CoAP Token and the 5-tuple.</t>
  <t>Decrypt CIPHERTEXT_2, see <xref target="asym-msg2-proc"/>.</t>
  <t>Verify that the identity of the Responder is an allowed identity for this connection, see <xref target="auth-key-id"/>.</t>
  <t>Verify Signature_or_MAC_2 using the algorithm in the selected cipher suite. The verification process depends on the method, see <xref target="asym-msg2-proc"/>.</t>
  <t>Pass AD_2 to the security application.</t>
</list></t>

<t>If any verification step fails, the Initiator MUST send an EDHOC error message back, formatted as defined in <xref target="error"/>, and the protocol MUST be discontinued.</t>

</section>
</section>
<section anchor="m3" title="EDHOC Message 3">

<section anchor="asym-msg3-form" title="Formatting of Message 3">

<t>message_3 and data_3 SHALL be CBOR Sequences (see <xref target="CBOR"/>) as defined below</t>

<figure><artwork type="CDDL"><![CDATA[
message_3 = (
  data_3,
  CIPHERTEXT_3 : bstr,
)
]]></artwork></figure>

<figure><artwork type="CDDL"><![CDATA[
data_3 = (
  ? C_R : bstr_identifier,
)
]]></artwork></figure>

</section>
<section anchor="asym-msg3-proc" title="Initiator Processing of Message 3">

<t>The Initiator  SHALL compose message_3 as follows:</t>

<t><list style="symbols">
  <t>If corr (METHOD_CORR mod 4) equals 2 or 3, C_R is omitted, otherwise C_R is not omitted.</t>
  <t>Compute the transcript hash TH_3 = H(TH_2 , CIPHERTEXT_2, data_3) where H() is the hash function in the the selected cipher suite. The transcript hash TH_3 is a CBOR encoded bstr and the input to the hash function is a CBOR Sequence.</t>
  <t>Compute an inner COSE_Encrypt0 as defined in Section 5.3 of <xref target="RFC8152"/>, with the EDHOC AEAD algorithm in the selected cipher suite, K_3m, IV_3m, and the following parameters:  <list style="symbols">
      <t>protected =  « ID_CRED_I »      <list style="symbols">
          <t>ID_CRED_I - identifier to facilitate retrieval of CRED_I, see <xref target="id_cred"/></t>
        </list></t>
      <t>external_aad = « TH_3, CRED_I, ? AD_3 »      <list style="symbols">
          <t>CRED_I - bstr containing the credential of the Initiator, see <xref target="id_cred"/>.</t>
          <t>AD_3 = bstr containing opaque protected auxiliary data</t>
        </list></t>
      <t>plaintext = h’’</t>
    </list>
COSE constructs the input to the AEAD <xref target="RFC5116"/> as follows:  <list style="symbols">
      <t>Key K = EDHOC-KDF( PRK_4x3m, TH_3, “K_3m”, length )</t>
      <t>Nonce N = EDHOC-KDF( PRK_4x3m, TH_3, “IV_3m”, length )</t>
      <t>Plaintext P = 0x (the empty string)</t>
      <t>Associated data A =      <vspace blankLines='1'/>
[ “Encrypt0”, « ID_CRED_I », « TH_3, CRED_I, ? AD_3 » ]</t>
    </list>
MAC_3 is the ‘ciphertext’ of the inner COSE_Encrypt0.</t>
  <t>If the Initiator authenticates with a static Diffie-Hellman key (method equals 2 or 3), then Signature_or_MAC_3 is MAC_3. If the Initiator authenticates with a signature key (method equals 0 or 1), then Signature_or_MAC_3 is the ‘signature’ of a COSE_Sign1 object as defined in Section 4.4 of <xref target="RFC8152"/> using the signature algorithm in the selected cipher suite, the private authentication key of the Initiator, and the following parameters:  <list style="symbols">
      <t>protected =  « ID_CRED_I »</t>
      <t>external_aad = « TH_3, CRED_I, ? AD_3 »</t>
      <t>payload = MAC_3</t>
    </list>
COSE constructs the input to the Signature Algorithm as:  <list style="symbols">
      <t>The key is the private authentication key of the Initiator.</t>
      <t>The message M to be signed =      <vspace blankLines='1'/>
[ “Signature1”, « ID_CRED_I », « TH_3, CRED_I, ? AD_3 », MAC_3 ]</t>
    </list></t>
  <t>Compute an outer COSE_Encrypt0 as defined in Section 5.3 of <xref target="RFC8152"/>, with the EDHOC AEAD algorithm in the selected cipher suite, K_3ae, IV_3ae, and the following parameters. The protected header SHALL be empty.  <list style="symbols">
      <t>external_aad = TH_3</t>
      <t>plaintext = ( ID_CRED_I / bstr_identifier, Signature_or_MAC_3, ? AD_3 )      <list style="symbols">
          <t>Note that if ID_CRED_I contains a single ‘kid’ parameter, i.e., ID_CRED_I = { 4 : kid_I }, only the byte string kid_I is conveyed in the plaintext encoded as a bstr_identifier, see <xref target="id_cred"/> and <xref target="bstr_id"/>.</t>
        </list></t>
    </list>
COSE constructs the input to the AEAD <xref target="RFC5116"/> as follows:  <list style="symbols">
      <t>Key K = EDHOC-KDF( PRK_3e2m, TH_3, “K_3ae”, length )</t>
      <t>Nonce N = EDHOC-KDF( PRK_3e2m, TH_3, “IV_3ae”, length )</t>
      <t>Plaintext P = ( ID_CRED_I / bstr_identifier, Signature_or_MAC_3, ? AD_3 )</t>
      <t>Associated data A = [ “Encrypt0”, h’’, TH_3 ]</t>
    </list>
CIPHERTEXT_3 is the ‘ciphertext’ of the outer COSE_Encrypt0.</t>
  <t>Encode message_3 as a sequence of CBOR encoded data items as specified in <xref target="asym-msg3-form"/>.</t>
</list></t>

<t>Pass the connection identifiers (C_I, C_R) and the application algorithms in the selected cipher suite to the application. The application can now derive application keys using the EDHOC-Exporter interface.</t>

<t>After sending message_3, the Initiator is assured that no other party than the Responder can compute the key PRK_4x3m (implicit key authentication). The Initiator does however not know that the Responder has actually computed the key PRK_4x3m. While the Initiator can securely send protected application data, the Initiator SHOULD NOT store the keying material PRK_4x3m and TH_4 until the Initiator is assured that the Responder has actually computed the key PRK_4x3m (explicit key confirmation). Explicit key confirmation is e.g. assured when the Initiator has verified an OSCORE message from the Responder.</t>

</section>
<section anchor="responder-processing-of-message-3" title="Responder Processing of Message 3">

<t>The Responder SHALL process message_3 as follows:</t>

<t><list style="symbols">
  <t>Decode message_3 (see <xref target="CBOR"/>).</t>
  <t>Retrieve the protocol state using the connection identifier C_R and/or other external information such as the CoAP Token and the 5-tuple.</t>
  <t>Decrypt and verify the outer COSE_Encrypt0 as defined in Section 5.3 of <xref target="RFC8152"/>, with the EDHOC AEAD algorithm in the selected cipher suite, K_3ae, and IV_3ae.</t>
  <t>Verify that the identity of the Initiator is an allowed identity for this connection, see <xref target="auth-key-id"/>.</t>
  <t>Verify Signature_or_MAC_3 using the algorithm in the selected cipher suite. The verification process depends on the method, see <xref target="asym-msg3-proc"/>.</t>
  <t>Pass AD_3, the connection identifiers (C_I, C_R), and the application algorithms in the selected cipher suite to the security application. The application can now derive application keys using the EDHOC-Exporter interface.</t>
</list></t>

<t>If any verification step fails, the Responder MUST send an EDHOC error message back, formatted as defined in <xref target="error"/>, and the protocol MUST be discontinued.</t>

<t>After verifying message_3, the Responder is assured that the Initiator has calculated the key PRK_4x3m (explicit key confirmation) and that no other party than the Responder can compute the key. The Responder can securely send protected application data and store the keying material PRK_4x3m and TH_4.</t>

</section>
</section>
</section>
<section anchor="error" title="Error Handling">

<section anchor="edhoc-error-message" title="EDHOC Error Message">

<t>This section defines a message format for the EDHOC error message.</t>

<t>An EDHOC error message can be sent by both parties as a reply to any non-error EDHOC message. Errors at the EDHOC layer are sent as normal successful messages in the lower layers (e.g. CoAP POST and 2.04 Changed). An advantage of using such a construction is to avoid issues created by usage of cross protocol proxies (e.g. UDP to TCP).</t>

<t>All error messages in EDHOC are fatal. After sending an error message, the sender MUST discontinue the protocol. The receiver SHOULD treat an error message as an indication that the other party likely has discontinued the protocol. But as the error message is not authenticated, a received error messages might also have been sent by an attacker and the receiver MAY therefore try to continue the protocol.</t>

<t>error SHALL be a CBOR Sequence (see <xref target="CBOR"/>) as defined below</t>

<figure><artwork type="CDDL"><![CDATA[
error = (
  ? C_x : bstr_identifier,
  DIAG_MSG : tstr,
  ? SUITES_R : [ supported : 2* suite ] / suite,
)
]]></artwork></figure>

<t>where:</t>

<t><list style="symbols">
  <t>C_x - (optional) variable length connection identifier, encoded as a bstr_identifier (see <xref target="bstr_id"/>). If error is sent by the Responder and corr (METHOD_CORR mod 4) equals 0 or 2 then C_x is set to C_I, else if error is sent by the Initiator and corr (METHOD_CORR mod 4) equals 0 or 1 then C_x is set to C_R, else C_x is omitted.</t>
  <t>DIAG_MSG - text string containing the diagnostic message in English. MUST NOT be the empty string unless the error message contains SUITES_R.</t>
  <t>SUITES_R - (optional) cipher suites from SUITES_I or the EDHOC cipher suites registry that the Responder supports. SUITES_R MUST only be included in replies to message_1. If a single supported cipher suite is conveyed then the supported cipher suite is encoded as an int instead of an array.</t>
</list></t>

<t>After receiving SUITES_R, the Initiator can determine which selected cipher suite to use for the next EDHOC run with the Responder. If the Initiator intends to contact the Responder in the future, the Initiator SHOULD remember which selected cipher suite to use until the next message_1 has been sent, otherwise the Initiator and Responder will likely run into an infinite loop. After a successful run of EDHOC, the Initiator MAY remember the selected cipher suite to use in future EDHOC runs. Note that if the Initiator or Responder is updated with new cipher suite policies, any cached information may be outdated.</t>

<t>Error messages without SUITES_R MUST contain a human-readable diagnostic message DIAG_MSG written in English, explaning the error situation. The diagnostic text message is mainly intended for software engineers that during debugging need to interpret it in the context of the EDHOC specification. The diagnostic message SHOULD be be provided to the calling application where they SHOULD be logged. Error messages with SUITES_R MAY use the empty string as the diagnostic message. The DIAG_MSG text string is mandatory and characteristic for error messages, which enables the receiver to distinguish between a normal message and an error message.</t>

<section anchor="example-use-of-edhoc-error-message-with-suitesr" title="Example Use of EDHOC Error Message with SUITES_R">

<t>Assuming that the Initiator supports the five cipher suites 5, 6, 7, 8, and 9 in decreasing order of preference, Figures <xref target="fig-error1" format="counter"/> and <xref target="fig-error2" format="counter"/> show examples of how the Initiator can truncate SUITES_I and how SUITES_R is used by the Responder to give the Initiator information about the cipher suites that the Responder supports.</t>

<t>In <xref target="fig-error1"/>, the Responder supports cipher suite 6 but not the initially selected cipher suite 5.</t>

<figure title="Example use of error message with SUITES_R." anchor="fig-error1"><artwork align="center"><![CDATA[
Initiator                                                   Responder
|            METHOD_CORR, SUITES_I = 5, G_X, C_I, AD_1             |
+------------------------------------------------------------------>|
|                             message_1                             |
|                                                                   |
|                    C_I, DIAG_MSG, SUITES_R = 6                    |
|<------------------------------------------------------------------+
|                               error                               |
|                                                                   |
|         METHOD_CORR, SUITES_I = [6, 5, 6], G_X, C_I, AD_1         |
+------------------------------------------------------------------>|
|                             message_1                             |
]]></artwork></figure>

<t>In <xref target="fig-error2"/>, the Responder supports cipher suite 7 and 9 but not the more preferred (by the Initiator) cipher suites 5 and 6. The order of cipher suites in SUITES_R does not matter.</t>

<figure title="Example use of error message with SUITES_R." anchor="fig-error2"><artwork align="center"><![CDATA[
Initiator                                                   Responder
|            METHOD_CORR, SUITES_I = 5, G_X, C_I, AD_1              |
+------------------------------------------------------------------>|
|                             message_1                             |
|                                                                   |
|                  C_I, DIAG_MSG, SUITES_R = [9, 7]                 |
|<------------------------------------------------------------------+
|                               error                               |
|                                                                   |
|        METHOD_CORR, SUITES_I = [7, 5, 6, 7], G_X, C_I, AD_1       |
+------------------------------------------------------------------>|
|                             message_1                             |
]]></artwork></figure>

<t>Note that the Initiator’s list of supported cipher suites and order of preference is fixed (see <xref target="asym-msg1-form"/> and <xref target="init-proc-msg1"/>). Furthermore, the Responder shall only accept message_1 if the selected cipher suite is the first cipher suite in SUITES_I that the Responder supports (see <xref target="resp-proc-msg1"/>). Following this procedure ensures that the selected cipher suite is the most preferred (by the Initiator) cipher suite supported by both parties.</t>

<t>If the selected cipher suite is not the first cipher suite which the Responder supports in SUITES_I received in message_1, then Responder MUST discontinue the protocol, see <xref target="resp-proc-msg1"/>. If SUITES_I in message_1 is manipulated then the integrity verification of message_2 containing the transcript hash TH_2 = H( message_1, data_2 ) will fail and the Initiator will discontinue the protocol.</t>

</section>
</section>
</section>
<section anchor="transfer" title="Transferring EDHOC and Deriving an OSCORE Context">

<section anchor="m4" title="EDHOC Message 4">

<t>This section specifies message_4 which is OPTIONAL to support. Key confirmation is normally provided by sending an application message from the Responder to the Initiator, e.g., using OSCORE. In deployments where no protected application message is sent from the Responder to the Initiator, the Responder MUST send message_4. Two examples of such deployments:</t>

<t><list style="numbers">
  <t>When EDHOC is only used for authentication and no application data is sent.</t>
  <t>When application data is only sent from the Initiator to the Responder.</t>
</list></t>

<section anchor="asym-msg4-form" title="Formatting of Message 4">

<t>message_4 and data_4 SHALL be CBOR Sequences (see <xref target="CBOR"/>) as defined below</t>

<figure><artwork type="CDDL"><![CDATA[
message_4 = (
  data_4,
  MAC_4 : bstr,
)
]]></artwork></figure>

<figure><artwork type="CDDL"><![CDATA[
data_4 = (
  ? C_I : bstr_identifier,
)
]]></artwork></figure>

</section>
<section anchor="asym-msg4-proc" title="Responder Processing of Message 4">

<t>The Responder SHALL compose message_4 as follows:</t>

<t><list style="symbols">
  <t>If corr (METHOD_CORR mod 4) equals 1 or 3, C_I is omitted, otherwise C_I is not omitted.</t>
  <t>Compute an inner COSE_Encrypt0 as defined in Section 5.3 of <xref target="RFC8152"/>, with the EDHOC AEAD algorithm in the selected cipher suite, and the following parameters:  <list style="symbols">
      <t>protected = h’’</t>
      <t>external_aad = « TH_4 »</t>
      <t>plaintext = h’’</t>
    </list>
COSE constructs the input to the AEAD <xref target="RFC5116"/> as follows:  <list style="symbols">
      <t>Key K = EDHOC-Exporter( “EDHOC_message_4_Key”, length )</t>
      <t>Nonce N = EDHOC-Exporter( “EDHOC_message_4_Nonce”, length )</t>
      <t>Plaintext P = 0x (the empty string)</t>
      <t>Associated data A =      <vspace blankLines='1'/>
[ “Encrypt0”, h’’, « TH_4 » ]</t>
    </list>
MAC_4 is the ‘ciphertext’ of the COSE_Encrypt0.</t>
  <t>Encode message_4 as a sequence of CBOR encoded data items as specified in <xref target="asym-msg4-form"/>.</t>
</list></t>

</section>
<section anchor="initiator-processing-of-message-4" title="Initiator Processing of Message 4">

<t>The Initiator SHALL process message_4 as follows:</t>

<t><list style="symbols">
  <t>Decode message_4 (see <xref target="CBOR"/>).</t>
  <t>Retrieve the protocol state using the connection identifier C_I and/or other external information such as the CoAP Token and the 5-tuple.</t>
  <t>Verify MAC_4 as defined in Section 5.3 of <xref target="RFC8152"/>, with the EDHOC AEAD algorithm in the selected cipher suite, and the parameters defined in <xref target="asym-msg4-proc"/>.</t>
</list></t>

<t>If any verification step fails the Initiator MUST send an EDHOC error message back, formatted as defined in <xref target="error"/>, and the protocol MUST be discontinued.</t>

</section>
</section>
<section anchor="coap" title="Transferring EDHOC in CoAP">

<t>It is recommended to transport EDHOC as an exchange of CoAP <xref target="RFC7252"/> messages. CoAP is a reliable transport that can preserve packet ordering and handle message duplication. CoAP can also perform fragmentation and protect against denial of service attacks. It is recommended to carry the EDHOC messages in Confirmable messages, especially if fragmentation is used.</t>

<t>By default, the CoAP client is the Initiator and the CoAP server is the Responder, but the roles SHOULD be chosen to protect the most sensitive identity, see <xref target="security"/>. By default, EDHOC is transferred in POST requests and 2.04 (Changed) responses to the Uri-Path: “/.well-known/edhoc”, but an application may define its own path that can be discovered e.g. using resource directory <xref target="I-D.ietf-core-resource-directory"/>.</t>

<t>By default, the message flow is as follows: EDHOC message_1 is sent in the payload of a POST request from the client to the server’s resource for EDHOC. 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. Alternatively, if EDHOC message_4 is used, it is sent from the server to the client in the payload of a 2.04 (Changed) response analogously to message_2.</t>

<t>An example of a successful EDHOC exchange using CoAP is shown in <xref target="fig-coap1"/>. In this case the CoAP Token enables the Initiator to correlate message_1 and message_2 so the correlation parameter corr = 1.</t>

<figure title="Transferring EDHOC in CoAP when the Initiator is CoAP Client" anchor="fig-coap1"><artwork align="center"><![CDATA[
Client    Server
  |          |
  +--------->| Header: POST (Code=0.02)
  |   POST   | Uri-Path: "/.well-known/edhoc"
  |          | Content-Format: application/edhoc
  |          | Payload: EDHOC message_1
  |          |
  |<---------+ Header: 2.04 Changed
  |   2.04   | Content-Format: application/edhoc
  |          | Payload: EDHOC message_2
  |          |
  +--------->| Header: POST (Code=0.02)
  |   POST   | Uri-Path: "/.well-known/edhoc"
  |          | Content-Format: application/edhoc
  |          | Payload: EDHOC message_3
  |          |
  |<---------+ Header: 2.04 Changed
  |   2.04   | 
  |          |
]]></artwork></figure>

<t>The exchange in <xref target="fig-coap1"/> protects the client identity against active attackers and the server identity against passive attackers. An alternative exchange that protects the server identity against active attackers and the client identity against passive attackers is shown in <xref target="fig-coap2"/>. In this case the CoAP Token enables the Responder to correlate message_2 and message_3 so the correlation parameter corr = 2. If EDHOC message_4 is used, it is transported with CoAP in the payload of a POST request with a 2.04 (Changed) response.</t>

<figure title="Transferring EDHOC in CoAP when the Initiator is CoAP Server" anchor="fig-coap2"><artwork align="center"><![CDATA[
Client    Server
  |          |
  +--------->| Header: POST (Code=0.02)
  |   POST   | Uri-Path: "/.well-known/edhoc"
  |          |
  |<---------+ Header: 2.04 Changed
  |   2.04   | Content-Format: application/edhoc
  |          | Payload: EDHOC message_1
  |          |
  +--------->| Header: POST (Code=0.02)
  |   POST   | Uri-Path: "/.well-known/edhoc"
  |          | Content-Format: application/edhoc
  |          | Payload: EDHOC message_2
  |          |
  |<---------+ Header: 2.04 Changed
  |   2.04   | Content-Format: application/edhoc
  |          | Payload: EDHOC message_3
  |          |
]]></artwork></figure>

<t>To protect against denial-of-service attacks, the CoAP server MAY respond to the first POST request with a 4.01 (Unauthorized) containing an Echo option <xref target="I-D.ietf-core-echo-request-tag"/>. This forces the initiator to demonstrate its reachability at its apparent network address. If message fragmentation is needed, the EDHOC messages may be fragmented using the CoAP Block-Wise Transfer mechanism <xref target="RFC7959"/>.</t>

<section anchor="oscore" title="Deriving an OSCORE Context from EDHOC">

<t>When EDHOC is used to derive parameters for OSCORE <xref target="RFC8613"/>, the parties  make sure that the EDHOC connection identifiers are unique, i.e. C_R MUST NOT be equal to C_I. The CoAP client and server MUST be able to retrieve the OSCORE protocol state using its chosen connection identifier and optionally other information such as the 5-tuple. In case that the CoAP client is the Initiator and the CoAP server is the Responder:</t>

<t><list style="symbols">
  <t>The client’s OSCORE Sender ID is C_R and the server’s OSCORE Sender ID is C_I, as defined in this document</t>
  <t>The AEAD Algorithm and the hash algorithm are the application AEAD and hash algorithms in the selected cipher suite.</t>
  <t>The Master Secret and Master Salt are derived as follows where length is the key length (in bytes) of the application AEAD Algorithm.</t>
</list></t>

<figure><artwork><![CDATA[
   Master Secret = EDHOC-Exporter( "OSCORE Master Secret", length )
   Master Salt   = EDHOC-Exporter( "OSCORE Master Salt", 8 )
]]></artwork></figure>

</section>
</section>
</section>
<section anchor="security" title="Security Considerations">

<section anchor="sec-prop" title="Security Properties">

<t>EDHOC inherits its security properties from the theoretical SIGMA-I protocol <xref target="SIGMA"/>. Using the terminology from <xref target="SIGMA"/>, EDHOC provides perfect forward secrecy, mutual authentication with aliveness, consistency, peer awareness. As described in <xref target="SIGMA"/>, peer awareness is provided to the Responder, but not to the Initiator.</t>

<t>EDHOC protects the credential identifier of the Initiator against active attacks and the credential identifier of the Responder against passive attacks. The roles should be assigned to protect the most sensitive identity/identifier, typically that which is not possible to infer from routing information in the lower layers.</t>

<t>Compared to <xref target="SIGMA"/>, EDHOC adds an explicit method type and expands the message authentication coverage to additional elements such as algorithms, auxiliary data, and previous messages. This protects against an attacker replaying messages or injecting messages from another session.</t>

<t>EDHOC also adds negotiation of connection identifiers and downgrade protected negotiation of cryptographic parameters, i.e. an attacker cannot affect the negotiated parameters. A single session of EDHOC does not include negotiation of cipher suites, but it enables the Responder to verify that the selected cipher suite is the most preferred cipher suite by the Initiator which is supported by both the Initiator and the Responder.</t>

<t>As required by <xref target="RFC7258"/>, IETF protocols need to mitigate pervasive monitoring when possible. One way to mitigate pervasive monitoring is to use a key exchange that provides perfect forward secrecy. EDHOC therefore only supports methods with perfect forward secrecy. To limit the effect of breaches, it is important to limit the use of symmetrical group keys for bootstrapping. EDHOC therefore strives to make the additional cost of using raw public keys and self-signed certificates as small as possible. Raw public keys and self-signed certificates are not a replacement for a public key infrastructure, but SHOULD be used instead of symmetrical group keys for bootstrapping.</t>

<t>Compromise of the long-term keys (private signature or static DH keys) does not compromise the security of completed EDHOC exchanges. Compromising the private authentication keys of one party lets an active attacker impersonate that compromised party in EDHOC exchanges with other parties, but does not let the attacker impersonate other parties in EDHOC exchanges with the compromised party. Compromise of the long-term keys does not enable a passive attacker to compromise future session keys. Compromise of the HDKF input parameters (ECDH shared secret) leads to compromise of all session keys derived from that compromised shared secret. Compromise of one session key does not compromise other session keys.</t>

<t>If supported by the device, it is RECOMMENDED that at least the long-term private keys is stored in a Trusted Execution Environment (TEE) and that sensitive operations using these keys are performed inside the TEE. To achieve even higher security additional operation such as ephemeral key generation, all computations of shared secrets, and storage of the PRK keys can be done inside the TEE. Optimally, the whole EDHOC protocol can be implemented inside the TEE. Typically an adversary with physical access to a device can be assumed to gain access to all information outside of the TEE, but none of the information inside the TEE.</t>

<t>Key compromise impersonation (KCI): In EDHOC authenticated with signature keys, EDHOC provides KCI protection against an attacker having access to the long term key or the ephemeral secret key. With static Diffie-Hellman key authentication, KCI protection would be provided against an attacker having access to the long-term Diffie-Hellman key, but not to an attacker having access to the ephemeral secret key. Note that the term KCI has typically been used for compromise of long-term keys, and that an attacker with access to the ephemeral secret key can only attack that specific protocol run.</t>

<t>Repudiation: In EDHOC authenticated with signature keys, the Initiator could theoretically prove that the Responder performed a run of the protocol by presenting the private ephemeral key, and vice versa. Note that storing the private ephemeral keys violates the protocol requirements. With static Diffie-Hellman key authentication, both parties can always deny having participated in the protocol.</t>

</section>
<section anchor="cryptographic-considerations" title="Cryptographic Considerations">
<t>The security of the SIGMA protocol requires the MAC to be bound to the identity of the signer. Hence the message authenticating functionality of the authenticated encryption in EDHOC is critical: authenticated encryption MUST NOT be replaced by plain encryption only, even if authentication is provided at another level or through a different mechanism. EDHOC implements SIGMA-I using the same Sign-then-MAC approach as TLS 1.3.</t>

<t>To reduce message overhead EDHOC does not use explicit nonces and instead rely on the ephemeral public keys to provide randomness to each session. A good amount of randomness is important for the key generation, to provide liveness, and to protect against interleaving attacks. For this reason, the ephemeral keys MUST NOT be reused, and both parties SHALL generate fresh random ephemeral key pairs.</t>

<t>As discussed the <xref target="SIGMA"/>, the encryption of message_2 does only need to protect against passive attacker as active attackers can always get the Responders identity by sending their own message_1. EDHOC uses the Expand function (typically HKDF-Expand) as a binary additive stream cipher. HKDF-Expand provides better confidentiality than AES-CTR but is not often used as it is slow on long messages, and most applications require both IND-CCA confidentiality as well as integrity protection. For the encryption of message_2, any speed difference is negligible, IND-CCA does not increase security, and integrity is provided by the inner MAC (and signature depending on method).</t>

<t>The choice of key length used in the different algorithms needs to be harmonized, so that a sufficient security level is maintained for certificates, EDHOC, and the protection of application data. The Initiator and the Responder should enforce a minimum security level.</t>

<t>The data rates in many IoT deployments are very limited. Given that the application keys are protected as well as the long-term authentication keys they can often be used for years or even decades before the cryptographic limits are reached. If the application keys established through EDHOC need to be renewed, the communicating parties can derive application keys with other labels or run EDHOC again.</t>

</section>
<section anchor="cipher-suites" title="Cipher Suites">

<t>For many constrained IoT devices it is problematic to support more than one cipher suite. Existing devices can be expected to support either ECDSA or EdDSA. To enable as much interoperability as we can reasonably achieve, less constrained devices SHOULD implement both cipher suite 0 (AES-CCM-16-64-128, SHA-256, X25519, EdDSA, Ed25519, AES-CCM-16-64-128, SHA-256) and cipher suite 2 (AES-CCM-16-64-128, SHA-256, P-256, ES256, P-256, AES-CCM-16-64-128, SHA-256). Constrained endpoints SHOULD implement cipher suite 0 or cipher suite 2. Implementations only need to implement the algorithms needed for their supported methods.</t>

<t>The HMAC algorithm HMAC 256/64 (HMAC w/ SHA-256 truncated to 64 bits) SHALL NOT be supported for use in EDHOC.</t>

</section>
<section anchor="unprotected-data" title="Unprotected Data">

<t>The Initiator and the Responder must make sure that unprotected data and metadata do not reveal any sensitive information. This also applies for encrypted data sent to an unauthenticated party. In particular, it applies to AD_1, ID_CRED_R, AD_2, and ERR_MSG. Using the same AD_1 in several EDHOC sessions allows passive eavesdroppers to correlate the different sessions. Another consideration is that the list of supported cipher suites may potentially be used to identify the application.</t>

<t>The Initiator and the Responder must also make sure that unauthenticated data does not trigger any harmful actions. In particular, this applies to AD_1 and ERR_MSG.</t>

</section>
<section anchor="denial-of-service" title="Denial-of-Service">

<t>EDHOC itself does not provide countermeasures against Denial-of-Service attacks. 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 such as the Echo option in CoAP <xref target="I-D.ietf-core-echo-request-tag"/> that forces the initiator to demonstrate reachability at its apparent network address.</t>

</section>
<section anchor="implementation-considerations" title="Implementation Considerations">

<t>The availability of a secure pseudorandom number generator and truly random seeds are essential for the security of EDHOC. If no true random number generator is available, a truly random seed must be provided from an external source. As each pseudorandom number must only be used once, an implementation need to get a new truly random seed after reboot, or continuously store state in nonvolatile memory, see (<xref target="RFC8613"/>, Appendix B.1.1) for issues and solution approaches for writing to nonvolatile memory. If ECDSA is supported, “deterministic ECDSA” as specified in <xref target="RFC6979"/> is RECOMMENDED.</t>

<t>The referenced processing instructions in <xref target="SP-800-56A"/> must be complied with, including deleting the intermediate computed values along with any ephemeral ECDH secrets after the key derivation is completed. The ECDH shared secret, keys, and IVs MUST be secret. Implementations should provide countermeasures to side-channel attacks such as timing attacks. Depending on the selected curve, the parties should perform various validations of each other’s public keys, see e.g. Section 5 of <xref target="SP-800-56A"/>.</t>

<t>The Initiator and the Responder are responsible for verifying the integrity of certificates. The selection of trusted CAs should be done very carefully and certificate revocation should be supported. The private authentication keys MUST be kept secret.</t>

<t>The Initiator and the Responder are allowed to select the connection identifiers C_I and C_R, respectively, for the other party to use in the ongoing EDHOC protocol as well as in a subsequent application protocol (e.g. OSCORE <xref target="RFC8613"/>). The choice of connection identifier is not security critical in EDHOC but intended to simplify the retrieval of the right security context in combination with using short identifiers. If the wrong connection identifier of the other party is used in a protocol message it will result in the receiving party not being able to retrieve a security context (which will terminate the protocol) or retrieve the wrong security context (which also terminates the protocol as the message cannot be verified).</t>

<t>The Responder MUST finish the verification step of message_3 before passing AD_3 to the application.</t>

<t>If two nodes unintentionally initiate two simultaneous EDHOC message exchanges with each other even if they only want to complete a single EDHOC message exchange, they MAY terminate the exchange with the lexicographically smallest G_X. If the two G_X values are equal, the received message_1 MUST be discarded to mitigate reflection attacks. Note that in the case of two simultaneous EDHOC exchanges where the nodes only complete one and where the nodes have different preferred cipher suites, an attacker can affect which of the two nodes’ preferred cipher suites will be used by blocking the other exchange.</t>

</section>
<section anchor="other-documents-referencing-edhoc" title="Other Documents Referencing EDHOC">

<t>EDHOC has been analyzed in several other documents. A formal verification of EDHOC was done in <xref target="SSR18"/>, an analysis of EDHOC for certificate enrollment was done in <xref target="Kron18"/>, the use of EDHOC in LoRaWAN is analyzed in <xref target="LoRa1"/> and <xref target="LoRa2"/>, the use of EDHOC in IoT bootstrapping is analyzed in <xref target="Perez18"/>, and the use of EDHOC in 6TiSCH is described in <xref target="I-D.ietf-6tisch-dtsecurity-zerotouch-join"/>.</t>

</section>
</section>
<section anchor="iana" title="IANA Considerations">

<section anchor="suites-registry" title="EDHOC Cipher Suites Registry">

<t>IANA has created a new registry titled “EDHOC Cipher Suites” under the new heading “EDHOC”. The registration procedure is “Expert Review”. The columns of the registry are Value, Array, Description, and Reference, where Value is an integer and the other columns are text strings. The initial contents of the registry are:</t>

<figure><artwork><![CDATA[
Value: -24
Algorithms: N/A
Desc: Reserved for Private Use
Reference: [[this document]]
]]></artwork></figure>

<figure><artwork><![CDATA[
Value: -23
Algorithms: N/A
Desc: Reserved for Private Use
Reference: [[this document]]
]]></artwork></figure>

<figure><artwork><![CDATA[
Value: -22
Algorithms: N/A
Desc: Reserved for Private Use
Reference: [[this document]]
]]></artwork></figure>

<figure><artwork><![CDATA[
Value: -21
Algorithms: N/A
Desc: Reserved for Private Use
Reference: [[this document]]
]]></artwork></figure>

<figure><artwork><![CDATA[
Value: 0
Array: 10, 5, 4, -8, 6, 10, 5
Desc: AES-CCM-16-64-128, SHA-256, X25519, EdDSA, Ed25519,
      AES-CCM-16-64-128, SHA-256
Reference: [[this document]]
]]></artwork></figure>

<figure><artwork><![CDATA[
Value: 1
Array: 30, 5, 4, -8, 6, 10, 5
Desc: AES-CCM-16-128-128, SHA-256, X25519, EdDSA, Ed25519,
      AES-CCM-16-64-128, SHA-256
Reference: [[this document]]
]]></artwork></figure>

<figure><artwork><![CDATA[
Value: 2
Array: 10, 5, 1, -7, 1, 10, 5
Desc: AES-CCM-16-64-128, SHA-256, P-256, ES256, P-256,
      AES-CCM-16-64-128, SHA-256
Reference: [[this document]]
]]></artwork></figure>

<figure><artwork><![CDATA[
Value: 3
Array: 30, 5, 1, -7, 1, 10, 5
Desc: AES-CCM-16-128-128, SHA-256, P-256, ES256, P-256,
      AES-CCM-16-64-128, SHA-256
Reference: [[this document]]
]]></artwork></figure>

<figure><artwork><![CDATA[
Value: 4
Array: 1, -16, 4, -7, 1, 1, -16
Desc: A128GCM, SHA-256, X25519, ES256, P-256,
      A128GCM, SHA-256
Reference: [[this document]]
]]></artwork></figure>

<figure><artwork><![CDATA[
Value: 5
Array: 3, -43, 2, -35, 2, 3, -43 
Desc: A256GCM, SHA-384, P-384, ES384, P-384,
      A256GCM, SHA-384
Reference: [[this document]]
]]></artwork></figure>

</section>
<section anchor="method-types" title="EDHOC Method Type Registry">

<t>IANA has created a new registry titled “EDHOC Method Type” under the new heading “EDHOC”. The registration procedure is “Expert Review”. The columns of the registry are Value, Description, and Reference, where Value is an integer and the other columns are text strings. The initial contents of the registry is shown in <xref target="fig-method-types"/>.</t>

</section>
<section anchor="the-well-known-uri-registry" title="The Well-Known URI Registry">

<t>IANA has added the well-known URI ‘edhoc’ to the Well-Known URIs registry.</t>

<t><list style="symbols">
  <t>URI suffix: edhoc</t>
  <t>Change controller: IETF</t>
  <t>Specification document(s): [[this document]]</t>
  <t>Related information: None</t>
</list></t>

</section>
<section anchor="media-types-registry" title="Media Types Registry">

<t>IANA has added the media type ‘application/edhoc’ to the Media Types registry.</t>

<t><list style="symbols">
  <t>Type name: application</t>
  <t>Subtype name: edhoc</t>
  <t>Required parameters: N/A</t>
  <t>Optional parameters: N/A</t>
  <t>Encoding considerations: binary</t>
  <t>Security considerations: See Section 7 of this document.</t>
  <t>Interoperability considerations: N/A</t>
  <t>Published specification: [[this document]] (this document)</t>
  <t>Applications that use this media type: To be identified</t>
  <t>Fragment identifier considerations: N/A</t>
  <t>Additional information:  <list style="symbols">
      <t>Magic number(s): N/A</t>
      <t>File extension(s): N/A</t>
      <t>Macintosh file type code(s): N/A</t>
    </list></t>
  <t>Person &amp; email address to contact for further information: See “Authors’ Addresses” section.</t>
  <t>Intended usage: COMMON</t>
  <t>Restrictions on usage: N/A</t>
  <t>Author: See “Authors’ Addresses” section.</t>
  <t>Change Controller: IESG</t>
</list></t>

</section>
<section anchor="coap-content-formats-registry" title="CoAP Content-Formats Registry">

<t>IANA has added the media type ‘application/edhoc’ to the CoAP Content-Formats registry.</t>

<t><list style="symbols">
  <t>Media Type: application/edhoc</t>
  <t>Encoding:</t>
  <t>ID: TBD42</t>
  <t>Reference: [[this document]]</t>
</list></t>

</section>
<section anchor="expert-review-instructions" title="Expert Review Instructions">

<t>The IANA Registries established in this document is defined as “Expert Review”. This section gives some general guidelines for what the experts should be looking for, but they are being designated as experts for a reason so they should be given substantial latitude.</t>

<t>Expert reviewers should take into consideration the following points:</t>

<t><list style="symbols">
  <t>Clarity and correctness of registrations. Experts are expected to check the clarity of purpose and use of the requested entries. Expert needs to make sure the values of algorithms are taken from the right registry, when that’s required. Expert should consider requesting an opinion on the correctness of registered parameters from relevant IETF working groups. Encodings that do not meet these objective of clarity and completeness should not be registered.</t>
  <t>Experts should take into account the expected usage of fields when approving point assignment. The length of the encoded value should be weighed against how many code points of that length are left, the size of device it will be used on, and the number of code points left that encode to that size.</t>
  <t>Specifications are recommended. When specifications are not provided, the description provided needs to have sufficient information to verify the points above.</t>
</list></t>

</section>
</section>


  </middle>

  <back>

    <references title='Normative References'>

&I-D.ietf-cose-x509;
&I-D.ietf-core-echo-request-tag;
&I-D.ietf-lake-reqs;
&RFC2119;
&RFC5116;
&RFC5869;
&RFC6090;
&RFC6979;
&RFC7252;
&RFC7748;
&RFC8949;
&RFC7959;
&RFC8152;
&RFC8174;
&RFC8376;
&RFC8610;
&RFC8613;
&RFC8724;
&RFC8742;


    </references>

    <references title='Informative References'>

<reference anchor="SP-800-56A" target="https://doi.org/10.6028/NIST.SP.800-56Ar3">
  <front>
    <title>Recommendation for Pair-Wise Key-Establishment Schemes Using Discrete Logarithm Cryptography</title>
    <author initials="E." surname="Barker">
      <organization></organization>
    </author>
    <author initials="L." surname="Chen">
      <organization></organization>
    </author>
    <author initials="A." surname="Roginsky">
      <organization></organization>
    </author>
    <author initials="A." surname="Vassilev">
      <organization></organization>
    </author>
    <author initials="R." surname="Davis">
      <organization></organization>
    </author>
    <date year="2018" month="April"/>
  </front>
  <seriesInfo name="NIST" value="Special Publication 800-56A Revision 3"/>
</reference>
<reference anchor="SIGMA" target="http://webee.technion.ac.il/~hugo/sigma-pdf.pdf">
  <front>
    <title>SIGMA - The 'SIGn-and-MAc' Approach to Authenticated Diffie-Hellman and Its Use in the IKE-Protocols (Long version)</title>
    <author initials="H." surname="Krawczyk">
      <organization></organization>
    </author>
    <date year="2003" month="June"/>
  </front>
</reference>
<reference anchor="CNSA" target="https://apps.nsa.gov/iaarchive/programs/iad-initiatives/cnsa-suite.cfm">
  <front>
    <title>Commercial National Security Algorithm Suite</title>
    <author initials="." surname="(Placeholder)">
      <organization></organization>
    </author>
    <date year="2015" month="August"/>
  </front>
</reference>
&I-D.ietf-6tisch-dtsecurity-zerotouch-join;
&I-D.ietf-ace-oauth-authz;
&I-D.ietf-core-resource-directory;
&I-D.ietf-lwig-security-protocol-comparison;
&I-D.ietf-tls-dtls13;
&I-D.selander-ace-ake-authz;
&I-D.palombini-core-oscore-edhoc;
&I-D.mattsson-cose-cbor-cert-compress;
&RFC7228;
&RFC7258;
&RFC7296;
&RFC8446;
<reference anchor="LoRa1" target="https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6021899/pdf/sensors-18-01833.pdf">
  <front>
    <title>Enhancing LoRaWAN Security through a Lightweight and Authenticated Key Management Approach</title>
    <author initials="R." surname="Sanchez-Iborra">
      <organization></organization>
    </author>
    <author initials="J." surname="Sánchez-Gómez">
      <organization></organization>
    </author>
    <author initials="S." surname="Pérez">
      <organization></organization>
    </author>
    <author initials="P.J." surname="Fernández">
      <organization></organization>
    </author>
    <author initials="J." surname="Santa">
      <organization></organization>
    </author>
    <author initials="J.L." surname="Hernández-Ramos">
      <organization></organization>
    </author>
    <author initials="A.F." surname="Skarmeta">
      <organization></organization>
    </author>
    <date year="2018" month="June"/>
  </front>
</reference>
<reference anchor="LoRa2" target="https://ants.inf.um.es/~josesanta/doc/GIoTS1.pdf">
  <front>
    <title>Internet Access for LoRaWAN Devices Considering Security Issues</title>
    <author initials="R." surname="Sanchez-Iborra">
      <organization></organization>
    </author>
    <author initials="J." surname="Sánchez-Gómez">
      <organization></organization>
    </author>
    <author initials="S." surname="Pérez">
      <organization></organization>
    </author>
    <author initials="P.J." surname="Fernández">
      <organization></organization>
    </author>
    <author initials="J." surname="Santa">
      <organization></organization>
    </author>
    <author initials="J.L." surname="Hernández-Ramos">
      <organization></organization>
    </author>
    <author initials="A.F." surname="Skarmeta">
      <organization></organization>
    </author>
    <date year="2018" month="June"/>
  </front>
</reference>
<reference anchor="Kron18" target="https://www.nada.kth.se/~ann/exjobb/alexandros_krontiris.pdf">
  <front>
    <title>Evaluation of Certificate Enrollment over Application Layer Security</title>
    <author initials="A." surname="Krontiris">
      <organization></organization>
    </author>
    <date year="2018" month="May"/>
  </front>
</reference>
<reference anchor="SSR18" target="https://www.springerprofessional.de/en/formal-verification-of-ephemeral-diffie-hellman-over-cose-edhoc/16284348">
  <front>
    <title>Formal Verification of Ephemeral Diffie-Hellman Over COSE (EDHOC)</title>
    <author initials="A." surname="Bruni">
      <organization></organization>
    </author>
    <author initials="T." surname="Sahl Jørgensen">
      <organization></organization>
    </author>
    <author initials="T." surname="Grønbech Petersen">
      <organization></organization>
    </author>
    <author initials="C." surname="Schürmann">
      <organization></organization>
    </author>
    <date year="2018" month="November"/>
  </front>
</reference>
<reference anchor="Perez18" target="http://www.anastacia-h2020.eu/publications/Architecture_of_security_association_establishment_based_on_bootstrapping_technologies_for_enabling_critical_IoT_infrastructures.pdf">
  <front>
    <title>Architecture of security association establishment based on bootstrapping technologies for enabling critical IoT K</title>
    <author initials="S." surname="Pérez">
      <organization></organization>
    </author>
    <author initials="D." surname="Garcia-Carrillo">
      <organization></organization>
    </author>
    <author initials="R." surname="Marín-López">
      <organization></organization>
    </author>
    <author initials="J." surname="Hernández-Ramos">
      <organization></organization>
    </author>
    <author initials="R." surname="Marín-Pérez">
      <organization></organization>
    </author>
    <author initials="A." surname="Skarmeta">
      <organization></organization>
    </author>
    <date year="2018" month="October"/>
  </front>
</reference>
<reference anchor="CborMe" target="http://cbor.me/">
  <front>
    <title>CBOR Playground</title>
    <author initials="C." surname="Bormann">
      <organization></organization>
    </author>
    <date year="2018" month="May"/>
  </front>
</reference>


    </references>


<section anchor="CBORandCOSE" title="Use of CBOR, CDDL and COSE in EDHOC">

<t>This Appendix is intended to simplify for implementors not familiar with CBOR <xref target="RFC8949"/>, CDDL <xref target="RFC8610"/>, COSE <xref target="RFC8152"/>, and HKDF <xref target="RFC5869"/>.</t>

<section anchor="CBOR" title="CBOR and CDDL">

<t>The Concise Binary Object Representation (CBOR) <xref target="RFC8949"/> is a data format designed for small code size and small message size. CBOR builds on the JSON data model but extends it by e.g. encoding binary data directly without base64 conversion. In addition to the binary CBOR encoding, CBOR also has a diagnostic notation that is readable and editable by humans. The Concise Data Definition Language (CDDL) <xref target="RFC8610"/> provides a way to express structures for protocol messages and APIs that use CBOR. <xref target="RFC8610"/> also extends the diagnostic notation.</t>

<t>CBOR data items are encoded to or decoded from byte strings using a type-length-value encoding scheme, where the three highest order bits of the initial byte contain information about the major type. CBOR supports several different types of data items, in addition to integers (int, uint), simple values (e.g. null), byte strings (bstr), and text strings (tstr), CBOR also supports arrays []  of data items, maps {} of pairs of data items, and sequences <xref target="RFC8742"/> of data items. Some examples are given below. For a complete specification and more examples, see <xref target="RFC8949"/> and <xref target="RFC8610"/>. We recommend implementors to get used to CBOR by using the CBOR playground <xref target="CborMe"/>.</t>

<figure><artwork align="center"><![CDATA[
Diagnostic          Encoded              Type
------------------------------------------------------------------
1                   0x01                 unsigned integer    
24                  0x1818               unsigned integer
-24                 0x37                 negative integer
-25                 0x3818               negative integer 
null                0xf6                 simple value 
h'12cd'             0x4212cd             byte string
'12cd'              0x4431326364         byte string
"12cd"              0x6431326364         text string
{ 4 : h'cd' }       0xa10441cd           map                 
<< 1, 2, null >>    0x430102f6           byte string
[ 1, 2, null ]      0x830102f6           array      
( 1, 2, null )      0x0102f6             sequence
1, 2, null          0x0102f6             sequence
------------------------------------------------------------------
]]></artwork></figure>

</section>
<section anchor="COSE" title="COSE">

<t>CBOR Object Signing and Encryption (COSE) <xref target="RFC8152"/> describes how to create and process signatures, message authentication codes, and encryption using CBOR. COSE builds on JOSE, but is adapted to allow more efficient processing in constrained devices. EDHOC makes use of COSE_Key, COSE_Encrypt0, and COSE_Sign1 objects.</t>

</section>
</section>
<section anchor="vectors" title="Test Vectors">

<t>This appendix provides detailed test vectors based on v-02 of this specification, to ease implementation and ensure interoperability. In addition to hexadecimal, all CBOR data items and sequences are given in CBOR diagnostic notation. The test vectors use the default mapping to CoAP where the Initiator acts as CoAP client (this means that corr = 1).</t>

<t>A more extensive test vector suite covering more combinations of authentication method used between Initiator and Responder and related code to generate them can be found at https://github.com/lake-wg/edhoc/tree/master/test-vectors .</t>

<section anchor="test-vectors-for-edhoc-authenticated-with-signature-keys-x5t" title="Test Vectors for EDHOC Authenticated with Signature Keys (x5t)">

<t>EDHOC with signature authentication and X.509 certificates is used. In this test vector, the hash value ‘x5t’ is used to identify the certificate.</t>

<figure><artwork><![CDATA[
method (Signature Authentication)
0
]]></artwork></figure>

<t>CoAP is used as transport and the Initiator acts as CoAP client:</t>

<figure><artwork><![CDATA[
corr (the Initiator can correlate message_1 and message_2)
1
]]></artwork></figure>

<t>From there, METHOD_CORR has the following value:</t>

<figure><artwork><![CDATA[
METHOD_CORR (4 * method + corr) (int)
1
]]></artwork></figure>

<t>No unprotected opaque auxiliary data is sent in the message exchanges.</t>

<t>The list of supported cipher suites of the Initiator in order of preference is the following:</t>

<figure><artwork><![CDATA[
Supported Cipher Suites (4 bytes)
00 01 02 03
]]></artwork></figure>

<t>The cipher suite selected by the Initiator is the most preferred:</t>

<figure><artwork><![CDATA[
Selected Cipher Suite (int)
0
]]></artwork></figure>

<t>Cipher suite 0 is supported by both the Initiator and the Responder, see <xref target="cipher-suites"/>.</t>

<section anchor="message1" title="Message_1">

<figure><artwork><![CDATA[
X (Initiator's ephemeral private key) (32 bytes)
8f 78 1a 09 53 72 f8 5b 6d 9f 61 09 ae 42 26 11 73 4d 7d bf a0 06 9a 2d 
f2 93 5b b2 e0 53 bf 35
]]></artwork></figure>

<figure><artwork><![CDATA[
G_X (Initiator's ephemeral public key) (32 bytes)
89 8f f7 9a 02 06 7a 16 ea 1e cc b9 0f a5 22 46 f5 aa 4d d6 ec 07 6b ba 
02 59 d9 04 b7 ec 8b 0c
]]></artwork></figure>

<t>The Initiator chooses a connection identifier C_I:</t>

<figure><artwork><![CDATA[
Connection identifier chosen by Initiator (0 bytes)

]]></artwork></figure>

<t>Since no unprotected opaque auxiliary data is sent in the message exchanges:</t>

<figure><artwork><![CDATA[
AD_1 (0 bytes)
]]></artwork></figure>

<t>Since the list of supported cipher suites needs to contain the selected cipher suite, the initiator truncates the list of supported cipher suites to one cipher suite only, 00.</t>

<t>Because one single selected cipher suite is conveyed, it is encoded as an int instead of an array:</t>

<figure><artwork><![CDATA[
SUITES_I (int)
0
]]></artwork></figure>

<t>With SUITES_I = 0, message_1 is constructed, as the CBOR Sequence of the CBOR data items above.</t>

<figure><artwork><![CDATA[
message_1 =
(
  1,
  0,
  h'898ff79a02067a16ea1eccb90fa52246f5aa4dd6ec076bba0259d904b7ec8b0c',
  h''
)
]]></artwork></figure>

<figure><artwork><![CDATA[
message_1 (CBOR Sequence) (37 bytes)
01 00 58 20 89 8f f7 9a 02 06 7a 16 ea 1e cc b9 0f a5 22 46 f5 aa 4d d6 
ec 07 6b ba 02 59 d9 04 b7 ec 8b 0c 40 
]]></artwork></figure>

</section>
<section anchor="message2" title="Message_2">

<t>Since METHOD_CORR mod 4 equals 1, C_I is omitted from data_2.</t>

<figure><artwork><![CDATA[
Y (Responder's ephemeral private key) (32 bytes)
fd 8c d8 77 c9 ea 38 6e 6a f3 4f f7 e6 06 c4 b6 4c a8 31 c8 ba 33 13 4f 
d4 cd 71 67 ca ba ec da
]]></artwork></figure>

<figure><artwork><![CDATA[
G_Y (Responder's ephemeral public key) (32 bytes)
71 a3 d5 99 c2 1d a1 89 02 a1 ae a8 10 b2 b6 38 2c cd 8d 5f 9b f0 19 52 
81 75 4c 5e bc af 30 1e 
]]></artwork></figure>

<t>From G_X and Y or from G_Y and X the ECDH shared secret is computed:</t>

<figure><artwork><![CDATA[
G_XY (ECDH shared secret) (32 bytes)
2b b7 fa 6e 13 5b c3 35 d0 22 d6 34 cb fb 14 b3 f5 82 f3 e2 e3 af b2 b3 
15 04 91 49 5c 61 78 2b 
]]></artwork></figure>

<t>The key and nonce for calculating the ‘ciphertext’ are calculated as follows, as specified in <xref target="key-der"/>.</t>

<t>HKDF SHA-256 is the HKDF used (as defined by cipher suite 0).</t>

<t>PRK_2e = HMAC-SHA-256(salt, G_XY)</t>

<t>Salt is the empty byte string.</t>

<figure><artwork><![CDATA[
salt (0 bytes)
]]></artwork></figure>

<t>From there, PRK_2e is computed:</t>

<figure><artwork><![CDATA[
PRK_2e (32 bytes)
ec 62 92 a0 67 f1 37 fc 7f 59 62 9d 22 6f bf c4 e0 68 89 49 f6 62 a9 7f 
d8 2f be b7 99 71 39 4a
]]></artwork></figure>

<figure><artwork><![CDATA[
SK_R (Responders's private authentication key) (32 bytes)
df 69 27 4d 71 32 96 e2 46 30 63 65 37 2b 46 83 ce d5 38 1b fc ad cd 44 
0a 24 c3 91 d2 fe db 94
]]></artwork></figure>

<t>Since neither the Initiator nor the Responder authenticates with a static Diffie-Hellman key, PRK_3e2m = PRK_2e</t>

<figure><artwork><![CDATA[
PRK_3e2m (32 bytes)
ec 62 92 a0 67 f1 37 fc 7f 59 62 9d 22 6f bf c4 e0 68 89 49 f6 62 a9 7f 
d8 2f be b7 99 71 39 4a 
]]></artwork></figure>

<t>The Responder chooses a connection identifier C_R.</t>

<figure><artwork><![CDATA[
Connection identifier chosen by Responder (1 byte)
2b
]]></artwork></figure>

<t>Note that since C_R is a byte string of length one, it is encoded as the corresponding integer subtracted by 24 (see bstr_identifier in <xref target="bstr_id"/>). Thus 0x2b = 43, 43 - 24 = 19, and 19 in CBOR encoding is equal to 0x13.</t>

<figure><artwork><![CDATA[
C_R (1 byte)
13
]]></artwork></figure>

<t>Data_2 is constructed, as the CBOR Sequence of G_Y and C_R.</t>

<figure><artwork><![CDATA[
data_2 =
(
  h'71a3d599c21da18902a1aea810b2b6382ccd8d5f9bf0195281754c5ebcaf301e',
  19
)
]]></artwork></figure>

<figure><artwork><![CDATA[
data_2 (CBOR Sequence) (35 bytes)
58 20 71 a3 d5 99 c2 1d a1 89 02 a1 ae a8 10 b2 b6 38 2c cd 8d 5f 9b f0 
19 52 81 75 4c 5e bc af 30 1e 13
]]></artwork></figure>

<t>From data_2 and message_1, compute the input to the transcript hash TH_2 = H( message_1, data_2 ), as a CBOR Sequence of these 2 data items.</t>

<figure><artwork><![CDATA[
Input to calculate TH_2 (CBOR Sequence) (72 bytes)
01 00 58 20 89 8f f7 9a 02 06 7a 16 ea 1e cc b9 0f a5 22 46 f5 aa 4d d6 
ec 07 6b ba 02 59 d9 04 b7 ec 8b 0c 40 58 20 71 a3 d5 99 c2 1d a1 89 02 
a1 ae a8 10 b2 b6 38 2c cd 8d 5f 9b f0 19 52 81 75 4c 5e bc af 30 1e 13 
]]></artwork></figure>

<t>And from there, compute the transcript hash TH_2 = SHA-256( message_1, data_2 )</t>

<figure><artwork><![CDATA[
TH_2 (32 bytes)
b0 dc 6c 1b a0 ba e6 e2 88 86 10 fa 0b 27 bf c5 2e 31 1a 47 b9 ca fb 60 
9d e4 f6 a1 76 0d 6c f7
]]></artwork></figure>

<t>The Responder’s subject name is the empty string:</t>

<figure><artwork><![CDATA[
Responders's subject name (text string)
""
]]></artwork></figure>

<t>CRED_R is the certificate (X509_R) encoded as a CBOR byte string:
(Note that in this version of the test vectors CRED_R is not a real certificate, but instead a string of random bytes is used)</t>

<figure><artwork><![CDATA[
X509_R (110 bytes)
47 62 4d c9 cd c6 82 4b 2a 4c 52 e9 5e c9 d6 b0 53 4b 71 c2 b4 9e 4b f9
03 15 00 ce e6 86 99 79 c2 97 bb 5a 8b 38 1e 98 db 71 41 08 41 5e 5c 50
db 78 97 4c 27 15 79 b0 16 33 a3 ef 62 71 be 5c 22 5e b2 8f 9c f6 18 0b
5a 6a f3 1e 80 20 9a 08 5c fb f9 5f 3f dc f9 b1 8b 69 3d 6c 0e 0d 0f fb 
8e 3f 9a 32 a5 08 59 ec d0 bf cf f2 c2 18
]]></artwork></figure>

<figure><artwork><![CDATA[
CRED_R (112 bytes)
58 6e 47 62 4d c9 cd c6 82 4b 2a 4c 52 e9 5e c9 d6 b0 53 4b 71 c2 b4 9e 
4b f9 03 15 00 ce e6 86 99 79 c2 97 bb 5a 8b 38 1e 98 db 71 41 08 41 5e 
5c 50 db 78 97 4c 27 15 79 b0 16 33 a3 ef 62 71 be 5c 22 5e b2 8f 9c f6 
18 0b 5a 6a f3 1e 80 20 9a 08 5c fb f9 5f 3f dc f9 b1 8b 69 3d 6c 0e 0d 
0f fb 8e 3f 9a 32 a5 08 59 ec d0 bf cf f2 c2 18
]]></artwork></figure>

<t>And because certificates are identified by a hash value with the ‘x5t’ parameter, ID_CRED_R is the following:</t>

<t>ID_CRED_R = { 34 : COSE_CertHash }. In this example, the hash algorithm used is SHA-2 256-bit with hash truncated to 64-bits (value -15). The hash value is calculated over the certificate X509_R.</t>

<figure><artwork><![CDATA[
ID_CRED_R =
{
  34: [-15, h'FC79990F2431A3F5']
}
]]></artwork></figure>

<figure><artwork><![CDATA[
ID_CRED_R (14 bytes)
a1 18 22 82 2e 48 fc 79 99 0f 24 31 a3 f5 
]]></artwork></figure>

<t>Since no unprotected opaque auxiliary data is sent in the message exchanges:</t>

<figure><artwork><![CDATA[
AD_2  (0 bytes)
]]></artwork></figure>

<t>The Plaintext is defined as the empty string:</t>

<figure><artwork><![CDATA[
P_2m (0 bytes)
]]></artwork></figure>

<t>The Enc_structure is defined as follows: [ “Encrypt0”, « ID_CRED_R », « TH_2, CRED_R » ]</t>

<figure><artwork><![CDATA[
A_2m =
[
  "Encrypt0", 
  h'A11822822E48FC79990F2431A3F5', 
  h'5820B0DC6C1BA0BAE6E2888610FA0B27BFC52E311A47B9CAFB609DE4F6A1760D6CF
  7586E47624DC9CDC6824B2A4C52E95EC9D6B0534B71C2B49E4BF9031500CEE6869979
  C297BB5A8B381E98DB714108415E5C50DB78974C271579B01633A3EF6271BE5C225EB
  28F9CF6180B5A6AF31E80209A085CFBF95F3FDCF9B18B693D6C0E0D0FFB8E3F9A32A5
  0859ECD0BFCFF2C218'
  ]
]]></artwork></figure>

<t>Which encodes to the following byte string to be used as Additional Authenticated Data:</t>

<figure><artwork><![CDATA[
A_2m (CBOR-encoded) (173 bytes)
83 68 45 6e 63 72 79 70 74 30 4e a1 18 22 82 2e 48 fc 79 99 0f 24 31 a3 
f5 58 92 58 20 b0 dc 6c 1b a0 ba e6 e2 88 86 10 fa 0b 27 bf c5 2e 31 1a 
47 b9 ca fb 60 9d e4 f6 a1 76 0d 6c f7 58 6e 47 62 4d c9 cd c6 82 4b 2a 
4c 52 e9 5e c9 d6 b0 53 4b 71 c2 b4 9e 4b f9 03 15 00 ce e6 86 99 79 c2 
97 bb 5a 8b 38 1e 98 db 71 41 08 41 5e 5c 50 db 78 97 4c 27 15 79 b0 16 
33 a3 ef 62 71 be 5c 22 5e b2 8f 9c f6 18 0b 5a 6a f3 1e 80 20 9a 08 5c 
fb f9 5f 3f dc f9 b1 8b 69 3d 6c 0e 0d 0f fb 8e 3f 9a 32 a5 08 59 ec d0 
bf cf f2 c2 18 
]]></artwork></figure>

<t>info for K_2m is defined as follows:</t>

<figure><artwork><![CDATA[
info for K_2m =
[
  10,
  h'B0DC6C1BA0BAE6E2888610FA0B27BFC52E311A47B9CAFB609DE4F6A1760D6CF7', 
  "K_2m",
  16
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for K_2m (CBOR-encoded) (42 bytes)
84 0a 58 20 b0 dc 6c 1b a0 ba e6 e2 88 86 10 fa 0b 27 bf c5 2e 31 1a 47 
b9 ca fb 60 9d e4 f6 a1 76 0d 6c f7 64 4b 5f 32 6d 10 
]]></artwork></figure>

<t>From these parameters, K_2m is computed. Key K_2m is the output of HKDF-Expand(PRK_3e2m, info, L), where L is the length of K_2m, so 16 bytes.</t>

<figure><artwork><![CDATA[
K_2m (16 bytes)
b7 48 6a 94 a3 6c f6 9e 67 3f c4 57 55 ee 6b 95
]]></artwork></figure>

<t>info for IV_2m is defined as follows:</t>

<figure><artwork><![CDATA[
info for IV_2m =
[
  10,
  h'B0DC6C1BA0BAE6E2888610FA0B27BFC52E311A47B9CAFB609DE4F6A1760D6CF7', 
  "IV_2m",
  13
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for IV_2m (CBOR-encoded) (43 bytes)
84 0a 58 20 b0 dc 6c 1b a0 ba e6 e2 88 86 10 fa 0b 27 bf c5 2e 31 1a 47 
b9 ca fb 60 9d e4 f6 a1 76 0d 6c f7 65 49 56 5f 32 6d 0d 
]]></artwork></figure>

<t>From these parameters, IV_2m is computed. IV_2m is the output of HKDF-Expand(PRK_3e2m, info, L), where L is the length of IV_2m, so 13 bytes.</t>

<figure><artwork><![CDATA[
IV_2m (13 bytes)
c5 b7 17 0e 65 d5 4f 1a e0 5d 10 af 56 
]]></artwork></figure>

<t>Finally, COSE_Encrypt0 is computed from the parameters above.</t>

<t><list style="symbols">
  <t>protected header = CBOR-encoded ID_CRED_R</t>
  <t>external_aad = A_2m</t>
  <t>empty plaintext = P_2m</t>
</list></t>

<figure><artwork><![CDATA[
MAC_2 (8 bytes)
cf 99 99 ae 75 9e c0 d8 
]]></artwork></figure>

<t>To compute the Signature_or_MAC_2, the key is the private authentication key of the Responder and 
the message M_2 to be signed = [ “Signature1”, « ID_CRED_R », « TH_2, CRED_R, ? AD_2 », MAC_2 ]</t>

<figure><artwork><![CDATA[
M_2 = 
[
  "Signature1",
  h'A11822822E48FC79990F2431A3F5',
  h'5820B0DC6C1BA0BAE6E2888610FA0B27BFC52E311A47B9CAFB609DE4F6A1760D6CF
  7586E47624DC9CDC6824B2A4C52E95EC9D6B0534B71C2B49E4BF9031500CEE6869979
  C297BB5A8B381E98DB714108415E5C50DB78974C271579B01633A3EF6271BE5C225EB
  28F9CF6180B5A6AF31E80209A085CFBF95F3FDCF9B18B693D6C0E0D0FFB8E3F9A32A5
  0859ECD0BFCFF2C218', 
  h'CF9999AE759EC0D8'
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
M_2 (184 bytes)
84 6a 53 69 67 6e 61 74 75 72 65 31 4e a1 18 22 82 2e 48 fc 79 99 0f 24 
31 a3 f5 58 92 58 20 b0 dc 6c 1b a0 ba e6 e2 88 86 10 fa 0b 27 bf c5 2e 
31 1a 47 b9 ca fb 60 9d e4 f6 a1 76 0d 6c f7 58 6e 47 62 4d c9 cd c6 82 
4b 2a 4c 52 e9 5e c9 d6 b0 53 4b 71 c2 b4 9e 4b f9 03 15 00 ce e6 86 99 
79 c2 97 bb 5a 8b 38 1e 98 db 71 41 08 41 5e 5c 50 db 78 97 4c 27 15 79 
b0 16 33 a3 ef 62 71 be 5c 22 5e b2 8f 9c f6 18 0b 5a 6a f3 1e 80 20 9a 
08 5c fb f9 5f 3f dc f9 b1 8b 69 3d 6c 0e 0d 0f fb 8e 3f 9a 32 a5 08 59 
ec d0 bf cf f2 c2 18 48 cf 99 99 ae 75 9e c0 d8
]]></artwork></figure>

<t>From there Signature_or_MAC_2 is a signature (since method = 0):</t>

<figure><artwork><![CDATA[
Signature_or_MAC_2 (64 bytes)
45 47 81 ec ef eb b4 83 e6 90 83 9d 57 83 8d fe 24 a8 cf 3f 66 42 8a a0 
16 20 4a 22 61 84 4a f8 4f 98 b8 c6 83 4f 38 7f dd 60 6a 29 41 3a dd e3 
a2 07 74 02 13 74 01 19 6f 6a 50 24 06 6f ac 0e 
]]></artwork></figure>

<t>CIPHERTEXT_2 is the ciphertext resulting from XOR encrypting a plaintext constructed from the following parameters and the key K_2e.</t>

<t><list style="symbols">
  <t>plaintext = CBOR Sequence of the items ID_CRED_R and Singature_or_MAC_2, in this order.</t>
</list></t>

<t>The plaintext is the following:</t>

<figure><artwork><![CDATA[
P_2e (CBOR Sequence) (80 bytes)
a1 18 22 82 2e 48 fc 79 99 0f 24 31 a3 f5 58 40 45 47 81 ec ef eb b4 83 
e6 90 83 9d 57 83 8d fe 24 a8 cf 3f 66 42 8a a0 16 20 4a 22 61 84 4a f8 
4f 98 b8 c6 83 4f 38 7f dd 60 6a 29 41 3a dd e3 a2 07 74 02 13 74 01 19 
6f 6a 50 24 06 6f ac 0e 
]]></artwork></figure>

<t>K_2e = HKDF-Expand( PRK, info, length ), where length is the length of the plaintext, so 80.</t>

<figure><artwork><![CDATA[
info for K_2e =
[
  10,
  h'B0DC6C1BA0BAE6E2888610FA0B27BFC52E311A47B9CAFB609DE4F6A1760D6CF7',
  "K_2e",
  80
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for K_2e (CBOR-encoded) (43 bytes)
84 0a 58 20 b0 dc 6c 1b a0 ba e6 e2 88 86 10 fa 0b 27 bf c5 2e 31 1a 47 
b9 ca fb 60 9d e4 f6 a1 76 0d 6c f7 64 4b 5f 32 65 18 50
]]></artwork></figure>

<t>From there, K_2e is computed:</t>

<figure><artwork><![CDATA[
K_2e (80 bytes)
38 cd 1a 83 89 6d 43 af 3d e8 39 35 27 42 0d ac 7d 7a 76 96 7e 85 74 58 
26 bb 39 e1 76 21 8d 7e 5f e7 97 60 14 c9 ed ba c0 58 ee 18 cd 57 71 80 
a4 4d de 0b 83 00 fe 8e 09 66 9a 34 d6 3e 3a e6 10 12 26 ab f8 5c eb 28 
05 dc 00 13 d1 78 2a 20
]]></artwork></figure>

<t>Using the parameters above, the ciphertext CIPHERTEXT_2 can be computed:</t>

<figure><artwork><![CDATA[
CIPHERTEXT_2 (80 bytes)
99 d5 38 01 a7 25 bf d6 a4 e7 1d 04 84 b7 55 ec 38 3d f7 7a 91 6e c0 db 
c0 2b ba 7c 21 a2 00 80 7b 4f 58 5f 72 8b 67 1a d6 78 a4 3a ac d3 3b 78 
eb d5 66 cd 00 4f c6 f1 d4 06 f0 1d 97 04 e7 05 b2 15 52 a9 eb 28 ea 31 
6a b6 50 37 d7 17 86 2e
]]></artwork></figure>

<t>message_2 is the CBOR Sequence of data_2 and CIPHERTEXT_2, in this order:</t>

<figure><artwork><![CDATA[
message_2 =
(
 data_2,
 h'99d53801a725bfd6a4e71d0484b755ec383df77a916ec0dbc02bba7c21a200807b4f
585f728b671ad678a43aacd33b78ebd566cd004fc6f1d406f01d9704e705b21552a9eb
28ea316ab65037d717862e'
) 
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
message_2 (CBOR Sequence) (117 bytes)
58 20 71 a3 d5 99 c2 1d a1 89 02 a1 ae a8 10 b2 b6 38 2c cd 8d 5f 9b f0 
19 52 81 75 4c 5e bc af 30 1e 13 58 50 99 d5 38 01 a7 25 bf d6 a4 e7 1d 
04 84 b7 55 ec 38 3d f7 7a 91 6e c0 db c0 2b ba 7c 21 a2 00 80 7b 4f 58 
5f 72 8b 67 1a d6 78 a4 3a ac d3 3b 78 eb d5 66 cd 00 4f c6 f1 d4 06 f0 
1d 97 04 e7 05 b2 15 52 a9 eb 28 ea 31 6a b6 50 37 d7 17 86 2e
]]></artwork></figure>

</section>
<section anchor="message3" title="Message_3">

<t>Since corr equals 1, C_R is not omitted from data_3.</t>

<figure><artwork><![CDATA[
SK_I (Initiator's private authentication key) (32 bytes)
2f fc e7 a0 b2 b8 25 d3 97 d0 cb 54 f7 46 e3 da 3f 27 59 6e e0 6b 53 71 
48 1d c0 e0 12 bc 34 d7
]]></artwork></figure>

<t>HKDF SHA-256 is the HKDF used (as defined by cipher suite 0).</t>

<t>PRK_4x3m = HMAC-SHA-256 (PRK_3e2m, G_IY)</t>

<figure><artwork><![CDATA[
PRK_4x3m (32 bytes)
ec 62 92 a0 67 f1 37 fc 7f 59 62 9d 22 6f bf c4 e0 68 89 49 f6 62 a9 7f 
d8 2f be b7 99 71 39 4a 
]]></artwork></figure>

<t>data 3 is equal to C_R.</t>

<figure><artwork><![CDATA[
data_3 (CBOR Sequence) (1 bytes)
13 
]]></artwork></figure>

<t>From data_3, CIPHERTEXT_2, and TH_2, compute the input to the transcript hash TH_3 = H(TH_2 , CIPHERTEXT_2, data_3), as a CBOR Sequence of these 3 data items.</t>

<figure><artwork><![CDATA[
Input to calculate TH_3 (CBOR Sequence) (117 bytes)
58 20 b0 dc 6c 1b a0 ba e6 e2 88 86 10 fa 0b 27 bf c5 2e 31 1a 47 b9 ca 
fb 60 9d e4 f6 a1 76 0d 6c f7 58 50 99 d5 38 01 a7 25 bf d6 a4 e7 1d 04 
84 b7 55 ec 38 3d f7 7a 91 6e c0 db c0 2b ba 7c 21 a2 00 80 7b 4f 58 5f 
72 8b 67 1a d6 78 a4 3a ac d3 3b 78 eb d5 66 cd 00 4f c6 f1 d4 06 f0 1d 
97 04 e7 05 b2 15 52 a9 eb 28 ea 31 6a b6 50 37 d7 17 86 2e 13 
]]></artwork></figure>

<t>And from there, compute the transcript hash TH_3 = SHA-256(TH_2 , CIPHERTEXT_2, data_3)</t>

<figure><artwork><![CDATA[
TH_3 (32 bytes)
a2 39 a6 27 ad a3 80 2d b8 da e5 1e c3 92 bf eb 92 6d 39 3e f6 ee e4 dd 
b3 2e 4a 27 ce 93 58 da 
]]></artwork></figure>

<t>The initiator’s subject name is the empty string:</t>

<figure><artwork><![CDATA[
Initiator's subject name (text string)
""
]]></artwork></figure>

<t>CRED_I is the certificate (X509_I) encoded as a CBOR byte string:
(Note that in this version of the test vectors CRED_I is not a real certificate, but instead a string of random bytes is used)</t>

<figure><artwork><![CDATA[
X509_I (101 bytes)
fa 34 b2 2a 9c a4 a1 e1 29 24 ea e1 d1 76 60 88 09 84 49 cb 84 8f fc 79 
5f 88 af c4 9c be 8a fd d1 ba 00 9f 21 67 5e 8f 6c 77 a4 a2 c3 01 95 60 
1f 6f 0a 08 52 97 8b d4 3d 28 20 7d 44 48 65 02 ff 7b dd a6 32 c7 88 37 
00 16 b8 96 5b db 20 74 bf f8 2e 5a 20 e0 9b ec 21 f8 40 6e 86 44 2b 87 
ec 3f f2 45 b7
]]></artwork></figure>

<figure><artwork><![CDATA[
CRED_I (103 bytes)
58 65 fa 34 b2 2a 9c a4 a1 e1 29 24 ea e1 d1 76 60 88 09 84 49 cb 84 8f 
fc 79 5f 88 af c4 9c be 8a fd d1 ba 00 9f 21 67 5e 8f 6c 77 a4 a2 c3 01 
95 60 1f 6f 0a 08 52 97 8b d4 3d 28 20 7d 44 48 65 02 ff 7b dd a6 32 c7 
88 37 00 16 b8 96 5b db 20 74 bf f8 2e 5a 20 e0 9b ec 21 f8 40 6e 86 44 
2b 87 ec 3f f2 45 b7 
]]></artwork></figure>

<t>And because certificates are identified by a hash value with the ‘x5t’ parameter, ID_CRED_I is the following:</t>

<t>ID_CRED_I = { 34 : COSE_CertHash }. In this example, the hash algorithm used is SHA-2 256-bit with hash truncated to 64-bits (value -15). The hash value is calculated over the certificate X509_I.</t>

<figure><artwork><![CDATA[
ID_CRED_I =
{
  34: [-15, h'5B786988439EBCF2']
}
]]></artwork></figure>

<figure><artwork><![CDATA[
ID_CRED_I (14 bytes)
a1 18 22 82 2e 48 5b 78 69 88 43 9e bc f2
]]></artwork></figure>

<t>Since no opaque auxiliary data is exchanged:</t>

<figure><artwork><![CDATA[
AD_3 (0 bytes)
]]></artwork></figure>

<t>The Plaintext of the COSE_Encrypt is the empty string:</t>

<figure><artwork><![CDATA[
P_3m (0 bytes)
]]></artwork></figure>

<t>The external_aad is the CBOR Sequence of TH_3 and CRED_I, in this order:</t>

<figure><artwork><![CDATA[
A_3m (CBOR-encoded) (164 bytes)
83 68 45 6e 63 72 79 70 74 30 4e a1 18 22 82 2e 48 5b 78 69 88 43 9e bc 
f2 58 89 58 20 a2 39 a6 27 ad a3 80 2d b8 da e5 1e c3 92 bf eb 92 6d 39 
3e f6 ee e4 dd b3 2e 4a 27 ce 93 58 da 58 65 fa 34 b2 2a 9c a4 a1 e1 29 
24 ea e1 d1 76 60 88 09 84 49 cb 84 8f fc 79 5f 88 af c4 9c be 8a fd d1 
ba 00 9f 21 67 5e 8f 6c 77 a4 a2 c3 01 95 60 1f 6f 0a 08 52 97 8b d4 3d 
28 20 7d 44 48 65 02 ff 7b dd a6 32 c7 88 37 00 16 b8 96 5b db 20 74 bf 
f8 2e 5a 20 e0 9b ec 21 f8 40 6e 86 44 2b 87 ec 3f f2 45 b7 
]]></artwork></figure>

<t>Info for K_3m is computed as follows:</t>

<figure><artwork><![CDATA[
info for K_3m =
[
  10,
  h'A239A627ADA3802DB8DAE51EC392BFEB926D393EF6EEE4DDB32E4A27CE9358DA',
  "K_3m",
  16
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for K_3m (CBOR-encoded) (42 bytes)
84 0a 58 20 a2 39 a6 27 ad a3 80 2d b8 da e5 1e c3 92 bf eb 92 6d 39 3e 
f6 ee e4 dd b3 2e 4a 27 ce 93 58 da 64 4b 5f 33 6d 10 
]]></artwork></figure>

<t>From these parameters, K_3m is computed. Key K_3m is the output of HKDF-Expand(PRK_4x3m, info, L), where L is the length of K_2m, so 16 bytes.</t>

<figure><artwork><![CDATA[
K_3m (16 bytes)
3d bb f0 d6 01 03 26 e8 27 3f c6 c6 c3 b0 de cd 
]]></artwork></figure>

<t>Nonce IV_3m is the output of HKDF-Expand(PRK_4x3m, info, L), where L = 13 bytes.</t>

<t>Info for IV_3m is defined as follows:</t>

<figure><artwork><![CDATA[
info for IV_3m =
[
  10,
  h'A239A627ADA3802DB8DAE51EC392BFEB926D393EF6EEE4DDB32E4A27CE9358DA',
  "IV_3m",
  13
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for IV_3m (CBOR-encoded) (43 bytes)
84 0a 58 20 a2 39 a6 27 ad a3 80 2d b8 da e5 1e c3 92 bf eb 92 6d 39 3e 
f6 ee e4 dd b3 2e 4a 27 ce 93 58 da 65 49 56 5f 33 6d 0d 
]]></artwork></figure>

<t>From these parameters, IV_3m is computed:</t>

<figure><artwork><![CDATA[
IV_3m (13 bytes)
10 b6 f4 41 4a 2c 91 3c cd a1 96 42 e3 
]]></artwork></figure>

<t>MAC_3 is the ‘ciphertext’ of the COSE_Encrypt0:</t>

<figure><artwork><![CDATA[
MAC_3 (8 bytes)
5e ef b8 85 98 3c 22 d9
]]></artwork></figure>

<t>Since the method = 0, Signature_or_Mac_3 is a signature:</t>

<t><list style="symbols">
  <t>The message M_3 to be signed = [ “Signature1”, « ID_CRED_I », « TH_3, CRED_I », MAC_3 ]</t>
  <t>The signing key is the private authentication key of the Initiator.</t>
</list></t>

<figure><artwork><![CDATA[
M_3 =
[
  "Signature1", 
  h'A11822822E485B786988439EBCF2', 
  h'5820A239A627ADA3802DB8DAE51EC392BFEB926D393EF6EEE4DDB32E4A27CE9358D
  A5865FA34B22A9CA4A1E12924EAE1D1766088098449CB848FFC795F88AFC49CBE8AFD
  D1BA009F21675E8F6C77A4A2C30195601F6F0A0852978BD43D28207D44486502FF7BD
  DA632C788370016B8965BDB2074BFF82E5A20E09BEC21F8406E86442B87EC3FF245
  B7',
  h'5EEFB885983C22D9']
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
M_3 (175 bytes)
84 6a 53 69 67 6e 61 74 75 72 65 31 4e a1 18 22 82 2e 48 5b 78 69 88 43 
9e bc f2 58 89 58 20 a2 39 a6 27 ad a3 80 2d b8 da e5 1e c3 92 bf eb 92 
6d 39 3e f6 ee e4 dd b3 2e 4a 27 ce 93 58 da 58 65 fa 34 b2 2a 9c a4 a1 
e1 29 24 ea e1 d1 76 60 88 09 84 49 cb 84 8f fc 79 5f 88 af c4 9c be 8a 
fd d1 ba 00 9f 21 67 5e 8f 6c 77 a4 a2 c3 01 95 60 1f 6f 0a 08 52 97 8b 
d4 3d 28 20 7d 44 48 65 02 ff 7b dd a6 32 c7 88 37 00 16 b8 96 5b db 20 
74 bf f8 2e 5a 20 e0 9b ec 21 f8 40 6e 86 44 2b 87 ec 3f f2 45 b7 48 5e 
ef b8 85 98 3c 22 d9 
]]></artwork></figure>

<t>From there, the signature can be computed:</t>

<figure><artwork><![CDATA[
Signature_or_MAC_3 (64 bytes)
b3 31 76 33 fa eb c7 f4 24 9c f3 ab 95 96 fd ae 2b eb c8 e7 27 5d 39 9f 
42 00 04 f3 76 7b 88 d6 0f fe 37 dc f3 90 a0 00 d8 5a b0 ad b0 d7 24 e3 
a5 7c 4d fe 24 14 a4 1e 79 78 91 b9 55 35 89 06
]]></artwork></figure>

<t>Finally, the outer COSE_Encrypt0 is computed.</t>

<t>The Plaintext is the following CBOR Sequence: 
plaintext = ( ID_CRED_I , Signature_or_MAC_3 )</t>

<figure><artwork><![CDATA[
P_3ae (CBOR Sequence) (80 bytes)
a1 18 22 82 2e 48 5b 78 69 88 43 9e bc f2 58 40 b3 31 76 33 fa eb c7 f4 
24 9c f3 ab 95 96 fd ae 2b eb c8 e7 27 5d 39 9f 42 00 04 f3 76 7b 88 d6 
0f fe 37 dc f3 90 a0 00 d8 5a b0 ad b0 d7 24 e3 a5 7c 4d fe 24 14 a4 1e 
79 78 91 b9 55 35 89 06 
]]></artwork></figure>

<t>The Associated data A is the following:
Associated data A = [ “Encrypt0”, h’’, TH_3 ]</t>

<figure><artwork><![CDATA[
A_3ae (CBOR-encoded) (45 bytes)
83 68 45 6e 63 72 79 70 74 30 40 58 20 a2 39 a6 27 ad a3 80 2d b8 da e5 
1e c3 92 bf eb 92 6d 39 3e f6 ee e4 dd b3 2e 4a 27 ce 93 58 da 
]]></artwork></figure>

<t>Key K_3ae is the output of HKDF-Expand(PRK_3e2m, info, L).</t>

<t>info is defined as follows:</t>

<figure><artwork><![CDATA[
info for K_3ae = 
[
  10,
  h'A239A627ADA3802DB8DAE51EC392BFEB926D393EF6EEE4DDB32E4A27CE9358DA',
  "K_3ae",
  16
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for K_3ae (CBOR-encoded) (43 bytes)
84 0a 58 20 a2 39 a6 27 ad a3 80 2d b8 da e5 1e c3 92 bf eb 92 6d 39 3e 
f6 ee e4 dd b3 2e 4a 27 ce 93 58 da 65 4b 5f 33 61 65 10 
]]></artwork></figure>

<t>L is the length of K_3ae, so 16 bytes.</t>

<t>From these parameters, K_3ae is computed:</t>

<figure><artwork><![CDATA[
K_3ae (16 bytes)
58 b5 2f 94 5b 30 9d 85 4c a7 36 cd 06 a9 62 95 
]]></artwork></figure>

<t>Nonce IV_3ae is the output of HKDF-Expand(PRK_3e2m, info, L).</t>

<t>info is defined as follows:</t>

<figure><artwork><![CDATA[
info for IV_3ae =
[
  10,
  h'A239A627ADA3802DB8DAE51EC392BFEB926D393EF6EEE4DDB32E4A27CE9358DA',
  "IV_3ae", 
  13
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for IV_3ae (CBOR-encoded) (44 bytes)
84 0a 58 20 a2 39 a6 27 ad a3 80 2d b8 da e5 1e c3 92 bf eb 92 6d 39 3e 
f6 ee e4 dd b3 2e 4a 27 ce 93 58 da 66 49 56 5f 33 61 65 0d 
]]></artwork></figure>

<t>L is the length of IV_3ae, so 13 bytes.</t>

<t>From these parameters, IV_3ae is computed:</t>

<figure><artwork><![CDATA[
IV_3ae (13 bytes)
cf a9 a5 85 58 10 d6 dc e9 74 3c 3b c3 
]]></artwork></figure>

<t>Using the parameters above, the ‘ciphertext’ CIPHERTEXT_3 can be computed:</t>

<figure><artwork><![CDATA[
CIPHERTEXT_3 (88 bytes)
2d 88 ff 86 da 47 48 2c 0d fa 55 9a c8 24 a4 a7 83 d8 70 c9 db a4 78 05 
e8 aa fb ad 69 74 c4 96 46 58 65 03 fa 9b bf 3e 00 01 2c 03 7e af 56 e4 
5e 30 19 20 83 9b 81 3a 53 f6 d4 c5 57 48 0f 6c 79 7d 5b 76 f0 e4 62 f5 
f5 7a 3d b6 d2 b5 0c 32 31 9f 34 0f 4a c5 af 9a 
]]></artwork></figure>

<t>From the parameter above, message_3 is computed, as the CBOR Sequence of the following items: (C_R, CIPHERTEXT_3).</t>

<figure><artwork><![CDATA[
message_3 =
(
  h'13',
  h''
)
]]></artwork></figure>

<t>Which encodes to the following byte string:</t>

<figure><artwork><![CDATA[
message_3 (CBOR Sequence) (91 bytes)
13 58 58 2d 88 ff 86 da 47 48 2c 0d fa 55 9a c8 24 a4 a7 83 d8 70 c9 db 
a4 78 05 e8 aa fb ad 69 74 c4 96 46 58 65 03 fa 9b bf 3e 00 01 2c 03 7e 
af 56 e4 5e 30 19 20 83 9b 81 3a 53 f6 d4 c5 57 48 0f 6c 79 7d 5b 76 f0 
e4 62 f5 f5 7a 3d b6 d2 b5 0c 32 31 9f 34 0f 4a c5 af 9a 
]]></artwork></figure>

</section>
<section anchor="oscore-security-context-derivation" title="OSCORE Security Context Derivation">

<t>From here, the Initiator and the Responder can derive an OSCORE Security Context, using the EDHOC-Exporter interface.</t>

<t>From TH_3 and CIPHERTEXT_3, compute the input to the transcript hash TH_4 = H( TH_3, CIPHERTEXT_3 ), as a CBOR Sequence of these 2 data items.</t>

<figure><artwork><![CDATA[
Input to calculate TH_4 (CBOR Sequence) (120 bytes)
a2 39 a6 27 ad a3 80 2d b8 da e5 1e c3 92 bf eb 92 6d 39 3e f6 ee e4 dd 
b3 2e 4a 27 ce 93 58 da 
2d 88 ff 86 da 47 48 2c 0d fa 55 9a c8 24 a4 a7 83 d8 70 c9 db a4 78 05 
e8 aa fb ad 69 74 c4 96 46 58 65 03 fa 9b bf 3e 00 01 2c 03 7e af 56 e4 
5e 30 19 20 83 9b 81 3a 53 f6 d4 c5 57 48 0f 6c 79 7d 5b 76 f0 e4 62 f5 
f5 7a 3d b6 d2 b5 0c 32 31 9f 34 0f 4a c5 af 9a 
]]></artwork></figure>

<t>And from there, compute the transcript hash TH_4 = SHA-256(TH_3 , CIPHERTEXT_4)</t>

<figure><artwork><![CDATA[
TH_4 (32 bytes)
36 45 7C 25 90 0B 01 26 36 77 90 2D 34 02 E6 DC
96 D3 8C 45 73 79 F0 DC CA 1E 9B 3A AF 34 2E 43
]]></artwork></figure>

<t>The Master Secret and Master Salt are derived as follows:</t>

<t>Master Secret = EDHOC-Exporter( “OSCORE Master Secret”, 16 ) = EDHOC-KDF(PRK_4x3m, TH_4, “OSCORE Master Secret”, 16) = Expand( PRK_4x3m, info_ms, 16 )</t>

<t>Master Salt   = EDHOC-Exporter( “OSCORE Master Salt”, 8 ) = EDHOC-KDF(PRK_4x3m, TH_4, “OSCORE Master Salt”, 8) = Expand( PRK_4x3m, info_salt, 8 )</t>

<t>info_ms for OSCORE Master Secret is defined as follows:</t>

<figure><artwork><![CDATA[
info_ms = [
  10, 
  h'36457c25900b01263677902d3402e6dc96d38c457379f0dcca1e9b3aaf342e43', 
  "OSCORE Master Secret", 
  16
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info_ms for OSCORE Master Secret (CBOR-encoded) (58 bytes)
84 0A 58 20 36 45 7C 25 90 0B 01 26 36 77 90 2D
34 02 E6 DC 96 D3 8C 45 73 79 F0 DC CA 1E 9B 3A
AF 34 2E 43 74 4F 53 43 4F 52 45 20 4D 61 73 74
65 72 20 53 65 63 72 65 74 10
]]></artwork></figure>

<t>info_salt for OSCORE Master Salt is defined as follows:</t>

<figure><artwork><![CDATA[
info_salt = [
  10, 
  h'36457c25900b01263677902d3402e6dc96d38c457379f0dcca1e9b3aaf342e43', 
  "OSCORE Master Salt", 
  8
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for OSCORE Master Salt (CBOR-encoded) (56 Bytes)
84 0A 58 20 36 45 7C 25 90 0B 01 26 36 77 90 2D
34 02 E6 DC 96 D3 8C 45 73 79 F0 DC CA 1E 9B 3A
AF 34 2E 43 72 4F 53 43 4F 52 45 20 4D 61 73 74
65 72 20 53 61 6C 74 08
]]></artwork></figure>

<t>From these parameters, OSCORE Master Secret and OSCORE Master Salt are computed:</t>

<figure><artwork><![CDATA[
OSCORE Master Secret (16 bytes)
EB 9E 7C 08 16 37 41 54 C8 EC D8 39 84 5F 25 62
]]></artwork></figure>

<figure><artwork><![CDATA[
OSCORE Master Salt (8 bytes)
BC E4 BF 91 4B 70 7D C1
]]></artwork></figure>

<t>The client’s OSCORE Sender ID is C_R and the server’s OSCORE Sender ID is C_I.</t>

<figure><artwork><![CDATA[
Client's OSCORE Sender ID (1 bytes)
13 
]]></artwork></figure>

<figure><artwork><![CDATA[
Server's OSCORE Sender ID (0 bytes)

]]></artwork></figure>

<t>The AEAD Algorithm and the hash algorithm are the application AEAD and hash algorithms in the selected cipher suite.</t>

<figure><artwork><![CDATA[
OSCORE AEAD Algorithm (int)
10
]]></artwork></figure>

<figure><artwork><![CDATA[
OSCORE Hash Algorithm (int)
-16
]]></artwork></figure>

</section>
</section>
<section anchor="test-vectors-for-edhoc-authenticated-with-static-diffie-hellman-keys" title="Test Vectors for EDHOC Authenticated with Static Diffie-Hellman Keys">

<t>EDHOC with static Diffie-Hellman keys is used.</t>

<figure><artwork><![CDATA[
method (Static DH Based Authentication)
3
]]></artwork></figure>

<t>CoAP is used as transport and the Initiator acts as CoAP client:</t>

<figure><artwork><![CDATA[
corr (the Initiator can correlate message_1 and message_2)
1
]]></artwork></figure>

<t>From there, METHOD_CORR has the following value:</t>

<figure><artwork><![CDATA[
METHOD_CORR (4 * method + corr) (int)
13
]]></artwork></figure>

<t>No unprotected opaque auxiliary data is sent in the message exchanges.</t>

<t>The list of supported cipher suites of the Initiator in order of preference is the following:</t>

<figure><artwork><![CDATA[
Supported Cipher Suites (4 bytes)
00 01 02 03
]]></artwork></figure>

<t>The cipher suite selected by the Initiator is the most preferred:</t>

<figure><artwork><![CDATA[
Selected Cipher Suite (int)
0
]]></artwork></figure>

<t>Cipher suite 0 is supported by both the Initiator and the Responder, see <xref target="cipher-suites"/>.</t>

<section anchor="dh-ss-m1" title="Message_1">

<figure><artwork><![CDATA[
X (Initiator's ephemeral private key) (32 bytes)
ae 11 a0 db 86 3c 02 27 e5 39 92 fe b8 f5 92 4c 50 d0 a7 ba 6e ea b4 ad 
1f f2 45 72 f4 f5 7c fa
]]></artwork></figure>

<figure><artwork><![CDATA[
G_X (Initiator's ephemeral public key) (32 bytes)
8d 3e f5 6d 1b 75 0a 43 51 d6 8a c2 50 a0 e8 83 79 0e fc 80 a5 38 a4 44 
ee 9e 2b 57 e2 44 1a 7c
]]></artwork></figure>

<t>The Initiator chooses a connection identifier C_I:</t>

<figure><artwork><![CDATA[
Connection identifier chosen by Initiator (1 bytes)
16
]]></artwork></figure>

<t>Note that since C_I is a byte strings of length one, it is encoded as the corresponding integer - 24 (see bstr_identifier in <xref target="bstr_id"/>), i.e. 0x16 = 22, 22 - 24 = -2, and -2 in CBOR encoding is equal to 0x21.</t>

<figure><artwork><![CDATA[
C_I (1 byte)
21
]]></artwork></figure>

<t>Since no unprotected opaque auxiliary data is sent in the message exchanges:</t>

<figure><artwork><![CDATA[
AD_1 (0 bytes)
]]></artwork></figure>

<t>Since the list of supported cipher suites needs to contain the selected cipher suite, the initiator truncates the list of supported cipher suites to one cipher suite only, 00.</t>

<t>Because one single selected cipher suite is conveyed, it is encoded as an int instead of an array:</t>

<figure><artwork><![CDATA[
SUITES_I (int)
0
]]></artwork></figure>

<t>With SUITES_I = 0, message_1 is constructed, as the CBOR Sequence of the CBOR data items above.</t>

<figure><artwork><![CDATA[
message_1 =
(
  13,
  0,
  h'8D3EF56D1B750A4351D68AC250A0E883790EFC80A538A444EE9E2B57E2441A7C',
  -2
)
]]></artwork></figure>

<figure><artwork><![CDATA[
message_1 (CBOR Sequence) (37 bytes)
0d 00 58 20 8d 3e f5 6d 1b 75 0a 43 51 d6 8a c2 50 a0 e8 83 79 0e fc 80 
a5 38 a4 44 ee 9e 2b 57 e2 44 1a 7c 21 
]]></artwork></figure>

</section>
<section anchor="dh-ss-m2" title="Message_2">

<t>Since METHOD_CORR mod 4 equals 1, C_I is omitted from data_2.</t>

<figure><artwork><![CDATA[
Y (Responder's ephemeral private key) (32 bytes)
c6 46 cd dc 58 12 6e 18 10 5f 01 ce 35 05 6e 5e bc 35 f4 d4 cc 51 07 49 
a3 a5 e0 69 c1 16 16 9a
]]></artwork></figure>

<figure><artwork><![CDATA[
G_Y (Responder's ephemeral public key) (32 bytes)
52 fb a0 bd c8 d9 53 dd 86 ce 1a b2 fd 7c 05 a4 65 8c 7c 30 af db fc 33 
01 04 70 69 45 1b af 35 
]]></artwork></figure>

<t>From G_X and Y or from G_Y and X the ECDH shared secret is computed:</t>

<figure><artwork><![CDATA[
G_XY (ECDH shared secret) (32 bytes)
de fc 2f 35 69 10 9b 3d 1f a4 a7 3d c5 e2 fe b9 e1 15 0d 90 c2 5e e2 f0 
66 c2 d8 85 f4 f8 ac 4e
]]></artwork></figure>

<t>The key and nonce for calculating the ‘ciphertext’ are calculated as follows, as specified in <xref target="key-der"/>.</t>

<t>HKDF SHA-256 is the HKDF used (as defined by cipher suite 0).</t>

<t>PRK_2e = HMAC-SHA-256(salt, G_XY)</t>

<t>Salt is the empty byte string.</t>

<figure><artwork><![CDATA[
salt (0 bytes)
]]></artwork></figure>

<t>From there, PRK_2e is computed:</t>

<figure><artwork><![CDATA[
PRK_2e (32 bytes)
93 9f cb 05 6d 2e 41 4f 1b ec 61 04 61 99 c2 c7 63 d2 7f 0c 3d 15 fa 16 
71 fa 13 4e 0d c5 a0 4d 
]]></artwork></figure>

<t>Since the Responder authenticates with a static Diffie-Hellman key, PRK_3e2m = HKDF-Extract( PRK_2e, G_RX ), where G_RX is the ECDH shared secret calculated from G_R and X, or G_X and R.</t>

<figure><artwork><![CDATA[
R (Responder's private authentication key) (32 bytes)
bb 50 1a ac 67 b9 a9 5f 97 e0 ed ed 6b 82 a6 62 93 4f bb fc 7a d1 b7 4c 
1f ca d6 6a 07 94 22 d0 
]]></artwork></figure>

<figure><artwork><![CDATA[
G_R (Responder's public authentication key) (32 bytes)
a3 ff 26 35 95 be b3 77 d1 a0 ce 1d 04 da d2 d4 09 66 ac 6b cb 62 20 51 
b8 46 59 18 4d 5d 9a 32
]]></artwork></figure>

<t>From the Responder’s authentication key and the Initiator’s ephemeral key (see <xref target="dh-ss-m1"/>), the ECDH shared secret G_RX is calculated.</t>

<figure><artwork><![CDATA[
G_RX (ECDH shared secret) (32 bytes)
21 c7 ef f4 fb 69 fa 4b 67 97 d0 58 84 31 5d 84 11 a3 fd a5 4f 6d ad a6 
1d 4f cd 85 e7 90 66 68
]]></artwork></figure>

<figure><artwork><![CDATA[
PRK_3e2m (32 bytes)
75 07 7c 69 1e 35 01 2d 48 bc 24 c8 4f 2b ab 89 f5 2f ac 03 fe dd 81 3e 
43 8c 93 b1 0b 39 93 07 
]]></artwork></figure>

<t>The Responder chooses a connection identifier C_R.</t>

<figure><artwork><![CDATA[
Connection identifier chosen by Responder (1 byte)
20
]]></artwork></figure>

<t>Note that since C_R is a byte strings of length one, it is encoded as the corresponding integer - 24 (see bstr_identifier in <xref target="bstr_id"/>), i.e. 0x20 = 32, 32 - 24 = 8, and 8 in CBOR encoding is equal to 0x08.</t>

<figure><artwork><![CDATA[
C_R (1 byte)
08
]]></artwork></figure>

<t>Data_2 is constructed, as the CBOR Sequence of G_Y and C_R.</t>

<figure><artwork><![CDATA[
data_2 =
(
  h'52FBA0BDC8D953DD86CE1AB2FD7C05A4658C7C30AFDBFC3301047069451BAF35',
  08
)
]]></artwork></figure>

<figure><artwork><![CDATA[
data_2 (CBOR Sequence) (35 bytes)
58 20 52 fb a0 bd c8 d9 53 dd 86 ce 1a b2 fd 7c 05 a4 65 8c 7c 30 af db 
fc 33 01 04 70 69 45 1b af 35 08 
]]></artwork></figure>

<t>From data_2 and message_1, compute the input to the transcript hash TH_2 = H( message_1, data_2 ), as a CBOR Sequence of these 2 data items.</t>

<figure><artwork><![CDATA[
Input to calculate TH_2 (CBOR Sequence) (72 bytes)
0d 00 58 20 8d 3e f5 6d 1b 75 0a 43 51 d6 8a c2 50 a0 e8 83 79 0e fc 80 
a5 38 a4 44 ee 9e 2b 57 e2 44 1a 7c 21 58 20 52 fb a0 bd c8 d9 53 dd 86 
ce 1a b2 fd 7c 05 a4 65 8c 7c 30 af db fc 33 01 04 70 69 45 1b af 35 08  
]]></artwork></figure>

<t>And from there, compute the transcript hash TH_2 = SHA-256( message_1, data_2 )</t>

<figure><artwork><![CDATA[
TH_2 (32 bytes)
6a 28 78 e8 4b 2c c0 21 cc 1a eb a2 96 52 53 ef 42 f7 fa 30 0c af 9c 49 
1a 52 e6 83 6a 25 64 ff 
]]></artwork></figure>

<t>The Responder’s subject name is the empty string:</t>

<figure><artwork><![CDATA[
Responders's subject name (text string)
""
]]></artwork></figure>

<t>ID_CRED_R is the following:</t>

<figure><artwork><![CDATA[
ID_CRED_R =
{
  4: h'07'
}
]]></artwork></figure>

<figure><artwork><![CDATA[
ID_CRED_R (4 bytes)
a1 04 41 07
]]></artwork></figure>

<t>CRED_R is the following COSE_Key:</t>

<figure><artwork><![CDATA[
{
  1: 1,
  -1: 4,
  -2: h'A3FF263595BEB377D1A0CE1D04DAD2D40966AC6BCB622051B84659184D5D9A32',
  "subject name": ""
}
]]></artwork></figure>

<t>Which encodes to the following byte string:</t>

<figure><artwork><![CDATA[
CRED_R (54 bytes)
a4 01 01 20 04 21 58 20 a3 ff 26 35 95 be b3 77 d1 a0 ce 1d 04 da d2 d4 
09 66 ac 6b cb 62 20 51 b8 46 59 18 4d 5d 9a 32 6c 73 75 62 6a 65 63 74 
20 6e 61 6d 65 60 
]]></artwork></figure>

<t>Since no unprotected opaque auxiliary data is sent in the message exchanges:</t>

<figure><artwork><![CDATA[
AD_2  (0 bytes)
]]></artwork></figure>

<t>The Plaintext is defined as the empty string:</t>

<figure><artwork><![CDATA[
P_2m (0 bytes)
]]></artwork></figure>

<t>The Enc_structure is defined as follows: [ “Encrypt0”, « ID_CRED_R », « TH_2, CRED_R » ]</t>

<figure><artwork><![CDATA[
A_2m =
[
  "Encrypt0", 
  h'A1044107', 
  h'58206A2878E84B2CC021CC1AEBA2965253EF42F7FA300CAF9C491A52E6836A2564FFA401012004215820A3FF263595BEB377D1A0CE1D04DAD2D40966AC6BCB622051B84659184D5D9A326C7375626A656374206E616D6560'
]
]]></artwork></figure>

<t>Which encodes to the following byte string to be used as Additional Authenticated Data:</t>

<figure><artwork><![CDATA[
A_2m (CBOR-encoded) (105 bytes)
83 68 45 6e 63 72 79 70 74 30 44 a1 04 41 07 58 58 58 20 6a 28 78 e8 4b 
2c c0 21 cc 1a eb a2 96 52 53 ef 42 f7 fa 30 0c af 9c 49 1a 52 e6 83 6a 
25 64 ff a4 01 01 20 04 21 58 20 a3 ff 26 35 95 be b3 77 d1 a0 ce 1d 04 
da d2 d4 09 66 ac 6b cb 62 20 51 b8 46 59 18 4d 5d 9a 32 6c 73 75 62 6a 
65 63 74 20 6e 61 6d 65 60 
]]></artwork></figure>

<t>info for K_2m is defined as follows:</t>

<figure><artwork><![CDATA[
info for K_2m =
[
  10, 
  h'6A2878E84B2CC021CC1AEBA2965253EF42F7FA300CAF9C491A52E6836A2564FF', 
  "K_2m", 
  16
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for K_2m (CBOR-encoded) (42 bytes)
84 0a 58 20 6a 28 78 e8 4b 2c c0 21 cc 1a eb a2 96 52 53 ef 42 f7 fa 30 
0c af 9c 49 1a 52 e6 83 6a 25 64 ff 64 4b 5f 32 6d 10 
]]></artwork></figure>

<t>From these parameters, K_2m is computed. Key K_2m is the output of HKDF-Expand(PRK_3e2m, info, L), where L is the length of K_2m, so 16 bytes.</t>

<figure><artwork><![CDATA[
K_2m (16 bytes)
81 2a 48 87 d1 90 ff ed 2b 10 0b a7 a5 c2 5e 67
]]></artwork></figure>

<t>info for IV_2m is defined as follows:</t>

<figure><artwork><![CDATA[
info for IV_2m =
[
  10, 
  h'6A2878E84B2CC021CC1AEBA2965253EF42F7FA300CAF9C491A52E6836A2564FF', 
  "IV_2m", 
  13
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for IV_2m (CBOR-encoded) (43 bytes)
84 0a 58 20 6a 28 78 e8 4b 2c c0 21 cc 1a eb a2 96 52 53 ef 42 f7 fa 30 
0c af 9c 49 1a 52 e6 83 6a 25 64 ff 65 49 56 5f 32 6d 0d
]]></artwork></figure>

<t>From these parameters, IV_2m is computed. IV_2m is the output of HKDF-Expand(PRK_3e2m, info, L), where L is the length of IV_2m, so 13 bytes.</t>

<figure><artwork><![CDATA[
IV_2m (13 bytes)
92 3c 0f 94 31 51 5b 69 21 30 49 2b 7f 
]]></artwork></figure>

<t>Finally, COSE_Encrypt0 is computed from the parameters above.</t>

<t><list style="symbols">
  <t>protected header = CBOR-encoded ID_CRED_R</t>
  <t>external_aad = A_2m</t>
  <t>empty plaintext = P_2m</t>
</list></t>

<figure><artwork><![CDATA[
MAC_2 (8 bytes)
64 21 0d 2e 18 b9 28 cd 
]]></artwork></figure>

<t>From there Signature_or_MAC_2 is the MAC (since method = 3):</t>

<figure><artwork><![CDATA[
Signature_or_MAC_2 (8 bytes)
64 21 0d 2e 18 b9 28 cd 
]]></artwork></figure>

<t>CIPHERTEXT_2 is the ciphertext resulting from XOR encrypting a plaintext constructed from the following parameters and the key K_2e.</t>

<t><list style="symbols">
  <t>plaintext = CBOR Sequence of the items ID_CRED_R and the CBOR encoded Signature_or_MAC_2, in this order. Note that since ID_CRED_R contains a single ‘kid’ parameter, i.e., ID_CRED_R = { 4 : kid_R }, only the byte string kid_R is conveyed in the plaintext encoded as a bstr_identifier. kid_R is encoded as the corresponding integer - 24 (see bstr_identifier in <xref target="bstr_id"/>), i.e. 0x07 = 7, 7 - 24 = -17, and -17 in CBOR encoding is equal to 0x30.</t>
</list></t>

<t>The plaintext is the following:</t>

<figure><artwork><![CDATA[
P_2e (CBOR Sequence) (10 bytes)
30 48 64 21 0d 2e 18 b9 28 cd 
]]></artwork></figure>

<t>K_2e = HKDF-Expand( PRK, info, length ), where length is the length of the plaintext, so 10.</t>

<figure><artwork><![CDATA[
info for K_2e =
[
  10, 
  h'6A2878E84B2CC021CC1AEBA2965253EF42F7FA300CAF9C491A52E6836A2564FF', 
  "K_2e", 
  10
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for K_2e (CBOR-encoded) (42 bytes)
84 0a 58 20 6a 28 78 e8 4b 2c c0 21 cc 1a eb a2 96 52 53 ef 42 f7 fa 30 
0c af 9c 49 1a 52 e6 83 6a 25 64 ff 64 4b 5f 32 65 0a 
]]></artwork></figure>

<t>From there, K_2e is computed:</t>

<figure><artwork><![CDATA[
K_2e (10 bytes)
ec be 9a bd 5f 62 3a fc 65 26 
]]></artwork></figure>

<t>Using the parameters above, the ciphertext CIPHERTEXT_2 can be computed:</t>

<figure><artwork><![CDATA[
CIPHERTEXT_2 (10 bytes)
dc f6 fe 9c 52 4c 22 45 4d eb 
]]></artwork></figure>

<t>message_2 is the CBOR Sequence of data_2 and CIPHERTEXT_2, in this order:</t>

<figure><artwork><![CDATA[
message_2 =
(
 data_2,
 h'DCF6FE9C524C22454DEB'
) 
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
message_2 (CBOR Sequence) (46 bytes)
58 20 52 fb a0 bd c8 d9 53 dd 86 ce 1a b2 fd 7c 05 a4 65 8c 7c 30 af db 
fc 33 01 04 70 69 45 1b af 35 08 4a dc f6 fe 9c 52 4c 22 45 4d eb 
]]></artwork></figure>

</section>
<section anchor="message3-1" title="Message_3">

<t>Since corr equals 1, C_R is not omitted from data_3.</t>

<figure><artwork><![CDATA[
SK_I (Initiator's private authentication key) (32 bytes)
2b be a6 55 c2 33 71 c3 29 cf bd 3b 1f 02 c6 c0 62 03 38 37 b8 b5 90 99 
a4 43 6f 66 60 81 b0 8e 
]]></artwork></figure>

<figure><artwork><![CDATA[
G_I (Initiator's public authentication key) (32 bytes)
2c 44 0c c1 21 f8 d7 f2 4c 3b 0e 41 ae da fe 9c aa 4f 4e 7a bb 83 5e c3 
0f 1d e8 8a db 96 ff 71
]]></artwork></figure>

<t>HKDF SHA-256 is the HKDF used (as defined by cipher suite 0).</t>

<t>From the Initiator’s authentication key and the Responder’s ephemeral key (see <xref target="dh-ss-m2"/>), the ECDH shared secret G_IY is calculated.</t>

<figure><artwork><![CDATA[
G_IY (ECDH shared secret) (32 bytes)
cb ff 8c d3 4a 81 df ec 4c b6 5d 9a 57 2e bd 09 64 45 0c 78 56 3d a4 98 
1d 80 d3 6c 8b 1a 75 2a 
]]></artwork></figure>

<t>PRK_4x3m = HMAC-SHA-256 (PRK_3e2m, G_IY).</t>

<figure><artwork><![CDATA[
PRK_4x3m (32 bytes)
ec 62 92 a0 67 f1 37 fc 7f 59 62 9d 22 6f bf c4 e0 68 89 49 f6 62 a9 7f 
d8 2f be b7 99 71 39 4a 
]]></artwork></figure>

<t>data 3 is equal to C_R.</t>

<figure><artwork><![CDATA[
data_3 (CBOR Sequence) (1 bytes)
08 
]]></artwork></figure>

<t>From data_3, CIPHERTEXT_2, and TH_2, compute the input to the transcript hash TH_3 = H(TH_2 , CIPHERTEXT_2, data_3), as a CBOR Sequence of these 3 data items.</t>

<figure><artwork><![CDATA[
Input to calculate TH_3 (CBOR Sequence) (46 bytes)
58 20 6a 28 78 e8 4b 2c c0 21 cc 1a eb a2 96 52 53 ef 42 f7 fa 30 0c af 
9c 49 1a 52 e6 83 6a 25 64 ff 4a dc f6 fe 9c 52 4c 22 45 4d eb 08 
]]></artwork></figure>

<t>And from there, compute the transcript hash TH_3 = SHA-256(TH_2 , CIPHERTEXT_2, data_3)</t>

<figure><artwork><![CDATA[
TH_3 (32 bytes)
51 dd 22 43 a6 b8 3f 13 16 dc 53 29 1a e1 91 cd 93 b4 44 cc e4 80 16 07 
03 ee d9 c4 a1 bc b6 11 
]]></artwork></figure>

<t>The initiator’s subject name is the empty string:</t>

<figure><artwork><![CDATA[
Initiator's subject name (text string)
""
]]></artwork></figure>

<t>And its credential is:</t>

<figure><artwork><![CDATA[
ID_CRED_I =
{
  4: h'24'
}
]]></artwork></figure>

<figure><artwork><![CDATA[
ID_CRED_I (4 bytes)
a1 04 41 24
]]></artwork></figure>

<t>CRED_I is the following COSE_Key:</t>

<figure><artwork><![CDATA[
{
  1: 1, 
  -1: 4,
   -2: h'2C440CC121F8D7F24C3B0E41AEDAFE9CAA4F4E7ABB835EC30F1DE88ADB96FF71', 
   "subject name": ""
 }
]]></artwork></figure>

<t>Which encodes to the following byte string:</t>

<figure><artwork><![CDATA[
CRED_I (54 bytes)
a4 01 01 20 04 21 58 20 2c 44 0c c1 21 f8 d7 f2 4c 3b 0e 41 ae da fe 9c 
aa 4f 4e 7a bb 83 5e c3 0f 1d e8 8a db 96 ff 71 6c 73 75 62 6a 65 63 74 
20 6e 61 6d 65 60  
]]></artwork></figure>

<t>Since no opaque auxiliary data is exchanged:</t>

<figure><artwork><![CDATA[
AD_3 (0 bytes)
]]></artwork></figure>

<t>The Plaintext of the COSE_Encrypt is the empty string:</t>

<figure><artwork><![CDATA[
P_3m (0 bytes)
]]></artwork></figure>

<t>The external_aad is the CBOR Sequence of TH_3 and CRED_I, in this order:</t>

<figure><artwork><![CDATA[
A_3m (CBOR-encoded) (105 bytes)
83 68 45 6e 63 72 79 70 74 30 44 a1 04 41 24 58 58 58 20 51 dd 22 43 a6 
b8 3f 13 16 dc 53 29 1a e1 91 cd 93 b4 44 cc e4 80 16 07 03 ee d9 c4 a1 
bc b6 11 a4 01 01 20 04 21 58 20 2c 44 0c c1 21 f8 d7 f2 4c 3b 0e 41 ae 
da fe 9c aa 4f 4e 7a bb 83 5e c3 0f 1d e8 8a db 96 ff 71 6c 73 75 62 6a 
65 63 74 20 6e 61 6d 65 60 
]]></artwork></figure>

<t>Info for K_3m is computed as follows:</t>

<figure><artwork><![CDATA[
info for K_3m =
[
  10, 
  h'51DD2243A6B83F1316DC53291AE191CD93B444CCE480160703EED9C4A1BCB611', 
  "K_3m", 
  16
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for K_3m (CBOR-encoded) (42 bytes)
84 0a 58 20 51 dd 22 43 a6 b8 3f 13 16 dc 53 29 1a e1 91 cd 93 b4 44 cc 
e4 80 16 07 03 ee d9 c4 a1 bc b6 11 64 4b 5f 33 6d 10  
]]></artwork></figure>

<t>From these parameters, K_3m is computed. Key K_3m is the output of HKDF-Expand(PRK_4x3m, info, L), where L is the length of K_2m, so 16 bytes.</t>

<figure><artwork><![CDATA[
K_3m (16 bytes)
84 85 31 8a a3 08 6f d5 86 7a 02 8e 99 e2 40 30 
]]></artwork></figure>

<t>Nonce IV_3m is the output of HKDF-Expand(PRK_4x3m, info, L), where L = 13 bytes.</t>

<t>Info for IV_3m is defined as follows:</t>

<figure><artwork><![CDATA[
info for IV_3m =
[
  10, 
  h'51DD2243A6B83F1316DC53291AE191CD93B444CCE480160703EED9C4A1BCB611', 
  "IV_3m", 
  13
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for IV_3m (CBOR-encoded) (43 bytes)
84 0a 58 20 51 dd 22 43 a6 b8 3f 13 16 dc 53 29 1a e1 91 cd 93 b4 44 cc 
e4 80 16 07 03 ee d9 c4 a1 bc b6 11 65 49 56 5f 33 6d 0d  
]]></artwork></figure>

<t>From these parameters, IV_3m is computed:</t>

<figure><artwork><![CDATA[
IV_3m (13 bytes)
1e 10 5b 88 50 0e d5 ae b0 5d 00 6b ea 
]]></artwork></figure>

<t>MAC_3 is the ‘ciphertext’ of the COSE_Encrypt0:</t>

<figure><artwork><![CDATA[
MAC_3 (8 bytes)
1f b7 5a c1 aa d2 34 25 
]]></artwork></figure>

<t>Since the method = 3, Signature_or_Mac_3 is the MAC_3:</t>

<figure><artwork><![CDATA[
Signature_or_MAC_3 (8 bytes)
1f b7 5a c1 aa d2 34 25 
]]></artwork></figure>

<t>Finally, the outer COSE_Encrypt0 is computed.</t>

<t>The Plaintext is the following CBOR Sequence: 
plaintext = ( ID_CRED_I , Signature_or_MAC_3 ).  Note that since ID_CRED_I contains a single ‘kid’ parameter, i.e., ID_CRED_I = { 4 : kid_I }, only the byte string kid_I is conveyed in the plaintext encoded as a bstr_identifier. kid_I is encoded as the corresponding integer - 24 (see bstr_identifier in <xref target="bstr_id"/>), i.e. 0x24 = 36, 36 - 24 = 12, and 12 in CBOR encoding is equal to 0x0c.</t>

<figure><artwork><![CDATA[
P_3ae (CBOR Sequence) (10 bytes)
0c 48 1f b7 5a c1 aa d2 34 25 
]]></artwork></figure>

<t>The Associated data A is the following:
Associated data A = [ “Encrypt0”, h’’, TH_3 ]</t>

<figure><artwork><![CDATA[
A_3ae (CBOR-encoded) (45 bytes)
83 68 45 6e 63 72 79 70 74 30 40 58 20 51 dd 22 43 a6 b8 3f 13 16 dc 53 
29 1a e1 91 cd 93 b4 44 cc e4 80 16 07 03 ee d9 c4 a1 bc b6 11 
]]></artwork></figure>

<t>Key K_3ae is the output of HKDF-Expand(PRK_3e2m, info, L).</t>

<t>info is defined as follows:</t>

<figure><artwork><![CDATA[
info for K_3ae = 
[
  10, 
  h'51DD2243A6B83F1316DC53291AE191CD93B444CCE480160703EED9C4A1BCB611', 
  "K_3ae", 
  16
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for K_3ae (CBOR-encoded) (43 bytes)
84 0a 58 20 51 dd 22 43 a6 b8 3f 13 16 dc 53 29 1a e1 91 cd 93 b4 44 cc 
e4 80 16 07 03 ee d9 c4 a1 bc b6 11 65 4b 5f 33 61 65 10  
]]></artwork></figure>

<t>L is the length of K_3ae, so 16 bytes.</t>

<t>From these parameters, K_3ae is computed:</t>

<figure><artwork><![CDATA[
K_3ae (16 bytes)
bf 29 0b 7e e0 4b 86 5d e1 01 0a 81 1b 36 00 64 
]]></artwork></figure>

<t>Nonce IV_3ae is the output of HKDF-Expand(PRK_3e2m, info, L).</t>

<t>info is defined as follows:</t>

<figure><artwork><![CDATA[
info for IV_3ae =
[
  10, 
  h'51DD2243A6B83F1316DC53291AE191CD93B444CCE480160703EED9C4A1BCB611', 
  "IV_3ae", 
  13
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for IV_3ae (CBOR-encoded) (44 bytes)
84 0a 58 20 51 dd 22 43 a6 b8 3f 13 16 dc 53 29 1a e1 91 cd 93 b4 44 cc 
e4 80 16 07 03 ee d9 c4 a1 bc b6 11 66 49 56 5f 33 61 65 0d 
]]></artwork></figure>

<t>L is the length of IV_3ae, so 13 bytes.</t>

<t>From these parameters, IV_3ae is computed:</t>

<figure><artwork><![CDATA[
IV_3ae (13 bytes)
0e 74 45 0a fc ec e9 73 af 64 e9 4d 46 
]]></artwork></figure>

<t>Using the parameters above, the ‘ciphertext’ CIPHERTEXT_3 can be computed:</t>

<figure><artwork><![CDATA[
CIPHERTEXT_3 (18 bytes)
53 c3 99 19 99 a5 ff b8 69 21 e9 9b 60 7c 06 77 70 e0 
]]></artwork></figure>

<t>From the parameter above, message_3 is computed, as the CBOR Sequence of the following items: (C_R, CIPHERTEXT_3).</t>

<figure><artwork><![CDATA[
message_3 =
(
  h'08',
  h'53C3991999A5FFB86921E99B607C067770E0'
)
]]></artwork></figure>

<t>Which encodes to the following byte string:</t>

<figure><artwork><![CDATA[
message_3 (CBOR Sequence) (20 bytes)
08 52 53 c3 99 19 99 a5 ff b8 69 21 e9 9b 60 7c 06 77 70 e0 
]]></artwork></figure>

</section>
<section anchor="oscore-security-context-derivation-1" title="OSCORE Security Context Derivation">

<t>From here, the Initiator and the Responder can derive an OSCORE Security Context, using the EDHOC-Exporter interface.</t>

<t>From TH_3 and CIPHERTEXT_3, compute the input to the transcript hash TH_4 = H( TH_3, CIPHERTEXT_3 ), as a CBOR Sequence of these 2 data items.</t>

<figure><artwork><![CDATA[
Input to calculate TH_4 (CBOR Sequence) (TODO bytes)
51 dd 22 43 a6 b8 3f 13 16 dc 53 29 1a e1 91 cd 93 b4 44 cc e4 80 16 07 
03 ee d9 c4 a1 bc b6 11 
53 c3 99 19 99 a5 ff b8 69 21 e9 9b 60 7c 06 77 70 e0  
]]></artwork></figure>

<t>And from there, compute the transcript hash TH_4 = SHA-256(TH_3 , CIPHERTEXT_4)</t>

<figure><artwork><![CDATA[
TH_4 (32 bytes)
TODO
]]></artwork></figure>

<t>The Master Secret and Master Salt are derived as follows:</t>

<t>Master Secret = EDHOC-Exporter( “OSCORE Master Secret”, 16 ) = EDHOC-KDF(PRK_4x3m, TH_4, “OSCORE Master Secret”, 16) = Expand( PRK_4x3m, info_ms, 16 )</t>

<t>Master Salt   = EDHOC-Exporter( “OSCORE Master Salt”, 8 ) = EDHOC-KDF(PRK_4x3m, TH_4, “OSCORE Master Salt”, 8) = Expand( PRK_4x3m, info_salt, 8 )</t>

<t>info_ms for OSCORE Master Secret is defined as follows:</t>

<figure><artwork><![CDATA[
info_ms = [
  10, 
  TODO, 
  "OSCORE Master Secret", 
  16
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info_ms for OSCORE Master Secret (CBOR-encoded) (58 bytes)
TODO
]]></artwork></figure>

<t>info_salt for OSCORE Master Salt is defined as follows:</t>

<figure><artwork><![CDATA[
info_salt = [
  10, 
  TODO, 
  "OSCORE Master Salt", 
  8
]
]]></artwork></figure>

<t>Which as a CBOR encoded data item is:</t>

<figure><artwork><![CDATA[
info for OSCORE Master Salt (CBOR-encoded) (56 Bytes)
TODO
]]></artwork></figure>

<t>From these parameters, OSCORE Master Secret and OSCORE Master Salt are computed:</t>

<figure><artwork><![CDATA[
OSCORE Master Secret (16 bytes)
TODO
]]></artwork></figure>

<figure><artwork><![CDATA[
OSCORE Master Salt (8 bytes)
TODO
]]></artwork></figure>

<t>The client’s OSCORE Sender ID is C_R and the server’s OSCORE Sender ID is C_I.</t>

<figure><artwork><![CDATA[
Client's OSCORE Sender ID (1 bytes)
08
]]></artwork></figure>

<figure><artwork><![CDATA[
Server's OSCORE Sender ID (0 bytes)
21
]]></artwork></figure>

<t>The AEAD Algorithm and the hash algorithm are the application AEAD and hash algorithms in the selected cipher suite.</t>

<figure><artwork><![CDATA[
OSCORE AEAD Algorithm (int)
10
]]></artwork></figure>

<figure><artwork><![CDATA[
OSCORE Hash Algorithm (int)
-16
]]></artwork></figure>

</section>
</section>
</section>
<section anchor="applicability" title="Applicability Statement Template">

<t>EDHOC requires certain parameters to be agreed upon between Initiator and Responder. A cipher suite is negotiated with the protocol, but certain other parameters need to be agreed beforehand:</t>

<t><list style="numbers">
  <t>Method and correlation of underlying transport messages (METHOD_CORR, see <xref target="method"/> and <xref target="corr"/>).</t>
  <t>Type of authentication credentials (CRED_I, CRED_R, see <xref target="id_cred"/>).</t>
  <t>Type for identifying authentication credentials (ID_CRED_I, ID_CRED_R, see <xref target="id_cred"/>).</t>
  <t>Type and use of Auxiliary Data AD_1, AD_2, AD_3 (see <xref target="AD"/>).</t>
  <t>Identifier used as identity of endpoint (see <xref target="auth-key-id"/>).</t>
</list></t>

<t>An example of an applicability statement is shown in the next section.</t>

<t>Note that for some of the parameters, like METHOD_CORR, ID_CRED_x, type of AD_x, the receiver is able to assert whether it supports the parameter or not and thus, if it fails, to infer why.</t>

<t>For other parameters, like type of authentication credential, it may be more difficult to detect if the receiver got the wrong type since the credential is not necessarily transported, and a failed integrity of the received message may be caused by other circumstances. For example in the case of public key certificates there is a large variety of profiles and alternative encodings, which the applicability statement needs to nail down.</t>

<t>Note also that it is not always necessary for the endpoints to agree on the transport for the EDHOC messages. For example, a mix of CoAP and HTTP may be used along the path and still allow correlation between message_1 and message_2.</t>

<section anchor="use-of-edhoc-in-the-xx-protocol" title="Use of EDHOC in the XX Protocol">

<t>For use of EDHOC in the XX protocol, the following assumptions are made on the parameters.</t>

<t><list style="symbols">
  <t>METHOD_CORR = 5
  <list style="symbols">
      <t>method = 1 (I uses signature key, R uses static DH key.)</t>
      <t>corr = 1 (CoAP Token or other transport data enables correlation between message_1 and message_2.)</t>
    </list></t>
  <t>CRED_I is an 802.1AR IDevID encoded as a CBOR Certificate of type 0 <xref target="I-D.mattsson-cose-cbor-cert-compress"/>.
  <list style="symbols">
      <t>R acquires CRED_I out-of-band, indicated in AD_1</t>
      <t>ID_CRED_I = {4: h’’} is a kid with value empty byte string</t>
    </list></t>
  <t>CRED_R is a COSE_Key of type OKP as specified in <xref target="id_cred"/>.
  <list style="symbols">
      <t>The CBOR map has parameters 1 (kty), -1 (crv), and -2 (x-coordinate).</t>
    </list></t>
  <t>ID_CRED_R = CRED_R</t>
  <t>AD_1 contains Auxiliary Data of type A (TBD)</t>
  <t>AD_2 contains Auxiliary Data of type B (TBD)</t>
</list></t>

<t>Auxiliary Data is processed as specified in <xref target="I-D.ietf-ace-oauth-authz"/>.</t>

<t><list style="symbols">
  <t>Need to specify use of C_I/C_R ? (TBD)</t>
</list></t>

</section>
</section>
<section numbered="no" anchor="acknowledgments" title="Acknowledgments">

<t>The authors want to thank Alessandro Bruni, Karthikeyan Bhargavan, Timothy Claeys, Martin Disch, Theis Grønbech Petersen, Dan Harkins, Klaus Hartke, Russ Housley, Stefan Hristozov, Alexandros Krontiris, Ilari Liusvaara, Karl Norrman, Salvador Pérez, Eric Rescorla, Michael Richardson, Thorvald Sahl Jørgensen, Jim Schaad, Carsten Schürmann, Ludwig Seitz, Stanislav Smyshlyaev, Valery Smyslov, Rene Struik, Vaishnavi Sundararajan, Erik Thormarker, Marco Tiloca,  Michel Veillette, and Malisa Vucinic for reviewing and commenting on intermediate versions of the draft. We are especially indebted to Jim Schaad for his continuous reviewing and implementation of different versions of the draft.</t>

</section>


  </back>

<!-- ##markdown-source:
H4s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