Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Safe-Infered |
A module containing ASN1 DER specification serialization/derialization tools
- data ASN1Class
- = Universal
- | Application
- | Context
- | Private
- data ASN1
- = Boolean Bool
- | IntVal Integer
- | BitString BitArray
- | OctetString ByteString
- | Null
- | OID [Integer]
- | Real Double
- | Enumerated
- | UTF8String String
- | NumericString ByteString
- | PrintableString String
- | T61String String
- | VideoTexString ByteString
- | IA5String String
- | UTCTime (Int, Int, Int, Int, Int, Int, Bool)
- | GeneralizedTime (Int, Int, Int, Int, Int, Int, Bool)
- | GraphicString ByteString
- | VisibleString ByteString
- | GeneralString ByteString
- | UniversalString String
- | CharacterString ByteString
- | BMPString String
- | Other ASN1Class ASN1Tag ByteString
- | Start ASN1ConstructionType
- | End ASN1ConstructionType
- data ASN1ConstructionType
- enumReadRawRepr :: Monad m => Enumeratee ASN1Event ASN1Repr m a
- enumReadRaw :: Monad m => Enumeratee ASN1Event ASN1 m a
- enumWriteRaw :: Monad m => Enumeratee ASN1 ASN1Event m a
- enumReadBytes :: Monad m => Enumeratee ByteString ASN1 m a
- enumReadBytesRepr :: Monad m => Enumeratee ByteString ASN1Repr m a
- enumWriteBytes :: Monad m => Enumeratee ASN1 ByteString m a
- iterateFile :: FilePath -> Iteratee ASN1 IO a -> IO (Either SomeException a)
- iterateByteString :: Monad m => ByteString -> Iteratee ASN1 m a -> m (Either SomeException a)
- iterateByteStringRepr :: Monad m => ByteString -> Iteratee ASN1Repr m a -> m (Either SomeException a)
- iterateEvents :: Monad m => [ASN1Event] -> Iteratee ASN1 m a -> m (Either SomeException a)
- iterateEventsRepr :: Monad m => [ASN1Event] -> Iteratee ASN1Repr m a -> m (Either SomeException a)
- decodeASN1EventsRepr :: [ASN1Event] -> Either ASN1Err [ASN1Repr]
- decodeASN1Events :: [ASN1Event] -> Either ASN1Err [ASN1]
- encodeASN1Events :: [ASN1] -> Either ASN1Err [ASN1Event]
- decodeASN1Stream :: ByteString -> Either ASN1Err [ASN1]
- decodeASN1StreamRepr :: ByteString -> Either ASN1Err [ASN1Repr]
- encodeASN1Stream :: [ASN1] -> Either ASN1Err ByteString
- decodeASN1 :: ByteString -> Either ASN1Err ASN1t
- decodeASN1s :: ByteString -> Either ASN1Err [ASN1t]
- encodeASN1 :: ASN1t -> ByteString
- encodeASN1s :: [ASN1t] -> ByteString
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
decodeASN1s :: ByteString -> Either ASN1Err [ASN1t]Source
encodeASN1 :: ASN1t -> ByteStringSource
encodeASN1s :: [ASN1t] -> ByteStringSource