=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/crc32.h,v retrieving revision 1.8.2.6 retrieving revision 1.9 diff -u -r1.8.2.6 -r1.9 --- src/usr.bin/ssh/Attic/crc32.h 2002/03/08 17:04:42 1.8.2.6 +++ src/usr.bin/ssh/Attic/crc32.h 2000/12/19 23:17:56 1.9 @@ -1,8 +1,6 @@ -/* $OpenBSD: crc32.h,v 1.8.2.6 2002/03/08 17:04:42 brad Exp $ */ - /* * Author: Tatu Ylonen - * Copyright (c) 1992 Tatu Ylonen , Espoo, Finland + * Copyright (c) 1992 Tatu Ylonen, Espoo, Finland * All rights reserved * Functions for computing 32-bit CRC. * @@ -13,9 +11,15 @@ * called by a name other than "ssh" or "Secure Shell". */ +/* RCSID("$OpenBSD: crc32.h,v 1.9 2000/12/19 23:17:56 markus Exp $"); */ + #ifndef CRC32_H #define CRC32_H -u_int ssh_crc32(const u_char *, u_int); +/* + * This computes a 32 bit CRC of the data in the buffer, and returns the CRC. + * The polynomial used is 0xedb88320. + */ +u_int ssh_crc32(const u_char *buf, u_int len); #endif /* CRC32_H */