1 /* 2 Derived from source code of TrueCrypt 7.1a, which is 3 Copyright (c) 2008-2012 TrueCrypt Developers Association and which is governed 4 by the TrueCrypt License 3.0. 5 6 Modifications and additions to the original source code (contained in this file) 7 and all other portions of this file are Copyright (c) 2013-2017 IDRIX 8 and are governed by the Apache License 2.0 the full text of which is 9 contained in the file License.txt included in VeraCrypt binary and source 10 code distribution packages. 11 */ 12 13 #ifndef TC_HEADER_Main_Main 14 #define TC_HEADER_Main_Main 15 16 #include "System.h" 17 #include "Platform/Platform.h" 18 #include "Core/Core.h" 19 #include "Main/StringFormatter.h" 20 21 #define MAX_PIM_DIGITS 7 // Maximum allowed digits in a PIM (enough for maximum value) 22 #define MAX_PIM_VALUE 2147468 // Maximum value to have a positive 32-bit result for formula 15000 + (PIM x 1000) 23 #define MAX_BOOT_PIM_DIGITS 5 // Maximum allowed digits in a PIM for boot (enough for 16-bit value) 24 #define MAX_BOOT_PIM_VALUE 65535 25 26 #endif // TC_HEADER_Main_Main