joylink_auth_crc.h 402 B

12345678910111213141516171819
  1. #ifndef _CRC_H
  2. #define _CRC_H
  3. #ifdef __LINUX_UB2__
  4. #include <stdint.h>
  5. #endif
  6. #if defined(__MTK_7687__)
  7. #include <stdint.h>
  8. #endif
  9. #include <unistd.h>
  10. #include <stdio.h>
  11. unsigned short CRC16(const unsigned char* buffer, unsigned int size);
  12. unsigned char crc8(unsigned char *A, unsigned char n);
  13. void make_crc32_table();
  14. uint32_t make_crc(uint32_t crc, unsigned char *string, uint32_t size);
  15. #endif