summaryrefslogtreecommitdiffhomepage
path: root/Tunables.hs
diff options
context:
space:
mode:
authorJoey Hess <joeyh@joeyh.name>2016-08-11 23:11:32 -0400
committerJoey Hess <joeyh@joeyh.name>2016-08-11 23:11:32 -0400
commit891347401d603ded3db2efe3a67cd289ada08cb0 (patch)
treefb0c24df9874cd7a9bc2bc3592d32a8cba74b7dc /Tunables.hs
parentc295cceb01c45e7530022b1edde970f5fbbb03c1 (diff)
downloadkeysafe-891347401d603ded3db2efe3a67cd289ada08cb0.tar.gz
guessing puzzle answers
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 18e3f84..ab170a5 100644
--- a/Tunables.hs
+++ b/Tunables.hs
@@ -38,6 +38,7 @@ data Tunables = Tunables
-- allowed to choose between them
, objectSize :: Int
-- ^ a StorableObject is exactly this many bytes in size
+ -- (must be a multiple of AES block size 16)
, expensiveHashTunable :: ExpensiveHashTunable
, encryptionTunable :: EncryptionTunable
, decryptionPuzzleTunable :: DecryptionPuzzleTunable
@@ -95,7 +96,7 @@ testModeTunables = Tunables
, objectSize = 1024*64
, expensiveHashTunable = UseArgon2 weakargonoptions argoncost
, encryptionTunable = UseAES256
- , decryptionPuzzleTunable = UsePuzzleIV (GPUCost (Seconds 0))
+ , decryptionPuzzleTunable = UsePuzzleIV (GPUCost (Seconds 1))
}
where
UseArgon2 argonoptions argoncost = expensiveHashTunable defaultTunables