diff options
author | Joey Hess <joey@kitenet.net> | 2011-04-16 16:41:46 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-04-16 16:41:46 -0400 |
commit | 9fe7e6be7064d9c47e6c6fd4f1b3a70da604727d (patch) | |
tree | 503537ba2b11d71f3bea9bd95ee0ca43a73880f7 /Crypto.hs | |
parent | 5efd41327045f8da55c972b7391309c99dee5afc (diff) |
add cipher field to AnnexState
Diffstat (limited to 'Crypto.hs')
-rw-r--r-- | Crypto.hs | 13 |
1 files changed, 1 insertions, 12 deletions
@@ -36,18 +36,7 @@ import Types import Key import RemoteClass import Utility - -data Cipher = Cipher String -- XXX ideally, this would be a locked memory region - -data EncryptedCipher = EncryptedCipher String KeyIds - -data KeyIds = KeyIds [String] - -instance Show KeyIds where - show (KeyIds ks) = join "," ks - -instance Read KeyIds where - readsPrec _ s = [(KeyIds (split "," s), "")] +import CryptoTypes {- Creates a new Cipher, encrypted as specified in the remote's configuration -} genCipher :: RemoteConfig -> IO EncryptedCipher |