asn1-types-0.3.4: ASN.1 types
License BSD-style
Maintainer Vincent Hanquez <vincent@snarc.org>
Stability experimental
Portability unknown
Safe Haskell None
Language Haskell98

Data.ASN1.Types

Description

Synopsis

Documentation

type ASN1S = [ ASN1 ] -> [ ASN1 ] Source #

represent a chunk of ASN1 Stream. this is equivalent to ShowS but for an ASN1 Stream.

data ASN1StringEncoding Source #

Define all possible ASN1 String encoding.

Constructors

IA5

128 characters equivalent to the ASCII alphabet

UTF8

UTF8

General

all registered graphic and character sets (see ISO 2375) plus SPACE and DELETE.

Graphic

all registered G sets and SPACE

Numeric

encoding containing numeric [0-9] and space

Printable

printable [a-z] [A-Z] [()+,-.?:/=] and space.

VideoTex

CCITT's T.100 and T.101 character sets

Visible

International ASCII printing character sets

T61

teletext

UTF32

UTF32

Character

Character

BMP

UCS2

class ASN1Object a where Source #

Define an object that can be converted to and from ASN.1

Methods

toASN1 :: a -> ASN1S Source #

transform an object into a chunk of ASN1 stream.

fromASN1 :: [ ASN1 ] -> Either String (a, [ ASN1 ]) Source #

returns either an object along the remaining ASN1 stream, or an error.