Revert "UNUSED enc_key_id_{equal,hash}"
[wireshark-sm.git] / wsutil / xtea.h
blobe166160c04cdf99eb7264d0e590361bff728586d
1 /** @file
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
14 #ifndef __XTEA_H__
15 #define __XTEA_H__
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
31 * Local variables:
32 * c-basic-offset: 4
33 * tab-width: 8
34 * indent-tabs-mode: nil
35 * End:
37 * vi: set shiftwidth=4 tabstop=8 expandtab:
38 * :indentSize=4:tabSize=8:noTabs=true: