13 #ifndef PACKET_ZBEE_SECURITY_H 14 #define PACKET_ZBEE_SECURITY_H 30 #define ZBEE_SEC_CONTROL_LEVEL 0x07 31 #define ZBEE_SEC_CONTROL_KEY 0x18 32 #define ZBEE_SEC_CONTROL_NONCE 0x20 35 #define ZBEE_SEC_NONE 0x00 36 #define ZBEE_SEC_MIC32 0x01 37 #define ZBEE_SEC_MIC64 0x02 38 #define ZBEE_SEC_MIC128 0x03 39 #define ZBEE_SEC_ENC 0x04 40 #define ZBEE_SEC_ENC_MIC32 0x05 41 #define ZBEE_SEC_ENC_MIC64 0x06 42 #define ZBEE_SEC_ENC_MIC128 0x07 45 #define ZBEE_SEC_KEY_LINK 0x00 46 #define ZBEE_SEC_KEY_NWK 0x01 47 #define ZBEE_SEC_KEY_TRANSPORT 0x02 48 #define ZBEE_SEC_KEY_LOAD 0x03 51 #define ZBEE_SEC_CONST_L 2 52 #define ZBEE_SEC_CONST_NONCE_LEN (ZBEE_SEC_CONST_BLOCKSIZE-ZBEE_SEC_CONST_L-1) 53 #define ZBEE_SEC_CONST_BLOCKSIZE 16 56 #define ZBEE_SEC_CCM_FLAG_L 0x01 57 #define ZBEE_SEC_CCM_FLAG_M(m) ((((m-2)/2) & 0x7)<<3) 58 #define ZBEE_SEC_CCM_FLAG_ADATA(l_a) ((l_a>0)?0x40:0x00) 61 #define ZBEE_SEC_PC_KEY 0 64 extern void zbee_security_register (
module_t *module,
int proto);
68 extern gboolean zbee_sec_ccm_decrypt(
const gchar *,
const gchar *,
const gchar *,
const gchar *, gchar *, guint, guint, guint);
71 extern void zbee_sec_add_key_to_keyring(
packet_info *,
const guint8 *);
Definition: packet_info.h:44
Definition: prefs-int.h:27
Definition: tvbuff-int.h:35
Definition: packet-zbee-security.h:17