ROOT-Sim core  3.0.0-rc.2
A General-Purpose Multi-threaded Parallel/Distributed Simulation Library
Functions
xxtea.h File Reference

XXTEA block cipher. More...

#include <stdint.h>
Include dependency graph for xxtea.h:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

XXTEA block cipher.

An implementation of the XXTEA block cipher

Function Documentation

◆ xxtea_decode()

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.

Parameters
va pointer to the array of data to decode
nthe number of 32 bits blocks in v
keythe key used to perform the decoding

◆ xxtea_encode()

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.

Parameters
va pointer to the array of data to encode
nthe number of 32 bits blocks in v
keythe key used to perform the encoding