#ifdef __cplusplus extern "C" { #endif /* TEA is a 64-bit symmetric block cipher with a 128-bit key, developed by David J. Wheeler and Roger M. Needham, and described in their paper at . This implementation is based on their code in */ #define TEA_KEY_LENGTH 16 int tea_encrypt(unsigned long *dest, const unsigned long *src, const unsigned long *key, int size); int tea_decrypt(unsigned long *dest, const unsigned long *src, const unsigned long *key, int size); #ifdef __cplusplus }; #endif