@peculiar/certificates-viewer 4.0.1 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/actions.js +21 -0
- package/components/actions.js.map +1 -0
- package/components/arrow_top.js +1 -1
- package/components/attribute-certificate-viewer.js +7 -7
- package/components/attribute-certificate-viewer.js.map +1 -1
- package/components/button-menu.js +2 -14
- package/components/button-menu.js.map +1 -1
- package/components/certificate-viewer.js +5 -5
- package/components/certificate-viewer.js.map +1 -1
- package/components/crl-viewer.js +6 -6
- package/components/crl-viewer.js.map +1 -1
- package/components/cross.js +47 -0
- package/components/cross.js.map +1 -0
- package/components/csr-viewer.js +4 -4
- package/components/csr-viewer.js.map +1 -1
- package/components/download.js +404 -374
- package/components/download.js.map +1 -1
- package/components/index.js +5 -1
- package/components/index.js.map +1 -1
- package/components/index2.js +2 -2
- package/components/index2.js.map +1 -1
- package/components/issuer_name.js +2 -2
- package/components/miscellaneous.js +648 -245
- package/components/miscellaneous.js.map +1 -1
- package/components/peculiar-certificates-viewer.js +4 -42
- package/components/peculiar-certificates-viewer.js.map +1 -1
- package/components/peculiar-text-hider.js +1 -1
- package/components/subject_name.js +2 -2
- package/components/subject_name.js.map +1 -1
- package/dist/cjs/actions-19013d4a.js +23 -0
- package/dist/cjs/actions-19013d4a.js.map +1 -0
- package/dist/cjs/{certification_request-c0cafa72.js → certification_request-bf416170.js} +553 -214
- package/dist/cjs/certification_request-bf416170.js.map +1 -0
- package/dist/cjs/{crl-b4322166.js → crl-d9591b95.js} +14 -14
- package/dist/cjs/{crl-b4322166.js.map → crl-d9591b95.js.map} +1 -1
- package/dist/cjs/cross-9872c473.js +51 -0
- package/dist/cjs/cross-9872c473.js.map +1 -0
- package/dist/cjs/{download-972dda8a.js → download-0fa5b33c.js} +377 -377
- package/dist/cjs/download-0fa5b33c.js.map +1 -0
- package/dist/cjs/index.cjs.js +18 -1
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/link-6aea0be4.js +25 -0
- package/dist/cjs/link-6aea0be4.js.map +1 -0
- package/dist/cjs/{miscellaneous-806a04a5.js → miscellaneous-6e800553.js} +114 -33
- package/dist/cjs/miscellaneous-6e800553.js.map +1 -0
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +9 -8
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-button-menu_3.cjs.entry.js +2 -14
- package/dist/cjs/peculiar-button-menu_3.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificate-decoder.cjs.entry.js +4 -4
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js +5 -4
- package/dist/cjs/peculiar-certificate-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +9 -47
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/{x509_certificate-989b1435.js → x509_certificate-53feebd3.js} +7 -7
- package/dist/cjs/{x509_certificate-989b1435.js.map → x509_certificate-53feebd3.js.map} +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/index.js +5 -0
- package/dist/collection/components/certificate-details-parts/extensions/index.js.map +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js +80 -0
- package/dist/collection/components/certificate-details-parts/extensions/key_description_extension.js.map +1 -0
- package/dist/collection/constants/oids.js +1 -0
- package/dist/collection/constants/oids.js.map +1 -1
- package/dist/collection/crypto/extension.js +4 -0
- package/dist/collection/crypto/extension.js.map +1 -1
- package/dist/collection/index.js +4 -0
- package/dist/collection/index.js.map +1 -1
- package/dist/collection/utils/camel_case_to_words.js +15 -0
- package/dist/collection/utils/camel_case_to_words.js.map +1 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/collection/utils/index.js.map +1 -1
- package/dist/esm/actions-8d745b2a.js +21 -0
- package/dist/esm/actions-8d745b2a.js.map +1 -0
- package/dist/esm/{arrow_top-efd3a56d.js → arrow_top-fc298828.js} +2 -2
- package/dist/esm/{arrow_top-efd3a56d.js.map → arrow_top-fc298828.js.map} +1 -1
- package/dist/esm/{certification_request-5cadde9f.js → certification_request-c9dc8e9c.js} +545 -209
- package/dist/esm/certification_request-c9dc8e9c.js.map +1 -0
- package/dist/esm/{crl-11670c3e.js → crl-70e85374.js} +14 -14
- package/dist/esm/{crl-11670c3e.js.map → crl-70e85374.js.map} +1 -1
- package/dist/esm/cross-9ec9a759.js +47 -0
- package/dist/esm/cross-9ec9a759.js.map +1 -0
- package/dist/esm/{download-57c5bf8f.js → download-aacb6eff.js} +375 -375
- package/dist/esm/download-aacb6eff.js.map +1 -0
- package/dist/esm/index.js +8 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/link-ad24c3be.js +23 -0
- package/dist/esm/link-ad24c3be.js.map +1 -0
- package/dist/esm/{miscellaneous-1d4e8b41.js → miscellaneous-0763f98e.js} +108 -27
- package/dist/esm/miscellaneous-0763f98e.js.map +1 -0
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +9 -8
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
- package/dist/esm/peculiar-button-menu_3.entry.js +2 -14
- package/dist/esm/peculiar-button-menu_3.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-decoder.entry.js +4 -4
- package/dist/esm/peculiar-certificate-viewer.entry.js +5 -4
- package/dist/esm/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-certificates-viewer.entry.js +5 -43
- package/dist/esm/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm/peculiar-text-hider.entry.js +1 -1
- package/dist/esm/{x509_certificate-dfae6999.js → x509_certificate-8cf268d1.js} +7 -7
- package/dist/esm/{x509_certificate-dfae6999.js.map → x509_certificate-8cf268d1.js.map} +1 -1
- package/dist/esm-es5/actions-8d745b2a.js +12 -0
- package/dist/esm-es5/actions-8d745b2a.js.map +1 -0
- package/dist/esm-es5/{arrow_top-efd3a56d.js → arrow_top-fc298828.js} +2 -2
- package/dist/esm-es5/certification_request-c9dc8e9c.js +97 -0
- package/dist/esm-es5/certification_request-c9dc8e9c.js.map +1 -0
- package/dist/esm-es5/{crl-11670c3e.js → crl-70e85374.js} +6 -6
- package/dist/esm-es5/{crl-11670c3e.js.map → crl-70e85374.js.map} +1 -1
- package/dist/esm-es5/cross-9ec9a759.js +26 -0
- package/dist/esm-es5/cross-9ec9a759.js.map +1 -0
- package/dist/esm-es5/download-aacb6eff.js +43 -0
- package/dist/esm-es5/download-aacb6eff.js.map +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/link-ad24c3be.js +12 -0
- package/dist/esm-es5/link-ad24c3be.js.map +1 -0
- package/dist/esm-es5/{miscellaneous-1d4e8b41.js → miscellaneous-0763f98e.js} +58 -51
- package/dist/esm-es5/miscellaneous-0763f98e.js.map +1 -0
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js +3 -3
- package/dist/esm-es5/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-button-menu_3.entry.js +1 -8
- package/dist/esm-es5/peculiar-button-menu_3.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificate-decoder.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +2 -23
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js.map +1 -1
- package/dist/esm-es5/peculiar-text-hider.entry.js +1 -1
- package/dist/esm-es5/x509_certificate-8cf268d1.js +12 -0
- package/dist/esm-es5/{x509_certificate-dfae6999.js.map → x509_certificate-8cf268d1.js.map} +1 -1
- package/dist/peculiar/index.esm.js +1 -1
- package/dist/peculiar/p-025b3cfb.entry.js +5 -0
- package/dist/peculiar/{p-fd4b9a50.entry.js.map → p-025b3cfb.entry.js.map} +1 -1
- package/dist/peculiar/p-0bd7c6bc.system.entry.js +13 -0
- package/dist/peculiar/p-0bd7c6bc.system.entry.js.map +1 -0
- package/dist/peculiar/{p-709994c1.js → p-0fc2e2b4.js} +2 -2
- package/dist/peculiar/p-10d2d400.system.js +34 -0
- package/dist/peculiar/{p-6667fe6e.system.js.map → p-10d2d400.system.js.map} +1 -1
- package/dist/peculiar/p-14f281b0.system.js +43 -0
- package/dist/peculiar/p-14f281b0.system.js.map +1 -0
- package/dist/peculiar/p-15cb92b5.system.js +97 -0
- package/dist/peculiar/p-15cb92b5.system.js.map +1 -0
- package/dist/peculiar/p-1ceb0fe3.js +12 -0
- package/dist/peculiar/p-1ceb0fe3.js.map +1 -0
- package/dist/peculiar/p-1ef997ee.js +97 -0
- package/dist/peculiar/p-1ef997ee.js.map +1 -0
- package/dist/peculiar/{p-e39de121.system.entry.js → p-24050d82.system.entry.js} +2 -2
- package/dist/peculiar/p-2f48fe70.entry.js +12 -0
- package/dist/peculiar/p-2f48fe70.entry.js.map +1 -0
- package/dist/peculiar/{p-0bdcdbf7.system.js → p-31b60224.system.js} +59 -52
- package/dist/peculiar/p-31b60224.system.js.map +1 -0
- package/dist/peculiar/p-33196289.entry.js +5 -0
- package/dist/peculiar/{p-90459cec.entry.js.map → p-33196289.entry.js.map} +1 -1
- package/dist/peculiar/p-370cee20.js +26 -0
- package/dist/peculiar/p-370cee20.js.map +1 -0
- package/dist/peculiar/{p-7ed7cd97.system.entry.js → p-4ab9673f.system.entry.js} +4 -4
- package/dist/peculiar/{p-7ed7cd97.system.entry.js.map → p-4ab9673f.system.entry.js.map} +1 -1
- package/dist/peculiar/{p-8748391f.system.entry.js → p-5151cb6f.system.entry.js} +2 -2
- package/dist/peculiar/p-53784f15.system.entry.js +5 -0
- package/dist/peculiar/p-53784f15.system.entry.js.map +1 -0
- package/dist/peculiar/p-542412ae.js +33 -0
- package/dist/peculiar/{p-43eb3721.js.map → p-542412ae.js.map} +1 -1
- package/dist/peculiar/p-59e5ac12.js +43 -0
- package/dist/peculiar/p-59e5ac12.js.map +1 -0
- package/dist/peculiar/p-5ab007e9.entry.js +5 -0
- package/dist/peculiar/p-5ab007e9.entry.js.map +1 -0
- package/dist/peculiar/p-5e49b881.system.entry.js +5 -0
- package/dist/peculiar/{p-26981468.system.entry.js.map → p-5e49b881.system.entry.js.map} +1 -1
- package/dist/peculiar/p-6cb88fd6.system.js +13 -0
- package/dist/peculiar/p-6cb88fd6.system.js.map +1 -0
- package/dist/peculiar/p-72f53d81.js +12 -0
- package/dist/peculiar/{p-6e79b9c8.js.map → p-72f53d81.js.map} +1 -1
- package/dist/peculiar/p-80832207.system.js +1 -1
- package/dist/peculiar/p-94a453d7.js +12 -0
- package/dist/peculiar/p-94a453d7.js.map +1 -0
- package/dist/peculiar/{p-f3d85a5f.entry.js → p-9c91dd68.entry.js} +5 -5
- package/dist/peculiar/{p-f3d85a5f.entry.js.map → p-9c91dd68.entry.js.map} +1 -1
- package/dist/peculiar/p-a3eeb94b.system.js +5 -0
- package/dist/peculiar/p-b313be9e.system.js +13 -0
- package/dist/peculiar/p-b313be9e.system.js.map +1 -0
- package/dist/peculiar/{p-daf23673.system.js → p-c99507d4.system.js} +3 -3
- package/dist/peculiar/p-ca02a823.js +362 -0
- package/dist/peculiar/p-ca02a823.js.map +1 -0
- package/dist/peculiar/p-cfca7dae.system.js +13 -0
- package/dist/peculiar/{p-31586b23.system.js.map → p-cfca7dae.system.js.map} +1 -1
- package/dist/peculiar/p-ddae2f8e.system.js +27 -0
- package/dist/peculiar/p-ddae2f8e.system.js.map +1 -0
- package/dist/peculiar/{p-882e1281.entry.js → p-e5b18cd1.entry.js} +2 -2
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-details-parts/extensions/key_description_extension.d.ts +15 -0
- package/dist/types/constants/oids.d.ts +1 -0
- package/dist/types/crypto/extension.d.ts +2 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/utils/camel_case_to_words.d.ts +8 -0
- package/dist/types/utils/index.d.ts +1 -0
- package/hydrate/index.js +1039 -609
- package/package.json +22 -21
- package/dist/cjs/certification_request-c0cafa72.js.map +0 -1
- package/dist/cjs/download-972dda8a.js.map +0 -1
- package/dist/cjs/miscellaneous-806a04a5.js.map +0 -1
- package/dist/esm/certification_request-5cadde9f.js.map +0 -1
- package/dist/esm/download-57c5bf8f.js.map +0 -1
- package/dist/esm/miscellaneous-1d4e8b41.js.map +0 -1
- package/dist/esm-es5/certification_request-5cadde9f.js +0 -97
- package/dist/esm-es5/certification_request-5cadde9f.js.map +0 -1
- package/dist/esm-es5/download-57c5bf8f.js +0 -19
- package/dist/esm-es5/download-57c5bf8f.js.map +0 -1
- package/dist/esm-es5/miscellaneous-1d4e8b41.js.map +0 -1
- package/dist/esm-es5/x509_certificate-dfae6999.js +0 -12
- package/dist/peculiar/p-0bdcdbf7.system.js.map +0 -1
- package/dist/peculiar/p-23555789.system.entry.js +0 -34
- package/dist/peculiar/p-23555789.system.entry.js.map +0 -1
- package/dist/peculiar/p-26981468.system.entry.js +0 -5
- package/dist/peculiar/p-31586b23.system.js +0 -13
- package/dist/peculiar/p-43eb3721.js +0 -33
- package/dist/peculiar/p-5823e6e8.entry.js +0 -12
- package/dist/peculiar/p-5823e6e8.entry.js.map +0 -1
- package/dist/peculiar/p-596836a7.entry.js +0 -33
- package/dist/peculiar/p-596836a7.entry.js.map +0 -1
- package/dist/peculiar/p-6667fe6e.system.js +0 -34
- package/dist/peculiar/p-6e79b9c8.js +0 -12
- package/dist/peculiar/p-74c241e7.js +0 -97
- package/dist/peculiar/p-74c241e7.js.map +0 -1
- package/dist/peculiar/p-90459cec.entry.js +0 -5
- package/dist/peculiar/p-97688065.js +0 -355
- package/dist/peculiar/p-97688065.js.map +0 -1
- package/dist/peculiar/p-a053c132.js +0 -19
- package/dist/peculiar/p-a053c132.js.map +0 -1
- package/dist/peculiar/p-ae9189f6.system.js +0 -19
- package/dist/peculiar/p-ae9189f6.system.js.map +0 -1
- package/dist/peculiar/p-bd485115.system.entry.js +0 -13
- package/dist/peculiar/p-bd485115.system.entry.js.map +0 -1
- package/dist/peculiar/p-c0a298fd.system.js +0 -97
- package/dist/peculiar/p-c0a298fd.system.js.map +0 -1
- package/dist/peculiar/p-e1960173.system.js +0 -5
- package/dist/peculiar/p-fd4b9a50.entry.js +0 -5
- /package/dist/esm-es5/{arrow_top-efd3a56d.js.map → arrow_top-fc298828.js.map} +0 -0
- /package/dist/peculiar/{p-709994c1.js.map → p-0fc2e2b4.js.map} +0 -0
- /package/dist/peculiar/{p-e39de121.system.entry.js.map → p-24050d82.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-8748391f.system.entry.js.map → p-5151cb6f.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-e1960173.system.js.map → p-a3eeb94b.system.js.map} +0 -0
- /package/dist/peculiar/{p-daf23673.system.js.map → p-c99507d4.system.js.map} +0 -0
- /package/dist/peculiar/{p-882e1281.entry.js.map → p-e5b18cd1.entry.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* © Peculiar Ventures https://peculiarventures.com/ - MIT License
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import { B as BufferSourceConverter_1, C as Convert_1, i as isEqual_1 } from './download-aacb6eff.js';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @license
|
|
@@ -33,6 +33,22 @@ const isBase64 = (value) => {
|
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
35
|
|
|
36
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
37
|
+
|
|
38
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
39
|
+
return module = {
|
|
40
|
+
path: basedir,
|
|
41
|
+
exports: {},
|
|
42
|
+
require: function (path, base) {
|
|
43
|
+
return commonjsRequire();
|
|
44
|
+
}
|
|
45
|
+
}, fn(module, module.exports), module.exports;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function commonjsRequire () {
|
|
49
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
50
|
+
}
|
|
51
|
+
|
|
36
52
|
var dayjs_min = createCommonjsModule(function (module, exports) {
|
|
37
53
|
!function(t,e){module.exports=e();}(commonjsGlobal,(function(){var t=1e3,e=6e4,n=36e5,r="millisecond",i="second",s="minute",u="hour",a="day",o="week",f="month",h="quarter",c="year",d="date",l="Invalid Date",$=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(t){var e=["th","st","nd","rd"],n=t%100;return "["+t+(e[(n-20)%10]||e[n]||e[0])+"]"}},m=function(t,e,n){var r=String(t);return !r||r.length>=e?t:""+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return (e<=0?"+":"-")+m(r,2,"0")+":"+m(i,2,"0")},m:function t(e,n){if(e.date()<n.date())return -t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,f),s=n-i<0,u=e.clone().add(r+(s?-1:1),f);return +(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return {M:f,y:c,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:h}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},g="en",D={};D[g]=M;var p=function(t){return t instanceof _},S=function t(e,n,r){var i;if(!e)return g;if("string"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split("-");if(!i&&u.length>1)return t(u[0])}else {var a=e.name;D[a]=e,i=a;}return !r&&i&&(g=i),i||!r&&g},w=function(t,e){if(p(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},O=v;O.l=S,O.i=p,O.w=function(t,e){return w(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=S(t.locale,null,!0),this.parse(t);}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.$x=t.x||{},this.init();},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds();},m.$utils=function(){return O},m.isValid=function(){return !(this.$d.toString()===l)},m.isSame=function(t,e){var n=w(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return w(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<w(t)},m.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!O.u(e)||e,h=O.p(t),l=function(t,e){var i=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v="set"+(this.$u?"UTC":"");switch(h){case c:return r?l(1,0):l(31,11);case f:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+"Hours",0);case u:return $(v+"Minutes",1);case s:return $(v+"Seconds",2);case i:return $(v+"Milliseconds",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=O.p(t),h="set"+(this.$u?"UTC":""),l=(n={},n[a]=h+"Date",n[d]=h+"Date",n[f]=h+"Month",n[c]=h+"FullYear",n[u]=h+"Hours",n[s]=h+"Minutes",n[i]=h+"Seconds",n[r]=h+"Milliseconds",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===f||o===c){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d;}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[O.p(t)]()},m.add=function(r,h){var d,l=this;r=Number(r);var $=O.p(h),y=function(t){var e=w(l);return O.w(e.date(e.date()+Math.round(t*r)),l)};if($===f)return this.set(f,this.$M+r);if($===c)return this.set(c,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return O.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,f=n.months,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},c=function(t){return O.s(s%12||12,t,"0")},d=n.meridiem||function(t,e,n){var r=t<12?"AM":"PM";return n?r.toLowerCase():r},$={YY:String(this.$y).slice(-2),YYYY:this.$y,M:a+1,MM:O.s(a+1,2,"0"),MMM:h(n.monthsShort,a,f,3),MMMM:h(f,a),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:h(n.weekdaysMin,this.$W,o,2),ddd:h(n.weekdaysShort,this.$W,o,3),dddd:o[this.$W],H:String(s),HH:O.s(s,2,"0"),h:c(1),hh:c(2),a:d(s,u,!0),A:d(s,u,!1),m:String(u),mm:O.s(u,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return r.replace(y,(function(t,e){return e||$[t]||i.replace(":","")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=O.p(d),M=w(r),m=(M.utcOffset()-this.utcOffset())*e,v=this-M,g=O.m(this,M);return g=($={},$[c]=g/12,$[f]=g,$[h]=g/3,$[o]=(v-m)/6048e5,$[a]=(v-m)/864e5,$[u]=v/n,$[s]=v/e,$[i]=v/t,$)[y]||v,l?g:O.a(g)},m.daysInMonth=function(){return this.endOf(f).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=S(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return O.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),T=_.prototype;return w.prototype=T,[["$ms",r],["$s",i],["$m",s],["$H",u],["$W",a],["$M",f],["$y",c],["$D",d]].forEach((function(t){T[t[1]]=function(e){return this.$g(e,t[0],t[1])};})),w.extend=function(t,e){return t.$i||(t(e,_,w),t.$i=!0),w},w.locale=S,w.isDayjs=p,w.unix=function(t){return w(1e3*t)},w.en=D[g],w.Ls=D,w.p={},w}));
|
|
38
54
|
});
|
|
@@ -2497,6 +2513,7 @@ const OIDs = {
|
|
|
2497
2513
|
'1.3.6.1.4.1.4329.7': 'Siemens Public Key Infrastructure',
|
|
2498
2514
|
'1.3.6.1.4.1.52266.1': 'Legal Entity Identifier',
|
|
2499
2515
|
'1.3.6.1.4.1.52266.2': 'Role',
|
|
2516
|
+
'1.3.6.1.4.1.11129.2.1.17': 'Android Key Attestation',
|
|
2500
2517
|
// https://ec.europa.eu/futurium/sites/futurium/files/ntqwac_pilot.pdf
|
|
2501
2518
|
'0.4.0.9496.1': 'Domain Name Beneficiary',
|
|
2502
2519
|
'0.4.0.9496.2': 'DNB Legal representative',
|
|
@@ -2776,7 +2793,7 @@ function HexBlock(BaseClass) {
|
|
|
2776
2793
|
super(...args);
|
|
2777
2794
|
const params = args[0] || {};
|
|
2778
2795
|
this.isHexOnly = (_a = params.isHexOnly) !== null && _a !== void 0 ? _a : false;
|
|
2779
|
-
this.valueHexView = params.valueHex ?
|
|
2796
|
+
this.valueHexView = params.valueHex ? BufferSourceConverter_1.toUint8Array(params.valueHex) : EMPTY_VIEW;
|
|
2780
2797
|
}
|
|
2781
2798
|
get valueHex() {
|
|
2782
2799
|
return this.valueHexView.slice().buffer;
|
|
@@ -2814,7 +2831,7 @@ function HexBlock(BaseClass) {
|
|
|
2814
2831
|
return {
|
|
2815
2832
|
...super.toJSON(),
|
|
2816
2833
|
isHexOnly: this.isHexOnly,
|
|
2817
|
-
valueHex:
|
|
2834
|
+
valueHex: Convert_1.ToHex(this.valueHexView),
|
|
2818
2835
|
};
|
|
2819
2836
|
}
|
|
2820
2837
|
},
|
|
@@ -2827,7 +2844,7 @@ class LocalBaseBlock {
|
|
|
2827
2844
|
this.blockLength = blockLength;
|
|
2828
2845
|
this.error = error;
|
|
2829
2846
|
this.warnings = warnings;
|
|
2830
|
-
this.valueBeforeDecodeView =
|
|
2847
|
+
this.valueBeforeDecodeView = BufferSourceConverter_1.toUint8Array(valueBeforeDecode);
|
|
2831
2848
|
}
|
|
2832
2849
|
static blockName() {
|
|
2833
2850
|
return this.NAME;
|
|
@@ -2844,7 +2861,7 @@ class LocalBaseBlock {
|
|
|
2844
2861
|
blockLength: this.blockLength,
|
|
2845
2862
|
error: this.error,
|
|
2846
2863
|
warnings: this.warnings,
|
|
2847
|
-
valueBeforeDecode:
|
|
2864
|
+
valueBeforeDecode: Convert_1.ToHex(this.valueBeforeDecodeView),
|
|
2848
2865
|
};
|
|
2849
2866
|
}
|
|
2850
2867
|
}
|
|
@@ -2866,7 +2883,7 @@ class LocalIdentificationBlock extends HexBlock(LocalBaseBlock) {
|
|
|
2866
2883
|
super();
|
|
2867
2884
|
if (idBlock) {
|
|
2868
2885
|
this.isHexOnly = (_a = idBlock.isHexOnly) !== null && _a !== void 0 ? _a : false;
|
|
2869
|
-
this.valueHexView = idBlock.valueHex ?
|
|
2886
|
+
this.valueHexView = idBlock.valueHex ? BufferSourceConverter_1.toUint8Array(idBlock.valueHex) : EMPTY_VIEW;
|
|
2870
2887
|
this.tagClass = (_b = idBlock.tagClass) !== null && _b !== void 0 ? _b : -1;
|
|
2871
2888
|
this.tagNumber = (_c = idBlock.tagNumber) !== null && _c !== void 0 ? _c : -1;
|
|
2872
2889
|
this.isConstructed = (_d = idBlock.isConstructed) !== null && _d !== void 0 ? _d : false;
|
|
@@ -2932,7 +2949,7 @@ class LocalIdentificationBlock extends HexBlock(LocalBaseBlock) {
|
|
|
2932
2949
|
return retView.buffer;
|
|
2933
2950
|
}
|
|
2934
2951
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
2935
|
-
const inputView =
|
|
2952
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
2936
2953
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
|
|
2937
2954
|
return -1;
|
|
2938
2955
|
}
|
|
@@ -3041,7 +3058,7 @@ class LocalLengthBlock extends LocalBaseBlock {
|
|
|
3041
3058
|
this.length = (_c = lenBlock.length) !== null && _c !== void 0 ? _c : 0;
|
|
3042
3059
|
}
|
|
3043
3060
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
3044
|
-
const view =
|
|
3061
|
+
const view = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
3045
3062
|
if (!checkBufferParams(this, view, inputOffset, inputLength)) {
|
|
3046
3063
|
return -1;
|
|
3047
3064
|
}
|
|
@@ -3200,10 +3217,10 @@ class BaseBlock extends LocalBaseBlock {
|
|
|
3200
3217
|
if (encoding === "ascii") {
|
|
3201
3218
|
return this.onAsciiEncoding();
|
|
3202
3219
|
}
|
|
3203
|
-
return
|
|
3220
|
+
return Convert_1.ToHex(this.toBER());
|
|
3204
3221
|
}
|
|
3205
3222
|
onAsciiEncoding() {
|
|
3206
|
-
return `${this.constructor.NAME} : ${
|
|
3223
|
+
return `${this.constructor.NAME} : ${Convert_1.ToHex(this.valueBlock.valueBeforeDecodeView)}`;
|
|
3207
3224
|
}
|
|
3208
3225
|
isEqual(other) {
|
|
3209
3226
|
if (this === other) {
|
|
@@ -3501,7 +3518,7 @@ function fromBER(inputBuffer) {
|
|
|
3501
3518
|
result
|
|
3502
3519
|
};
|
|
3503
3520
|
}
|
|
3504
|
-
return localFromBER(
|
|
3521
|
+
return localFromBER(BufferSourceConverter_1.toUint8Array(inputBuffer).slice(), 0, inputBuffer.byteLength);
|
|
3505
3522
|
}
|
|
3506
3523
|
|
|
3507
3524
|
function checkLen(indefiniteLength, length) {
|
|
@@ -3517,7 +3534,7 @@ class LocalConstructedValueBlock extends ValueBlock {
|
|
|
3517
3534
|
this.isIndefiniteForm = isIndefiniteForm;
|
|
3518
3535
|
}
|
|
3519
3536
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
3520
|
-
const view =
|
|
3537
|
+
const view = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
3521
3538
|
if (!checkBufferParams(this, view, inputOffset, inputLength)) {
|
|
3522
3539
|
return -1;
|
|
3523
3540
|
}
|
|
@@ -3687,7 +3704,7 @@ class LocalBooleanValueBlock extends HexBlock(ValueBlock) {
|
|
|
3687
3704
|
constructor({ value, ...parameters } = {}) {
|
|
3688
3705
|
super(parameters);
|
|
3689
3706
|
if (parameters.valueHex) {
|
|
3690
|
-
this.valueHexView =
|
|
3707
|
+
this.valueHexView = BufferSourceConverter_1.toUint8Array(parameters.valueHex);
|
|
3691
3708
|
}
|
|
3692
3709
|
else {
|
|
3693
3710
|
this.valueHexView = new Uint8Array(1);
|
|
@@ -3708,7 +3725,7 @@ class LocalBooleanValueBlock extends HexBlock(ValueBlock) {
|
|
|
3708
3725
|
this.valueHexView[0] = value ? 0xFF : 0x00;
|
|
3709
3726
|
}
|
|
3710
3727
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
3711
|
-
const inputView =
|
|
3728
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
3712
3729
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
|
|
3713
3730
|
return -1;
|
|
3714
3731
|
}
|
|
@@ -3855,7 +3872,7 @@ class OctetString$1 extends BaseBlock {
|
|
|
3855
3872
|
if (this.valueBlock.isConstructed || (this.valueBlock.value && this.valueBlock.value.length)) {
|
|
3856
3873
|
return Constructed.prototype.onAsciiEncoding.call(this);
|
|
3857
3874
|
}
|
|
3858
|
-
return `${this.constructor.NAME} : ${
|
|
3875
|
+
return `${this.constructor.NAME} : ${Convert_1.ToHex(this.valueBlock.valueHexView)}`;
|
|
3859
3876
|
}
|
|
3860
3877
|
getValue() {
|
|
3861
3878
|
if (!this.idBlock.isConstructed) {
|
|
@@ -3867,7 +3884,7 @@ class OctetString$1 extends BaseBlock {
|
|
|
3867
3884
|
array.push(content.valueBlock.valueHexView);
|
|
3868
3885
|
}
|
|
3869
3886
|
}
|
|
3870
|
-
return
|
|
3887
|
+
return BufferSourceConverter_1.concat(array);
|
|
3871
3888
|
}
|
|
3872
3889
|
}
|
|
3873
3890
|
_a$r = OctetString$1;
|
|
@@ -3915,7 +3932,7 @@ class LocalBitStringValueBlock extends HexBlock(LocalConstructedValueBlock) {
|
|
|
3915
3932
|
}
|
|
3916
3933
|
return resultOffset;
|
|
3917
3934
|
}
|
|
3918
|
-
const inputView =
|
|
3935
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
3919
3936
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
|
|
3920
3937
|
return -1;
|
|
3921
3938
|
}
|
|
@@ -4255,13 +4272,13 @@ class Integer extends BaseBlock {
|
|
|
4255
4272
|
const bigIntValue = BigInt(value);
|
|
4256
4273
|
const writer = new ViewWriter();
|
|
4257
4274
|
const hex = bigIntValue.toString(16).replace(/^-/, "");
|
|
4258
|
-
const view = new Uint8Array(
|
|
4275
|
+
const view = new Uint8Array(Convert_1.FromHex(hex));
|
|
4259
4276
|
if (bigIntValue < 0) {
|
|
4260
4277
|
const first = new Uint8Array(view.length + (view[0] & 0x80 ? 1 : 0));
|
|
4261
4278
|
first[0] |= 0x80;
|
|
4262
|
-
const firstInt = BigInt(`0x${
|
|
4279
|
+
const firstInt = BigInt(`0x${Convert_1.ToHex(first)}`);
|
|
4263
4280
|
const secondInt = firstInt + bigIntValue;
|
|
4264
|
-
const second =
|
|
4281
|
+
const second = BufferSourceConverter_1.toUint8Array(Convert_1.FromHex(secondInt.toString(16)));
|
|
4265
4282
|
second[0] |= 0x80;
|
|
4266
4283
|
writer.write(second);
|
|
4267
4284
|
}
|
|
@@ -4322,7 +4339,7 @@ class LocalSidValueBlock extends HexBlock(ValueBlock) {
|
|
|
4322
4339
|
if (!inputLength) {
|
|
4323
4340
|
return inputOffset;
|
|
4324
4341
|
}
|
|
4325
|
-
const inputView =
|
|
4342
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
4326
4343
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
|
|
4327
4344
|
return -1;
|
|
4328
4345
|
}
|
|
@@ -4394,7 +4411,7 @@ class LocalSidValueBlock extends HexBlock(ValueBlock) {
|
|
|
4394
4411
|
toString() {
|
|
4395
4412
|
let result = "";
|
|
4396
4413
|
if (this.isHexOnly)
|
|
4397
|
-
result =
|
|
4414
|
+
result = Convert_1.ToHex(this.valueHexView);
|
|
4398
4415
|
else {
|
|
4399
4416
|
if (this.isFirstSid) {
|
|
4400
4417
|
let sidValue = this.valueDec;
|
|
@@ -4591,7 +4608,7 @@ class LocalRelativeSidValueBlock extends HexBlock(LocalBaseBlock) {
|
|
|
4591
4608
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
4592
4609
|
if (inputLength === 0)
|
|
4593
4610
|
return inputOffset;
|
|
4594
|
-
const inputView =
|
|
4611
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
4595
4612
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength))
|
|
4596
4613
|
return -1;
|
|
4597
4614
|
const intBuffer = inputView.subarray(inputOffset, inputOffset + inputLength);
|
|
@@ -4649,7 +4666,7 @@ class LocalRelativeSidValueBlock extends HexBlock(LocalBaseBlock) {
|
|
|
4649
4666
|
toString() {
|
|
4650
4667
|
let result = "";
|
|
4651
4668
|
if (this.isHexOnly)
|
|
4652
|
-
result =
|
|
4669
|
+
result = Convert_1.ToHex(this.valueHexView);
|
|
4653
4670
|
else {
|
|
4654
4671
|
result = this.valueDec.toString();
|
|
4655
4672
|
}
|
|
@@ -4831,7 +4848,7 @@ class LocalSimpleStringBlock extends BaseStringBlock {
|
|
|
4831
4848
|
super(parameters, LocalSimpleStringValueBlock);
|
|
4832
4849
|
}
|
|
4833
4850
|
fromBuffer(inputBuffer) {
|
|
4834
|
-
this.valueBlock.value = String.fromCharCode.apply(null,
|
|
4851
|
+
this.valueBlock.value = String.fromCharCode.apply(null, BufferSourceConverter_1.toUint8Array(inputBuffer));
|
|
4835
4852
|
}
|
|
4836
4853
|
fromString(inputString) {
|
|
4837
4854
|
const strLen = inputString.length;
|
|
@@ -4845,17 +4862,17 @@ LocalSimpleStringBlock.NAME = "SIMPLE STRING";
|
|
|
4845
4862
|
|
|
4846
4863
|
class LocalUtf8StringValueBlock extends LocalSimpleStringBlock {
|
|
4847
4864
|
fromBuffer(inputBuffer) {
|
|
4848
|
-
this.valueBlock.valueHexView =
|
|
4865
|
+
this.valueBlock.valueHexView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
4849
4866
|
try {
|
|
4850
|
-
this.valueBlock.value =
|
|
4867
|
+
this.valueBlock.value = Convert_1.ToUtf8String(inputBuffer);
|
|
4851
4868
|
}
|
|
4852
4869
|
catch (ex) {
|
|
4853
4870
|
this.warnings.push(`Error during "decodeURIComponent": ${ex}, using raw string`);
|
|
4854
|
-
this.valueBlock.value =
|
|
4871
|
+
this.valueBlock.value = Convert_1.ToBinary(inputBuffer);
|
|
4855
4872
|
}
|
|
4856
4873
|
}
|
|
4857
4874
|
fromString(inputString) {
|
|
4858
|
-
this.valueBlock.valueHexView = new Uint8Array(
|
|
4875
|
+
this.valueBlock.valueHexView = new Uint8Array(Convert_1.FromUtf8String(inputString));
|
|
4859
4876
|
this.valueBlock.value = inputString;
|
|
4860
4877
|
}
|
|
4861
4878
|
}
|
|
@@ -4877,12 +4894,12 @@ Utf8String.NAME = "UTF8String";
|
|
|
4877
4894
|
|
|
4878
4895
|
class LocalBmpStringValueBlock extends LocalSimpleStringBlock {
|
|
4879
4896
|
fromBuffer(inputBuffer) {
|
|
4880
|
-
this.valueBlock.value =
|
|
4881
|
-
this.valueBlock.valueHexView =
|
|
4897
|
+
this.valueBlock.value = Convert_1.ToUtf16String(inputBuffer);
|
|
4898
|
+
this.valueBlock.valueHexView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
4882
4899
|
}
|
|
4883
4900
|
fromString(inputString) {
|
|
4884
4901
|
this.valueBlock.value = inputString;
|
|
4885
|
-
this.valueBlock.valueHexView = new Uint8Array(
|
|
4902
|
+
this.valueBlock.valueHexView = new Uint8Array(Convert_1.FromUtf16String(inputString));
|
|
4886
4903
|
}
|
|
4887
4904
|
}
|
|
4888
4905
|
LocalBmpStringValueBlock.NAME = "BmpStringValueBlock";
|
|
@@ -5094,7 +5111,7 @@ class UTCTime extends VisibleString {
|
|
|
5094
5111
|
this.idBlock.tagNumber = 23;
|
|
5095
5112
|
}
|
|
5096
5113
|
fromBuffer(inputBuffer) {
|
|
5097
|
-
this.fromString(String.fromCharCode.apply(null,
|
|
5114
|
+
this.fromString(String.fromCharCode.apply(null, BufferSourceConverter_1.toUint8Array(inputBuffer)));
|
|
5098
5115
|
}
|
|
5099
5116
|
toBuffer() {
|
|
5100
5117
|
const str = this.toString();
|
|
@@ -5444,17 +5461,17 @@ class Repeated extends Any {
|
|
|
5444
5461
|
|
|
5445
5462
|
class RawData {
|
|
5446
5463
|
constructor({ data = EMPTY_VIEW } = {}) {
|
|
5447
|
-
this.dataView =
|
|
5464
|
+
this.dataView = BufferSourceConverter_1.toUint8Array(data);
|
|
5448
5465
|
}
|
|
5449
5466
|
get data() {
|
|
5450
5467
|
return this.dataView.slice().buffer;
|
|
5451
5468
|
}
|
|
5452
5469
|
set data(value) {
|
|
5453
|
-
this.dataView =
|
|
5470
|
+
this.dataView = BufferSourceConverter_1.toUint8Array(value);
|
|
5454
5471
|
}
|
|
5455
5472
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
5456
5473
|
const endLength = inputOffset + inputLength;
|
|
5457
|
-
this.dataView =
|
|
5474
|
+
this.dataView = BufferSourceConverter_1.toUint8Array(inputBuffer).subarray(inputOffset, endLength);
|
|
5458
5475
|
return endLength;
|
|
5459
5476
|
}
|
|
5460
5477
|
toBER(sizeOnly) {
|
|
@@ -5773,7 +5790,7 @@ function verifySchema(inputBuffer, inputSchema) {
|
|
|
5773
5790
|
result: { error: "Wrong ASN.1 schema type" }
|
|
5774
5791
|
};
|
|
5775
5792
|
}
|
|
5776
|
-
const asn1 = localFromBER(
|
|
5793
|
+
const asn1 = localFromBER(BufferSourceConverter_1.toUint8Array(inputBuffer));
|
|
5777
5794
|
if (asn1.offset === -1) {
|
|
5778
5795
|
return {
|
|
5779
5796
|
verified: false,
|
|
@@ -5876,9 +5893,9 @@ class BitString {
|
|
|
5876
5893
|
if (typeof params === "number") {
|
|
5877
5894
|
this.fromNumber(params);
|
|
5878
5895
|
}
|
|
5879
|
-
else if (
|
|
5896
|
+
else if (BufferSourceConverter_1.isBufferSource(params)) {
|
|
5880
5897
|
this.unusedBits = unusedBits;
|
|
5881
|
-
this.value =
|
|
5898
|
+
this.value = BufferSourceConverter_1.toArrayBuffer(params);
|
|
5882
5899
|
}
|
|
5883
5900
|
else {
|
|
5884
5901
|
throw TypeError("Unsupported type of 'params' argument for BitString");
|
|
@@ -5927,13 +5944,19 @@ class BitString {
|
|
|
5927
5944
|
}
|
|
5928
5945
|
|
|
5929
5946
|
class OctetString {
|
|
5947
|
+
get byteLength() {
|
|
5948
|
+
return this.buffer.byteLength;
|
|
5949
|
+
}
|
|
5950
|
+
get byteOffset() {
|
|
5951
|
+
return 0;
|
|
5952
|
+
}
|
|
5930
5953
|
constructor(param) {
|
|
5931
5954
|
if (typeof param === "number") {
|
|
5932
5955
|
this.buffer = new ArrayBuffer(param);
|
|
5933
5956
|
}
|
|
5934
5957
|
else {
|
|
5935
|
-
if (
|
|
5936
|
-
this.buffer =
|
|
5958
|
+
if (BufferSourceConverter_1.isBufferSource(param)) {
|
|
5959
|
+
this.buffer = BufferSourceConverter_1.toArrayBuffer(param);
|
|
5937
5960
|
}
|
|
5938
5961
|
else if (Array.isArray(param)) {
|
|
5939
5962
|
this.buffer = new Uint8Array(param);
|
|
@@ -5943,12 +5966,6 @@ class OctetString {
|
|
|
5943
5966
|
}
|
|
5944
5967
|
}
|
|
5945
5968
|
}
|
|
5946
|
-
get byteLength() {
|
|
5947
|
-
return this.buffer.byteLength;
|
|
5948
|
-
}
|
|
5949
|
-
get byteOffset() {
|
|
5950
|
-
return 0;
|
|
5951
|
-
}
|
|
5952
5969
|
fromASN(asn) {
|
|
5953
5970
|
if (!(asn instanceof OctetString$1)) {
|
|
5954
5971
|
throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");
|
|
@@ -6635,8 +6652,8 @@ class AsnConvert {
|
|
|
6635
6652
|
return AsnParser.parse(data, target);
|
|
6636
6653
|
}
|
|
6637
6654
|
static toString(data) {
|
|
6638
|
-
const buf =
|
|
6639
|
-
?
|
|
6655
|
+
const buf = BufferSourceConverter_1.isBufferSource(data)
|
|
6656
|
+
? BufferSourceConverter_1.toArrayBuffer(data)
|
|
6640
6657
|
: AsnConvert.serialize(data);
|
|
6641
6658
|
const asn = fromBER(buf);
|
|
6642
6659
|
if (asn.offset === -1) {
|
|
@@ -6666,7 +6683,12 @@ function __decorate(decorators, target, key, desc) {
|
|
|
6666
6683
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6667
6684
|
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6668
6685
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6669
|
-
}
|
|
6686
|
+
}
|
|
6687
|
+
|
|
6688
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
6689
|
+
var e = new Error(message);
|
|
6690
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
6691
|
+
};
|
|
6670
6692
|
|
|
6671
6693
|
var ipaddr = createCommonjsModule(function (module) {
|
|
6672
6694
|
(function (root) {
|
|
@@ -6873,6 +6895,7 @@ var ipaddr = createCommonjsModule(function (module) {
|
|
|
6873
6895
|
[new IPv4([192, 0, 0, 0]), 24],
|
|
6874
6896
|
[new IPv4([192, 0, 2, 0]), 24],
|
|
6875
6897
|
[new IPv4([192, 88, 99, 0]), 24],
|
|
6898
|
+
[new IPv4([198, 18, 0, 0]), 15],
|
|
6876
6899
|
[new IPv4([198, 51, 100, 0]), 24],
|
|
6877
6900
|
[new IPv4([203, 0, 113, 0]), 24],
|
|
6878
6901
|
[new IPv4([240, 0, 0, 0]), 4]
|
|
@@ -7215,7 +7238,12 @@ var ipaddr = createCommonjsModule(function (module) {
|
|
|
7215
7238
|
// RFC6052, RFC6146
|
|
7216
7239
|
teredo: [new IPv6([0x2001, 0, 0, 0, 0, 0, 0, 0]), 32],
|
|
7217
7240
|
// RFC4291
|
|
7218
|
-
reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]]
|
|
7241
|
+
reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]],
|
|
7242
|
+
benchmarking: [new IPv6([0x2001, 0x2, 0, 0, 0, 0, 0, 0]), 48],
|
|
7243
|
+
amt: [new IPv6([0x2001, 0x3, 0, 0, 0, 0, 0, 0]), 32],
|
|
7244
|
+
as112v6: [new IPv6([0x2001, 0x4, 0x112, 0, 0, 0, 0, 0]), 48],
|
|
7245
|
+
deprecated: [new IPv6([0x2001, 0x10, 0, 0, 0, 0, 0, 0]), 28],
|
|
7246
|
+
orchid2: [new IPv6([0x2001, 0x20, 0, 0, 0, 0, 0, 0]), 28]
|
|
7219
7247
|
};
|
|
7220
7248
|
|
|
7221
7249
|
// Checks if this address is an IPv4-mapped IPv6 address.
|
|
@@ -7400,11 +7428,9 @@ var ipaddr = createCommonjsModule(function (module) {
|
|
|
7400
7428
|
|
|
7401
7429
|
// Returns the address in compact, human-readable format like
|
|
7402
7430
|
// 2001:db8:8:66::1
|
|
7403
|
-
//
|
|
7404
|
-
// Deprecated: use toRFC5952String() instead.
|
|
7431
|
+
// Calls toRFC5952String under the hood.
|
|
7405
7432
|
IPv6.prototype.toString = function () {
|
|
7406
|
-
|
|
7407
|
-
return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, '::');
|
|
7433
|
+
return this.toRFC5952String();
|
|
7408
7434
|
};
|
|
7409
7435
|
|
|
7410
7436
|
return IPv6;
|
|
@@ -7689,7 +7715,7 @@ class IpConverter {
|
|
|
7689
7715
|
const addr = ipaddr.fromByteArray(Array.from(uint8));
|
|
7690
7716
|
return addr.toString();
|
|
7691
7717
|
}
|
|
7692
|
-
return this.decodeIP(
|
|
7718
|
+
return this.decodeIP(Convert_1.ToHex(buf));
|
|
7693
7719
|
}
|
|
7694
7720
|
static fromString(text) {
|
|
7695
7721
|
const addr = ipaddr.parse(text);
|
|
@@ -7731,7 +7757,7 @@ let AttributeValue = class AttributeValue extends DirectoryString {
|
|
|
7731
7757
|
Object.assign(this, params);
|
|
7732
7758
|
}
|
|
7733
7759
|
toString() {
|
|
7734
|
-
return this.ia5String || (this.anyValue ?
|
|
7760
|
+
return this.ia5String || (this.anyValue ? Convert_1.ToHex(this.anyValue) : super.toString());
|
|
7735
7761
|
}
|
|
7736
7762
|
};
|
|
7737
7763
|
__decorate([
|
|
@@ -8525,7 +8551,7 @@ class AlgorithmIdentifier {
|
|
|
8525
8551
|
return data instanceof AlgorithmIdentifier
|
|
8526
8552
|
&& data.algorithm == this.algorithm
|
|
8527
8553
|
&& ((data.parameters && this.parameters
|
|
8528
|
-
&&
|
|
8554
|
+
&& isEqual_1(data.parameters, this.parameters))
|
|
8529
8555
|
||
|
|
8530
8556
|
(data.parameters === this.parameters));
|
|
8531
8557
|
}
|
|
@@ -8644,16 +8670,16 @@ Extensions = Extensions_1 = __decorate([
|
|
|
8644
8670
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: Extension$1 })
|
|
8645
8671
|
], Extensions);
|
|
8646
8672
|
|
|
8647
|
-
var Version$
|
|
8673
|
+
var Version$4;
|
|
8648
8674
|
(function (Version) {
|
|
8649
8675
|
Version[Version["v1"] = 0] = "v1";
|
|
8650
8676
|
Version[Version["v2"] = 1] = "v2";
|
|
8651
8677
|
Version[Version["v3"] = 2] = "v3";
|
|
8652
|
-
})(Version$
|
|
8678
|
+
})(Version$4 || (Version$4 = {}));
|
|
8653
8679
|
|
|
8654
8680
|
class TBSCertificate {
|
|
8655
8681
|
constructor(params = {}) {
|
|
8656
|
-
this.version = Version$
|
|
8682
|
+
this.version = Version$4.v1;
|
|
8657
8683
|
this.serialNumber = new ArrayBuffer(0);
|
|
8658
8684
|
this.signature = new AlgorithmIdentifier();
|
|
8659
8685
|
this.issuer = new Name$1();
|
|
@@ -8667,7 +8693,7 @@ __decorate([
|
|
|
8667
8693
|
AsnProp({
|
|
8668
8694
|
type: AsnPropTypes.Integer,
|
|
8669
8695
|
context: 0,
|
|
8670
|
-
defaultValue: Version$
|
|
8696
|
+
defaultValue: Version$4.v1,
|
|
8671
8697
|
})
|
|
8672
8698
|
], TBSCertificate.prototype, "version", void 0);
|
|
8673
8699
|
__decorate([
|
|
@@ -9097,10 +9123,10 @@ __decorate([
|
|
|
9097
9123
|
], EncryptedPrivateKeyInfo$1.prototype, "encryptedData", void 0);
|
|
9098
9124
|
|
|
9099
9125
|
var Attributes_1$1;
|
|
9100
|
-
var Version$
|
|
9126
|
+
var Version$3;
|
|
9101
9127
|
(function (Version) {
|
|
9102
9128
|
Version[Version["v1"] = 0] = "v1";
|
|
9103
|
-
})(Version$
|
|
9129
|
+
})(Version$3 || (Version$3 = {}));
|
|
9104
9130
|
class PrivateKey extends OctetString {
|
|
9105
9131
|
}
|
|
9106
9132
|
let Attributes$1 = Attributes_1$1 = class Attributes extends AsnArray {
|
|
@@ -9114,7 +9140,7 @@ Attributes$1 = Attributes_1$1 = __decorate([
|
|
|
9114
9140
|
], Attributes$1);
|
|
9115
9141
|
class PrivateKeyInfo$1 {
|
|
9116
9142
|
constructor(params = {}) {
|
|
9117
|
-
this.version = Version$
|
|
9143
|
+
this.version = Version$3.v1;
|
|
9118
9144
|
this.privateKeyAlgorithm = new AlgorithmIdentifier();
|
|
9119
9145
|
this.privateKey = new PrivateKey();
|
|
9120
9146
|
Object.assign(this, params);
|
|
@@ -9134,11 +9160,11 @@ __decorate([
|
|
|
9134
9160
|
], PrivateKeyInfo$1.prototype, "attributes", void 0);
|
|
9135
9161
|
|
|
9136
9162
|
var AsymmetricKeyPackage_1;
|
|
9137
|
-
var Version$
|
|
9163
|
+
var Version$2;
|
|
9138
9164
|
(function (Version) {
|
|
9139
9165
|
Version[Version["v1"] = 0] = "v1";
|
|
9140
9166
|
Version[Version["v2"] = 1] = "v2";
|
|
9141
|
-
})(Version$
|
|
9167
|
+
})(Version$2 || (Version$2 = {}));
|
|
9142
9168
|
let PrivateKeyAlgorithmIdentifier = class PrivateKeyAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
9143
9169
|
};
|
|
9144
9170
|
PrivateKeyAlgorithmIdentifier = __decorate([
|
|
@@ -9146,7 +9172,7 @@ PrivateKeyAlgorithmIdentifier = __decorate([
|
|
|
9146
9172
|
], PrivateKeyAlgorithmIdentifier);
|
|
9147
9173
|
let OneAsymmetricKey = class OneAsymmetricKey {
|
|
9148
9174
|
constructor() {
|
|
9149
|
-
this.version = Version$
|
|
9175
|
+
this.version = Version$2.v1;
|
|
9150
9176
|
this.privateKeyAlgorithm = new AlgorithmIdentifier();
|
|
9151
9177
|
this.privateKey = new ArrayBuffer(0);
|
|
9152
9178
|
}
|
|
@@ -9232,7 +9258,7 @@ var _Name_asn;
|
|
|
9232
9258
|
class Name {
|
|
9233
9259
|
constructor(data) {
|
|
9234
9260
|
_Name_asn.set(this, new Name$1());
|
|
9235
|
-
if (
|
|
9261
|
+
if (BufferSourceConverter_1.isBufferSource(data)) {
|
|
9236
9262
|
__classPrivateFieldSet$1(this, _Name_asn, AsnParser.parse(data, Name$1), "f");
|
|
9237
9263
|
}
|
|
9238
9264
|
else {
|
|
@@ -9440,8 +9466,8 @@ let CaVersion = class CaVersion {
|
|
|
9440
9466
|
data.set(new Uint8Array(this.value), 4 - this.value.byteLength);
|
|
9441
9467
|
}
|
|
9442
9468
|
return {
|
|
9443
|
-
keyIndex: parseInt(
|
|
9444
|
-
certificateIndex: parseInt(
|
|
9469
|
+
keyIndex: parseInt(Convert_1.ToHex(data.slice(0, 2)), 16),
|
|
9470
|
+
certificateIndex: parseInt(Convert_1.ToHex(data.slice(2)), 16),
|
|
9445
9471
|
};
|
|
9446
9472
|
}
|
|
9447
9473
|
};
|
|
@@ -9787,11 +9813,6 @@ Lei = __decorate([
|
|
|
9787
9813
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9788
9814
|
], Lei);
|
|
9789
9815
|
let BaseLeiChoice = class BaseLeiChoice {
|
|
9790
|
-
constructor(value) {
|
|
9791
|
-
if (value) {
|
|
9792
|
-
this.text = value;
|
|
9793
|
-
}
|
|
9794
|
-
}
|
|
9795
9816
|
get text() {
|
|
9796
9817
|
if (this.bmpString !== undefined) {
|
|
9797
9818
|
return this.bmpString;
|
|
@@ -9813,6 +9834,11 @@ let BaseLeiChoice = class BaseLeiChoice {
|
|
|
9813
9834
|
set text(value) {
|
|
9814
9835
|
this.printableString = value;
|
|
9815
9836
|
}
|
|
9837
|
+
constructor(value) {
|
|
9838
|
+
if (value) {
|
|
9839
|
+
this.text = value;
|
|
9840
|
+
}
|
|
9841
|
+
}
|
|
9816
9842
|
};
|
|
9817
9843
|
__decorate([
|
|
9818
9844
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
@@ -9857,13 +9883,13 @@ LeiRole = __decorate([
|
|
|
9857
9883
|
], LeiRole);
|
|
9858
9884
|
|
|
9859
9885
|
class ByteStream {
|
|
9860
|
-
constructor(bytes) {
|
|
9861
|
-
this.offset = 0;
|
|
9862
|
-
this.view = build.BufferSourceConverter.toUint8Array(bytes);
|
|
9863
|
-
}
|
|
9864
9886
|
get position() {
|
|
9865
9887
|
return this.offset;
|
|
9866
9888
|
}
|
|
9889
|
+
constructor(bytes) {
|
|
9890
|
+
this.offset = 0;
|
|
9891
|
+
this.view = BufferSourceConverter_1.toUint8Array(bytes);
|
|
9892
|
+
}
|
|
9867
9893
|
read(size = 1) {
|
|
9868
9894
|
const res = this.view.slice(this.offset, this.offset + size);
|
|
9869
9895
|
this.offset = this.offset + res.length;
|
|
@@ -9878,7 +9904,7 @@ class ByteStream {
|
|
|
9878
9904
|
}
|
|
9879
9905
|
readNumber(size) {
|
|
9880
9906
|
const bytes = this.read(size);
|
|
9881
|
-
const hex =
|
|
9907
|
+
const hex = Convert_1.ToHex(bytes);
|
|
9882
9908
|
return parseInt(hex, 16);
|
|
9883
9909
|
}
|
|
9884
9910
|
readEnd() {
|
|
@@ -9891,7 +9917,7 @@ class ByteStream {
|
|
|
9891
9917
|
|
|
9892
9918
|
class Structure {
|
|
9893
9919
|
static createStream(bytes) {
|
|
9894
|
-
const view =
|
|
9920
|
+
const view = BufferSourceConverter_1.toUint8Array(bytes);
|
|
9895
9921
|
return new ByteStream(view);
|
|
9896
9922
|
}
|
|
9897
9923
|
}
|
|
@@ -9935,7 +9961,7 @@ class SignedCertificateTimestamp extends Structure {
|
|
|
9935
9961
|
parse(stream) {
|
|
9936
9962
|
this.version = stream.readByte();
|
|
9937
9963
|
stream.read(2);
|
|
9938
|
-
this.logId =
|
|
9964
|
+
this.logId = BufferSourceConverter_1.toArrayBuffer(stream.read(32));
|
|
9939
9965
|
this.timestamp = new Date(stream.readNumber(8));
|
|
9940
9966
|
const extLen = stream.readNumber(2);
|
|
9941
9967
|
this.extensions = stream.read(extLen).buffer;
|
|
@@ -9946,12 +9972,12 @@ class SignedCertificateTimestamp extends Structure {
|
|
|
9946
9972
|
toJSON() {
|
|
9947
9973
|
return {
|
|
9948
9974
|
version: this.version,
|
|
9949
|
-
logId:
|
|
9975
|
+
logId: Convert_1.ToHex(this.logId),
|
|
9950
9976
|
timestamp: this.timestamp,
|
|
9951
|
-
extensions:
|
|
9977
|
+
extensions: Convert_1.ToBase64(this.extensions),
|
|
9952
9978
|
hashAlgorithm: HashAlgorithm[this.hashAlgorithm] || "undefined",
|
|
9953
9979
|
signatureAlgorithm: SignatureAlgorithm[this.signatureAlgorithm] || "undefined",
|
|
9954
|
-
signature:
|
|
9980
|
+
signature: Convert_1.ToBase64(this.signature),
|
|
9955
9981
|
};
|
|
9956
9982
|
}
|
|
9957
9983
|
}
|
|
@@ -9977,15 +10003,15 @@ class CertificateTransparency extends OctetString {
|
|
|
9977
10003
|
}
|
|
9978
10004
|
}
|
|
9979
10005
|
|
|
9980
|
-
var Version;
|
|
10006
|
+
var Version$1;
|
|
9981
10007
|
(function (Version) {
|
|
9982
10008
|
Version[Version["v1"] = 1] = "v1";
|
|
9983
|
-
})(Version || (Version = {}));
|
|
10009
|
+
})(Version$1 || (Version$1 = {}));
|
|
9984
10010
|
|
|
9985
10011
|
const id_adbe_archiveRevInfo = "1.2.840.113583.1.1.9.2";
|
|
9986
10012
|
class ArchiveRevInfo {
|
|
9987
10013
|
constructor(params = {}) {
|
|
9988
|
-
this.version = Version.v1;
|
|
10014
|
+
this.version = Version$1.v1;
|
|
9989
10015
|
Object.assign(this, params);
|
|
9990
10016
|
}
|
|
9991
10017
|
}
|
|
@@ -9996,7 +10022,7 @@ __decorate([
|
|
|
9996
10022
|
const id_adbe_timestamp = "1.2.840.113583.1.1.9.1";
|
|
9997
10023
|
class Timestamp {
|
|
9998
10024
|
constructor(params = {}) {
|
|
9999
|
-
this.version = Version.v1;
|
|
10025
|
+
this.version = Version$1.v1;
|
|
10000
10026
|
this.location = new GeneralName();
|
|
10001
10027
|
this.requiresAuth = false;
|
|
10002
10028
|
Object.assign(this, params);
|
|
@@ -10341,6 +10367,302 @@ TNAuthorizationList = TNAuthorizationList_1 = __decorate([
|
|
|
10341
10367
|
})
|
|
10342
10368
|
], TNAuthorizationList);
|
|
10343
10369
|
|
|
10370
|
+
var IntegerSet_1;
|
|
10371
|
+
const id_ce_keyDescription = "1.3.6.1.4.1.11129.2.1.17";
|
|
10372
|
+
var VerifiedBootState;
|
|
10373
|
+
(function (VerifiedBootState) {
|
|
10374
|
+
VerifiedBootState[VerifiedBootState["verified"] = 0] = "verified";
|
|
10375
|
+
VerifiedBootState[VerifiedBootState["selfSigned"] = 1] = "selfSigned";
|
|
10376
|
+
VerifiedBootState[VerifiedBootState["unverified"] = 2] = "unverified";
|
|
10377
|
+
VerifiedBootState[VerifiedBootState["failed"] = 3] = "failed";
|
|
10378
|
+
})(VerifiedBootState || (VerifiedBootState = {}));
|
|
10379
|
+
class RootOfTrust {
|
|
10380
|
+
constructor(params = {}) {
|
|
10381
|
+
this.verifiedBootKey = new OctetString();
|
|
10382
|
+
this.deviceLocked = false;
|
|
10383
|
+
this.verifiedBootState = VerifiedBootState.verified;
|
|
10384
|
+
Object.assign(this, params);
|
|
10385
|
+
}
|
|
10386
|
+
}
|
|
10387
|
+
__decorate([
|
|
10388
|
+
AsnProp({ type: OctetString })
|
|
10389
|
+
], RootOfTrust.prototype, "verifiedBootKey", void 0);
|
|
10390
|
+
__decorate([
|
|
10391
|
+
AsnProp({ type: AsnPropTypes.Boolean })
|
|
10392
|
+
], RootOfTrust.prototype, "deviceLocked", void 0);
|
|
10393
|
+
__decorate([
|
|
10394
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10395
|
+
], RootOfTrust.prototype, "verifiedBootState", void 0);
|
|
10396
|
+
__decorate([
|
|
10397
|
+
AsnProp({ type: OctetString, optional: true })
|
|
10398
|
+
], RootOfTrust.prototype, "verifiedBootHash", void 0);
|
|
10399
|
+
let IntegerSet = IntegerSet_1 = class IntegerSet extends AsnArray {
|
|
10400
|
+
constructor(items) {
|
|
10401
|
+
super(items);
|
|
10402
|
+
Object.setPrototypeOf(this, IntegerSet_1.prototype);
|
|
10403
|
+
}
|
|
10404
|
+
};
|
|
10405
|
+
IntegerSet = IntegerSet_1 = __decorate([
|
|
10406
|
+
AsnType({ type: AsnTypeTypes.Set, itemType: AsnPropTypes.Integer })
|
|
10407
|
+
], IntegerSet);
|
|
10408
|
+
class AuthorizationList {
|
|
10409
|
+
constructor(params = {}) {
|
|
10410
|
+
Object.assign(this, params);
|
|
10411
|
+
}
|
|
10412
|
+
}
|
|
10413
|
+
__decorate([
|
|
10414
|
+
AsnProp({ context: 1, type: IntegerSet, optional: true })
|
|
10415
|
+
], AuthorizationList.prototype, "purpose", void 0);
|
|
10416
|
+
__decorate([
|
|
10417
|
+
AsnProp({ context: 2, type: AsnPropTypes.Integer, optional: true })
|
|
10418
|
+
], AuthorizationList.prototype, "algorithm", void 0);
|
|
10419
|
+
__decorate([
|
|
10420
|
+
AsnProp({ context: 3, type: AsnPropTypes.Integer, optional: true })
|
|
10421
|
+
], AuthorizationList.prototype, "keySize", void 0);
|
|
10422
|
+
__decorate([
|
|
10423
|
+
AsnProp({ context: 5, type: IntegerSet, optional: true })
|
|
10424
|
+
], AuthorizationList.prototype, "digest", void 0);
|
|
10425
|
+
__decorate([
|
|
10426
|
+
AsnProp({ context: 6, type: IntegerSet, optional: true })
|
|
10427
|
+
], AuthorizationList.prototype, "padding", void 0);
|
|
10428
|
+
__decorate([
|
|
10429
|
+
AsnProp({ context: 10, type: AsnPropTypes.Integer, optional: true })
|
|
10430
|
+
], AuthorizationList.prototype, "ecCurve", void 0);
|
|
10431
|
+
__decorate([
|
|
10432
|
+
AsnProp({ context: 200, type: AsnPropTypes.Integer, optional: true })
|
|
10433
|
+
], AuthorizationList.prototype, "rsaPublicExponent", void 0);
|
|
10434
|
+
__decorate([
|
|
10435
|
+
AsnProp({ context: 303, type: AsnPropTypes.Null, optional: true })
|
|
10436
|
+
], AuthorizationList.prototype, "rollbackResistance", void 0);
|
|
10437
|
+
__decorate([
|
|
10438
|
+
AsnProp({ context: 305, type: AsnPropTypes.Null, optional: true })
|
|
10439
|
+
], AuthorizationList.prototype, "earlyBootOnly", void 0);
|
|
10440
|
+
__decorate([
|
|
10441
|
+
AsnProp({ context: 400, type: AsnPropTypes.Integer, optional: true })
|
|
10442
|
+
], AuthorizationList.prototype, "activeDateTime", void 0);
|
|
10443
|
+
__decorate([
|
|
10444
|
+
AsnProp({ context: 401, type: AsnPropTypes.Integer, optional: true })
|
|
10445
|
+
], AuthorizationList.prototype, "originationExpireDateTime", void 0);
|
|
10446
|
+
__decorate([
|
|
10447
|
+
AsnProp({ context: 402, type: AsnPropTypes.Integer, optional: true })
|
|
10448
|
+
], AuthorizationList.prototype, "usageExpireDateTime", void 0);
|
|
10449
|
+
__decorate([
|
|
10450
|
+
AsnProp({ context: 503, type: AsnPropTypes.Null, optional: true })
|
|
10451
|
+
], AuthorizationList.prototype, "noAuthRequired", void 0);
|
|
10452
|
+
__decorate([
|
|
10453
|
+
AsnProp({ context: 504, type: AsnPropTypes.Integer, optional: true })
|
|
10454
|
+
], AuthorizationList.prototype, "userAuthType", void 0);
|
|
10455
|
+
__decorate([
|
|
10456
|
+
AsnProp({ context: 505, type: AsnPropTypes.Integer, optional: true })
|
|
10457
|
+
], AuthorizationList.prototype, "authTimeout", void 0);
|
|
10458
|
+
__decorate([
|
|
10459
|
+
AsnProp({ context: 506, type: AsnPropTypes.Null, optional: true })
|
|
10460
|
+
], AuthorizationList.prototype, "allowWhileOnBody", void 0);
|
|
10461
|
+
__decorate([
|
|
10462
|
+
AsnProp({ context: 507, type: AsnPropTypes.Null, optional: true })
|
|
10463
|
+
], AuthorizationList.prototype, "trustedUserPresenceRequired", void 0);
|
|
10464
|
+
__decorate([
|
|
10465
|
+
AsnProp({ context: 508, type: AsnPropTypes.Null, optional: true })
|
|
10466
|
+
], AuthorizationList.prototype, "trustedConfirmationRequired", void 0);
|
|
10467
|
+
__decorate([
|
|
10468
|
+
AsnProp({ context: 509, type: AsnPropTypes.Null, optional: true })
|
|
10469
|
+
], AuthorizationList.prototype, "unlockedDeviceRequired", void 0);
|
|
10470
|
+
__decorate([
|
|
10471
|
+
AsnProp({ context: 600, type: AsnPropTypes.Null, optional: true })
|
|
10472
|
+
], AuthorizationList.prototype, "allApplications", void 0);
|
|
10473
|
+
__decorate([
|
|
10474
|
+
AsnProp({ context: 601, type: OctetString, optional: true })
|
|
10475
|
+
], AuthorizationList.prototype, "applicationId", void 0);
|
|
10476
|
+
__decorate([
|
|
10477
|
+
AsnProp({ context: 701, type: AsnPropTypes.Integer, optional: true })
|
|
10478
|
+
], AuthorizationList.prototype, "creationDateTime", void 0);
|
|
10479
|
+
__decorate([
|
|
10480
|
+
AsnProp({ context: 702, type: AsnPropTypes.Integer, optional: true })
|
|
10481
|
+
], AuthorizationList.prototype, "origin", void 0);
|
|
10482
|
+
__decorate([
|
|
10483
|
+
AsnProp({ context: 703, type: AsnPropTypes.Null, optional: true })
|
|
10484
|
+
], AuthorizationList.prototype, "rollbackResistant", void 0);
|
|
10485
|
+
__decorate([
|
|
10486
|
+
AsnProp({ context: 704, type: RootOfTrust, optional: true })
|
|
10487
|
+
], AuthorizationList.prototype, "rootOfTrust", void 0);
|
|
10488
|
+
__decorate([
|
|
10489
|
+
AsnProp({ context: 705, type: AsnPropTypes.Integer, optional: true })
|
|
10490
|
+
], AuthorizationList.prototype, "osVersion", void 0);
|
|
10491
|
+
__decorate([
|
|
10492
|
+
AsnProp({ context: 706, type: AsnPropTypes.Integer, optional: true })
|
|
10493
|
+
], AuthorizationList.prototype, "osPatchLevel", void 0);
|
|
10494
|
+
__decorate([
|
|
10495
|
+
AsnProp({ context: 709, type: OctetString, optional: true })
|
|
10496
|
+
], AuthorizationList.prototype, "attestationApplicationId", void 0);
|
|
10497
|
+
__decorate([
|
|
10498
|
+
AsnProp({ context: 710, type: OctetString, optional: true })
|
|
10499
|
+
], AuthorizationList.prototype, "attestationIdBrand", void 0);
|
|
10500
|
+
__decorate([
|
|
10501
|
+
AsnProp({ context: 711, type: OctetString, optional: true })
|
|
10502
|
+
], AuthorizationList.prototype, "attestationIdDevice", void 0);
|
|
10503
|
+
__decorate([
|
|
10504
|
+
AsnProp({ context: 712, type: OctetString, optional: true })
|
|
10505
|
+
], AuthorizationList.prototype, "attestationIdProduct", void 0);
|
|
10506
|
+
__decorate([
|
|
10507
|
+
AsnProp({ context: 713, type: OctetString, optional: true })
|
|
10508
|
+
], AuthorizationList.prototype, "attestationIdSerial", void 0);
|
|
10509
|
+
__decorate([
|
|
10510
|
+
AsnProp({ context: 714, type: OctetString, optional: true })
|
|
10511
|
+
], AuthorizationList.prototype, "attestationIdImei", void 0);
|
|
10512
|
+
__decorate([
|
|
10513
|
+
AsnProp({ context: 715, type: OctetString, optional: true })
|
|
10514
|
+
], AuthorizationList.prototype, "attestationIdMeid", void 0);
|
|
10515
|
+
__decorate([
|
|
10516
|
+
AsnProp({ context: 716, type: OctetString, optional: true })
|
|
10517
|
+
], AuthorizationList.prototype, "attestationIdManufacturer", void 0);
|
|
10518
|
+
__decorate([
|
|
10519
|
+
AsnProp({ context: 717, type: OctetString, optional: true })
|
|
10520
|
+
], AuthorizationList.prototype, "attestationIdModel", void 0);
|
|
10521
|
+
__decorate([
|
|
10522
|
+
AsnProp({ context: 718, type: AsnPropTypes.Integer, optional: true })
|
|
10523
|
+
], AuthorizationList.prototype, "vendorPatchLevel", void 0);
|
|
10524
|
+
__decorate([
|
|
10525
|
+
AsnProp({ context: 719, type: AsnPropTypes.Integer, optional: true })
|
|
10526
|
+
], AuthorizationList.prototype, "bootPatchLevel", void 0);
|
|
10527
|
+
__decorate([
|
|
10528
|
+
AsnProp({ context: 720, type: AsnPropTypes.Null, optional: true })
|
|
10529
|
+
], AuthorizationList.prototype, "deviceUniqueAttestation", void 0);
|
|
10530
|
+
var SecurityLevel;
|
|
10531
|
+
(function (SecurityLevel) {
|
|
10532
|
+
SecurityLevel[SecurityLevel["software"] = 0] = "software";
|
|
10533
|
+
SecurityLevel[SecurityLevel["trustedEnvironment"] = 1] = "trustedEnvironment";
|
|
10534
|
+
SecurityLevel[SecurityLevel["strongBox"] = 2] = "strongBox";
|
|
10535
|
+
})(SecurityLevel || (SecurityLevel = {}));
|
|
10536
|
+
var Version;
|
|
10537
|
+
(function (Version) {
|
|
10538
|
+
Version[Version["KM2"] = 1] = "KM2";
|
|
10539
|
+
Version[Version["KM3"] = 2] = "KM3";
|
|
10540
|
+
Version[Version["KM4"] = 3] = "KM4";
|
|
10541
|
+
Version[Version["KM4_1"] = 4] = "KM4_1";
|
|
10542
|
+
Version[Version["keyMint1"] = 100] = "keyMint1";
|
|
10543
|
+
Version[Version["keyMint2"] = 200] = "keyMint2";
|
|
10544
|
+
})(Version || (Version = {}));
|
|
10545
|
+
class KeyDescription {
|
|
10546
|
+
constructor(params = {}) {
|
|
10547
|
+
this.attestationVersion = Version.KM4;
|
|
10548
|
+
this.attestationSecurityLevel = SecurityLevel.software;
|
|
10549
|
+
this.keymasterVersion = 0;
|
|
10550
|
+
this.keymasterSecurityLevel = SecurityLevel.software;
|
|
10551
|
+
this.attestationChallenge = new OctetString();
|
|
10552
|
+
this.uniqueId = new OctetString();
|
|
10553
|
+
this.softwareEnforced = new AuthorizationList();
|
|
10554
|
+
this.teeEnforced = new AuthorizationList();
|
|
10555
|
+
Object.assign(this, params);
|
|
10556
|
+
}
|
|
10557
|
+
}
|
|
10558
|
+
__decorate([
|
|
10559
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10560
|
+
], KeyDescription.prototype, "attestationVersion", void 0);
|
|
10561
|
+
__decorate([
|
|
10562
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10563
|
+
], KeyDescription.prototype, "attestationSecurityLevel", void 0);
|
|
10564
|
+
__decorate([
|
|
10565
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10566
|
+
], KeyDescription.prototype, "keymasterVersion", void 0);
|
|
10567
|
+
__decorate([
|
|
10568
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10569
|
+
], KeyDescription.prototype, "keymasterSecurityLevel", void 0);
|
|
10570
|
+
__decorate([
|
|
10571
|
+
AsnProp({ type: OctetString })
|
|
10572
|
+
], KeyDescription.prototype, "attestationChallenge", void 0);
|
|
10573
|
+
__decorate([
|
|
10574
|
+
AsnProp({ type: OctetString })
|
|
10575
|
+
], KeyDescription.prototype, "uniqueId", void 0);
|
|
10576
|
+
__decorate([
|
|
10577
|
+
AsnProp({ type: AuthorizationList })
|
|
10578
|
+
], KeyDescription.prototype, "softwareEnforced", void 0);
|
|
10579
|
+
__decorate([
|
|
10580
|
+
AsnProp({ type: AuthorizationList })
|
|
10581
|
+
], KeyDescription.prototype, "teeEnforced", void 0);
|
|
10582
|
+
|
|
10583
|
+
var NonStandardAuthorizationList_1;
|
|
10584
|
+
let NonStandardAuthorization = class NonStandardAuthorization extends AuthorizationList {
|
|
10585
|
+
};
|
|
10586
|
+
NonStandardAuthorization = __decorate([
|
|
10587
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
10588
|
+
], NonStandardAuthorization);
|
|
10589
|
+
let NonStandardAuthorizationList = NonStandardAuthorizationList_1 = class NonStandardAuthorizationList extends AsnArray {
|
|
10590
|
+
constructor(items) {
|
|
10591
|
+
super(items);
|
|
10592
|
+
Object.setPrototypeOf(this, NonStandardAuthorizationList_1.prototype);
|
|
10593
|
+
}
|
|
10594
|
+
findProperty(key) {
|
|
10595
|
+
const prop = this.find((o => key in o));
|
|
10596
|
+
if (prop) {
|
|
10597
|
+
return prop[key];
|
|
10598
|
+
}
|
|
10599
|
+
return undefined;
|
|
10600
|
+
}
|
|
10601
|
+
};
|
|
10602
|
+
NonStandardAuthorizationList = NonStandardAuthorizationList_1 = __decorate([
|
|
10603
|
+
AsnType({ type: AsnTypeTypes.Sequence, itemType: NonStandardAuthorization })
|
|
10604
|
+
], NonStandardAuthorizationList);
|
|
10605
|
+
class NonStandardKeyDescription {
|
|
10606
|
+
constructor(params = {}) {
|
|
10607
|
+
this.attestationVersion = Version.KM4;
|
|
10608
|
+
this.attestationSecurityLevel = SecurityLevel.software;
|
|
10609
|
+
this.keymasterVersion = 0;
|
|
10610
|
+
this.keymasterSecurityLevel = SecurityLevel.software;
|
|
10611
|
+
this.attestationChallenge = new OctetString();
|
|
10612
|
+
this.uniqueId = new OctetString();
|
|
10613
|
+
this.softwareEnforced = new NonStandardAuthorizationList();
|
|
10614
|
+
this.teeEnforced = new NonStandardAuthorizationList();
|
|
10615
|
+
Object.assign(this, params);
|
|
10616
|
+
}
|
|
10617
|
+
}
|
|
10618
|
+
__decorate([
|
|
10619
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10620
|
+
], NonStandardKeyDescription.prototype, "attestationVersion", void 0);
|
|
10621
|
+
__decorate([
|
|
10622
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10623
|
+
], NonStandardKeyDescription.prototype, "attestationSecurityLevel", void 0);
|
|
10624
|
+
__decorate([
|
|
10625
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10626
|
+
], NonStandardKeyDescription.prototype, "keymasterVersion", void 0);
|
|
10627
|
+
__decorate([
|
|
10628
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10629
|
+
], NonStandardKeyDescription.prototype, "keymasterSecurityLevel", void 0);
|
|
10630
|
+
__decorate([
|
|
10631
|
+
AsnProp({ type: OctetString })
|
|
10632
|
+
], NonStandardKeyDescription.prototype, "attestationChallenge", void 0);
|
|
10633
|
+
__decorate([
|
|
10634
|
+
AsnProp({ type: OctetString })
|
|
10635
|
+
], NonStandardKeyDescription.prototype, "uniqueId", void 0);
|
|
10636
|
+
__decorate([
|
|
10637
|
+
AsnProp({ type: NonStandardAuthorizationList })
|
|
10638
|
+
], NonStandardKeyDescription.prototype, "softwareEnforced", void 0);
|
|
10639
|
+
__decorate([
|
|
10640
|
+
AsnProp({ type: NonStandardAuthorizationList })
|
|
10641
|
+
], NonStandardKeyDescription.prototype, "teeEnforced", void 0);
|
|
10642
|
+
|
|
10643
|
+
class AttestationPackageInfo {
|
|
10644
|
+
constructor(params = {}) {
|
|
10645
|
+
Object.assign(this, params);
|
|
10646
|
+
}
|
|
10647
|
+
}
|
|
10648
|
+
__decorate([
|
|
10649
|
+
AsnProp({ type: AsnPropTypes.OctetString })
|
|
10650
|
+
], AttestationPackageInfo.prototype, "packageName", void 0);
|
|
10651
|
+
__decorate([
|
|
10652
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10653
|
+
], AttestationPackageInfo.prototype, "version", void 0);
|
|
10654
|
+
class AttestationApplicationId {
|
|
10655
|
+
constructor(params = {}) {
|
|
10656
|
+
Object.assign(this, params);
|
|
10657
|
+
}
|
|
10658
|
+
}
|
|
10659
|
+
__decorate([
|
|
10660
|
+
AsnProp({ type: AttestationPackageInfo, repeated: "set" })
|
|
10661
|
+
], AttestationApplicationId.prototype, "packageInfos", void 0);
|
|
10662
|
+
__decorate([
|
|
10663
|
+
AsnProp({ type: AsnPropTypes.OctetString, repeated: "set" })
|
|
10664
|
+
], AttestationApplicationId.prototype, "signatureDigests", void 0);
|
|
10665
|
+
|
|
10344
10666
|
/**
|
|
10345
10667
|
* @license
|
|
10346
10668
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -10373,7 +10695,7 @@ class AsnData {
|
|
|
10373
10695
|
else {
|
|
10374
10696
|
// raw, type
|
|
10375
10697
|
__classPrivateFieldSet(this, _AsnData_asn, AsnConvert.parse(args[0], args[1]), "f");
|
|
10376
|
-
__classPrivateFieldSet(this, _AsnData_raw,
|
|
10698
|
+
__classPrivateFieldSet(this, _AsnData_raw, BufferSourceConverter_1.toArrayBuffer(args[0]), "f");
|
|
10377
10699
|
}
|
|
10378
10700
|
}
|
|
10379
10701
|
get asn() {
|
|
@@ -10517,14 +10839,17 @@ class Extension extends AsnData {
|
|
|
10517
10839
|
case id_ce_deltaCRLIndicator:
|
|
10518
10840
|
this.value = AsnParser.parse(asnExtnValue, BaseCRLNumber);
|
|
10519
10841
|
break;
|
|
10842
|
+
case id_ce_keyDescription:
|
|
10843
|
+
this.value = AsnParser.parse(asnExtnValue, NonStandardKeyDescription);
|
|
10844
|
+
break;
|
|
10520
10845
|
default:
|
|
10521
10846
|
console.warn(`Didn't detect parser for "${this.asn.extnID}" extension.`);
|
|
10522
|
-
this.value =
|
|
10847
|
+
this.value = Convert_1.ToHex(asnExtnValue);
|
|
10523
10848
|
}
|
|
10524
10849
|
}
|
|
10525
10850
|
catch (error) {
|
|
10526
10851
|
console.error(`Error parse "${this.asn.extnID}" extension:`, error.message);
|
|
10527
|
-
this.value =
|
|
10852
|
+
this.value = Convert_1.ToHex(asnExtnValue);
|
|
10528
10853
|
}
|
|
10529
10854
|
}
|
|
10530
10855
|
}
|
|
@@ -10586,13 +10911,13 @@ const certificateRawToBuffer = (raw) => {
|
|
|
10586
10911
|
const rawClarified = base64Clarify(raw);
|
|
10587
10912
|
let buffer;
|
|
10588
10913
|
if (isHex(rawClarified)) {
|
|
10589
|
-
buffer =
|
|
10914
|
+
buffer = Convert_1.FromHex(rawClarified);
|
|
10590
10915
|
}
|
|
10591
10916
|
else if (isBase64(rawClarified) || isPem(rawClarified)) {
|
|
10592
|
-
buffer =
|
|
10917
|
+
buffer = Convert_1.FromBase64(rawClarified);
|
|
10593
10918
|
}
|
|
10594
10919
|
else {
|
|
10595
|
-
buffer =
|
|
10920
|
+
buffer = Convert_1.FromBinary(raw);
|
|
10596
10921
|
}
|
|
10597
10922
|
return buffer;
|
|
10598
10923
|
};
|
|
@@ -11160,6 +11485,75 @@ WebGDPR = __decorate([
|
|
|
11160
11485
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11161
11486
|
], WebGDPR);
|
|
11162
11487
|
|
|
11488
|
+
class IssuerAndSerialNumber {
|
|
11489
|
+
constructor(params = {}) {
|
|
11490
|
+
this.issuer = new Name$1;
|
|
11491
|
+
this.serialNumber = new ArrayBuffer(0);
|
|
11492
|
+
Object.assign(this, params);
|
|
11493
|
+
}
|
|
11494
|
+
}
|
|
11495
|
+
__decorate([
|
|
11496
|
+
AsnProp({ type: Name$1 })
|
|
11497
|
+
], IssuerAndSerialNumber.prototype, "issuer", void 0);
|
|
11498
|
+
__decorate([
|
|
11499
|
+
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
11500
|
+
], IssuerAndSerialNumber.prototype, "serialNumber", void 0);
|
|
11501
|
+
|
|
11502
|
+
let SignerIdentifier = class SignerIdentifier {
|
|
11503
|
+
constructor(params = {}) {
|
|
11504
|
+
Object.assign(this, params);
|
|
11505
|
+
}
|
|
11506
|
+
};
|
|
11507
|
+
__decorate([
|
|
11508
|
+
AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true })
|
|
11509
|
+
], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
11510
|
+
__decorate([
|
|
11511
|
+
AsnProp({ type: IssuerAndSerialNumber })
|
|
11512
|
+
], SignerIdentifier.prototype, "issuerAndSerialNumber", void 0);
|
|
11513
|
+
SignerIdentifier = __decorate([
|
|
11514
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
11515
|
+
], SignerIdentifier);
|
|
11516
|
+
|
|
11517
|
+
var CMSVersion;
|
|
11518
|
+
(function (CMSVersion) {
|
|
11519
|
+
CMSVersion[CMSVersion["v0"] = 0] = "v0";
|
|
11520
|
+
CMSVersion[CMSVersion["v1"] = 1] = "v1";
|
|
11521
|
+
CMSVersion[CMSVersion["v2"] = 2] = "v2";
|
|
11522
|
+
CMSVersion[CMSVersion["v3"] = 3] = "v3";
|
|
11523
|
+
CMSVersion[CMSVersion["v4"] = 4] = "v4";
|
|
11524
|
+
CMSVersion[CMSVersion["v5"] = 5] = "v5";
|
|
11525
|
+
})(CMSVersion || (CMSVersion = {}));
|
|
11526
|
+
let DigestAlgorithmIdentifier = class DigestAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11527
|
+
};
|
|
11528
|
+
DigestAlgorithmIdentifier = __decorate([
|
|
11529
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11530
|
+
], DigestAlgorithmIdentifier);
|
|
11531
|
+
let SignatureAlgorithmIdentifier = class SignatureAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11532
|
+
};
|
|
11533
|
+
SignatureAlgorithmIdentifier = __decorate([
|
|
11534
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11535
|
+
], SignatureAlgorithmIdentifier);
|
|
11536
|
+
let KeyEncryptionAlgorithmIdentifier = class KeyEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11537
|
+
};
|
|
11538
|
+
KeyEncryptionAlgorithmIdentifier = __decorate([
|
|
11539
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11540
|
+
], KeyEncryptionAlgorithmIdentifier);
|
|
11541
|
+
let ContentEncryptionAlgorithmIdentifier = class ContentEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11542
|
+
};
|
|
11543
|
+
ContentEncryptionAlgorithmIdentifier = __decorate([
|
|
11544
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11545
|
+
], ContentEncryptionAlgorithmIdentifier);
|
|
11546
|
+
let MessageAuthenticationCodeAlgorithm = class MessageAuthenticationCodeAlgorithm extends AlgorithmIdentifier {
|
|
11547
|
+
};
|
|
11548
|
+
MessageAuthenticationCodeAlgorithm = __decorate([
|
|
11549
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11550
|
+
], MessageAuthenticationCodeAlgorithm);
|
|
11551
|
+
let KeyDerivationAlgorithmIdentifier = class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11552
|
+
};
|
|
11553
|
+
KeyDerivationAlgorithmIdentifier = __decorate([
|
|
11554
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11555
|
+
], KeyDerivationAlgorithmIdentifier);
|
|
11556
|
+
|
|
11163
11557
|
class Attribute {
|
|
11164
11558
|
constructor(params = {}) {
|
|
11165
11559
|
this.attrType = "";
|
|
@@ -11174,6 +11568,59 @@ __decorate([
|
|
|
11174
11568
|
AsnProp({ type: AsnPropTypes.Any, repeated: "set" })
|
|
11175
11569
|
], Attribute.prototype, "attrValues", void 0);
|
|
11176
11570
|
|
|
11571
|
+
var SignerInfos_1;
|
|
11572
|
+
class SignerInfo {
|
|
11573
|
+
constructor(params = {}) {
|
|
11574
|
+
this.version = CMSVersion.v0;
|
|
11575
|
+
this.sid = new SignerIdentifier();
|
|
11576
|
+
this.digestAlgorithm = new DigestAlgorithmIdentifier();
|
|
11577
|
+
this.signatureAlgorithm = new SignatureAlgorithmIdentifier();
|
|
11578
|
+
this.signature = new OctetString();
|
|
11579
|
+
Object.assign(this, params);
|
|
11580
|
+
}
|
|
11581
|
+
}
|
|
11582
|
+
__decorate([
|
|
11583
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
11584
|
+
], SignerInfo.prototype, "version", void 0);
|
|
11585
|
+
__decorate([
|
|
11586
|
+
AsnProp({ type: SignerIdentifier })
|
|
11587
|
+
], SignerInfo.prototype, "sid", void 0);
|
|
11588
|
+
__decorate([
|
|
11589
|
+
AsnProp({ type: DigestAlgorithmIdentifier })
|
|
11590
|
+
], SignerInfo.prototype, "digestAlgorithm", void 0);
|
|
11591
|
+
__decorate([
|
|
11592
|
+
AsnProp({ type: Attribute, repeated: "set", context: 0, implicit: true, optional: true })
|
|
11593
|
+
], SignerInfo.prototype, "signedAttrs", void 0);
|
|
11594
|
+
__decorate([
|
|
11595
|
+
AsnProp({ type: SignatureAlgorithmIdentifier })
|
|
11596
|
+
], SignerInfo.prototype, "signatureAlgorithm", void 0);
|
|
11597
|
+
__decorate([
|
|
11598
|
+
AsnProp({ type: OctetString })
|
|
11599
|
+
], SignerInfo.prototype, "signature", void 0);
|
|
11600
|
+
__decorate([
|
|
11601
|
+
AsnProp({ type: Attribute, repeated: "set", context: 1, implicit: true, optional: true })
|
|
11602
|
+
], SignerInfo.prototype, "unsignedAttrs", void 0);
|
|
11603
|
+
let SignerInfos = SignerInfos_1 = class SignerInfos extends AsnArray {
|
|
11604
|
+
constructor(items) {
|
|
11605
|
+
super(items);
|
|
11606
|
+
Object.setPrototypeOf(this, SignerInfos_1.prototype);
|
|
11607
|
+
}
|
|
11608
|
+
};
|
|
11609
|
+
SignerInfos = SignerInfos_1 = __decorate([
|
|
11610
|
+
AsnType({ type: AsnTypeTypes.Set, itemType: SignerInfo })
|
|
11611
|
+
], SignerInfos);
|
|
11612
|
+
|
|
11613
|
+
let SigningTime$1 = class SigningTime extends Time {
|
|
11614
|
+
};
|
|
11615
|
+
SigningTime$1 = __decorate([
|
|
11616
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
11617
|
+
], SigningTime$1);
|
|
11618
|
+
let CounterSignature$1 = class CounterSignature extends SignerInfo {
|
|
11619
|
+
};
|
|
11620
|
+
CounterSignature$1 = __decorate([
|
|
11621
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11622
|
+
], CounterSignature$1);
|
|
11623
|
+
|
|
11177
11624
|
var CertificateSet_1;
|
|
11178
11625
|
class OtherCertificateFormat {
|
|
11179
11626
|
constructor(params = {}) {
|
|
@@ -11256,46 +11703,6 @@ __decorate([
|
|
|
11256
11703
|
AsnProp({ type: EncapsulatedContent, context: 0, optional: true })
|
|
11257
11704
|
], EncapsulatedContentInfo.prototype, "eContent", void 0);
|
|
11258
11705
|
|
|
11259
|
-
var CMSVersion;
|
|
11260
|
-
(function (CMSVersion) {
|
|
11261
|
-
CMSVersion[CMSVersion["v0"] = 0] = "v0";
|
|
11262
|
-
CMSVersion[CMSVersion["v1"] = 1] = "v1";
|
|
11263
|
-
CMSVersion[CMSVersion["v2"] = 2] = "v2";
|
|
11264
|
-
CMSVersion[CMSVersion["v3"] = 3] = "v3";
|
|
11265
|
-
CMSVersion[CMSVersion["v4"] = 4] = "v4";
|
|
11266
|
-
CMSVersion[CMSVersion["v5"] = 5] = "v5";
|
|
11267
|
-
})(CMSVersion || (CMSVersion = {}));
|
|
11268
|
-
let DigestAlgorithmIdentifier = class DigestAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11269
|
-
};
|
|
11270
|
-
DigestAlgorithmIdentifier = __decorate([
|
|
11271
|
-
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11272
|
-
], DigestAlgorithmIdentifier);
|
|
11273
|
-
let SignatureAlgorithmIdentifier = class SignatureAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11274
|
-
};
|
|
11275
|
-
SignatureAlgorithmIdentifier = __decorate([
|
|
11276
|
-
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11277
|
-
], SignatureAlgorithmIdentifier);
|
|
11278
|
-
let KeyEncryptionAlgorithmIdentifier = class KeyEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11279
|
-
};
|
|
11280
|
-
KeyEncryptionAlgorithmIdentifier = __decorate([
|
|
11281
|
-
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11282
|
-
], KeyEncryptionAlgorithmIdentifier);
|
|
11283
|
-
let ContentEncryptionAlgorithmIdentifier = class ContentEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11284
|
-
};
|
|
11285
|
-
ContentEncryptionAlgorithmIdentifier = __decorate([
|
|
11286
|
-
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11287
|
-
], ContentEncryptionAlgorithmIdentifier);
|
|
11288
|
-
let MessageAuthenticationCodeAlgorithm = class MessageAuthenticationCodeAlgorithm extends AlgorithmIdentifier {
|
|
11289
|
-
};
|
|
11290
|
-
MessageAuthenticationCodeAlgorithm = __decorate([
|
|
11291
|
-
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11292
|
-
], MessageAuthenticationCodeAlgorithm);
|
|
11293
|
-
let KeyDerivationAlgorithmIdentifier = class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11294
|
-
};
|
|
11295
|
-
KeyDerivationAlgorithmIdentifier = __decorate([
|
|
11296
|
-
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11297
|
-
], KeyDerivationAlgorithmIdentifier);
|
|
11298
|
-
|
|
11299
11706
|
let EncryptedContent = class EncryptedContent {
|
|
11300
11707
|
constructor(params = {}) {
|
|
11301
11708
|
Object.assign(this, params);
|
|
@@ -11327,20 +11734,6 @@ __decorate([
|
|
|
11327
11734
|
AsnProp({ type: EncryptedContent, optional: true })
|
|
11328
11735
|
], EncryptedContentInfo.prototype, "encryptedContent", void 0);
|
|
11329
11736
|
|
|
11330
|
-
class IssuerAndSerialNumber {
|
|
11331
|
-
constructor(params = {}) {
|
|
11332
|
-
this.issuer = new Name$1;
|
|
11333
|
-
this.serialNumber = new ArrayBuffer(0);
|
|
11334
|
-
Object.assign(this, params);
|
|
11335
|
-
}
|
|
11336
|
-
}
|
|
11337
|
-
__decorate([
|
|
11338
|
-
AsnProp({ type: Name$1 })
|
|
11339
|
-
], IssuerAndSerialNumber.prototype, "issuer", void 0);
|
|
11340
|
-
__decorate([
|
|
11341
|
-
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
11342
|
-
], IssuerAndSerialNumber.prototype, "serialNumber", void 0);
|
|
11343
|
-
|
|
11344
11737
|
class OtherKeyAttribute {
|
|
11345
11738
|
constructor(params = {}) {
|
|
11346
11739
|
this.keyAttrId = "";
|
|
@@ -11685,63 +12078,6 @@ __decorate([
|
|
|
11685
12078
|
AsnProp({ type: UnprotectedAttributes, context: 1, implicit: true, optional: true })
|
|
11686
12079
|
], EnvelopedData.prototype, "unprotectedAttrs", void 0);
|
|
11687
12080
|
|
|
11688
|
-
let SignerIdentifier = class SignerIdentifier {
|
|
11689
|
-
constructor(params = {}) {
|
|
11690
|
-
Object.assign(this, params);
|
|
11691
|
-
}
|
|
11692
|
-
};
|
|
11693
|
-
__decorate([
|
|
11694
|
-
AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true })
|
|
11695
|
-
], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
11696
|
-
__decorate([
|
|
11697
|
-
AsnProp({ type: IssuerAndSerialNumber })
|
|
11698
|
-
], SignerIdentifier.prototype, "issuerAndSerialNumber", void 0);
|
|
11699
|
-
SignerIdentifier = __decorate([
|
|
11700
|
-
AsnType({ type: AsnTypeTypes.Choice })
|
|
11701
|
-
], SignerIdentifier);
|
|
11702
|
-
|
|
11703
|
-
var SignerInfos_1;
|
|
11704
|
-
class SignerInfo {
|
|
11705
|
-
constructor(params = {}) {
|
|
11706
|
-
this.version = CMSVersion.v0;
|
|
11707
|
-
this.sid = new SignerIdentifier();
|
|
11708
|
-
this.digestAlgorithm = new DigestAlgorithmIdentifier();
|
|
11709
|
-
this.signatureAlgorithm = new SignatureAlgorithmIdentifier();
|
|
11710
|
-
this.signature = new OctetString();
|
|
11711
|
-
Object.assign(this, params);
|
|
11712
|
-
}
|
|
11713
|
-
}
|
|
11714
|
-
__decorate([
|
|
11715
|
-
AsnProp({ type: AsnPropTypes.Integer })
|
|
11716
|
-
], SignerInfo.prototype, "version", void 0);
|
|
11717
|
-
__decorate([
|
|
11718
|
-
AsnProp({ type: SignerIdentifier })
|
|
11719
|
-
], SignerInfo.prototype, "sid", void 0);
|
|
11720
|
-
__decorate([
|
|
11721
|
-
AsnProp({ type: DigestAlgorithmIdentifier })
|
|
11722
|
-
], SignerInfo.prototype, "digestAlgorithm", void 0);
|
|
11723
|
-
__decorate([
|
|
11724
|
-
AsnProp({ type: Attribute, repeated: "set", context: 0, implicit: true, optional: true })
|
|
11725
|
-
], SignerInfo.prototype, "signedAttrs", void 0);
|
|
11726
|
-
__decorate([
|
|
11727
|
-
AsnProp({ type: SignatureAlgorithmIdentifier })
|
|
11728
|
-
], SignerInfo.prototype, "signatureAlgorithm", void 0);
|
|
11729
|
-
__decorate([
|
|
11730
|
-
AsnProp({ type: OctetString })
|
|
11731
|
-
], SignerInfo.prototype, "signature", void 0);
|
|
11732
|
-
__decorate([
|
|
11733
|
-
AsnProp({ type: Attribute, repeated: "set", context: 1, implicit: true, optional: true })
|
|
11734
|
-
], SignerInfo.prototype, "unsignedAttrs", void 0);
|
|
11735
|
-
let SignerInfos = SignerInfos_1 = class SignerInfos extends AsnArray {
|
|
11736
|
-
constructor(items) {
|
|
11737
|
-
super(items);
|
|
11738
|
-
Object.setPrototypeOf(this, SignerInfos_1.prototype);
|
|
11739
|
-
}
|
|
11740
|
-
};
|
|
11741
|
-
SignerInfos = SignerInfos_1 = __decorate([
|
|
11742
|
-
AsnType({ type: AsnTypeTypes.Set, itemType: SignerInfo })
|
|
11743
|
-
], SignerInfos);
|
|
11744
|
-
|
|
11745
12081
|
var DigestAlgorithmIdentifiers_1;
|
|
11746
12082
|
let DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgorithmIdentifiers extends AsnArray {
|
|
11747
12083
|
constructor(items) {
|
|
@@ -12187,6 +12523,6 @@ __decorate([
|
|
|
12187
12523
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
12188
12524
|
], CertificationRequest.prototype, "signature", void 0);
|
|
12189
12525
|
|
|
12190
|
-
export { l10n as $, AsnData as A, id_ValuationRanking as B, Certificate as C, id_InsuranceValue as D, Extension as E, id_WebGDPR as F, id_ActivityDescription as G, ActivityDescription as H, InsuranceValue as I, id_TypeRelationship as J, id_DomainNameTechnicalOperator as K, DomainNameTechnicalOperator as L, id_DomainNameOwner as M, Name as N, DomainNameOwner as O, id_DomainNameLegalRepresentative as P, DomainNameLegalRepresentative as Q, RSAPublicKey as R, id_DomainNameBeneficiary as S, TypeRelationship as T, UnstructuredName as U, ValuationRanking as V, WebGDPR as W, DomainNameBeneficiary as X, AttributeCertificate as Y, CertificationRequest as Z, CertificateList as _, isX509Pem as a, dateShort as a0, OIDs as a1, Name$1 as a2, CRLReason as a3, InvalidityDate as a4, CertificateIssuer as a5, OtherName as a6, DisplayText as a7, UserNotice as a8, EDIPartyName as a9,
|
|
12526
|
+
export { l10n as $, AsnData as A, id_ValuationRanking as B, Certificate as C, id_InsuranceValue as D, Extension as E, id_WebGDPR as F, id_ActivityDescription as G, ActivityDescription as H, InsuranceValue as I, id_TypeRelationship as J, id_DomainNameTechnicalOperator as K, DomainNameTechnicalOperator as L, id_DomainNameOwner as M, Name as N, DomainNameOwner as O, id_DomainNameLegalRepresentative as P, DomainNameLegalRepresentative as Q, RSAPublicKey as R, id_DomainNameBeneficiary as S, TypeRelationship as T, UnstructuredName as U, ValuationRanking as V, WebGDPR as W, DomainNameBeneficiary as X, AttributeCertificate as Y, CertificationRequest as Z, CertificateList as _, isX509Pem as a, dateShort as a0, OIDs as a1, Name$1 as a2, CRLReason as a3, InvalidityDate as a4, CertificateIssuer as a5, OtherName as a6, DisplayText as a7, UserNotice as a8, EDIPartyName as a9, CaVersion as aA, QCStatements as aB, NetscapeComment as aC, NetscapeCertType as aD, LeiRole as aE, LeiChoice as aF, Timestamp as aG, ArchiveRevInfo as aH, SubjectDirectoryAttributes as aI, PrivateKeyUsagePeriod as aJ, EntrustVersionInfo as aK, BiometricSyntax as aL, LogotypeExtn as aM, TNAuthorizationList as aN, PolicyConstraints as aO, PolicyMappings as aP, CRLNumber as aQ, IssuingDistributionPoint as aR, NonStandardKeyDescription as aS, __decorate as aa, AsnProp as ab, AsnPropTypes as ac, AsnType as ad, AsnTypeTypes as ae, AsnArray as af, id_qcs_pkixQCSyntax_v2 as ag, SemanticsInformation as ah, AsnIntegerArrayBufferConverter as ai, AttestationApplicationId as aj, RootOfTrust as ak, IntegerSet as al, KeyUsage as am, BasicConstraints as an, ExtendedKeyUsage as ao, SubjectKeyIdentifier as ap, AuthorityKeyIdentifier as aq, CRLDistributionPoints as ar, AuthorityInfoAccessSyntax as as, SubjectInfoAccessSyntax as at, SubjectAlternativeName as au, CertificatePolicies as av, CertificateTransparency as aw, NameConstraints as ax, CertificateTemplate as ay, EnrollCertTypeChoice as az, isPkcs10Pem as b, isX509AttributePem as c, isX509CRLPem as d, certificateRawToBuffer as e, dateDiff as f, AsnConvert as g, id_ecPublicKey as h, isPem as i, ECParameters as j, id_rsaEncryption as k, id_composite_key as l, CompositePublicKey as m, id_alg_composite as n, CompositeSignatureValue as o, CompositeParams as p, hexFormat as q, base64Format as r, getCertificateThumbprint as s, Attribute$1 as t, id_pkcs9_at_extensionRequest as u, AsnParser as v, ExtensionRequest as w, id_pkcs9_at_unstructuredName as x, id_pkcs9_at_challengePassword as y, ChallengePassword as z };
|
|
12191
12527
|
|
|
12192
|
-
//# sourceMappingURL=certification_request-
|
|
12528
|
+
//# sourceMappingURL=certification_request-c9dc8e9c.js.map
|