blob: 58c4fbacdac9b2faa6eb402cb2ab81c8a117fd4b [file] [log] [blame]
Damien Millerd4a8b7e1999-10-27 13:42:43 +10001/*
Damien Miller95def091999-11-25 00:26:21 +11002 * Author: Tatu Ylonen <ylo@cs.hut.fi>
Damien Miller95def091999-11-25 00:26:21 +11003 * Copyright (c) 1992 Tatu Ylonen, Espoo, Finland
4 * All rights reserved
Damien Miller95def091999-11-25 00:26:21 +11005 * Functions for computing 32-bit CRC.
Damien Miller4af51302000-04-16 11:18:38 +10006 *
Damien Millere4340be2000-09-16 13:29:08 +11007 * As far as I am concerned, the code I have written for this software
8 * can be used freely for any purpose. Any derived versions of this
9 * software must be clearly marked as such, and if the derived work is
10 * incompatible with the protocol description in the RFC file, it must be
11 * called by a name other than "ssh" or "Secure Shell".
Damien Miller95def091999-11-25 00:26:21 +110012 */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100013
Damien Millere4340be2000-09-16 13:29:08 +110014/* RCSID("$OpenBSD: crc32.h,v 1.8 2000/09/07 20:27:51 deraadt Exp $"); */
Damien Millerd4a8b7e1999-10-27 13:42:43 +100015
16#ifndef CRC32_H
17#define CRC32_H
18
Damien Miller5428f641999-11-25 11:54:57 +110019/*
20 * This computes a 32 bit CRC of the data in the buffer, and returns the CRC.
21 * The polynomial used is 0xedb88320.
22 */
Damien Millerad833b32000-08-23 10:46:23 +100023unsigned int ssh_crc32(const unsigned char *buf, unsigned int len);
Damien Millerd4a8b7e1999-10-27 13:42:43 +100024
Damien Miller95def091999-11-25 00:26:21 +110025#endif /* CRC32_H */