mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-09 02:52:04 +08:00
ITS#9206 Use argon2id default values explicitly
This commit is contained in:
parent
307b06ff40
commit
0ec42b08b4
@ -39,12 +39,12 @@
|
||||
#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
|
||||
|
Loading…
Reference in New Issue
Block a user