mirror of
https://gitlab.com/cryptsetup/cryptsetup.git
synced 2025-12-11 19:00:02 +01:00
Increase maximum allowed PBKDF memory limit.
And also fix physical memory trimming function to really allow requested value.
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
#define MAX_ERROR_LENGTH 512
|
||||
|
||||
#define MAX_PBKDF_THREADS 4
|
||||
#define MAX_PBKDF_MEMORY 1024*1024 /* 1GiB */
|
||||
#define MAX_PBKDF_MEMORY 4*1024*1024 /* 4GiB */
|
||||
#define MIN_PBKDF2_ITERATIONS 1000 /* recommendation in NIST SP 800-132 */
|
||||
|
||||
#define at_least(a, b) ({ __typeof__(a) __at_least = (a); (__at_least >= (b))?__at_least:(b); })
|
||||
|
||||
Reference in New Issue
Block a user