summaryrefslogtreecommitdiffhomepage
path: root/Tunables.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2018-03-26 07:39:13 -0400
committerJoey Hess <joeyh@joeyh.name>2018-03-26 08:09:41 -0400
commit8af994320d3cd343e038bd9721c5ecc80e4b9246 (patch)
treeb515bfaaefea900dbed45f48759168d2da424a31 /Tunables.hs
parent473e0484d6408e014243071fbe0698c03dd6ebe8 (diff)
downloadkeysafe-8af994320d3cd343e038bd9721c5ecc80e4b9246.tar.gz
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.
Diffstat (limited to 'Tunables.hs')
-rw-r--r--Tunables.hs4
1 files changed, 4 insertions, 0 deletions
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