ESPHome  2025.2.0
Functions
esphome::xxtea Namespace Reference

Functions

void encrypt (uint32_t *v, size_t n, const uint32_t *k)
 Encrypt a block of data in-place using XXTEA algorithm with 256-bit key. More...
 
void decrypt (uint32_t *v, size_t n, const uint32_t *k)
 Decrypt a block of data in-place using XXTEA algorithm with 256-bit key. More...
 

Function Documentation

◆ decrypt()

void esphome::xxtea::decrypt ( uint32_t *  v,
size_t  n,
const uint32_t *  k 
)

Decrypt a block of data in-place using XXTEA algorithm with 256-bit key.

Parameters
vData to decrypt (as array of 32-bit words)
nNumber of 32-bit words in data
kKey (array of 8 32-bit words)

Definition at line 27 of file xxtea.cpp.

◆ encrypt()

void esphome::xxtea::encrypt ( uint32_t *  v,
size_t  n,
const uint32_t *  k 
)

Encrypt a block of data in-place using XXTEA algorithm with 256-bit key.

Parameters
vData to encrypt (as array of 32-bit words)
nNumber of 32-bit words in data
kKey (array of 8 32-bit words)

Definition at line 9 of file xxtea.cpp.