Data.ASN1.CER

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

Portability | unknown
Stability | experimental
Maintainer | Vincent Hanquez <vincent@snarc.org>
Safe Haskell | None

Data.ASN1.CER

Contents

- CER serial functions

Description

A module containing ASN1 CER specification serialization/derialization tools

Synopsis

- 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

data ASN1Class

Constructors

Universal |
Application |
Context |
Private |

Instances

Enum ASN1Class |
Eq ASN1Class |
Ord ASN1Class |
Show ASN1Class |

data ASN1

Constructors

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 |

Instances

Eq ASN1 |
Show ASN1 |

# CER serial functions

decodeASN1s :: ByteString -> Either ASN1Err [ASN1t]

Deprecated: use stream types with decodeASN1Stream

encodeASN1s :: [ASN1t] -> ByteString

Deprecated: use stream types with encodeASN1Stream

decodeASN1 :: ByteString -> Either ASN1Err ASN1t

Deprecated: use stream types with decodeASN1Stream

encodeASN1 :: ASN1t -> ByteString

Deprecated: use stream types with encodeASN1Stream