Companion

Functions

Link copied to clipboard

Convenience method to directly parse a HEX-string representation of DER-encoded data. Ignores and strips all whitespace.

Link copied to clipboard

Parses the provided input into a single Asn1Element. Consumes all Bytes and throws if more than one Asn.1 Structure was found or trailing bytes were detected

Convenience wrapper around parse, taking a ByteArray as source

Link copied to clipboard

Convenience wrapper around parseAll, taking a ByteArray as source

Tries to parse the input into a list of Asn1Elements. Consumes all Bytes and throws if an invalid ASN.1 Structure is found at any point.

Link copied to clipboard

Convenience wrapper around parseFirst, taking a ByteArray as source.

Link copied to clipboard

Convenience method to directly parse a HEX-string representation of DER-encoded data. Ignores and strips all whitespace.