asn1-types-0.3.4: ASN.1 types
LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe-Inferred
LanguageHaskell98

Data.ASN1.Types.Lowlevel

Description

 
Synopsis

Raw types

type ASN1Tag = Int #

ASN1 Tag

data ASN1Length #

ASN1 Length with all different formats

Constructors

LenShort Int

Short form with only one byte. length has to be < 127.

LenLong Int Int

Long form of N bytes

LenIndefinite

Length is indefinite expect an EOC in the stream to finish the type

Instances

Instances details
Show ASN1Length # 
Instance details

Defined in Data.ASN1.Types.Lowlevel

Methods

showsPrec :: Int -> ASN1Length -> ShowS #

show :: ASN1Length -> String #

showList :: [ASN1Length] -> ShowS #

Eq ASN1Length # 
Instance details

Defined in Data.ASN1.Types.Lowlevel

data ASN1Header #

ASN1 Header with the class, tag, constructed flag and length.

Instances

Instances details
Show ASN1Header # 
Instance details

Defined in Data.ASN1.Types.Lowlevel

Methods

showsPrec :: Int -> ASN1Header -> ShowS #

show :: ASN1Header -> String #

showList :: [ASN1Header] -> ShowS #

Eq ASN1Header # 
Instance details

Defined in Data.ASN1.Types.Lowlevel

Events types

data ASN1Event #

represent one event from an asn1 data stream

Constructors

Header ASN1Header

ASN1 Header

Primitive !ByteString

Primitive

ConstructionBegin

Constructed value start

ConstructionEnd

Constructed value end

Instances

Instances details
Show ASN1Event # 
Instance details

Defined in Data.ASN1.Types.Lowlevel

Methods

showsPrec :: Int -> ASN1Event -> ShowS #

show :: ASN1Event -> String #

showList :: [ASN1Event] -> ShowS #

Eq ASN1Event # 
Instance details

Defined in Data.ASN1.Types.Lowlevel