Contiki-NG
Loading...
Searching...
No Matches
edhoc-config.h File Reference

EDHOC configuration file. More...

Go to the source code of this file.

Macros

#define EDHOC_MAX_BUFFER   256
 The max size of the buffers.
#define EDHOC_MAX_CRED_LEN   128
 Optimized buffer sizes for credentials based on COSE standard analysis CRED_X: 84-120 bytes typical → 128 bytes (safe margin) ID_CRED_X: 4-7 bytes (KID mode) or 84-120 bytes (include mode).
#define EDHOC_SUITES_MAX_COUNT   10
 The max number of suites.
#define EDHOC_CID   0x1
 Set EDHOC connection identifier.
#define EDHOC_MAX_CID_LEN   8
 Maximum length of connection identifiers RFC 9528 allows variable-length CIDs including negative integers.
#define EDHOC_DEFAULT_CID_LEN   1
 Default CID length for backward compatibility.
#define EDHOC_MAX_KID_LEN   4
 Maximum length of Key Identifiers (KID) in credentials COSE Key IDs can be 1-4 bytes typically, but allowing larger for flexibility.
#define EDHOC_MAX_IDENTITY_LEN   32
 Maximum length of identity strings in credentials Used for human-readable credential identities (e.g., "example.edu").
#define EDHOC_ROLE   EDHOC_INITIATOR
 Set the EDHOC Protocol role.
#define EDHOC_METHOD   EDHOC_METHOD0
 Set the Authentication method.
#define EDHOC_MAC_OR_SIG_BUF_LEN   P256_SIGNATURE_LEN
 Buffer size for mac_or_sig.
#define INITIATOR_METHOD2   (EDHOC_METHOD == EDHOC_METHOD2 && EDHOC_ROLE == EDHOC_INITIATOR)
 Helper defines for method handling on msg.
#define EDHOC_AUTHENT_TYPE   EDHOC_CRED_KID
 Set the authentication credential type/usage.
#define P256_SIGNATURE_LEN   64
 Length of signatures.
#define EDHOC_SUPPORTED_SUITE_1   -1
 Set EDHOC cipher suite config.
#define EDHOC_CONF_ATTEMPTS   2
 The number of attempts to try to connect with the EDHOC server successfully.
#define EDHOC_MAX_PAYLOAD_LEN   256
 The max length of the EDHOC message.
#define EDHOC_MAX_AD_SZ   8
 The max length of the Application Data.
#define EDHOC_EAD_PROCESSING   1
 Enable/disable External Authorization Data (EAD) processing.
#define EDHOC_COAP_URI_PATH   ".well-known/edhoc"
 EDHOC resource CoAP URI path.

Detailed Description

EDHOC configuration file.

Author
Lidia Pocero pocer.nosp@m.o@is.nosp@m.i.gr, Rikard Höglund, Marco Tiloca, Niclas Finne nicla.nosp@m.s.fi.nosp@m.nne@r.nosp@m.i.se, and Nicolas Tsiftes nicol.nosp@m.as.t.nosp@m.sifte.nosp@m.s@ri.nosp@m..se

Definition in file edhoc-config.h.