diff options
| author | Mattias Andrée <m@maandree.se> | 2026-07-01 21:37:09 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-07-01 21:37:09 +0200 |
| commit | 1323b81cd2679bb61a480524a0e4cd008d3d0bee (patch) | |
| tree | d7fc0c3417b6ae7a1688cddd8ce3a9607ec53dd7 /librecrypt_realise_salts.c | |
| parent | Add test and fix a bug (diff) | |
| download | librecrypt-1323b81cd2679bb61a480524a0e4cd008d3d0bee.tar.gz librecrypt-1323b81cd2679bb61a480524a0e4cd008d3d0bee.tar.bz2 librecrypt-1323b81cd2679bb61a480524a0e4cd008d3d0bee.tar.xz | |
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'librecrypt_realise_salts.c')
| -rw-r--r-- | librecrypt_realise_salts.c | 16 |
1 files changed, 12 insertions, 4 deletions
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) |
