#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 <URL:http://www.cl.cam.ac.uk/ftp/users/djw3/tea.ps>.

       This implementation is based on their code in
       <URL:http://www.cl.cam.ac.uk/ftp/users/djw3/xtea.ps> */

	#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