encrypt_xxtea.h 498 B

123456789101112
  1. #ifndef __XXTEA_H__
  2. #define __XXTEA_H__
  3. typedef unsigned int xxtea_uint;
  4. unsigned char* xxtea_encrypt(unsigned char *data, xxtea_uint data_len, unsigned char *key, xxtea_uint key_len, xxtea_uint *ret_length);
  5. unsigned char* xxtea_decrypt(unsigned char *data, xxtea_uint data_len, unsigned char *key, xxtea_uint key_len, xxtea_uint *ret_length);
  6. void xxtea_uint_encrypt(xxtea_uint *v, xxtea_uint len, xxtea_uint *k);
  7. void xxtea_uint_decrypt(xxtea_uint *v, xxtea_uint len, xxtea_uint *k);
  8. #endif