| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
xtea.h
Go to the documentation of this file.
1
14#ifndef __XTEA_H__
15#define __XTEA_H__
16
17/* Actual XTEA is big-endian, nevertheless there exist protocols that treat every block
18 * as little endian, so we provide both
19 */
20#include "wireshark.h"
21
30WS_DLL_PUBLIC void decrypt_xtea_ecb(uint8_t plaintext[8], const uint8_t ciphertext[8], const uint32_t key[4], unsigned num_rounds);
31
40WS_DLL_PUBLIC void decrypt_xtea_le_ecb(uint8_t plaintext[8], const uint8_t ciphertext[8], const uint32_t key[4], unsigned num_rounds);
41
42#endif /* __XTEA_H__ */
43
44/*
45 * Editor modelines - https://www.wireshark.org/tools/modelines.html
46 *
47 * Local variables:
48 * c-basic-offset: 4
49 * tab-width: 8
50 * indent-tabs-mode: nil
51 * End:
52 *
53 * vi: set shiftwidth=4 tabstop=8 expandtab:
54 * :indentSize=4:tabSize=8:noTabs=true:
55 */
decrypt_xtea_ecb
WS_DLL_PUBLIC void decrypt_xtea_ecb(uint8_t plaintext[8], const uint8_t ciphertext[8], const uint32_t key[4], unsigned num_rounds)
Decrypt a single 64-bit block using XTEA in ECB mode.
Definition xtea.c:19
decrypt_xtea_le_ecb
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)
Decrypt a single 64-bit block using XTEA in little-endian ECB mode.
Definition xtea.c:39