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))
Parameters
Section titled “Parameters”payload
Section titled “payload”Uint8Array
The payload to encode as the bit string
Uint8Array
The DER encoded (and SEQUENCE wrapped!) OID to tag the payload with
Returns
Section titled “Returns”Uint8Array