summaryrefslogtreecommitdiff
path: root/other/ssharp/crc32.h
diff options
context:
space:
mode:
authorSkyperTHC2026-03-03 06:28:55 +0000
committerSkyperTHC2026-03-03 06:28:55 +0000
commit5d3573ef7a109ee70416fe94db098fe6a769a798 (patch)
treedc2d5b294c9db8ab2db7433511f94e1c4bb8b698 /other/ssharp/crc32.h
parentc6c59dc73cc4586357f93ab38ecf459e98675cc5 (diff)
packetstorm sync
Diffstat (limited to 'other/ssharp/crc32.h')
-rw-r--r--other/ssharp/crc32.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/other/ssharp/crc32.h b/other/ssharp/crc32.h
new file mode 100644
index 0000000..c469a90
--- /dev/null
+++ b/other/ssharp/crc32.h
@@ -0,0 +1,25 @@
1/*
2 * Author: Tatu Ylonen <ylo@cs.hut.fi>
3 * Copyright (c) 1992 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
4 * All rights reserved
5 * Functions for computing 32-bit CRC.
6 *
7 * 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".
12 */
13
14/* RCSID("$OpenBSD: crc32.h,v 1.10 2001/03/02 18:54:31 deraadt Exp $"); */
15
16#ifndef CRC32_H
17#define CRC32_H
18
19/*
20 * This computes a 32 bit CRC of the data in the buffer, and returns the CRC.
21 * The polynomial used is 0xedb88320.
22 */
23u_int ssh_crc32(const u_char *buf, u_int len);
24
25#endif /* CRC32_H */