• Extracts a payload from the given derEncoded data, and checks that it was tagged with the given oid.

    derEncoded = SEQUENCE(oid, BITSTRING(payload))

    Parameters

    • derEncoded: ArrayBuffer

      The DER encoded and tagged data

    • oid: Uint8Array

      The DER encoded (and SEQUENCE wrapped!) expected OID

    Returns Uint8Array

    The unwrapped payload