Pike v8.0 release 1738

Method Standards.ASN1.Decode.der_decode()


Method der_decode

.Types.Object der_decode(Stdio.Buffer data, mapping(int:program) types)

Parameter data

An instance of Stdio.Buffer containing the DER encoded data.

Parameter types

A mapping from combined tag numbers to classes from or derived from Standards.ASN1.Types. Combined tag numbers may be generated using Standards.ASN1.Types.make_combined_tag.

Returns

An object from Standards.ASN1.Types or, either Standards.ASN1.Decode.Primitive or Standards.ASN1.Decode.constructed, if the type is unknown. Throws an exception if the data could not be decoded.

FIXME

Handling of implicit and explicit ASN.1 tagging, as well as other context dependence, is next to non_existant.