ESPHome  2025.2.0
xxtea.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 #include <cstddef>
5 
6 namespace esphome {
7 namespace xxtea {
8 
15 void encrypt(uint32_t *v, size_t n, const uint32_t *k);
16 
23 void decrypt(uint32_t *v, size_t n, const uint32_t *k);
24 
25 } // namespace xxtea
26 } // namespace esphome
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.
Definition: xxtea.cpp:9
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.
Definition: xxtea.cpp:27
Implementation of SPI Controller mode.
Definition: a01nyub.cpp:7