 | asn1-data-0.2.2: ASN1 data reader and writer in RAW, BER, DER and CER forms | Contents | Index |
|
| Data.ASN1.BER | | Portability | unknown | | Stability | experimental | | Maintainer | Vincent Hanquez <vincent@snarc.org> |
|
|
|
|
|
| Description |
| A module containing ASN1 BER specification serialization/derialization tools
|
|
| Synopsis |
|
| | | data ASN1 | | = EOC | | | Boolean Bool | | | IntVal Integer | | | BitString Int ByteString | | | OctetString ByteString | | | Null | | | OID [Integer] | | | Real Double | | | Enumerated | | | UTF8String ByteString | | | Sequence [ASN1] | | | Set [ASN1] | | | NumericString ByteString | | | PrintableString ByteString | | | T61String ByteString | | | VideoTexString ByteString | | | IA5String ByteString | | | UTCTime (Int, Int, Int, Int, Int, Int, Bool) | | | GeneralizedTime (Int, Int, Int, Int, Int, Int, Bool) | | | GraphicString ByteString | | | VisibleString ByteString | | | GeneralString ByteString | | | UniversalString ByteString | | | CharacterString ByteString | | | BMPString ByteString | | | Other TagClass TagNumber (Either ByteString [ASN1]) |
|
| | | ofRaw :: Value -> Either ASN1Err ASN1 | | | toRaw :: ASN1 -> Value | | | decodeASN1Get :: Get (Either ASN1Err ASN1) | | | decodeASN1 :: ByteString -> Either ASN1Err ASN1 | | | encodeASN1Put :: ASN1 -> Put | | | encodeASN1 :: ASN1 -> ByteString |
|
|
| Documentation |
|
| data TagClass |
| Constructors | | Universal | | | Application | | | Context | | | Private | |
| Instances | |
|
|
| data ASN1 |
| Constructors | | EOC | | | Boolean Bool | | | IntVal Integer | | | BitString Int ByteString | | | OctetString ByteString | | | Null | | | OID [Integer] | | | Real Double | | | Enumerated | | | UTF8String ByteString | | | Sequence [ASN1] | | | Set [ASN1] | | | NumericString ByteString | | | PrintableString ByteString | | | T61String ByteString | | | VideoTexString ByteString | | | IA5String ByteString | | | UTCTime (Int, Int, Int, Int, Int, Int, Bool) | | | GeneralizedTime (Int, Int, Int, Int, Int, Int, Bool) | | | GraphicString ByteString | | | VisibleString ByteString | | | GeneralString ByteString | | | UniversalString ByteString | | | CharacterString ByteString | | | BMPString ByteString | | | Other TagClass TagNumber (Either ByteString [ASN1]) | |
| Instances | |
|
|
| BER interface when using directly Raw objects
|
|
| ofRaw :: Value -> Either ASN1Err ASN1 |
|
| toRaw :: ASN1 -> Value |
|
| BER serial functions
|
|
| decodeASN1Get :: Get (Either ASN1Err ASN1) |
|
| decodeASN1 :: ByteString -> Either ASN1Err ASN1 |
|
| encodeASN1Put :: ASN1 -> Put |
|
| encodeASN1 :: ASN1 -> ByteString |
|
| Produced by Haddock version 2.7.2 |