aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-zbee-security.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2010-10-24 10:04:29 +0000
committerAnders Broman <anders.broman@ericsson.com>2010-10-24 10:04:29 +0000
commit43cb273d08e3d2e9f5526adcd9acf7cce2dd88f8 (patch)
treed6365afbff5e656a1e54da04c4945873eedd51fb /epan/dissectors/packet-zbee-security.h
parentdbd143d68a42c17e69c0f356427c7256088eac75 (diff)
From Fred Fierling:
Multi-key Support and Extended Address Mapping for ZigBee Dissectors https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5331 svn path=/trunk/; revision=34627
Diffstat (limited to 'epan/dissectors/packet-zbee-security.h')
-rw-r--r--epan/dissectors/packet-zbee-security.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/epan/dissectors/packet-zbee-security.h b/epan/dissectors/packet-zbee-security.h
index 257de8302c..56aee490e9 100644
--- a/epan/dissectors/packet-zbee-security.h
+++ b/epan/dissectors/packet-zbee-security.h
@@ -30,13 +30,13 @@
/* Structure containing the fields stored in the Aux Header */
typedef struct{
/* The fields of the Aux Header */
- guint8 control;
- guint32 counter;
- guint64 src;
+ guint8 control; /* needed to decrypt */
+ guint32 counter; /* needed to decrypt */
+ guint64 src64; /* needed to decrypt */
guint8 key_seqno;
guint8 level;
- guint8 key;
+ guint8 key_id; /* needed to decrypt */
gboolean nonce;
} zbee_security_packet;
@@ -64,7 +64,6 @@ typedef struct{
/* ZigBee Security Constants. */
#define ZBEE_SEC_CONST_L 2
#define ZBEE_SEC_CONST_NONCE_LEN (ZBEE_SEC_CONST_BLOCKSIZE-ZBEE_SEC_CONST_L-1)
-#define ZBEE_SEC_CONST_KEYSIZE 16
#define ZBEE_SEC_CONST_BLOCKSIZE 16
/* CCM* Flags */
@@ -72,6 +71,9 @@ typedef struct{
#define ZBEE_SEC_CCM_FLAG_M(m) ((((m-2)/2) & 0x7)<<3) /* 3-bit encoding of (M-2)/2 shifted 3 bits. */
#define ZBEE_SEC_CCM_FLAG_ADATA(l_a) ((l_a>0)?0x40:0x00) /* Adata flag. */
+/* Program Constants */
+#define ZBEE_SEC_PC_KEY 0
+
/* Init routine for the Security dissectors. */
extern void zbee_security_register (module_t *module, int proto);
extern void zbee_security_handoff (void);