summaryrefslogtreecommitdiffhomepage
path: root/Tunables.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Tunables.hs')
-rw-r--r--Tunables.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tunables.hs b/Tunables.hs
index 5c39a2d..f5832b4 100644
--- a/Tunables.hs
+++ b/Tunables.hs
@@ -23,7 +23,8 @@ defaultTunables = Tunables
-- argon2 is GPU and ASIC resistent, so it uses CPU time.
-- The above HashOptions were benchmarked at 661 seconds CPU time
-- on a 2 core Intel(R) Core(TM) i5-4210Y CPU @ 1.50GHz.
- , argonCost = CPUCost (Seconds 600)
+ -- Since cost is measured per core, we double that.
+ , argonCost = CPUCost (Seconds (2*600))
-- AES can be calculated more efficiently by a GPU, so this
-- cost is a GPU cost.
-- This is set to only 1 minute because GPUs are quite a lot