aboutsummaryrefslogtreecommitdiffstats
path: root/librecrypt_realise_salts.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2026-07-01 21:37:09 +0200
committerMattias Andrée <m@maandree.se>2026-07-01 21:37:09 +0200
commit1323b81cd2679bb61a480524a0e4cd008d3d0bee (patch)
treed7fc0c3417b6ae7a1688cddd8ce3a9607ec53dd7 /librecrypt_realise_salts.c
parentAdd test and fix a bug (diff)
downloadlibrecrypt-3b7ce5adbb2373f3fcd80d5e3593a4900efa7125.tar.gz
librecrypt-3b7ce5adbb2373f3fcd80d5e3593a4900efa7125.tar.bz2
librecrypt-3b7ce5adbb2373f3fcd80d5e3593a4900efa7125.tar.xz
Add support for the reference implementation of Argon2HEAD1.1.1master
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to '')
-rw-r--r--librecrypt_realise_salts.c16
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)