]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9206 Use argon2id default values explicitly
authorRyan Tandy <ryan@nardis.ca>
Tue, 7 Apr 2020 18:18:22 +0000 (11:18 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 21 Apr 2020 19:40:49 +0000 (19:40 +0000)
contrib/slapd-modules/passwd/argon2/pw-argon2.c

index 4bb8f217ea77bb60d1992e7ab1b880bcf596a827..5004fdcf6cde34d1dd304dd14880ffdbd28b0a53 100644 (file)
 #include <sodium.h>
 
 /*
- * 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