Skip to content

readDerSequenceOrThrow ​

readDerSequenceOrThrow ​

Reads a DER-encoded SEQUENCE from bytes and returns its direct children.

ts
function readDerSequenceOrThrow(
	bytes: Uint8Array,
	options?: ReadSequenceChildrenOptions,
): DerElement[]

Parameters

Throws

  • if the root element is not a SEQUENCE, or if child boundaries are inconsistent.

Released under the MIT License.