Added XTEA and Pearson Hashing.

Improved message encryption for RF24.
This commit is contained in:
2018-09-22 22:05:53 +02:00
committed by matzman
parent 15351cdd5b
commit b37cd045d5
12 changed files with 270 additions and 7 deletions
+17
View File
@@ -0,0 +1,17 @@
#ifndef _PEARSONHASH_H_
#define _PEARSONHASH_H_
#include <stdint.h>
class PearsonHash {
public:
static uint16_t calcHash16(const void* data, uint16_t len);
inline static bool checkHash16(uint16_t crc, const void* data, uint16_t len);
private:
static uint8_t _pearsonPermutation(uint8_t n);
};
#endif