1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

Windows/Linux/MacOSX: Set maximum PIM value to 2147468 in order to avoid having negative values for iterations count using the formula 15000 + (PIM x 1000). Add specific error message to XML language files.

This commit is contained in:
Mounir IDRASSI
2016-05-02 14:45:22 +02:00
parent 0b914c8f5d
commit b261177b8f
50 changed files with 88 additions and 15 deletions

View File

@@ -18,4 +18,9 @@
#include "Core/Core.h"
#include "Main/StringFormatter.h"
#define MAX_PIM_DIGITS 7 // Maximum allowed digits in a PIM (enough for maximum value)
#define MAX_PIM_VALUE 2147468 // Maximum value to have a positive 32-bit result for formula 15000 + (PIM x 1000)
#define MAX_BOOT_PIM_DIGITS 5 // Maximum allowed digits in a PIM for boot (enough for 16-bit value)
#define MAX_BOOT_PIM_VALUE 65535
#endif // TC_HEADER_Main_Main