Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Safe Haskell | Safe-Infered |
A module containing ASN1 CER 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
- decodeASN1s :: ByteString -> Either ASN1Err [ASN1t]
- encodeASN1s :: [ASN1t] -> ByteString
- decodeASN1 :: ByteString -> Either ASN1Err ASN1t
- encodeASN1 :: ASN1t -> ByteString
Documentation
CER serial functions
decodeASN1s :: ByteString -> Either ASN1Err [ASN1t]Source
encodeASN1s :: [ASN1t] -> ByteStringSource
encodeASN1 :: ASN1t -> ByteStringSource