License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell98 |
Synopsis
- data ASN1Class
- type ASN1Tag = Int
- data ASN1Length
- data ASN1Header = ASN1Header !ASN1Class !ASN1Tag !Bool !ASN1Length
- data ASN1Event
Raw types
Element class
Instances
Enum ASN1Class Source # | |
Defined in Data.ASN1.Types.Lowlevel succ :: ASN1Class -> ASN1Class # pred :: ASN1Class -> ASN1Class # fromEnum :: ASN1Class -> Int # enumFrom :: ASN1Class -> [ASN1Class] # enumFromThen :: ASN1Class -> ASN1Class -> [ASN1Class] # enumFromTo :: ASN1Class -> ASN1Class -> [ASN1Class] # enumFromThenTo :: ASN1Class -> ASN1Class -> ASN1Class -> [ASN1Class] # | |
Eq ASN1Class Source # | |
Ord ASN1Class Source # | |
Defined in Data.ASN1.Types.Lowlevel | |
Show ASN1Class Source # | |
data ASN1Length Source #
ASN1 Length with all different formats
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
Eq ASN1Length Source # | |
Defined in Data.ASN1.Types.Lowlevel (==) :: ASN1Length -> ASN1Length -> Bool # (/=) :: ASN1Length -> ASN1Length -> Bool # | |
Show ASN1Length Source # | |
Defined in Data.ASN1.Types.Lowlevel showsPrec :: Int -> ASN1Length -> ShowS # show :: ASN1Length -> String # showList :: [ASN1Length] -> ShowS # |
data ASN1Header Source #
ASN1 Header with the class, tag, constructed flag and length.
Instances
Eq ASN1Header Source # | |
Defined in Data.ASN1.Types.Lowlevel (==) :: ASN1Header -> ASN1Header -> Bool # (/=) :: ASN1Header -> ASN1Header -> Bool # | |
Show ASN1Header Source # | |
Defined in Data.ASN1.Types.Lowlevel showsPrec :: Int -> ASN1Header -> ShowS # show :: ASN1Header -> String # showList :: [ASN1Header] -> ShowS # |
Events types
represent one event from an asn1 data stream
Header ASN1Header | ASN1 Header |
Primitive !ByteString | Primitive |
ConstructionBegin | Constructed value start |
ConstructionEnd | Constructed value end |