Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

xtea.h
1 /* xtea.h
2 * Implementation of XTEA cipher
3 * By Ahmad Fatoum <ahmad[AT]a3f.at>
4 * Copyright 2017 Ahmad Fatoum
5 *
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
9 *
10 * SPDX-License-Identifier: GPL-2.0-or-later
11 */
12
13 #ifndef __XTEA_H__
14 #define __XTEA_H__
15
16 /* Actual XTEA is big-endian, nevertheless there exist protocols that treat every block
17 * as little endian, so we provide both
18 */
19 #include "ws_symbol_export.h"
20 #include <glib.h>
21
22 WS_DLL_PUBLIC void decrypt_xtea_ecb(guint8 plaintext[8], const guint8 ciphertext[8], const guint32 key[4], guint num_rounds);
23
24 WS_DLL_PUBLIC void decrypt_xtea_le_ecb(guint8 plaintext[8], const guint8 ciphertext[8], const guint32 key[4], guint num_rounds);
25
26 #endif /* __XTEA_H__ */
27
28 /*
29 * Editor modelines - http://www.wireshark.org/tools/modelines.html
30 *
31 * Local variables:
32 * c-basic-offset: 4
33 * tab-width: 8
34 * indent-tabs-mode: nil
35 * End:
36 *
37 * vi: set shiftwidth=4 tabstop=8 expandtab:
38 * :indentSize=4:tabSize=8:noTabs=true:
39 */