leaps_enc_key_set
Sets encryption key. The key is stored in nonvolatile memory. The key that consists of just zeros is considered as invalid. If the key is set, the node can enable encryption automatically. Automatic enabling of the encryption is triggered via UWB network when the node detects encrypted message and is capable of decrypting messages with the key. BLE option is disabled when encryption is enabled automatically. The encryption can be disabled by clearing the key (leaps_enc_key_clear).
This call writes to internal flash in case of new value being set, hence should not be used frequently and can take in worst case hundreds of milliseconds! Requires reset for new configuration to take effect. `
? 16-byte value ? (the encryption key)
Example
TLV request |
||
---|---|---|
Type |
Length |
Value |
0x3C |
0x10 |
0x00 0x11 0x22 0x33 0x44 0x55 0x66 0x77 0x88 0x99 0xAA 0xBB 0xCC 0xDD 0xEE 0xFF |
Type 0x3C means command leaps_enc_key_set
TLV response |
||
---|---|---|
Type |
Length |
Value |
0x40 |
0x01 |
0x00 |
Type 0x40 means status code