asn1-encoding-0.9.6: ASN1 data reader and writer in RAW, BER and DER forms
LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.ASN1.Prim

Description

Tools to read ASN1 primitive (e.g. boolean, int)

Synopsis

ASN1 high level algebraic type

data ASN1 #

Instances

Instances details
Show ASN1 
Instance details

Defined in Data.ASN1.Types

Eq ASN1 
Instance details

Defined in Data.ASN1.Types

Methods

(==) :: ASN1 -> ASN1 -> Bool Source #

(/=) :: ASN1 -> ASN1 -> Bool Source #

marshall an ASN1 type from a val struct or a bytestring

getInteger :: ByteString -> Either ASN1Error ASN1 Source #

getInteger, parse a value bytestring and get the integer out of the two complement encoded bytes

marshall an ASN1 type to a bytestring