Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
eax.h
1 /* eax.h
2  * Encryption and decryption routines implementing the EAX' encryption mode
3  * Copyright 2010, Edward J. Beroset, edward.j.beroset@us.elster.com
4  *
5  * Wireshark - Network traffic analyzer
6  * By Gerald Combs <gerald@wireshark.org>
7  * Copyright 1998 Gerald Combs
8  *
9  * SPDX-License-Identifier: GPL-2.0-or-later
10  */
11 
12 #ifndef _EAX_H
13 #define _EAX_H
14 
15 #include <glib.h>
16 #include "ws_symbol_export.h"
17 
18 typedef struct tagMAC_T
19 {
20  guint8 Mac[4];
21 } MAC_T;
22 
23 #define EAX_MODE_CLEARTEXT_AUTH 1
24 #define EAX_MODE_CIPHERTEXT_AUTH 2
25 
26 #define EAX_SIZEOF_KEY 16
27 
42 WS_DLL_PUBLIC
43 gboolean Eax_Decrypt(guint8 *pN, guint8 *pK, guint8 *pC,
44  guint32 SizeN, guint32 SizeK, guint32 SizeC, MAC_T *pMac,
45  guint8 Mode);
46 
47 #endif
Definition: eax.h:18