From: Ryan Tandy Date: Tue, 7 Apr 2020 17:37:48 +0000 (-0700) Subject: ITS#9206 Convert libsodium default memlimit to KiB X-Git-Tag: OPENLDAP_REL_ENG_2_4_50~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=074056368246f1a3a4d36645c94319c8eb20497f;p=thirdparty%2Fopenldap.git ITS#9206 Convert libsodium default memlimit to KiB --- diff --git a/contrib/slapd-modules/passwd/argon2/pw-argon2.c b/contrib/slapd-modules/passwd/argon2/pw-argon2.c index 0ffb6cdb08..4bb8f217ea 100644 --- a/contrib/slapd-modules/passwd/argon2/pw-argon2.c +++ b/contrib/slapd-modules/passwd/argon2/pw-argon2.c @@ -42,7 +42,7 @@ * Or libsodium moderate settings */ #define SLAPD_ARGON2_ITERATIONS crypto_pwhash_OPSLIMIT_INTERACTIVE -#define SLAPD_ARGON2_MEMORY crypto_pwhash_MEMLIMIT_INTERACTIVE +#define SLAPD_ARGON2_MEMORY (crypto_pwhash_MEMLIMIT_INTERACTIVE / 1024) #define SLAPD_ARGON2_PARALLELISM 1 #define SLAPD_ARGON2_SALT_LENGTH crypto_pwhash_SALTBYTES #define SLAPD_ARGON2_HASH_LENGTH 32