Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tero Saarni
OpenLDAP
Commits
59bed7e6
Commit
59bed7e6
authored
Apr 07, 2020
by
Ryan Tandy
Committed by
Quanah Gibson-Mount
Apr 21, 2020
Browse files
ITS#9206 Use argon2id default values explicitly
parent
07405636
Changes
1
Hide whitespace changes
Inline
Side-by-side
contrib/slapd-modules/passwd/argon2/pw-argon2.c
View file @
59bed7e6
...
...
@@ -39,12 +39,12 @@
#include
<sodium.h>
/*
* Or libsodium
moderat
e settings
* Or libsodium
interactiv
e 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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment