mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08: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:
@@ -17,7 +17,8 @@
|
||||
// User text input limits
|
||||
#define MIN_PASSWORD 1 // Minimum possible password length
|
||||
#define MAX_PASSWORD 64 // Maximum possible password length
|
||||
#define MAX_PIM 10 // Maximum allowed digits in a PIM (enough for 32-bit value)
|
||||
#define MAX_PIM 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 5 // Maximum allowed digits in a PIM for boot (enough for 16-bit value)
|
||||
#define MAX_BOOT_PIM_VALUE 65535
|
||||
|
||||
|
||||
Reference in New Issue
Block a user