asn1-data-0.6.1.3: ASN1 data reader and writer in RAW, BER, DER and CER forms

Portabilityunknown
Stabilityexperimental
MaintainerVincent Hanquez <vincent@snarc.org>
Safe HaskellSafe-Infered

Data.ASN1.DER

Contents

Description

A module containing ASN1 DER specification serialization/derialization tools

Synopsis

Documentation

enumeratee to transform between ASN1 and raw

enumReadRawRepr :: Monad m => Enumeratee ASN1Event ASN1Repr m aSource

enumReadRawRepr is an enumeratee from raw events to asn1repr

enumReadRaw :: Monad m => Enumeratee ASN1Event ASN1 m aSource

enumReadRaw is an enumeratee from raw events to asn1

enumWriteRaw :: Monad m => Enumeratee ASN1 ASN1Event m aSource

enumWriteRaw is an enumeratee from asn1 to raw events

enumeratee to transform between ASN1 and bytes

enumReadBytes :: Monad m => Enumeratee ByteString ASN1 m aSource

enumReadBytes is an enumeratee converting from bytestring to ASN1 it transforms chunks of bytestring into chunks of ASN1 objects

enumReadBytesRepr :: Monad m => Enumeratee ByteString ASN1Repr m aSource

enumReadBytes is an enumeratee converting from bytestring to ASN1 it transforms chunks of bytestring into chunks of ASN1 objects

enumWriteBytes :: Monad m => Enumeratee ASN1 ByteString m aSource

enumWriteBytes is an enumeratee converting from ASN1 to bytestring. it transforms chunks of ASN1 objects into chunks of bytestring

iterate over common representation to an ASN1 stream

iterateFile :: FilePath -> Iteratee ASN1 IO a -> IO (Either SomeException a)Source

iterate over a file using a file enumerator.

iterateByteString :: Monad m => ByteString -> Iteratee ASN1 m a -> m (Either SomeException a)Source

iterate over a bytestring using a list enumerator over each chunks

iterateByteStringRepr :: Monad m => ByteString -> Iteratee ASN1Repr m a -> m (Either SomeException a)Source

iterate over a bytestring using a list enumerator over each chunks

iterateEvents :: Monad m => [ASN1Event] -> Iteratee ASN1 m a -> m (Either SomeException a)Source

iterate over asn1 events using a list enumerator over each chunks

iterateEventsRepr :: Monad m => [ASN1Event] -> Iteratee ASN1Repr m a -> m (Either SomeException a)Source

iterate over asn1 events using a list enumerator over each chunks

DER serialize functions

decodeASN1EventsRepr :: [ASN1Event] -> Either ASN1Err [ASN1Repr]Source

decode a list of raw ASN1Events into a stream of ASN1Repr types

decodeASN1Events :: [ASN1Event] -> Either ASN1Err [ASN1]Source

decode a list of raw ASN1Events into a stream of ASN1 types

encodeASN1Events :: [ASN1] -> Either ASN1Err [ASN1Event]Source

encode an ASN1 Stream as raw ASN1 Events

decodeASN1Stream :: ByteString -> Either ASN1Err [ASN1]Source

decode a lazy bytestring as an ASN1 stream

decodeASN1StreamRepr :: ByteString -> Either ASN1Err [ASN1Repr]Source

decode a lazy bytestring as an ASN1repr stream

encodeASN1Stream :: [ASN1] -> Either ASN1Err ByteStringSource

encode an ASN1 Stream as lazy bytestring

DER serialize functions, deprecated