blob: c469a90fec3435fbee9a9e19f782c1efd5cd4f03 [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>
Ben Lindstrom92a2e382001-03-05 06:59:27 +00003 * Copyright (c) 1992 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
Damien Miller95def091999-11-25 00:26:21 +11004 * 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
Ben Lindstrom92a2e382001-03-05 06:59:27 +000014/* RCSID("$OpenBSD: crc32.h,v 1.10 2001/03/02 18:54:31 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 */
Ben Lindstrom46c16222000-12-22 01:43:59 +000023u_int ssh_crc32(const u_char *buf, u_int len);
Damien Millerd4a8b7e1999-10-27 13:42:43 +100024
Damien Miller95def091999-11-25 00:26:21 +110025#endif /* CRC32_H */