Subversion Repositories SvarDOS

Rev

Rev 1959 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
219 mateuszvis 1
/*
2
 * $Id: crc32.h,v 1.1.1.1 1996/02/18 21:38:11 ylo Exp $
3
 * $Log: crc32.h,v $
4
 * Revision 1.1.1.1  1996/02/18 21:38:11  ylo
5
 *     Imported ssh-1.2.13.
6
 *
7
 * Revision 1.2  1995/07/13  01:21:45  ylo
8
 *     Removed "Last modified" header.
9
 *     Added cvs log.
10
 *
11
 * $Endlog$
12
 */
13
 
14
#ifndef CRC32_H_SENTINEL
15
#define CRC32_H_SENTINEL
16
 
1975 mateusz.vi 17
/* always initialize your crc32 with this value before any computation */
1959 mateusz.vi 18
#define CRC32_INITVAL (0xFFFFFFFFlu)
19
 
219 mateuszvis 20
/* This computes a 32 bit CRC of the data in the buffer, and returns the
21
   CRC.  The polynomial used is 0xedb88320. */
22
void crc32_feed(unsigned long *crc32val, const unsigned char *buf, unsigned int len);
23
 
24
void crc32_finish(unsigned long *crc32val);
25
 
26
#endif /* CRC32_H_SENTINEL */