Portability | unknown |
---|---|
Stability | experimental |
Maintainer | Vincent Hanquez <vincent@snarc.org> |
A module containing raw ASN1 serialization/derialization tools
- data GetErr a
- runGetErr :: GetErr a -> ByteString -> Either ASN1Err a
- runGetErrInGet :: GetErr a -> Get (Either ASN1Err a)
- data ASN1Err
- type CheckFn = (TagClass, Bool, TagNumber) -> ValLength -> Maybe ASN1Err
- data TagClass
- = Universal
- | Application
- | Context
- | Private
- type TagNumber = Int
- data ValLength
- data ValStruct
- = Primitive ByteString
- | Constructed [Value]
- data Value = Value TagClass TagNumber ValStruct
- getValueCheck :: CheckFn -> GetErr Value
- getValue :: GetErr Value
- putValuePolicy :: (Value -> Int -> ValLength) -> Value -> Put
- putValue :: Value -> Put
Documentation
get structure
ASN1 definitions
Primitive ByteString | Primitive of a strict value |
Constructed [Value] | Constructed of a list of values |
get value from a Get structure
getValueCheck :: CheckFn -> GetErr ValueSource
getValueCheck decode an ASN1 value and check the values received through the check fn