From: Loup Vaillant Date: Fri, 13 Oct 2017 09:26:27 +0000 (+0200) Subject: More robust Argon2i test vectors generation X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=d25d191a2b39504d4b24908214032f255fc21c9a;p=Monocypher.git More robust Argon2i test vectors generation The default algorithm in libsodium has changed, presumably from Argon2i to Argon2id. We now specify Argon2i explicitly. --- 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 "