anjay
Loading...
Searching...
No Matches
anjay_oscore_instance_t Struct Reference

#include <oscore.h>

Data Fields

char master_secret [AVS_COAP_OSCORE_AES_128_KEY_LENGTH+1]
 
char master_salt [AVS_COAP_OSCORE_MAX_MASTER_SALT_LENGTH+1]
 
char sender_id [AVS_COAP_OSCORE_MAX_PEER_ID_LENGTH+1]
 
char recipient_id [AVS_COAP_OSCORE_MAX_PEER_ID_LENGTH+1]
 
const char * id_context
 

Field Documentation

◆ id_context

const char* id_context

This resource is used to store (as NULL-terminated string) an OSCORE ID Context.

If not set, the ID Context will be negotiated using mechanism defined in RFC 8613, appendix B.2.

The pointer to the buffer is required to be valid only until the call to anjay_oscore_add_instance .

Maximum accepted length (excluding NULL-terminator): 255.

◆ master_salt

char master_salt[AVS_COAP_OSCORE_MAX_MASTER_SALT_LENGTH+1]

This resource is used to store (as NULL-terminated string) a non-secret random string called the Master Salt. The Master Salt is used to derive the security context used by OSCORE.

Maximum accepted length (excluding NULL-terminator): 16.

◆ master_secret

char master_secret[AVS_COAP_OSCORE_AES_128_KEY_LENGTH+1]

This resource is used to store (as NULL-terminated string) the pre-shared key used in LwM2M Client and LwM2M Server/Bootstrap-Server.

Maximum accepted length (excluding NULL-terminator): 16.

◆ recipient_id

char recipient_id[AVS_COAP_OSCORE_MAX_PEER_ID_LENGTH+1]

This resource is used to store (as NULL-terminated string) an OSCORE identifier for the LwM2M Client called the Recipient ID.

Maximum accepted length (excluding NULL-terminator): 7.

◆ sender_id

char sender_id[AVS_COAP_OSCORE_MAX_PEER_ID_LENGTH+1]

This resource is used to store (as NULL terminated string) an OSCORE identifier for the LwM2M Client called the Sender ID.

Maximum accepted length (excluding NULL-terminator): 7.


The documentation for this struct was generated from the following file: