/** * \file * * * \brief TEA Tiny Encription Algorith functions. * * Documentation for TEA is available at * http://en.wikipedia.org/wiki/Tiny_Encryption_Algorithm * * \author Francesco Sacchi * * $WIZ$ module_name = "tea" */ #ifndef ALGO_TEA_H #define ALGO_TEA_H #include #define TEA_KEY_LEN 16 //!< TEA key size. #define TEA_BLOCK_LEN 8 //!< TEA block length. #define DELTA 0x9E3779B9 //!< Magic value. (Golden number * 2^31) #define ROUNDS 32 //!< Number of rounds. void tea_enc(void *_v, void *_k); void tea_dec(void *_v, void *_k); #endif /* ALGO_TEA_H */