14 #include "ws_symbol_export.h" 20 #define CRC32_CCITT_SEED 0xFFFFFFFF 21 #define CRC32C_PRELOAD 0xffffffff 22 #define CRC32_MPEG2_SEED 0xFFFFFFFF 27 #define CRC32C_SWAP(crc32c_value) \ 28 (((crc32c_value & 0xff000000) >> 24) | \ 29 ((crc32c_value & 0x00ff0000) >> 8) | \ 30 ((crc32c_value & 0x0000ff00) << 8) | \ 31 ((crc32c_value & 0x000000ff) << 24)) 35 WS_DLL_PUBLIC guint32 crc32_ccitt_table_lookup (guchar pos);
39 WS_DLL_PUBLIC guint32 crc32c_table_lookup (guchar pos);
46 WS_DLL_PUBLIC guint32 crc32c_calculate(
const void *buf,
int len, guint32 crc);
54 WS_DLL_PUBLIC guint32 crc32c_calculate_no_swap(
const void *buf,
int len, guint32 crc);
60 WS_DLL_PUBLIC guint32 crc32_ccitt(
const guint8 *buf, guint len);
69 WS_DLL_PUBLIC guint32 crc32_ccitt_seed(
const guint8 *buf, guint len, guint32 seed);
76 WS_DLL_PUBLIC guint32 crc32_mpeg2_seed(
const guint8 *buf, guint len, guint32 seed);
85 WS_DLL_PUBLIC guint32 crc32_0x0AA725CF_seed(
const guint8 *buf, guint len, guint32 seed);
94 WS_DLL_PUBLIC guint32 crc32_0x5D6DCB_seed(
const guint8 *buf, guint len, guint32 seed);
96 WS_DLL_PUBLIC
int Dot11DecryptWepDecrypt(
98 const size_t seed_len,
100 const size_t data_len);