crypton-asn1-types-0.3.6: ASN.1 types
Copyright(c) 2010-2013 Vincent Hanquez <vincent@snarc.org>
LicenseBSD-style
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell98

Data.ASN1.Types

Description

 
Synopsis

Documentation

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

Represent a chunk of ASN.1 Stream. This is equivalent to ShowS but for an ASN.1 Stream.

type ASN1Tag = Int Source #

ASN.1 Tag.

data ASN1StringEncoding Source #

Define all possible ASN.1 String encodings.

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.

data ASN1TimeType Source #

Different ASN.1 time representations.

Constructors

TimeUTC

ASN.1 UTCTime Type: limited between 1950-2050.

TimeGeneralized

ASN.1 GeneralizedTime Type.

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 ASN.1 stream.

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

Returns either an object along the remaining ASN.1 stream, or an error.

asn1CharacterString :: ASN1StringEncoding -> String -> ASN1CharacterString Source #

Encode a string into a character string.

type OID = [Integer] Source #

Standard ASN.1 Object ID (OID).