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
33 #define ZBEE_SEC_CONTROL_VERIFIED_FC 0x40
36 #define ZBEE_SEC_NONE 0x00
37 #define ZBEE_SEC_MIC32 0x01
38 #define ZBEE_SEC_MIC64 0x02
39 #define ZBEE_SEC_MIC128 0x03
40 #define ZBEE_SEC_ENC 0x04
41 #define ZBEE_SEC_ENC_MIC32 0x05
42 #define ZBEE_SEC_ENC_MIC64 0x06
43 #define ZBEE_SEC_ENC_MIC128 0x07
46 #define ZBEE_SEC_KEY_LINK 0x00
47 #define ZBEE_SEC_KEY_NWK 0x01
48 #define ZBEE_SEC_KEY_TRANSPORT 0x02
49 #define ZBEE_SEC_KEY_LOAD 0x03
52 #define ZBEE_SEC_CONST_L 2
53 #define ZBEE_SEC_CONST_NONCE_LEN (ZBEE_SEC_CONST_BLOCKSIZE-ZBEE_SEC_CONST_L-1)
54 #define ZBEE_SEC_CONST_BLOCKSIZE 16
57 #define ZBEE_SEC_CCM_FLAG_L 0x01
58 #define ZBEE_SEC_CCM_FLAG_M(m) ((((m-2)/2) & 0x7)<<3)
59 #define ZBEE_SEC_CCM_FLAG_ADATA(l_a) ((l_a>0)?0x40:0x00)
62 #define ZBEE_SEC_PC_KEY 0
65 extern void zbee_security_register (
module_t *module,
int proto);
69 extern gboolean zbee_sec_ccm_decrypt(
const gchar *,
const gchar *,
const gchar *,
const gchar *, gchar *, guint, guint, guint);
72 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