Skip to content

WrapDER

wrapDER(payload, oid): Uint8Array

Defined in: packages/agent/src/der.ts:111

Wraps the given payload in a DER encoding tagged with the given encoded oid like so: SEQUENCE(oid, BITSTRING(payload))

Uint8Array

The payload to encode as the bit string

Uint8Array

The DER encoded (and SEQUENCE wrapped!) OID to tag the payload with

Uint8Array