"Fossies" - the Fresh Open Source Software Archive
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard
) with prefixed line numbers and code folding
Alternatively you can here view
the uninterpreted source code file.
For more information about "Crc.h" see the Fossies "Dox" file reference
2 Legal Notice: Some portions of the source code contained in this file were
3 derived from the source code of TrueCrypt 7.1a, which is
4 Copyright (c) 2003-2012 TrueCrypt Developers Association and which is
5 governed by the TrueCrypt License 3.0, also from the source code of
6 Encryption for the Masses 2.02a, which is Copyright (c) 1998-2000 Paul Le Roux
7 and which is governed by the 'License Agreement for Encryption for the Masses'
8 Modifications and additions to the original source code (contained in this file)
9 and all other portions of this file are Copyright (c) 2013-2017 IDRIX
10 and are governed by the Apache License 2.0 the full text of which is
11 contained in the file License.txt included in VeraCrypt binary and source
12 code distribution packages. */
14 #ifndef TC_HEADER_CRC
15 #define TC_HEADER_CRC
17 #include "Tcdefs.h"
19 #if defined(__cplusplus)
20 extern "C"
24 #define UPDC32(octet, crc)\
25 (unsigned __int32)((crc_32_tab[(((unsigned __int32)(crc)) ^ ((unsigned char)(octet))) & 0xff] ^ (((unsigned __int32)(crc)) >> 8)))
27 unsigned __int32 GetCrc32 (unsigned char *data, int length);
28 unsigned __int32 crc32int (unsigned __int32 *data);
29 BOOL crc32_selftests (void);
31 extern unsigned __int32 crc_32_tab;
33 #if defined(__cplusplus)
37 #endif // TC_HEADER_CRC