From d25d191a2b39504d4b24908214032f255fc21c9a Mon Sep 17 00:00:00 2001 From: Loup Vaillant Date: Fri, 13 Oct 2017 11:26:27 +0200 Subject: [PATCH] More robust Argon2i test vectors generation The default algorithm in libsodium has changed, presumably from Argon2i to Argon2id. We now specify Argon2i explicitly. --- tests/gen/argon2i.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/gen/argon2i.c b/tests/gen/argon2i.c index 0c7b06f..aee87b7 100644 --- a/tests/gen/argon2i.c +++ b/tests/gen/argon2i.c @@ -9,7 +9,7 @@ void test(size_t nb_blocks, size_t hash_size, size_t nb_iterations) if (crypto_pwhash(hash, hash_size, (char*)password, 16, salt, nb_iterations, nb_blocks * 1024, - crypto_pwhash_ALG_DEFAULT)) { + crypto_pwhash_ALG_ARGON2I13)) { fprintf(stderr, "Argon2i failed. " "nb_blocks = %lu, " "hash_size = %lu " -- 2.47.3