
Functions | |
| zb_ret_t | zb_se_load_ecc_cert (zb_uint16_t suite, zb_uint8_t *ca_public_key, zb_uint8_t *certificate, zb_uint8_t *private_key) |
| Loads device's certificate to NVRAM. More... | |
| zb_ret_t | zb_se_erase_ecc_cert (zb_uint8_t suite_no, zb_uint8_t *issuer, zb_uint8_t *subject) |
| Erases device's certificate from NVRAM. More... | |
| zb_bool_t | zb_se_has_valid_key (zb_uint16_t addr) |
| Checks availability of valid keypair for the specified remote device using its short address. More... | |
| zb_bool_t | zb_se_has_valid_key_by_ieee (zb_ieee_addr_t addr) |
| Checks availability of valid keypair for the specified remote device using its address as a keypair established between a pair of devices. More... | |
| zb_ret_t | zb_se_debug_get_link_key (zb_uint16_t addr, zb_uint8_t link_key[ZB_CCM_KEY_SIZE]) |
| Retrieves APS link key or TCLK for the remote device. More... | |
| zb_ret_t | zb_se_debug_get_link_key_by_long (zb_ieee_addr_t ieee, zb_uint8_t link_key[ZB_CCM_KEY_SIZE]) |
| Retrieves APS link key or TCLK for the remote device using it's long address. More... | |
| zb_ret_t | zb_se_debug_get_nwk_key (zb_uint8_t key[ZB_CCM_KEY_SIZE]) |
| Retrieves current NWK key. More... | |
| zb_ret_t | zb_se_debug_get_ic_key (zb_uint8_t key[ZB_CCM_KEY_SIZE]) |
| Retrieves APS link key generated from the current installcode. More... | |
| void | zb_se_start_aps_key_establishment (zb_uint8_t param, zb_uint16_t addr) |
| Starts procedure of partner APS link key establishment with the specified device. More... | |
| zb_ret_t zb_se_debug_get_ic_key | ( | zb_uint8_t | key[ZB_CCM_KEY_SIZE] | ) |
Retrieves APS link key generated from the current installcode.
| [out] | key | - buffer for the key |
| RET_OK | - on success |
| RET_NOT_FOUND | - no installcode found |
| RET_PROTOCOL_ERROR | - bad CRC in installcode |
| zb_ret_t zb_se_debug_get_link_key | ( | zb_uint16_t | addr, |
| zb_uint8_t | link_key[ZB_CCM_KEY_SIZE] | ||
| ) |
Retrieves APS link key or TCLK for the remote device.
| [in] | addr | - short address of the remote device |
| [out] | link_key | - buffer for the key |
| RET_OK | - on success |
| RET_NOT_FOUND | - link key wasn't found |
| zb_ret_t zb_se_debug_get_link_key_by_long | ( | zb_ieee_addr_t | ieee, |
| zb_uint8_t | link_key[ZB_CCM_KEY_SIZE] | ||
| ) |
Retrieves APS link key or TCLK for the remote device using it's long address.
| [in] | ieee | - long address of the remote device |
| [out] | link_key | - buffer for the key |
| RET_OK | - on success |
| RET_NOT_FOUND | - link key wasn't found |
| zb_ret_t zb_se_debug_get_nwk_key | ( | zb_uint8_t | key[ZB_CCM_KEY_SIZE] | ) |
Retrieves current NWK key.
| [out] | key | - buffer for the key |
| RET_OK | - on success |
| RET_NOT_FOUND | - NWK key wasn't found |
| zb_ret_t zb_se_erase_ecc_cert | ( | zb_uint8_t | suite_no, |
| zb_uint8_t * | issuer, | ||
| zb_uint8_t * | subject | ||
| ) |
Erases device's certificate from NVRAM.
| [in] | suite_no | - CryptoSuite number |
| [in] | issuer | - buffer with certificate's issuer |
| [in] | subject | - buffer MAC address (IEEE 802.15.4) |
| RET_OK | - entry was found and successfully deleted |
| RET_NOT_FOUND | - there was no such entry |
| zb_bool_t zb_se_has_valid_key | ( | zb_uint16_t | addr | ) |
Checks availability of valid keypair for the specified remote device using its short address.
Valid key is either a TCLK to TC established by CBKE procedure or a partner APS link key established using partner link keys establishment procedure.
| [in] | addr | - short address of the remote device |
| ZB_TRUE | - valid key exists |
| ZB_FALSE | - no valid key exists |
| zb_bool_t zb_se_has_valid_key_by_ieee | ( | zb_ieee_addr_t | addr | ) |
Checks availability of valid keypair for the specified remote device using its address as a keypair established between a pair of devices.
Valid key definition is in the zb_se_has_valid_key().
| [in] | addr | - long address of the remote device |
| ZB_TRUE | - valid key exists |
| ZB_FALSE | - no valid key exists |
| zb_ret_t zb_se_load_ecc_cert | ( | zb_uint16_t | suite, |
| zb_uint8_t * | ca_public_key, | ||
| zb_uint8_t * | certificate, | ||
| zb_uint8_t * | private_key | ||
| ) |
Loads device's certificate to NVRAM.
This function is used to store a private key and a digital certificate, which is signed by a Certificate Authority (CA).
| [in] | suite | - CryptoSuite ID (kec_key_suite) |
| [in] | ca_public_key | - buffer with Certification Authority's public key |
| [in] | certificate | - buffer with device's certificate |
| [in] | private_key | - buffer with device's private key |
| RET_OK | - on success |
| RET_CONVERSION_ERROR | - invalid certificate for the issuer |
| void zb_se_start_aps_key_establishment | ( | zb_uint8_t | param, |
| zb_uint16_t | addr | ||
| ) |
Starts procedure of partner APS link key establishment with the specified device.
ZBOSS indicates completion status of this procedure by passing ZB_SE_SIGNAL_APS_KEY_READY and ZB_SE_SIGNAL_APS_KEY_FAIL signals to the application's signal handler. Application should process these signals if needed.
| [in] | param | - reference to the buffer, which will be used for outgoing Match Descriptor Request command |
| [in] | addr | - short address of the remote device |