From 0ec42b08b448231cfea7bc37fc08c779cdb5a901 Mon Sep 17 00:00:00 2001 From: Ryan Tandy Date: Tue, 7 Apr 2020 11:18:22 -0700 Subject: [PATCH] ITS#9206 Use argon2id default values explicitly --- contrib/slapd-modules/passwd/argon2/pw-argon2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/slapd-modules/passwd/argon2/pw-argon2.c b/contrib/slapd-modules/passwd/argon2/pw-argon2.c index 4bb8f217ea..5004fdcf6c 100644 --- a/contrib/slapd-modules/passwd/argon2/pw-argon2.c +++ b/contrib/slapd-modules/passwd/argon2/pw-argon2.c @@ -39,12 +39,12 @@ #include /* - * Or libsodium moderate settings + * Or libsodium interactive settings */ -#define SLAPD_ARGON2_ITERATIONS crypto_pwhash_OPSLIMIT_INTERACTIVE -#define SLAPD_ARGON2_MEMORY (crypto_pwhash_MEMLIMIT_INTERACTIVE / 1024) +#define SLAPD_ARGON2_ITERATIONS crypto_pwhash_argon2id_OPSLIMIT_INTERACTIVE +#define SLAPD_ARGON2_MEMORY (crypto_pwhash_argon2id_MEMLIMIT_INTERACTIVE / 1024) #define SLAPD_ARGON2_PARALLELISM 1 -#define SLAPD_ARGON2_SALT_LENGTH crypto_pwhash_SALTBYTES +#define SLAPD_ARGON2_SALT_LENGTH crypto_pwhash_argon2id_SALTBYTES #define SLAPD_ARGON2_HASH_LENGTH 32 #endif