File: crc32.h

package info (click to toggle)
poc-streamer 0.4.2-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 1,000 kB
  • sloc: ansic: 8,782; makefile: 307; ruby: 152; perl: 135; yacc: 115; lex: 36; sh: 30
file content (23 lines) | stat: -rw-r--r-- 431 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*C
  (c) 2005 bl0rg.net
**/

#ifndef CRC32_H__
#define CRC32_H__

typedef struct crc32_s {
  unsigned long poly;
  unsigned long init;
  unsigned long xor;
  unsigned long table[256];
} crc32_t;

void crc32_init(crc32_t *crc, unsigned long poly,
                unsigned long init, unsigned long xor);
unsigned long crc32(crc32_t *crc,
                    unsigned char *data, unsigned long len);

#endif /* CRC32_H__ */

/*C
**/