
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 this device. More... | |
| zb_bool_t | zb_se_has_valid_key_by_ieee (zb_ieee_addr_t addr) |
| zb_ret_t | zb_se_debug_get_link_key (zb_uint16_t addr, zb_uint8_t link_key[ZB_CCM_KEY_SIZE]) |
| 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]) |
| zb_ret_t | zb_se_debug_get_nwk_key (zb_uint8_t key[ZB_CCM_KEY_SIZE]) |
| zb_ret_t | zb_se_debug_get_ic_key (zb_uint8_t key[ZB_CCM_KEY_SIZE]) |
| void | zb_se_start_aps_key_establishment (zb_uint8_t param, zb_uint16_t addr) |
| Starts procedure of partner APS Link key establishment with specified device. More... | |
| zb_ret_t zb_se_debug_get_ic_key | ( | zb_uint8_t | key[ZB_CCM_KEY_SIZE] | ) |
Get APS key generated from the current installcode. To be used mainly for debug purposes.
| key | - buffer for the key |
| zb_ret_t zb_se_debug_get_link_key | ( | zb_uint16_t | addr, |
| zb_uint8_t | link_key[ZB_CCM_KEY_SIZE] | ||
| ) |
Get APS link key or TCLK for remote device. To be used mainly for debug purposes. Check key availability using zb_se_has_valid_key() before this call.
| addr | - short address of remote device |
| link_key | - buffer for the key |
| 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] | ||
| ) |
Get APS link key or TCLK for remote device by its long address. To be used mainly for debug purposes.
| ieee | - long address of remote device |
| link_key | - buffer for the key |
| zb_ret_t zb_se_debug_get_nwk_key | ( | zb_uint8_t | key[ZB_CCM_KEY_SIZE] | ) |
Get current NWK key, To be used mainly for debug purposes.
| key | - buffer for the key |
| zb_uint8_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 # |
| [in] | issuer | - buffer with certificate's issuer |
| [in] | subject | - buffer MAC address (IEEE 802.15.4) |
| zb_bool_t zb_se_has_valid_key | ( | zb_uint16_t | addr | ) |
Checks availability of valid keypair for this device.
| [in] | addr | - short address of the remote device |
Valid key is either TCLK to TC established by CBKE procedure or partner APS Link key established using partner link keys establishment procedure.
| zb_bool_t zb_se_has_valid_key_by_ieee | ( | zb_ieee_addr_t | addr | ) |
| zb_uint8_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.
| [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 |
| void zb_se_start_aps_key_establishment | ( | zb_uint8_t | param, |
| zb_uint16_t | addr | ||
| ) |
Starts procedure of partner APS Link key establishment with specified device.
| [in] | param | - reference to the buffer which will be used for outgoing Match Descriptor Request command |
| [in] | addr | - short address of the remote 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 this signals if needed.