![]() |
ROOT-Sim core
3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
|
XXTEA block cipher. More...
#include <stdint.h>

Go to the source code of this file.
Functions | |
| void | xxtea_encode (uint32_t *restrict v, unsigned n, uint32_t const key[restrict 4]) |
| Encode a array of data with the XXTEA algorithm Encoding is done in place. More... | |
| void | xxtea_decode (uint32_t *restrict v, unsigned n, uint32_t const key[restrict 4]) |
| Decode a array of data with the XXTEA algorithm Decoding is done in place. More... | |
XXTEA block cipher.
An implementation of the XXTEA block cipher
| void xxtea_decode | ( | uint32_t *restrict | v, |
| unsigned | n, | ||
| uint32_t const | key[restrict 4] | ||
| ) |
Decode a array of data with the XXTEA algorithm Decoding is done in place.
| v | a pointer to the array of data to decode |
| n | the number of 32 bits blocks in v |
| key | the key used to perform the decoding |
| void xxtea_encode | ( | uint32_t *restrict | v, |
| unsigned | n, | ||
| uint32_t const | key[restrict 4] | ||
| ) |
Encode a array of data with the XXTEA algorithm Encoding is done in place.
| v | a pointer to the array of data to encode |
| n | the number of 32 bits blocks in v |
| key | the key used to perform the encoding |