|Maintainer||Vincent Hanquez <firstname.lastname@example.org>|
- data ASN1Class
- type ASN1Tag = Int
- data ASN1Length
- data ASN1Header = ASN1Header !ASN1Class !ASN1Tag !Bool !ASN1Length
- data ASN1Error
- data ASN1Event
ASN1 Length with all different formats
Short form with only one byte. length has to be < 127.
|LenLong Int Int|
Long form of N bytes
Length is indefinite expect an EOC in the stream to finish the type
ASN1 Header with the class, tag, constructed flag and length.
Possible errors during parsing operations
Unexpected EOC in the stream.
Invalid primitive with infinite length in a stream.
A construction goes over the size specified in the header.
An unexpected situation has come up parsing an ASN1 event stream.
Parsing an invalid header.
Parsing is not finished, there is construction unended.
Decoding of a type that is not implemented. Contribution welcome.
Decoding of a knowed type failed.
|PolicyFailed String String|
Policy failed including the name of the policy and the reason.