crypton-asn1-encoding-0.9.7: ASN.1 data (raw, BER or DER) readers and writers
Copyright(c) 2010-2013 Vincent Hanquez <vincent@snarc.org>
LicenseBSD-style
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Data.ASN1.Prim

Description

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

Synopsis

ASN.1 high-level algebraic types

Marshall an ASN.1 value from a val struct or a strict bytestring

getInteger :: ByteString -> Either ASN1Error ASN1 Source #

Parse a value bytestring and get the integer out of the two complement encoded bytes.

Marshall an ASN.1 value to a strict bytestring