DER Restriction Violations

The DER decode functions validate that the encoding follows the restrictions imposed by DER (e.g. that SET OF components are sorted). If a restriction was violated by the encoder, the DER decode function will add a CanonicalError to the context's warnings (asn1rt.OSRTContext.Warnings). The warnings are held in an asn1rt.OSRTWarnings object. Note the following properties of asn1rt.OSRTWarnings: