Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
A module containing ASN1 BER specification serialization/derialization tools
- data TagClass
- = Universal
- | Application
- | Context
- | Private
- data ASN1
- = EOC
- | Boolean Bool
- | IntVal Integer
- | BitString Int ByteString
- | OctetString ByteString
- | Null
- | OID [Integer]
- | Real Double
- | Enumerated
- | UTF8String Text
- | Sequence [ASN1]
- | Set [ASN1]
- | NumericString ByteString
- | PrintableString Text
- | T61String ByteString
- | VideoTexString ByteString
- | IA5String Text
- | UTCTime (Int, Int, Int, Int, Int, Int, Bool)
- | GeneralizedTime (Int, Int, Int, Int, Int, Int, Bool)
- | GraphicString ByteString
- | VisibleString ByteString
- | GeneralString ByteString
- | UniversalString Text
- | CharacterString ByteString
- | BMPString Text
- | Other TagClass TagNumber (Either ByteString [ASN1])
- ofRaw :: Value -> Either ASN1Err ASN1
- toRaw :: ASN1 -> Value
- decodeASN1Get :: Get (Either ASN1Err ASN1)
- decodeASN1State :: ByteString -> Either ASN1Err (ASN1, ByteString, Int64)
- decodeASN1 :: ByteString -> Either ASN1Err ASN1
- decodeASN1s :: ByteString -> Either ASN1Err [ASN1]
- encodeASN1Put :: ASN1 -> Put
- encodeASN1sPut :: [ASN1] -> Put
- encodeASN1 :: ASN1 -> ByteString
- encodeASN1s :: [ASN1] -> ByteString
Documentation
BER interface when using directly Raw objects
BER serial functions
decodeASN1State :: ByteString -> Either ASN1Err (ASN1, ByteString, Int64)Source
decodeASN1s :: ByteString -> Either ASN1Err [ASN1]Source
encodeASN1Put :: ASN1 -> PutSource
encodeASN1sPut :: [ASN1] -> PutSource
encodeASN1 :: ASN1 -> ByteStringSource
encodeASN1s :: [ASN1] -> ByteStringSource