|
|
1.1.1.3 root 1: /* The source code contained in this file has been derived from the source code
2: of Encryption for the Masses 2.02a by Paul Le Roux. Modifications and
3: additions to that source code contained in this file are Copyright (c) 2004
1.1.1.4 ! root 4: TrueCrypt Foundation and Copyright (c) 2004 TrueCrypt Team. Unmodified
1.1.1.3 root 5: parts are Copyright (c) 1998-99 Paul Le Roux. This is a TrueCrypt Foundation
6: release. Please see the file license.txt for full license details. */
1.1 root 7:
8: extern unsigned long crc_32_tab[];
9:
10: #define UPDC32(octet, crc)\
11: (unsigned long)((crc_32_tab[(((unsigned long)(crc)) ^ ((unsigned char)(octet))) & 0xff] ^ (((unsigned long)(crc)) >> 8)))
12:
13: unsigned long crc32 (unsigned char *data, int length);
14: unsigned long crc32long (unsigned long *data);
15: int crc32_selftest (void);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.