asn1-encoding-0.9.4: ASN1 data reader and writer in RAW, BER and DER forms

LicenseBSD-style
MaintainerVincent Hanquez <vincent@snarc.org>
Stabilityexperimental
Portabilityunknown
Safe HaskellNone
LanguageHaskell2010

Data.ASN1.BinaryEncoding.Raw

Contents

Description

Raw encoding of binary format (BERDERCER)

Synopsis

types

type ASN1Tag = Int

parser

parseLBS :: ByteString -> Either ASN1Error [ASN1Event] Source

Parse one lazy bytestring and returns on success all ASN1 events associated.

parseBS :: ByteString -> Either ASN1Error [ASN1Event] Source

Parse one strict bytestring and returns on success all ASN1 events associated.

writer

toLazyByteString :: [ASN1Event] -> ByteString Source

transform a list of ASN1 Events into a lazy bytestring

toByteString :: [ASN1Event] -> ByteString Source

transform a list of ASN1 Events into a strict bytestring