Skip to content

Commit

Permalink
fix: consistent use of the term "tag" (#139)
Browse files Browse the repository at this point in the history
* fix: consistent use of the term "tag"

Signed-off-by: Thomas Fossati <[email protected]>
  • Loading branch information
thomas-fossati authored Nov 15, 2024
1 parent 2f05921 commit e259ac7
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions draft-ietf-rats-msg-wrap.md
Original file line number Diff line number Diff line change
Expand Up @@ -226,19 +226,15 @@ Future specifications may add new values to the `ind` field; see {{iana-ind-ext}

## CMW CBOR Tags {#cbor-tag}

CBOR Tags used as CMW are derived from CoAP Content-Format numbers.
If a CoAP content format exists for a RATS conceptual message, the
`TN()` transform defined in {{Appendix B of RFC9277}} is used to
derive a corresponding CBOR tag in range \[1668546817, 1668612095\].
CMW of type CBOR Tag derive their tag numbers from a corresponding CoAP Content-Format ID using the `TN()` transform defined in {{Appendix B of RFC9277}}.
Such CBOR tag numbers are in range \[1668546817, 1668612095\].

The RATS conceptual message is first serialized according to the
Content-Format number associated with the CBOR tag and then encoded as a
CBOR byte string, to which the tag is prepended.
The RATS conceptual message is first serialized according to the Content-Format ID and then encoded as a CBOR byte string, to which the TN-derived tag number is prepended.

The CMW CBOR Tag is defined in {{fig-cddl-cbor-tag}} using two different macros.
One for "native" CBOR types, the other for all other types.
One for CBOR-encoded types, the other for all other types.
Both macros take the CBOR tag number `tn` as a parameter.
The `cbor-tagged-cbor` macro also takes the CDDL definition of the associated conceptual message `fmt` as a second parameter.
The `cbor-tagged-cbor` macro takes the CDDL definition of the associated conceptual message `fmt` as a second parameter.

~~~ cddl
{::include cddl/cmw-cbor-tag.cddl}
Expand Down

0 comments on commit e259ac7

Please sign in to comment.