Functions
Link copied to clipboard
Parses the provided source into a single Asn1Element. Consumes all bytes and throws if more than one ASN.1 structure was found or trailing bytes were detected.
Parses the provided source into a single Asn1Element.
Link copied to clipboard
Parses all ASN.1 elements from source.
Link copied to clipboard
fun Asn1Element.Companion.parseFirst(source: ByteArray, limit: Long? = null): Pair<Asn1Element, ByteArray>
Convenience wrapper around parseFirst, taking a ByteArray as source.
Parses the first ASN.1 element from source.
Link copied to clipboard
Convenience method to directly parse a HEX-string representation of DER-encoded data. Ignores and strips all whitespace.