From 1323b81cd2679bb61a480524a0e4cd008d3d0bee Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 1 Jul 2026 21:37:09 +0200 Subject: Add support for the reference implementation of Argon2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- librecrypt_realise_salts.c | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'librecrypt_realise_salts.c') diff --git a/librecrypt_realise_salts.c b/librecrypt_realise_salts.c index e2853ca..0c8002a 100644 --- a/librecrypt_realise_salts.c +++ b/librecrypt_realise_salts.c @@ -241,14 +241,22 @@ start_over: EXPECT(librecrypt_realise_salts(NULL, 0u, "", NULL, NULL, ctx) == 0); -#if defined(SUPPORT_ARGON2ID) +#if defined(SUPPORT_ARGON2ID) && defined(SUPPORT_ARGON2_V1_0) # define ALGO "$argon2id$" -#elif defined(SUPPORT_ARGON2I) +#elif defined(SUPPORT_ARGON2I) && defined(SUPPORT_ARGON2_V1_0) # define ALGO "$argon2i$" -#elif defined(SUPPORT_ARGON2D) +#elif defined(SUPPORT_ARGON2D) && defined(SUPPORT_ARGON2_V1_0) # define ALGO "$argon2d$" -#elif defined(SUPPORT_ARGON2DS) +#elif defined(SUPPORT_ARGON2DS) && defined(SUPPORT_ARGON2_V1_0) # define ALGO "$argon2ds$" +#elif defined(SUPPORT_ARGON2ID) && defined(SUPPORT_ARGON2_V1_3) +# define ALGO "$argon2id$v=19$" +#elif defined(SUPPORT_ARGON2I) && defined(SUPPORT_ARGON2_V1_3) +# define ALGO "$argon2i$v=19$" +#elif defined(SUPPORT_ARGON2D) && defined(SUPPORT_ARGON2_V1_3) +# define ALGO "$argon2d$v=19$" +#elif defined(SUPPORT_ARGON2DS) && defined(SUPPORT_ARGON2_V1_3) +# define ALGO "$argon2ds$v=19$" #endif #if defined(ALGO) -- cgit v1.3.1