Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
eax.h File Reference
#include <wireshark.h>

Go to the source code of this file.

Classes

struct  tagMAC_T
 

Macros

#define EAX_MODE_CLEARTEXT_AUTH   1
 
#define EAX_MODE_CIPHERTEXT_AUTH   2
 
#define EAX_SIZEOF_KEY   16
 

Typedefs

typedef struct tagMAC_T MAC_T
 

Functions

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)
 

Detailed Description

Encryption and decryption routines implementing the EAX' encryption mode Copyright 2010, Edward J. Beroset, edwar.nosp@m.d.j..nosp@m.beros.nosp@m.et@u.nosp@m.s.els.nosp@m.ter..nosp@m.com

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later

Function Documentation

◆ 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).

Parameters
[in]pNpointer to cleartext (canonified form)
[in]pKpointer to secret key
[in,out]pCpointer to ciphertext
[in]SizeNbyte length of cleartext (pN) buffer
[in]SizeKbyte length of secret key (pK)
[in]SizeCbyte length of ciphertext (pC) buffer
[in]pMacfour-byte Message Authentication Code
[in]ModeEAX_MODE_CLEARTEXT_AUTH or EAX_MODE_CIPHERTEXT_AUTH
Returns
true if message has been authenticated; false if not authenticated, invalid Mode or error