asn1-encoding-0.9.6: ASN1 data reader and writer in RAW, BER and DER forms
License BSD-style
Maintainer Vincent Hanquez <vincent@snarc.org>
Stability experimental
Portability unknown
Safe Haskell None
Language Haskell2010

Data.ASN1.Prim

Description

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

Synopsis

ASN1 high level algebraic type

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