File: crc.h

package info (click to toggle)
unicorn 0.8.7-1.1
  • links: PTS
  • area: non-free
  • in suites: sarge
  • size: 3,984 kB
  • ctags: 3,428
  • sloc: ansic: 20,028; cpp: 1,265; sh: 1,033; makefile: 710; yacc: 316; sed: 16
file content (19 lines) | stat: -rw-r--r-- 370 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __CRC_H__
#define __CRC_H__ 1

#define CRC32_INITIAL 0xffffffff

#ifdef __cplusplus
extern "C" {
#endif

unsigned long crc32(unsigned long initial, unsigned char *mem, int len);
unsigned short crc10(unsigned short crc, unsigned char *mem, int len);
unsigned char hecCompute(unsigned char *p);
int hecCheck(unsigned char *p);

#ifdef __cplusplus
}
#endif

#endif