Extracts a payload from the given derEncoded data, and checks that it was tagged with the given oid.
derEncoded
oid
derEncoded = SEQUENCE(oid, BITSTRING(payload))
The DER encoded and tagged data
The DER encoded (and SEQUENCE wrapped!) expected OID
The unwrapped payload
Extracts a payload from the given
derEncoded
data, and checks that it was tagged with the givenoid
.derEncoded = SEQUENCE(oid, BITSTRING(payload))