|
Z-Wave Protocol Controller Reference
|
Z-Wave Keystore. More...
Enumerations | |
| enum | zwave_s2_keystore_ecdh_key_mode_t { ZWAVE_S2_KEYSTORE_STATIC_ECDH_KEY , ZWAVE_S2_KEYSTORE_DYNAMIC_ECDH_KEY } |
| ECDH key mode types. More... | |
Functions | |
| void | zwave_s2_keystore_get_dsk (zwave_s2_keystore_ecdh_key_mode_t mode, zwave_dsk_t dsk) |
| Return one of the DSKs of the controller. More... | |
| uint8_t | zwave_s2_keystore_get_assigned_keys () |
| Get the set of the currently assigned keys. More... | |
| void | zwave_s2_keystore_reset_assigned_keys () |
| Resets the list of assigned keys (sets them to 0) Use this function before receiving keys when entering in a network. More... | |
| void | zwave_s2_create_new_network_keys () |
| void | zwave_s2_log_security_keys (sl_log_level_t log_level) |
| void | zwave_s2_save_security_keys (const char *filename) |
Z-Wave Keystore.
The Z-Wave keystore is storing, accesing and gerating the Z-Wave network keys as well as the ECDH keys which are used in Security 2. All keys are stored in the NVM of the Z-Wave module.
ECDH key mode types.
| void zwave_s2_create_new_network_keys | ( | ) |
Create new random network keys, which marks all keys as granted.
| uint8_t zwave_s2_keystore_get_assigned_keys | ( | ) |
Get the set of the currently assigned keys.
| void zwave_s2_keystore_get_dsk | ( | zwave_s2_keystore_ecdh_key_mode_t | mode, |
| zwave_dsk_t | dsk | ||
| ) |
Return one of the DSKs of the controller.
This function can be used fetch the DSK of the controller. There are two use cases of this, as follows:
| mode | Which dsk to get. |
| dsk | pointer to a zwave_dsk_t to copy the dsk to. |
| void zwave_s2_keystore_reset_assigned_keys | ( | ) |
Resets the list of assigned keys (sets them to 0) Use this function before receiving keys when entering in a network.
| void zwave_s2_log_security_keys | ( | sl_log_level_t | log_level | ) |
Logs the Security Keys using sl_log.
| log_level | The Log leve to use to log the keys. |
| void zwave_s2_save_security_keys | ( | const char * | filename | ) |
Save the Z-Wave Security Keys in a file in Zniffer friendly format.
| filename | Name/path of the file where keys should be saved |