hOpenPGP-2.5.5: native Haskell implementation of OpenPGP (RFC4880)

Safe HaskellNone
LanguageHaskell2010

Codec.Encryption.OpenPGP.Serialize

Contents

Synopsis

Serialization functions

putSKAddendum :: SKAddendum -> Put Source #

getSecretKey :: PKPayload -> Get SKey Source #

Utilities

parsePkts :: ByteString -> [Pkt] Source #

Parse the packets from a ByteString, with no error reporting

Orphan instances

Binary SymmetricAlgorithm Source # 
Instance details

Methods

put :: SymmetricAlgorithm -> Put #

get :: Get SymmetricAlgorithm #

putList :: [SymmetricAlgorithm] -> Put #

Binary PubKeyAlgorithm Source # 
Instance details

Methods

put :: PubKeyAlgorithm -> Put #

get :: Get PubKeyAlgorithm #

putList :: [PubKeyAlgorithm] -> Put #

Binary HashAlgorithm Source # 
Instance details

Methods

put :: HashAlgorithm -> Put #

get :: Get HashAlgorithm #

putList :: [HashAlgorithm] -> Put #

Binary CompressionAlgorithm Source # 
Instance details

Methods

put :: CompressionAlgorithm -> Put #

get :: Get CompressionAlgorithm #

putList :: [CompressionAlgorithm] -> Put #

Binary SigType Source # 
Instance details

Methods

put :: SigType -> Put #

get :: Get SigType #

putList :: [SigType] -> Put #

Binary MPI Source # 
Instance details

Methods

put :: MPI -> Put #

get :: Get MPI #

putList :: [MPI] -> Put #

Binary SigSubPacket Source # 
Instance details

Methods

put :: SigSubPacket -> Put #

get :: Get SigSubPacket #

putList :: [SigSubPacket] -> Put #

Binary SignaturePayload Source # 
Instance details

Methods

put :: SignaturePayload -> Put #

get :: Get SignaturePayload #

putList :: [SignaturePayload] -> Put #

Binary S2K Source # 
Instance details

Methods

put :: S2K -> Put #

get :: Get S2K #

putList :: [S2K] -> Put #

Binary UserAttrSubPacket Source # 
Instance details

Methods

put :: UserAttrSubPacket -> Put #

get :: Get UserAttrSubPacket #

putList :: [UserAttrSubPacket] -> Put #

Binary PKPayload Source # 
Instance details

Methods

put :: PKPayload -> Put #

get :: Get PKPayload #

putList :: [PKPayload] -> Put #

Binary Pkt Source # 
Instance details

Methods

put :: Pkt -> Put #

get :: Get Pkt #

putList :: [Pkt] -> Put #

Binary OtherPacket Source # 
Instance details

Methods

put :: OtherPacket -> Put #

get :: Get OtherPacket #

putList :: [OtherPacket] -> Put #

Binary ModificationDetectionCode Source # 
Instance details

Methods

put :: ModificationDetectionCode -> Put #

get :: Get ModificationDetectionCode #

putList :: [ModificationDetectionCode] -> Put #

Binary SymEncIntegrityProtectedData Source # 
Instance details

Methods

put :: SymEncIntegrityProtectedData -> Put #

get :: Get SymEncIntegrityProtectedData #

putList :: [SymEncIntegrityProtectedData] -> Put #

Binary UserAttribute Source # 
Instance details

Methods

put :: UserAttribute -> Put #

get :: Get UserAttribute #

putList :: [UserAttribute] -> Put #

Binary PublicSubkey Source # 
Instance details

Methods

put :: PublicSubkey -> Put #

get :: Get PublicSubkey #

putList :: [PublicSubkey] -> Put #

Binary UserId Source # 
Instance details

Methods

put :: UserId -> Put #

get :: Get UserId #

putList :: [UserId] -> Put #

Binary Trust Source # 
Instance details

Methods

put :: Trust -> Put #

get :: Get Trust #

putList :: [Trust] -> Put #

Binary LiteralData Source # 
Instance details

Methods

put :: LiteralData -> Put #

get :: Get LiteralData #

putList :: [LiteralData] -> Put #

Binary Marker Source # 
Instance details

Methods

put :: Marker -> Put #

get :: Get Marker #

putList :: [Marker] -> Put #

Binary SymEncData Source # 
Instance details

Methods

put :: SymEncData -> Put #

get :: Get SymEncData #

putList :: [SymEncData] -> Put #

Binary CompressedData Source # 
Instance details

Methods

put :: CompressedData -> Put #

get :: Get CompressedData #

putList :: [CompressedData] -> Put #

Binary SecretSubkey Source # 
Instance details

Methods

put :: SecretSubkey -> Put #

get :: Get SecretSubkey #

putList :: [SecretSubkey] -> Put #

Binary PublicKey Source # 
Instance details

Methods

put :: PublicKey -> Put #

get :: Get PublicKey #

putList :: [PublicKey] -> Put #

Binary SecretKey Source # 
Instance details

Methods

put :: SecretKey -> Put #

get :: Get SecretKey #

putList :: [SecretKey] -> Put #

Binary OnePassSignature Source # 
Instance details

Methods

put :: OnePassSignature -> Put #

get :: Get OnePassSignature #

putList :: [OnePassSignature] -> Put #

Binary SKESK Source # 
Instance details

Methods

put :: SKESK -> Put #

get :: Get SKESK #

putList :: [SKESK] -> Put #

Binary Signature Source # 
Instance details

Methods

put :: Signature -> Put #

get :: Get Signature #

putList :: [Signature] -> Put #

Binary PKESK Source # 
Instance details

Methods

put :: PKESK -> Put #

get :: Get PKESK #

putList :: [PKESK] -> Put #

Binary TK Source # 
Instance details

Methods

put :: TK -> Put #

get :: Get TK #

putList :: [TK] -> Put #

Binary a => Binary (Block a) Source # 
Instance details

Methods

put :: Block a -> Put #

get :: Get (Block a) #

putList :: [Block a] -> Put #