aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-zbee-security.h
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2010-10-24 10:04:29 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2010-10-24 10:04:29 +0000
commit0bcf7816ce362ff3a0bcebc5f7b850157cc6a25a (patch)
treed6365afbff5e656a1e54da04c4945873eedd51fb /epan/dissectors/packet-zbee-security.h
parent8bf7370e807b2cfae8ec620d8f2b09ecae309316 (diff)
From Fred Fierling:
Multi-key Support and Extended Address Mapping for ZigBee Dissectors https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5331 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34627 f5534014-38df-0310-8fa8-9805f1628bb7
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);