libcoap 4.3.5-develop-19cef11
|
coap-oscore-conf — CoAP OSCORE configuration file format
The OSCORE configuration file is read in when using the *-E* oscore_conf_file option for the coap-client(5) or coap-server(5) executables. This then allows a client or server to use OSCORE to protect the CoAP information between endpoints (RFC8613).
It is also read in and parsed by coap_new_oscore_conf(3).
This configuration file can be a configuration held in memory, the formatting of the memory region is same as that for a file as if the file was mapped into memory. The coap_new_oscore_conf(3) function uses the memory version of the file.
The configuration file comprises of a set of keywords, the value of the keyword encoding type and the keyword value, one per line, comma separated.
keyword,encoding,value
The keywords are case sensitive. If a line starts with a #, then it is treated as a comment line and so is ignored. Empty lines are also valid and ignored.
The possible encodings are:
The valid keywords are:
Diagnostic testing options
# Master Secret (same for both client and server) master_secret,hex,"0102030405060708090a0b0c0d0e0f10" # Master Salt (same for both client and server) master_salt,hex,"9e7ca92223786340" # Sender ID sender_id,ascii,"server" # Recipient ID recipient_id,ascii,"client" # Replay Window (usually 32) replay_window,integer,32 # AEAD COSE Cipher Algorithm (usually 10) aead_alg,integer,10 # HKDF COSE Algorithm (usually -10) hkdf_alg,integer,-10
# Master Secret (same for both client and server) master_secret,hex,"0102030405060708090a0b0c0d0e0f10" # Master Salt (same for both client and server) master_salt,hex,"9e7ca92223786340" # Sender ID (This is the client who is the Sender) sender_id,ascii,"client" # Recipient ID (It is the server that is remote) recipient_id,ascii,"server" # Replay Window (usually 32) replay_window,integer,32 # AEAD COSE Cipher Algorithm (usually 10) aead_alg,integer,10 # HKDF COSE Algorithm (usually -10) hkdf_alg,integer,-10
See
"RFC8613: Object Security for Constrained RESTful Environments (OSCORE)"
for further information.
Please raise an issue on GitHub at https://github.com/obgm/libcoap/issues to report any bugs.
Please raise a Pull Request at https://github.com/obgm/libcoap/pulls for any fixes.