Subversion Repositories SvarDOS

Rev

Rev 219 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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