crc32.h revision 60573
157429Smarkm/*
260573Skris *
357429Smarkm * crc32.h
460573Skris *
557429Smarkm * Author: Tatu Ylonen <ylo@cs.hut.fi>
660573Skris *
757429Smarkm * Copyright (c) 1992 Tatu Ylonen, Espoo, Finland
857429Smarkm *                    All rights reserved
960573Skris *
1057429Smarkm * Created: Tue Feb 11 14:37:27 1992 ylo
1160573Skris *
1257429Smarkm * Functions for computing 32-bit CRC.
1360573Skris *
1457429Smarkm */
1557429Smarkm
1660573Skris/* RCSID("$Id: crc32.h,v 1.5 2000/04/14 10:30:31 markus Exp $"); */
1757429Smarkm
1857429Smarkm#ifndef CRC32_H
1957429Smarkm#define CRC32_H
2057429Smarkm
2157429Smarkm/*
2257429Smarkm * This computes a 32 bit CRC of the data in the buffer, and returns the CRC.
2357429Smarkm * The polynomial used is 0xedb88320.
2457429Smarkm */
2557429Smarkmunsigned int crc32(const unsigned char *buf, unsigned int len);
2657429Smarkm
2757429Smarkm#endif				/* CRC32_H */
28