License | BSD-style |
---|---|
Maintainer | Vincent Hanquez <vincent@snarc.org> |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- class ASN1Decoding a where
- decodeASN1 :: a -> ByteString -> Either ASN1Error [ASN1]
- class ASN1DecodingRepr a where
- decodeASN1Repr :: a -> ByteString -> Either ASN1Error [ASN1Repr]
- class ASN1Encoding a where
- encodeASN1 :: a -> [ASN1] -> ByteString
- decodeASN1' :: ASN1Decoding a => a -> ByteString -> Either ASN1Error [ASN1]
- decodeASN1Repr' :: ASN1DecodingRepr a => a -> ByteString -> Either ASN1Error [ASN1Repr]
- encodeASN1' :: ASN1Encoding a => a -> [ASN1] -> ByteString
generic class for decoding and encoding stream
class ASN1Decoding a where Source #
Describe an ASN1 decoding, that transform a bytestream into an asn1stream
decodeASN1 :: a -> ByteString -> Either ASN1Error [ASN1] Source #
decode a lazy bytestring into an ASN1 stream
Instances
ASN1Decoding BER Source # | |
Defined in Data.ASN1.BinaryEncoding decodeASN1 :: BER -> ByteString -> Either ASN1Error [ASN1] Source # | |
ASN1Decoding DER Source # | |
Defined in Data.ASN1.BinaryEncoding decodeASN1 :: DER -> ByteString -> Either ASN1Error [ASN1] Source # |
class ASN1DecodingRepr a where Source #
transition class.
decodeASN1Repr :: a -> ByteString -> Either ASN1Error [ASN1Repr] Source #
decode a lazy bytestring into an ASN1 stream
Instances
ASN1DecodingRepr BER Source # | |
Defined in Data.ASN1.BinaryEncoding decodeASN1Repr :: BER -> ByteString -> Either ASN1Error [ASN1Repr] Source # | |
ASN1DecodingRepr DER Source # | |
Defined in Data.ASN1.BinaryEncoding decodeASN1Repr :: DER -> ByteString -> Either ASN1Error [ASN1Repr] Source # |
class ASN1Encoding a where Source #
Describe an ASN1 encoding, that transform an asn1stream into a bytestream
encodeASN1 :: a -> [ASN1] -> ByteString Source #
encode a stream into a lazy bytestring
Instances
ASN1Encoding DER Source # | |
Defined in Data.ASN1.BinaryEncoding encodeASN1 :: DER -> [ASN1] -> ByteString Source # |
strict bytestring version
decodeASN1' :: ASN1Decoding a => a -> ByteString -> Either ASN1Error [ASN1] Source #
decode a strict bytestring into an ASN1 stream
decodeASN1Repr' :: ASN1DecodingRepr a => a -> ByteString -> Either ASN1Error [ASN1Repr] Source #
decode a strict bytestring into an ASN1Repr stream
encodeASN1' :: ASN1Encoding a => a -> [ASN1] -> ByteString Source #
encode a stream into a strict bytestring