summaryrefslogtreecommitdiffhomepage
path: root/Tunables.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-07 11:44:23 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-07 11:44:23 -0400
commit016877aa55764d14af3c16645d64fd95bf6a2da1 (patch)
treec92c27e15317044af714e25ef16b6bca09a70a40 /Tunables.hs
parent2881564838b52658e4a2bf624b07ad5b54a0a42f (diff)
downloadkeysafe-016877aa55764d14af3c16645d64fd95bf6a2da1.tar.gz
aws spot instance attack cost estimate
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