diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-07 19:18:52 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-07 19:18:52 -0400 |
commit | 730c54a40681776aaaab1b727af42559cf1592fe (patch) | |
tree | f3f2ffb6f65453d60bbbe30f5d87a2b359b657d6 /Types.hs | |
parent | d043057c6956b7cbc1abb3ea2d5d17bfae7abcc9 (diff) | |
download | keysafe-730c54a40681776aaaab1b727af42559cf1592fe.tar.gz |
serialization for tunings
Diffstat (limited to 'Types.hs')
-rw-r--r-- | Types.hs | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -42,12 +42,15 @@ data Tunables = Tunables -- | An expensive hash, used to make it hard to crack an encrypted secret key. data ExpensiveHashTunable = UseArgon2 Argon2.HashOptions (Cost CreationOp) + deriving (Show) -- | What encryption to use. data EncryptionTunable = UseAES256 + deriving (Show) -- | An additional puzzle that makes decryption more expensive. data DecryptionPuzzleTunable = KeyBlindingLeftSide (Cost DecryptionOp) + deriving (Show) defaultTunables :: Tunables defaultTunables = Tunables |