|
|
1.1.1.9 root 1: /*
1.1.1.11 root 2: Legal Notice: Some portions of the source code contained in this file were
3: derived from the source code of Encryption for the Masses 2.02a, which is
4: Copyright (c) 1998-2000 Paul Le Roux and which is governed by the 'License
5: Agreement for Encryption for the Masses'. Modifications and additions to
6: the original source code (contained in this file) and all other portions of
7: this file are Copyright (c) 2003-2008 TrueCrypt Foundation and are governed
1.1.1.12! root 8: by the TrueCrypt License 2.5 the full text of which is contained in the
1.1.1.11 root 9: file License.txt included in TrueCrypt binary and source code distribution
1.1.1.9 root 10: packages. */
1.1 root 11:
1.1.1.11 root 12: #ifndef TC_HEADER_CRC
13: #define TC_HEADER_CRC
14:
15: #include "Tcdefs.h"
16:
17: #if defined(__cplusplus)
18: extern "C"
19: {
20: #endif
1.1 root 21:
22: #define UPDC32(octet, crc)\
1.1.1.6 root 23: (unsigned __int32)((crc_32_tab[(((unsigned __int32)(crc)) ^ ((unsigned char)(octet))) & 0xff] ^ (((unsigned __int32)(crc)) >> 8)))
1.1 root 24:
1.1.1.11 root 25: unsigned __int32 GetCrc32 (unsigned char *data, int length);
1.1.1.6 root 26: unsigned __int32 crc32int (unsigned __int32 *data);
27: BOOL crc32_selftests (void);
1.1.1.11 root 28:
29: extern unsigned __int32 crc_32_tab[];
30:
31: #if defined(__cplusplus)
32: }
33: #endif
34:
35: #endif // TC_HEADER_CRC
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.