From d338ae951209aa85018cdd1d07fcc21c037f743c Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Tue, 26 Sep 2017 17:12:42 +0200 Subject: [PATCH] Properly support Argon2id in crypto_pwhash() --- src/libsodium/crypto_pwhash/crypto_pwhash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libsodium/crypto_pwhash/crypto_pwhash.c b/src/libsodium/crypto_pwhash/crypto_pwhash.c index db55cd3d..01176c57 100644 --- a/src/libsodium/crypto_pwhash/crypto_pwhash.c +++ b/src/libsodium/crypto_pwhash/crypto_pwhash.c @@ -132,10 +132,12 @@ crypto_pwhash(unsigned char * const out, unsigned long long outlen, unsigned long long opslimit, size_t memlimit, int alg) { switch (alg) { - case crypto_pwhash_ALG_ARGON2ID13: case crypto_pwhash_ALG_ARGON2I13: return crypto_pwhash_argon2i(out, outlen, passwd, passwdlen, salt, opslimit, memlimit, alg); + case crypto_pwhash_ALG_ARGON2ID13: + return crypto_pwhash_argon2id(out, outlen, passwd, passwdlen, salt, + opslimit, memlimit, alg); default: errno = EINVAL; return -1;