JavaScript generic ASN.1 parser (mirror)
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use the same prepended-length format as octet and bit string.

+3 -3
+1 -1
asn1.js
··· 141 141 s <<= 1; 142 142 --len; 143 143 } 144 - s = "(" + len + " bit) "; 144 + s = "(" + len + " bit)\n"; 145 145 } 146 146 var n = new Int10(); 147 147 for (var i = start; i < end; ++i)
+2 -2
test.js
··· 18 18 '(3 elem)', 'PKCS#10 request'], 19 19 // Int10 20 20 ['060C69C7C79AB78084C289F9870D', '2.25.84478768945400492475277', 'Big OID arc'], 21 - ['02102FA176B36EE9F049F444B40099661945', '(126 bit) 63312083136615639753586560173617846597', 'Big integer (126 bit)'], 21 + ['02102FA176B36EE9F049F444B40099661945', '(126 bit)\n63312083136615639753586560173617846597', 'Big integer (126 bit)'], 22 22 ['028181008953097086EE6147C5F4D5FFAF1B498A3D11EC5518E964DC52126B2614F743883F64CA51377ABB530DFD20464A48BD67CD27E7B29AEC685C5D10825E605C056E4AB8EEA460FA27E55AA62C498B02D7247A249838A12ECDF37C6011CF4F0EDEA9CEE687C1CB4A51C6AE62B2EFDB000723A01C99D6C23F834880BA8B42D5414E6F', 23 - '(1024 bit) 96432446964907009840023644401994013457468837455140331578268642517697945390319089463541388080569398374873228752921897678940332050406994011437231634303608704223145390228074087922901239478374991949372306413157758278029522534299413919735715864599284769202556071242381348472464716517735026291259010477833523908207', 23 + '(1024 bit)\n96432446964907009840023644401994013457468837455140331578268642517697945390319089463541388080569398374873228752921897678940332050406994011437231634303608704223145390228074087922901239478374991949372306413157758278029522534299413919735715864599284769202556071242381348472464716517735026291259010477833523908207', 24 24 'Big integer (1024 bit)'], 25 25 ]; 26 26