From 8af994320d3cd343e038bd9721c5ecc80e4b9246 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 26 Mar 2018 07:39:13 -0400 Subject: Updated to argon2-1.3. New parameters are set to the old values and test suite passes so this looks good. This commit was sponsored by Nick Daly on Patreon. --- Tunables.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Tunables.hs') diff --git a/Tunables.hs b/Tunables.hs index 5c28a39..2e96b8c 100644 --- a/Tunables.hs +++ b/Tunables.hs @@ -112,6 +112,8 @@ defaultTunables = Tunables let Divisibility n = d in fromIntegral n , Argon2.hashVariant = Argon2.Argon2i + , Argon2.hashVersion = Argon2.Argon2Version13 + , Argon2.hashLength = 64 } d = Divisibility 4 -- argon2 uses 4 threads @@ -156,6 +158,8 @@ proofOfWorkHashTunable addits = , Argon2.hashMemory = 1000 , Argon2.hashParallelism = 4 , Argon2.hashVariant = Argon2.Argon2i + , Argon2.hashVersion = Argon2.Argon2Version13 + , Argon2.hashLength = 64 } where nits = 20 + addits -- cgit v1.2.3