5 * Author: Tatu Ylonen <ylo@cs.hut.fi>
7 * Copyright (c) 1992 Tatu Ylonen, Espoo, Finland
10 * Created: Tue Feb 11 14:37:27 1992 ylo
12 * Functions for computing 32-bit CRC.
16 /* RCSID("$OpenBSD: crc32.h,v 1.6 2000/06/20 01:39:40 markus Exp $"); */
22 * This computes a 32 bit CRC of the data in the buffer, and returns the CRC.
23 * The polynomial used is 0xedb88320.
25 unsigned int crc32(const unsigned char *buf, unsigned int len);