GATE
crchash.h File Reference

CRC checksums and hashes. More...

Classes

struct  gate_crc32_class
 
union  gate_crc32_result_class
 
struct  gate_crc16_class
 
union  gate_crc16_result_class
 

Macros

#define GATE_CRC32_RESULT_LENGTH   4
 
#define GATE_CRC16_RESULT_LENGTH   2
 
#define GATE_CRC16_TYPE_ARC   1
 
#define GATE_CRC16_TYPE_MODBUS   2
 
#define GATE_CRC16_TYPE_KERMIT   3
 
#define GATE_CRC16_TYPE_CCITT_FALSE   4
 
#define GATE_CRC16_TYPE_XMODEM   5
 

Typedefs

typedef struct gate_crc32_class gate_crc32_t
 
typedef union gate_crc32_result_class gate_crc32_result_t
 
typedef struct gate_crc16_class gate_crc16_t
 
typedef union gate_crc16_result_class gate_crc16_result_t
 

Functions

GATE_ENCODE_API void gate_crc32_init (gate_crc32_t *crc32hash)
 
GATE_ENCODE_API void gate_crc32_update (gate_crc32_t *crc32hash, void const *databuffer, unsigned databufferlength)
 
GATE_ENCODE_API void gate_crc32_finish (gate_crc32_t *crc32hash, gate_crc32_result_t *resulthashbuffer)
 
GATE_ENCODE_API void gate_crc16_init (gate_crc16_t *crc16hash, unsigned crc16type)
 
GATE_ENCODE_API void gate_crc16_update (gate_crc16_t *crc16hash, void const *databuffer, unsigned databufferlength)
 
GATE_ENCODE_API void gate_crc16_finish (gate_crc16_t *crc16hash, gate_crc16_result_t *resulthashbuffer)
 

Detailed Description

CRC checksums and hashes.