summaryrefslogtreecommitdiffhomepage
path: root/Tunables.hs
diff options
context:
space:
mode:
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