| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
eax.h
Go to the documentation of this file.
1
12#ifndef _EAX_H
13#define _EAX_H
14
15#include <wireshark.h>
16
21 typedef struct tagMAC_T
22{
23 uint8_t Mac[4];
24} MAC_T;
25
26#define EAX_MODE_CLEARTEXT_AUTH 1
27#define EAX_MODE_CIPHERTEXT_AUTH 2
28
29#define EAX_SIZEOF_KEY 16
30
44WS_DLL_PUBLIC
45 bool Eax_Decrypt(uint8_t *pN, uint8_t *pK, uint8_t *pC,
46 uint32_t SizeN, uint32_t SizeK, uint32_t SizeC, MAC_T *pMac,
47 uint8_t Mode);
48
49#endif
MAC_T
struct tagMAC_T MAC_T
4-byte MAC identifier used in EAX contexts.
Eax_Decrypt
WS_DLL_PUBLIC bool Eax_Decrypt(uint8_t *pN, uint8_t *pK, uint8_t *pC, uint32_t SizeN, uint32_t SizeK, uint32_t SizeC, MAC_T *pMac, uint8_t Mode)
Decrypts cleartext data using EAX' mode (see ANSI Standard C12.22-2008).
Definition eax.c:47
tagMAC_T
4-byte MAC identifier used in EAX contexts.
Definition eax.h:22
tagMAC_T::Mac
uint8_t Mac[4]
Definition eax.h:23