You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ASN1.js module uses strict verification for isConstructed property in schema. How can I create a schema which supports both cases for OCTET STRING type?
constraw=newUint8Array([0x24,0x80,0x00,0x00]);// [0x40, 0x00]const{ result }=asn1.fromBER(raw.buffer);constschema=newasn1.OctetString();// schema.idBlock.isConstructed = true;const{ verified }=asn1.compareSchema(result,result,schema);assert.strictEqual(verified,true);