parseASN1NoLeftoverBytes()

Parses an ASN.1-encoded data and returns an ASN1Value. See parseASN1() for details on errors and behavior.

In addition to errors thrown by parseASN1(), it will also throw ASN1LeftoverBytesError if there are any leftover bytes.

Definition

function parseASN1NoLeftoverBytes(data: Uint8Array): ASN1Value;

Parameters

  • data