Skip to content
asn1jsasn1jsasn1jsv4.1.0

fromDER

fromDER(input, options?): FromBerResult

Parses exactly one DER element, validating the supported encoding rules. Primitive embedded-value detection is disabled by default. A validation failure returns offset -1, result.error and, when available, a structured diagnostic. Successful validation describes the input bytes at this call, not later mutations.

BufferSourceLike

FromDerOptions

FromBerResult