split out Utility.Gpg with the generic gpg interface, from Crypto

This commit is contained in:
Joey Hess 2011-12-20 21:47:56 -04:00
parent bb84f6e4bd
commit c11cfea355
3 changed files with 105 additions and 81 deletions

View file

@ -5,13 +5,16 @@
- Licensed under the GNU GPL version 3 or higher.
-}
module Types.Crypto where
module Types.Crypto (
Cipher(..),
EncryptedCipher(..),
KeyIds(..),
) where
import Utility.Gpg (KeyIds(..))
-- XXX ideally, this would be a locked memory region
newtype Cipher = Cipher String
data EncryptedCipher = EncryptedCipher String KeyIds
deriving (Ord, Eq)
newtype KeyIds = KeyIds [String]
deriving (Ord, Eq)