summaryrefslogtreecommitdiff
path: root/CryptoTypes.hs
diff options
context:
space:
mode:
Diffstat (limited to 'CryptoTypes.hs')
-rw-r--r--CryptoTypes.hs5
1 files changed, 3 insertions, 2 deletions
diff --git a/CryptoTypes.hs b/CryptoTypes.hs
index 944a9d34e..ba22c4cbe 100644
--- a/CryptoTypes.hs
+++ b/CryptoTypes.hs
@@ -9,11 +9,12 @@ module CryptoTypes where
import Data.String.Utils
-data Cipher = Cipher String -- XXX ideally, this would be a locked memory region
+-- XXX ideally, this would be a locked memory region
+newtype Cipher = Cipher String
data EncryptedCipher = EncryptedCipher String KeyIds
-data KeyIds = KeyIds [String]
+newtype KeyIds = KeyIds [String]
instance Show KeyIds where
show (KeyIds ks) = join "," ks