---restore content starts---
#define Key_type_tc_master 0//Trust Center master key Truststore master keys
#define KEY_TYPE_NWK 1//Standard network key
#define Key_type_app_master 2//Application master key app master keys
#define Key_type_app_link 3//Application key to link key application
#define Key_type_tc_link 4//Trust Center link Key trusted Centre link keys
#define Key_type_nwk_high 5//High Security Network key
such as: ZigBee Secure Communication has 3 nodes a node for the Trust Center (C) Two nodes (A B) need to communicate,
So the right steps:
First ABC equipment in the factory, all cured a public key, also known as Trust Center link key. C after power-up network, when establishing a network, will determine a network communication secret key, also known as net key, this determined process can be pre-cured, or can be randomly generated. A and B in the network, C will send network key A and B, the network key sent using Trust Center link key to encrypt, to prevent the plaintext from being stolen. A and B received, they know network key, and later the communication between the ABC with network key to encrypt.
---restore content ends---
ZigBee Secure Communication Encryption link key