coapcore/
iana.rs

1//! Constants assigned by IANA.
2//!
3//! This includes constants that are not yet assigned, but we need some value to work with.
4//!
5//! Beware that many numbers assigned by IANA also find their way into the [`crate::ace`] module,
6//! where the minicbor map keys can use constants.
7
8/// The EDHOC External Authorization Data Registry (EAD Items)
9pub(crate) mod edhoc_ead {
10    /// ACE-OAuth Access Token
11    ///
12    /// **Not an official value yet**; described in
13    /// [Section 10.8 of the ACE-EDHOC
14    /// profile](https://datatracker.ietf.org/doc/html/draft-ietf-ace-edhoc-oscore-profile-06#section-10.8).
15    pub(crate) const ACETOKEN: u16 = 20;
16}
17
18/// The [COSE Algorithms](https://www.iana.org/assignments/cose/cose.xhtml#algorithms) registry
19pub(crate) mod cose_alg {
20    /// HMAC 256/256 (from COSE Algorithms)
21    pub(crate) const HKDF_HMAC256256: i32 = 5;
22
23    /// AES-CCM-16-64-128
24    pub(crate) const AES_CCM_16_64_128: i32 = 10;
25}