3 * Implementation of XTEA cipher
4 * By Ahmad Fatoum <ahmad[AT]a3f.at>
5 * Copyright 2017 Ahmad Fatoum
7 * Wireshark - Network traffic analyzer
8 * By Gerald Combs <gerald@wireshark.org>
9 * Copyright 1998 Gerald Combs
11 * SPDX-License-Identifier: GPL-2.0-or-later
17 /* Actual XTEA is big-endian, nevertheless there exist protocols that treat every block
18 * as little endian, so we provide both
20 #include "wireshark.h"
22 WS_DLL_PUBLIC
void decrypt_xtea_ecb(uint8_t plaintext
[8], const uint8_t ciphertext
[8], const uint32_t key
[4], unsigned num_rounds
);
24 WS_DLL_PUBLIC
void decrypt_xtea_le_ecb(uint8_t plaintext
[8], const uint8_t ciphertext
[8], const uint32_t key
[4], unsigned num_rounds
);
26 #endif /* __XTEA_H__ */
29 * Editor modelines - https://www.wireshark.org/tools/modelines.html
34 * indent-tabs-mode: nil
37 * vi: set shiftwidth=4 tabstop=8 expandtab:
38 * :indentSize=4:tabSize=8:noTabs=true: