@peculiar/certificates-viewer 4.0.2 → 4.2.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/attribute-certificate-viewer.js +7 -7
- package/components/attribute-certificate-viewer.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/csr-viewer.js +4 -4
- package/components/csr-viewer.js.map +1 -1
- package/components/download.js +374 -374
- package/components/download.js.map +1 -1
- package/components/index2.js +2 -2
- package/components/index2.js.map +1 -1
- package/components/miscellaneous.js +1320 -810
- package/components/miscellaneous.js.map +1 -1
- package/components/subject_name.js +2 -2
- package/components/subject_name.js.map +1 -1
- package/dist/cjs/{certification_request-c0cafa72.js → certification_request-5672c667.js} +1227 -823
- package/dist/cjs/certification_request-5672c667.js.map +1 -0
- package/dist/cjs/{crl-b4322166.js → crl-3f681d44.js} +14 -14
- package/dist/cjs/{crl-b4322166.js.map → crl-3f681d44.js.map} +1 -1
- 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 +1 -1
- package/dist/cjs/{miscellaneous-e43aaae5.js → miscellaneous-905ec852.js} +125 -15
- package/dist/cjs/miscellaneous-905ec852.js.map +1 -0
- package/dist/cjs/peculiar-attribute-certificate-viewer_3.cjs.entry.js +8 -8
- package/dist/cjs/peculiar-attribute-certificate-viewer_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 +4 -4
- package/dist/cjs/peculiar-certificates-viewer.cjs.entry.js +3 -3
- package/dist/cjs/{x509_certificate-989b1435.js → x509_certificate-69764c52.js} +7 -7
- package/dist/cjs/{x509_certificate-989b1435.js.map → x509_certificate-69764c52.js.map} +1 -1
- package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js +19 -0
- package/dist/collection/components/certificate-details-parts/extensions/cabforganization_identifier_extension.js.map +1 -0
- package/dist/collection/components/certificate-details-parts/extensions/index.js +10 -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/logs.js +1 -0
- package/dist/collection/constants/logs.js.map +1 -1
- package/dist/collection/constants/oids.js +25 -4
- package/dist/collection/constants/oids.js.map +1 -1
- package/dist/collection/crypto/extension.js +8 -0
- package/dist/collection/crypto/extension.js.map +1 -1
- package/dist/collection/crypto/extensions/cabforganization_identifier.js +49 -0
- package/dist/collection/crypto/extensions/cabforganization_identifier.js.map +1 -0
- package/dist/collection/crypto/extensions/index.js +5 -0
- package/dist/collection/crypto/extensions/index.js.map +1 -0
- 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/{certification_request-5cadde9f.js → certification_request-d5ea5973.js} +1217 -817
- package/dist/esm/certification_request-d5ea5973.js.map +1 -0
- package/dist/esm/{crl-11670c3e.js → crl-d13d9ec5.js} +14 -14
- package/dist/esm/{crl-11670c3e.js.map → crl-d13d9ec5.js.map} +1 -1
- 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 +1 -1
- package/dist/esm/{miscellaneous-7793a310.js → miscellaneous-cdfd8905.js} +125 -15
- package/dist/esm/miscellaneous-cdfd8905.js.map +1 -0
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js +8 -8
- package/dist/esm/peculiar-attribute-certificate-viewer_3.entry.js.map +1 -1
- package/dist/esm/peculiar-certificate-decoder.entry.js +4 -4
- package/dist/esm/peculiar-certificate-viewer.entry.js +4 -4
- package/dist/esm/peculiar-certificates-viewer.entry.js +3 -3
- package/dist/esm/{x509_certificate-dfae6999.js → x509_certificate-a9fcab55.js} +7 -7
- package/dist/esm/{x509_certificate-dfae6999.js.map → x509_certificate-a9fcab55.js.map} +1 -1
- package/dist/esm-es5/certification_request-d5ea5973.js +97 -0
- package/dist/esm-es5/certification_request-d5ea5973.js.map +1 -0
- package/dist/esm-es5/{crl-11670c3e.js → crl-d13d9ec5.js} +6 -6
- package/dist/esm-es5/{crl-11670c3e.js.map → crl-d13d9ec5.js.map} +1 -1
- 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/miscellaneous-cdfd8905.js +369 -0
- package/dist/esm-es5/miscellaneous-cdfd8905.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-certificate-decoder.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificate-viewer.entry.js +1 -1
- package/dist/esm-es5/peculiar-certificates-viewer.entry.js +1 -1
- package/dist/esm-es5/x509_certificate-a9fcab55.js +12 -0
- package/dist/esm-es5/{x509_certificate-dfae6999.js.map → x509_certificate-a9fcab55.js.map} +1 -1
- package/dist/peculiar/index.esm.js +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-1844b807.system.entry.js → p-3b395604.system.entry.js} +2 -2
- package/dist/peculiar/p-48474b8d.js +12 -0
- package/dist/peculiar/{p-6e79b9c8.js.map → p-48474b8d.js.map} +1 -1
- package/dist/peculiar/p-4a6ceeda.js +97 -0
- package/dist/peculiar/p-4a6ceeda.js.map +1 -0
- package/dist/peculiar/p-59e5ac12.js +43 -0
- package/dist/peculiar/p-59e5ac12.js.map +1 -0
- package/dist/peculiar/{p-7f9fef87.entry.js → p-609ee9f0.entry.js} +2 -2
- package/dist/peculiar/p-67156853.js +369 -0
- package/dist/peculiar/p-67156853.js.map +1 -0
- package/dist/peculiar/p-6daee4d7.system.js +369 -0
- package/dist/peculiar/p-6daee4d7.system.js.map +1 -0
- package/dist/peculiar/p-6e48afc4.system.js +34 -0
- package/dist/peculiar/{p-6667fe6e.system.js.map → p-6e48afc4.system.js.map} +1 -1
- package/dist/peculiar/{p-0b475f2a.system.entry.js → p-718982f4.system.entry.js} +4 -4
- package/dist/peculiar/{p-0b475f2a.system.entry.js.map → p-718982f4.system.entry.js.map} +1 -1
- package/dist/peculiar/p-80832207.system.js +1 -1
- package/dist/peculiar/p-8fac1d56.js +33 -0
- package/dist/peculiar/{p-43eb3721.js.map → p-8fac1d56.js.map} +1 -1
- package/dist/peculiar/{p-1de0381c.system.js → p-a3eeb94b.system.js} +2 -2
- package/dist/peculiar/{p-441109db.system.entry.js → p-a67b8793.system.entry.js} +2 -2
- package/dist/peculiar/{p-e39de121.system.entry.js → p-a720c0a5.system.entry.js} +2 -2
- package/dist/peculiar/{p-882e1281.entry.js → p-a7386b78.entry.js} +2 -2
- package/dist/peculiar/p-ab7dc738.system.js +13 -0
- package/dist/peculiar/{p-31586b23.system.js.map → p-ab7dc738.system.js.map} +1 -1
- package/dist/peculiar/{p-bcc86979.entry.js → p-c35b180c.entry.js} +2 -2
- package/dist/peculiar/p-e0f4bda5.system.js +97 -0
- package/dist/peculiar/p-e0f4bda5.system.js.map +1 -0
- package/dist/peculiar/{p-673336cf.entry.js → p-f86279f6.entry.js} +5 -5
- package/dist/peculiar/{p-673336cf.entry.js.map → p-f86279f6.entry.js.map} +1 -1
- package/dist/peculiar/peculiar.esm.js +1 -1
- package/dist/types/components/certificate-details-parts/extensions/cabforganization_identifier_extension.d.ts +15 -0
- package/dist/types/components/certificate-details-parts/extensions/key_description_extension.d.ts +15 -0
- package/dist/types/constants/logs.d.ts +1 -0
- package/dist/types/constants/oids.d.ts +24 -4
- package/dist/types/crypto/extension.d.ts +3 -1
- package/dist/types/crypto/extensions/cabforganization_identifier.d.ts +23 -0
- package/dist/types/crypto/extensions/index.d.ts +1 -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 +1710 -1200
- 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-e43aaae5.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-7793a310.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-7793a310.js +0 -348
- package/dist/esm-es5/miscellaneous-7793a310.js.map +0 -1
- package/dist/esm-es5/x509_certificate-dfae6999.js +0 -12
- package/dist/peculiar/p-31586b23.system.js +0 -13
- package/dist/peculiar/p-43eb3721.js +0 -33
- 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-a053c132.js +0 -19
- package/dist/peculiar/p-a053c132.js.map +0 -1
- package/dist/peculiar/p-a6e2e335.js +0 -348
- package/dist/peculiar/p-a6e2e335.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-c0a298fd.system.js +0 -97
- package/dist/peculiar/p-c0a298fd.system.js.map +0 -1
- package/dist/peculiar/p-c362dc5e.system.js +0 -348
- package/dist/peculiar/p-c362dc5e.system.js.map +0 -1
- /package/dist/peculiar/{p-1844b807.system.entry.js.map → p-3b395604.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-7f9fef87.entry.js.map → p-609ee9f0.entry.js.map} +0 -0
- /package/dist/peculiar/{p-1de0381c.system.js.map → p-a3eeb94b.system.js.map} +0 -0
- /package/dist/peculiar/{p-441109db.system.entry.js.map → p-a67b8793.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-e39de121.system.entry.js.map → p-a720c0a5.system.entry.js.map} +0 -0
- /package/dist/peculiar/{p-882e1281.entry.js.map → p-a7386b78.entry.js.map} +0 -0
- /package/dist/peculiar/{p-bcc86979.entry.js.map → p-c35b180c.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
|
});
|
|
@@ -2345,7 +2361,6 @@ const OIDs = {
|
|
|
2345
2361
|
'2.16.840.1.114412.1.11': 'Digi Cert Federated Device Cert',
|
|
2346
2362
|
'2.16.840.1.114412.2.1': 'Digi Cert EV policy',
|
|
2347
2363
|
'2.16.840.1.114412.2.2': 'Digi Cert EV Cert',
|
|
2348
|
-
'2.23.140.1.1': 'EV guidelines certificate policy',
|
|
2349
2364
|
'2.16.840.1.114412.2.3': 'Digi Cert Object Signing Cert',
|
|
2350
2365
|
'2.16.840.1.114412.2.3.1': 'Digi Cert Code Signing Cert',
|
|
2351
2366
|
'2.16.840.1.114412.2.3.2': 'Digi Cert EV Code Signing Cert',
|
|
@@ -2489,14 +2504,12 @@ const OIDs = {
|
|
|
2489
2504
|
'2.54.1775.7': 'Set Qualifier',
|
|
2490
2505
|
'2.54.1775.99': 'Set Data',
|
|
2491
2506
|
'1.3.6.1.4.1.11129.2.4.3': 'CT Pre-Certificate Poison',
|
|
2492
|
-
'2.23.140.1.2.1': 'CA/B Forum Domain Validated',
|
|
2493
|
-
'2.23.140.1.2.2': 'CA/B Forum Organization Validated',
|
|
2494
|
-
'2.23.140.1.5.2.2': 'CA/B Forum Organization Validated Multipurpose',
|
|
2495
2507
|
'1.3.6.1.4.1.44947.1.1.1': 'Let\'s Encrypt',
|
|
2496
2508
|
'1.3.6.1.4.1.4329.7.2.4': 'SSL TLS Certs',
|
|
2497
2509
|
'1.3.6.1.4.1.4329.7': 'Siemens Public Key Infrastructure',
|
|
2498
2510
|
'1.3.6.1.4.1.52266.1': 'Legal Entity Identifier',
|
|
2499
2511
|
'1.3.6.1.4.1.52266.2': 'Role',
|
|
2512
|
+
'1.3.6.1.4.1.11129.2.1.17': 'Android Key Attestation',
|
|
2500
2513
|
// https://ec.europa.eu/futurium/sites/futurium/files/ntqwac_pilot.pdf
|
|
2501
2514
|
'0.4.0.9496.1': 'Domain Name Beneficiary',
|
|
2502
2515
|
'0.4.0.9496.2': 'DNB Legal representative',
|
|
@@ -2517,6 +2530,30 @@ const OIDs = {
|
|
|
2517
2530
|
'1.3.6.1.4.1.18227.999.1.2.1': 'Dilithium3 With SHA256',
|
|
2518
2531
|
'1.3.6.1.4.1.18227.999.1.2.2': 'Dilithium3 With SHA384',
|
|
2519
2532
|
'1.3.6.1.4.1.18227.999.1.2.3': 'Dilithium3 With SHA512',
|
|
2533
|
+
// https://cabforum.org/object-registry/
|
|
2534
|
+
'2.23.140.1.1': 'CA/B Forum Extended Validation',
|
|
2535
|
+
'2.23.140.1.2': 'CA/B Forum Baseline Requirements',
|
|
2536
|
+
'2.23.140.1.2.1': 'CA/B Forum Domain Validated',
|
|
2537
|
+
'2.23.140.1.2.2': 'CA/B Forum Organization Validated',
|
|
2538
|
+
'2.23.140.1.2.3': 'CA/B Forum Individual Validated',
|
|
2539
|
+
'2.23.140.1.3': 'CA/B Forum Extended Validation Codesigning',
|
|
2540
|
+
'2.23.140.1.4.1': 'CA/B Forum Codesigning Requirements Codesigning',
|
|
2541
|
+
'2.23.140.1.5': 'CA/B Forum S/MIME Baseline Requirements',
|
|
2542
|
+
'2.23.140.1.5.1.1': 'CA/B Forum Mailbox Validated Legacy',
|
|
2543
|
+
'2.23.140.1.5.1.2': 'CA/B Forum Mailbox Validated Multipurpose',
|
|
2544
|
+
'2.23.140.1.5.1.3': 'CA/B Forum Mailbox Validated Strict',
|
|
2545
|
+
'2.23.140.1.5.2.1': 'CA/B Forum Organization Validated Legacy',
|
|
2546
|
+
'2.23.140.1.5.2.2': 'CA/B Forum Organization Validated Multipurpose',
|
|
2547
|
+
'2.23.140.1.5.2.3': 'CA/B Forum Organization Validated Strict',
|
|
2548
|
+
'2.23.140.1.5.3.1': 'CA/B Forum Sponsor Validated Legacy',
|
|
2549
|
+
'2.23.140.1.5.3.2': 'CA/B Forum Sponsor Validated Multipurpose',
|
|
2550
|
+
'2.23.140.1.5.3.3': 'CA/B Forum Sponsor Validated Strict',
|
|
2551
|
+
'2.23.140.1.5.4.1': 'CA/B Forum Individual Validated Legacy',
|
|
2552
|
+
'2.23.140.1.5.4.2': 'CA/B Forum Individual Validated Multipurpose',
|
|
2553
|
+
'2.23.140.1.5.4.3': 'CA/B Forum Individual Validated Strict',
|
|
2554
|
+
'2.23.140.1.31': 'CA/B Forum Onion EV',
|
|
2555
|
+
'2.23.140.2.1': 'CA/B Forum Test Certificate',
|
|
2556
|
+
'2.23.140.3.1': 'CA/B Forum Organization Identifier',
|
|
2520
2557
|
};
|
|
2521
2558
|
|
|
2522
2559
|
/*!
|
|
@@ -2776,7 +2813,7 @@ function HexBlock(BaseClass) {
|
|
|
2776
2813
|
super(...args);
|
|
2777
2814
|
const params = args[0] || {};
|
|
2778
2815
|
this.isHexOnly = (_a = params.isHexOnly) !== null && _a !== void 0 ? _a : false;
|
|
2779
|
-
this.valueHexView = params.valueHex ?
|
|
2816
|
+
this.valueHexView = params.valueHex ? BufferSourceConverter_1.toUint8Array(params.valueHex) : EMPTY_VIEW;
|
|
2780
2817
|
}
|
|
2781
2818
|
get valueHex() {
|
|
2782
2819
|
return this.valueHexView.slice().buffer;
|
|
@@ -2814,7 +2851,7 @@ function HexBlock(BaseClass) {
|
|
|
2814
2851
|
return {
|
|
2815
2852
|
...super.toJSON(),
|
|
2816
2853
|
isHexOnly: this.isHexOnly,
|
|
2817
|
-
valueHex:
|
|
2854
|
+
valueHex: Convert_1.ToHex(this.valueHexView),
|
|
2818
2855
|
};
|
|
2819
2856
|
}
|
|
2820
2857
|
},
|
|
@@ -2827,7 +2864,7 @@ class LocalBaseBlock {
|
|
|
2827
2864
|
this.blockLength = blockLength;
|
|
2828
2865
|
this.error = error;
|
|
2829
2866
|
this.warnings = warnings;
|
|
2830
|
-
this.valueBeforeDecodeView =
|
|
2867
|
+
this.valueBeforeDecodeView = BufferSourceConverter_1.toUint8Array(valueBeforeDecode);
|
|
2831
2868
|
}
|
|
2832
2869
|
static blockName() {
|
|
2833
2870
|
return this.NAME;
|
|
@@ -2844,7 +2881,7 @@ class LocalBaseBlock {
|
|
|
2844
2881
|
blockLength: this.blockLength,
|
|
2845
2882
|
error: this.error,
|
|
2846
2883
|
warnings: this.warnings,
|
|
2847
|
-
valueBeforeDecode:
|
|
2884
|
+
valueBeforeDecode: Convert_1.ToHex(this.valueBeforeDecodeView),
|
|
2848
2885
|
};
|
|
2849
2886
|
}
|
|
2850
2887
|
}
|
|
@@ -2866,7 +2903,7 @@ class LocalIdentificationBlock extends HexBlock(LocalBaseBlock) {
|
|
|
2866
2903
|
super();
|
|
2867
2904
|
if (idBlock) {
|
|
2868
2905
|
this.isHexOnly = (_a = idBlock.isHexOnly) !== null && _a !== void 0 ? _a : false;
|
|
2869
|
-
this.valueHexView = idBlock.valueHex ?
|
|
2906
|
+
this.valueHexView = idBlock.valueHex ? BufferSourceConverter_1.toUint8Array(idBlock.valueHex) : EMPTY_VIEW;
|
|
2870
2907
|
this.tagClass = (_b = idBlock.tagClass) !== null && _b !== void 0 ? _b : -1;
|
|
2871
2908
|
this.tagNumber = (_c = idBlock.tagNumber) !== null && _c !== void 0 ? _c : -1;
|
|
2872
2909
|
this.isConstructed = (_d = idBlock.isConstructed) !== null && _d !== void 0 ? _d : false;
|
|
@@ -2932,7 +2969,7 @@ class LocalIdentificationBlock extends HexBlock(LocalBaseBlock) {
|
|
|
2932
2969
|
return retView.buffer;
|
|
2933
2970
|
}
|
|
2934
2971
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
2935
|
-
const inputView =
|
|
2972
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
2936
2973
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
|
|
2937
2974
|
return -1;
|
|
2938
2975
|
}
|
|
@@ -3041,7 +3078,7 @@ class LocalLengthBlock extends LocalBaseBlock {
|
|
|
3041
3078
|
this.length = (_c = lenBlock.length) !== null && _c !== void 0 ? _c : 0;
|
|
3042
3079
|
}
|
|
3043
3080
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
3044
|
-
const view =
|
|
3081
|
+
const view = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
3045
3082
|
if (!checkBufferParams(this, view, inputOffset, inputLength)) {
|
|
3046
3083
|
return -1;
|
|
3047
3084
|
}
|
|
@@ -3200,10 +3237,10 @@ class BaseBlock extends LocalBaseBlock {
|
|
|
3200
3237
|
if (encoding === "ascii") {
|
|
3201
3238
|
return this.onAsciiEncoding();
|
|
3202
3239
|
}
|
|
3203
|
-
return
|
|
3240
|
+
return Convert_1.ToHex(this.toBER());
|
|
3204
3241
|
}
|
|
3205
3242
|
onAsciiEncoding() {
|
|
3206
|
-
return `${this.constructor.NAME} : ${
|
|
3243
|
+
return `${this.constructor.NAME} : ${Convert_1.ToHex(this.valueBlock.valueBeforeDecodeView)}`;
|
|
3207
3244
|
}
|
|
3208
3245
|
isEqual(other) {
|
|
3209
3246
|
if (this === other) {
|
|
@@ -3501,7 +3538,7 @@ function fromBER(inputBuffer) {
|
|
|
3501
3538
|
result
|
|
3502
3539
|
};
|
|
3503
3540
|
}
|
|
3504
|
-
return localFromBER(
|
|
3541
|
+
return localFromBER(BufferSourceConverter_1.toUint8Array(inputBuffer).slice(), 0, inputBuffer.byteLength);
|
|
3505
3542
|
}
|
|
3506
3543
|
|
|
3507
3544
|
function checkLen(indefiniteLength, length) {
|
|
@@ -3517,7 +3554,7 @@ class LocalConstructedValueBlock extends ValueBlock {
|
|
|
3517
3554
|
this.isIndefiniteForm = isIndefiniteForm;
|
|
3518
3555
|
}
|
|
3519
3556
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
3520
|
-
const view =
|
|
3557
|
+
const view = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
3521
3558
|
if (!checkBufferParams(this, view, inputOffset, inputLength)) {
|
|
3522
3559
|
return -1;
|
|
3523
3560
|
}
|
|
@@ -3687,7 +3724,7 @@ class LocalBooleanValueBlock extends HexBlock(ValueBlock) {
|
|
|
3687
3724
|
constructor({ value, ...parameters } = {}) {
|
|
3688
3725
|
super(parameters);
|
|
3689
3726
|
if (parameters.valueHex) {
|
|
3690
|
-
this.valueHexView =
|
|
3727
|
+
this.valueHexView = BufferSourceConverter_1.toUint8Array(parameters.valueHex);
|
|
3691
3728
|
}
|
|
3692
3729
|
else {
|
|
3693
3730
|
this.valueHexView = new Uint8Array(1);
|
|
@@ -3708,7 +3745,7 @@ class LocalBooleanValueBlock extends HexBlock(ValueBlock) {
|
|
|
3708
3745
|
this.valueHexView[0] = value ? 0xFF : 0x00;
|
|
3709
3746
|
}
|
|
3710
3747
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
3711
|
-
const inputView =
|
|
3748
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
3712
3749
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
|
|
3713
3750
|
return -1;
|
|
3714
3751
|
}
|
|
@@ -3855,7 +3892,7 @@ class OctetString$1 extends BaseBlock {
|
|
|
3855
3892
|
if (this.valueBlock.isConstructed || (this.valueBlock.value && this.valueBlock.value.length)) {
|
|
3856
3893
|
return Constructed.prototype.onAsciiEncoding.call(this);
|
|
3857
3894
|
}
|
|
3858
|
-
return `${this.constructor.NAME} : ${
|
|
3895
|
+
return `${this.constructor.NAME} : ${Convert_1.ToHex(this.valueBlock.valueHexView)}`;
|
|
3859
3896
|
}
|
|
3860
3897
|
getValue() {
|
|
3861
3898
|
if (!this.idBlock.isConstructed) {
|
|
@@ -3867,7 +3904,7 @@ class OctetString$1 extends BaseBlock {
|
|
|
3867
3904
|
array.push(content.valueBlock.valueHexView);
|
|
3868
3905
|
}
|
|
3869
3906
|
}
|
|
3870
|
-
return
|
|
3907
|
+
return BufferSourceConverter_1.concat(array);
|
|
3871
3908
|
}
|
|
3872
3909
|
}
|
|
3873
3910
|
_a$r = OctetString$1;
|
|
@@ -3915,7 +3952,7 @@ class LocalBitStringValueBlock extends HexBlock(LocalConstructedValueBlock) {
|
|
|
3915
3952
|
}
|
|
3916
3953
|
return resultOffset;
|
|
3917
3954
|
}
|
|
3918
|
-
const inputView =
|
|
3955
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
3919
3956
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
|
|
3920
3957
|
return -1;
|
|
3921
3958
|
}
|
|
@@ -4255,13 +4292,13 @@ class Integer extends BaseBlock {
|
|
|
4255
4292
|
const bigIntValue = BigInt(value);
|
|
4256
4293
|
const writer = new ViewWriter();
|
|
4257
4294
|
const hex = bigIntValue.toString(16).replace(/^-/, "");
|
|
4258
|
-
const view = new Uint8Array(
|
|
4295
|
+
const view = new Uint8Array(Convert_1.FromHex(hex));
|
|
4259
4296
|
if (bigIntValue < 0) {
|
|
4260
4297
|
const first = new Uint8Array(view.length + (view[0] & 0x80 ? 1 : 0));
|
|
4261
4298
|
first[0] |= 0x80;
|
|
4262
|
-
const firstInt = BigInt(`0x${
|
|
4299
|
+
const firstInt = BigInt(`0x${Convert_1.ToHex(first)}`);
|
|
4263
4300
|
const secondInt = firstInt + bigIntValue;
|
|
4264
|
-
const second =
|
|
4301
|
+
const second = BufferSourceConverter_1.toUint8Array(Convert_1.FromHex(secondInt.toString(16)));
|
|
4265
4302
|
second[0] |= 0x80;
|
|
4266
4303
|
writer.write(second);
|
|
4267
4304
|
}
|
|
@@ -4322,7 +4359,7 @@ class LocalSidValueBlock extends HexBlock(ValueBlock) {
|
|
|
4322
4359
|
if (!inputLength) {
|
|
4323
4360
|
return inputOffset;
|
|
4324
4361
|
}
|
|
4325
|
-
const inputView =
|
|
4362
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
4326
4363
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength)) {
|
|
4327
4364
|
return -1;
|
|
4328
4365
|
}
|
|
@@ -4394,7 +4431,7 @@ class LocalSidValueBlock extends HexBlock(ValueBlock) {
|
|
|
4394
4431
|
toString() {
|
|
4395
4432
|
let result = "";
|
|
4396
4433
|
if (this.isHexOnly)
|
|
4397
|
-
result =
|
|
4434
|
+
result = Convert_1.ToHex(this.valueHexView);
|
|
4398
4435
|
else {
|
|
4399
4436
|
if (this.isFirstSid) {
|
|
4400
4437
|
let sidValue = this.valueDec;
|
|
@@ -4591,7 +4628,7 @@ class LocalRelativeSidValueBlock extends HexBlock(LocalBaseBlock) {
|
|
|
4591
4628
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
4592
4629
|
if (inputLength === 0)
|
|
4593
4630
|
return inputOffset;
|
|
4594
|
-
const inputView =
|
|
4631
|
+
const inputView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
4595
4632
|
if (!checkBufferParams(this, inputView, inputOffset, inputLength))
|
|
4596
4633
|
return -1;
|
|
4597
4634
|
const intBuffer = inputView.subarray(inputOffset, inputOffset + inputLength);
|
|
@@ -4649,7 +4686,7 @@ class LocalRelativeSidValueBlock extends HexBlock(LocalBaseBlock) {
|
|
|
4649
4686
|
toString() {
|
|
4650
4687
|
let result = "";
|
|
4651
4688
|
if (this.isHexOnly)
|
|
4652
|
-
result =
|
|
4689
|
+
result = Convert_1.ToHex(this.valueHexView);
|
|
4653
4690
|
else {
|
|
4654
4691
|
result = this.valueDec.toString();
|
|
4655
4692
|
}
|
|
@@ -4831,7 +4868,7 @@ class LocalSimpleStringBlock extends BaseStringBlock {
|
|
|
4831
4868
|
super(parameters, LocalSimpleStringValueBlock);
|
|
4832
4869
|
}
|
|
4833
4870
|
fromBuffer(inputBuffer) {
|
|
4834
|
-
this.valueBlock.value = String.fromCharCode.apply(null,
|
|
4871
|
+
this.valueBlock.value = String.fromCharCode.apply(null, BufferSourceConverter_1.toUint8Array(inputBuffer));
|
|
4835
4872
|
}
|
|
4836
4873
|
fromString(inputString) {
|
|
4837
4874
|
const strLen = inputString.length;
|
|
@@ -4845,17 +4882,17 @@ LocalSimpleStringBlock.NAME = "SIMPLE STRING";
|
|
|
4845
4882
|
|
|
4846
4883
|
class LocalUtf8StringValueBlock extends LocalSimpleStringBlock {
|
|
4847
4884
|
fromBuffer(inputBuffer) {
|
|
4848
|
-
this.valueBlock.valueHexView =
|
|
4885
|
+
this.valueBlock.valueHexView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
4849
4886
|
try {
|
|
4850
|
-
this.valueBlock.value =
|
|
4887
|
+
this.valueBlock.value = Convert_1.ToUtf8String(inputBuffer);
|
|
4851
4888
|
}
|
|
4852
4889
|
catch (ex) {
|
|
4853
4890
|
this.warnings.push(`Error during "decodeURIComponent": ${ex}, using raw string`);
|
|
4854
|
-
this.valueBlock.value =
|
|
4891
|
+
this.valueBlock.value = Convert_1.ToBinary(inputBuffer);
|
|
4855
4892
|
}
|
|
4856
4893
|
}
|
|
4857
4894
|
fromString(inputString) {
|
|
4858
|
-
this.valueBlock.valueHexView = new Uint8Array(
|
|
4895
|
+
this.valueBlock.valueHexView = new Uint8Array(Convert_1.FromUtf8String(inputString));
|
|
4859
4896
|
this.valueBlock.value = inputString;
|
|
4860
4897
|
}
|
|
4861
4898
|
}
|
|
@@ -4877,12 +4914,12 @@ Utf8String.NAME = "UTF8String";
|
|
|
4877
4914
|
|
|
4878
4915
|
class LocalBmpStringValueBlock extends LocalSimpleStringBlock {
|
|
4879
4916
|
fromBuffer(inputBuffer) {
|
|
4880
|
-
this.valueBlock.value =
|
|
4881
|
-
this.valueBlock.valueHexView =
|
|
4917
|
+
this.valueBlock.value = Convert_1.ToUtf16String(inputBuffer);
|
|
4918
|
+
this.valueBlock.valueHexView = BufferSourceConverter_1.toUint8Array(inputBuffer);
|
|
4882
4919
|
}
|
|
4883
4920
|
fromString(inputString) {
|
|
4884
4921
|
this.valueBlock.value = inputString;
|
|
4885
|
-
this.valueBlock.valueHexView = new Uint8Array(
|
|
4922
|
+
this.valueBlock.valueHexView = new Uint8Array(Convert_1.FromUtf16String(inputString));
|
|
4886
4923
|
}
|
|
4887
4924
|
}
|
|
4888
4925
|
LocalBmpStringValueBlock.NAME = "BmpStringValueBlock";
|
|
@@ -5094,7 +5131,7 @@ class UTCTime extends VisibleString {
|
|
|
5094
5131
|
this.idBlock.tagNumber = 23;
|
|
5095
5132
|
}
|
|
5096
5133
|
fromBuffer(inputBuffer) {
|
|
5097
|
-
this.fromString(String.fromCharCode.apply(null,
|
|
5134
|
+
this.fromString(String.fromCharCode.apply(null, BufferSourceConverter_1.toUint8Array(inputBuffer)));
|
|
5098
5135
|
}
|
|
5099
5136
|
toBuffer() {
|
|
5100
5137
|
const str = this.toString();
|
|
@@ -5444,17 +5481,17 @@ class Repeated extends Any {
|
|
|
5444
5481
|
|
|
5445
5482
|
class RawData {
|
|
5446
5483
|
constructor({ data = EMPTY_VIEW } = {}) {
|
|
5447
|
-
this.dataView =
|
|
5484
|
+
this.dataView = BufferSourceConverter_1.toUint8Array(data);
|
|
5448
5485
|
}
|
|
5449
5486
|
get data() {
|
|
5450
5487
|
return this.dataView.slice().buffer;
|
|
5451
5488
|
}
|
|
5452
5489
|
set data(value) {
|
|
5453
|
-
this.dataView =
|
|
5490
|
+
this.dataView = BufferSourceConverter_1.toUint8Array(value);
|
|
5454
5491
|
}
|
|
5455
5492
|
fromBER(inputBuffer, inputOffset, inputLength) {
|
|
5456
5493
|
const endLength = inputOffset + inputLength;
|
|
5457
|
-
this.dataView =
|
|
5494
|
+
this.dataView = BufferSourceConverter_1.toUint8Array(inputBuffer).subarray(inputOffset, endLength);
|
|
5458
5495
|
return endLength;
|
|
5459
5496
|
}
|
|
5460
5497
|
toBER(sizeOnly) {
|
|
@@ -5773,7 +5810,7 @@ function verifySchema(inputBuffer, inputSchema) {
|
|
|
5773
5810
|
result: { error: "Wrong ASN.1 schema type" }
|
|
5774
5811
|
};
|
|
5775
5812
|
}
|
|
5776
|
-
const asn1 = localFromBER(
|
|
5813
|
+
const asn1 = localFromBER(BufferSourceConverter_1.toUint8Array(inputBuffer));
|
|
5777
5814
|
if (asn1.offset === -1) {
|
|
5778
5815
|
return {
|
|
5779
5816
|
verified: false,
|
|
@@ -5876,9 +5913,9 @@ class BitString {
|
|
|
5876
5913
|
if (typeof params === "number") {
|
|
5877
5914
|
this.fromNumber(params);
|
|
5878
5915
|
}
|
|
5879
|
-
else if (
|
|
5916
|
+
else if (BufferSourceConverter_1.isBufferSource(params)) {
|
|
5880
5917
|
this.unusedBits = unusedBits;
|
|
5881
|
-
this.value =
|
|
5918
|
+
this.value = BufferSourceConverter_1.toArrayBuffer(params);
|
|
5882
5919
|
}
|
|
5883
5920
|
else {
|
|
5884
5921
|
throw TypeError("Unsupported type of 'params' argument for BitString");
|
|
@@ -5927,13 +5964,19 @@ class BitString {
|
|
|
5927
5964
|
}
|
|
5928
5965
|
|
|
5929
5966
|
class OctetString {
|
|
5967
|
+
get byteLength() {
|
|
5968
|
+
return this.buffer.byteLength;
|
|
5969
|
+
}
|
|
5970
|
+
get byteOffset() {
|
|
5971
|
+
return 0;
|
|
5972
|
+
}
|
|
5930
5973
|
constructor(param) {
|
|
5931
5974
|
if (typeof param === "number") {
|
|
5932
5975
|
this.buffer = new ArrayBuffer(param);
|
|
5933
5976
|
}
|
|
5934
5977
|
else {
|
|
5935
|
-
if (
|
|
5936
|
-
this.buffer =
|
|
5978
|
+
if (BufferSourceConverter_1.isBufferSource(param)) {
|
|
5979
|
+
this.buffer = BufferSourceConverter_1.toArrayBuffer(param);
|
|
5937
5980
|
}
|
|
5938
5981
|
else if (Array.isArray(param)) {
|
|
5939
5982
|
this.buffer = new Uint8Array(param);
|
|
@@ -5943,12 +5986,6 @@ class OctetString {
|
|
|
5943
5986
|
}
|
|
5944
5987
|
}
|
|
5945
5988
|
}
|
|
5946
|
-
get byteLength() {
|
|
5947
|
-
return this.buffer.byteLength;
|
|
5948
|
-
}
|
|
5949
|
-
get byteOffset() {
|
|
5950
|
-
return 0;
|
|
5951
|
-
}
|
|
5952
5989
|
fromASN(asn) {
|
|
5953
5990
|
if (!(asn instanceof OctetString$1)) {
|
|
5954
5991
|
throw new TypeError("Argument 'asn' is not instance of ASN.1 OctetString");
|
|
@@ -6635,8 +6672,8 @@ class AsnConvert {
|
|
|
6635
6672
|
return AsnParser.parse(data, target);
|
|
6636
6673
|
}
|
|
6637
6674
|
static toString(data) {
|
|
6638
|
-
const buf =
|
|
6639
|
-
?
|
|
6675
|
+
const buf = BufferSourceConverter_1.isBufferSource(data)
|
|
6676
|
+
? BufferSourceConverter_1.toArrayBuffer(data)
|
|
6640
6677
|
: AsnConvert.serialize(data);
|
|
6641
6678
|
const asn = fromBER(buf);
|
|
6642
6679
|
if (asn.offset === -1) {
|
|
@@ -6661,12 +6698,17 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
|
6661
6698
|
PERFORMANCE OF THIS SOFTWARE.
|
|
6662
6699
|
***************************************************************************** */
|
|
6663
6700
|
|
|
6664
|
-
function __decorate(decorators, target, key, desc) {
|
|
6701
|
+
function __decorate$1(decorators, target, key, desc) {
|
|
6665
6702
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
6666
6703
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6667
6704
|
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
6705
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6669
|
-
}
|
|
6706
|
+
}
|
|
6707
|
+
|
|
6708
|
+
typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
6709
|
+
var e = new Error(message);
|
|
6710
|
+
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
6711
|
+
};
|
|
6670
6712
|
|
|
6671
6713
|
var ipaddr = createCommonjsModule(function (module) {
|
|
6672
6714
|
(function (root) {
|
|
@@ -6873,6 +6915,7 @@ var ipaddr = createCommonjsModule(function (module) {
|
|
|
6873
6915
|
[new IPv4([192, 0, 0, 0]), 24],
|
|
6874
6916
|
[new IPv4([192, 0, 2, 0]), 24],
|
|
6875
6917
|
[new IPv4([192, 88, 99, 0]), 24],
|
|
6918
|
+
[new IPv4([198, 18, 0, 0]), 15],
|
|
6876
6919
|
[new IPv4([198, 51, 100, 0]), 24],
|
|
6877
6920
|
[new IPv4([203, 0, 113, 0]), 24],
|
|
6878
6921
|
[new IPv4([240, 0, 0, 0]), 4]
|
|
@@ -7215,7 +7258,12 @@ var ipaddr = createCommonjsModule(function (module) {
|
|
|
7215
7258
|
// RFC6052, RFC6146
|
|
7216
7259
|
teredo: [new IPv6([0x2001, 0, 0, 0, 0, 0, 0, 0]), 32],
|
|
7217
7260
|
// RFC4291
|
|
7218
|
-
reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]]
|
|
7261
|
+
reserved: [[new IPv6([0x2001, 0xdb8, 0, 0, 0, 0, 0, 0]), 32]],
|
|
7262
|
+
benchmarking: [new IPv6([0x2001, 0x2, 0, 0, 0, 0, 0, 0]), 48],
|
|
7263
|
+
amt: [new IPv6([0x2001, 0x3, 0, 0, 0, 0, 0, 0]), 32],
|
|
7264
|
+
as112v6: [new IPv6([0x2001, 0x4, 0x112, 0, 0, 0, 0, 0]), 48],
|
|
7265
|
+
deprecated: [new IPv6([0x2001, 0x10, 0, 0, 0, 0, 0, 0]), 28],
|
|
7266
|
+
orchid2: [new IPv6([0x2001, 0x20, 0, 0, 0, 0, 0, 0]), 28]
|
|
7219
7267
|
};
|
|
7220
7268
|
|
|
7221
7269
|
// Checks if this address is an IPv4-mapped IPv6 address.
|
|
@@ -7400,11 +7448,9 @@ var ipaddr = createCommonjsModule(function (module) {
|
|
|
7400
7448
|
|
|
7401
7449
|
// Returns the address in compact, human-readable format like
|
|
7402
7450
|
// 2001:db8:8:66::1
|
|
7403
|
-
//
|
|
7404
|
-
// Deprecated: use toRFC5952String() instead.
|
|
7451
|
+
// Calls toRFC5952String under the hood.
|
|
7405
7452
|
IPv6.prototype.toString = function () {
|
|
7406
|
-
|
|
7407
|
-
return this.toNormalizedString().replace(/((^|:)(0(:|$))+)/, '::');
|
|
7453
|
+
return this.toRFC5952String();
|
|
7408
7454
|
};
|
|
7409
7455
|
|
|
7410
7456
|
return IPv6;
|
|
@@ -7689,7 +7735,7 @@ class IpConverter {
|
|
|
7689
7735
|
const addr = ipaddr.fromByteArray(Array.from(uint8));
|
|
7690
7736
|
return addr.toString();
|
|
7691
7737
|
}
|
|
7692
|
-
return this.decodeIP(
|
|
7738
|
+
return this.decodeIP(Convert_1.ToHex(buf));
|
|
7693
7739
|
}
|
|
7694
7740
|
static fromString(text) {
|
|
7695
7741
|
const addr = ipaddr.parse(text);
|
|
@@ -7707,22 +7753,22 @@ let DirectoryString = class DirectoryString {
|
|
|
7707
7753
|
|| this.utf8String || "";
|
|
7708
7754
|
}
|
|
7709
7755
|
};
|
|
7710
|
-
__decorate([
|
|
7756
|
+
__decorate$1([
|
|
7711
7757
|
AsnProp({ type: AsnPropTypes.TeletexString })
|
|
7712
7758
|
], DirectoryString.prototype, "teletexString", void 0);
|
|
7713
|
-
__decorate([
|
|
7759
|
+
__decorate$1([
|
|
7714
7760
|
AsnProp({ type: AsnPropTypes.PrintableString })
|
|
7715
7761
|
], DirectoryString.prototype, "printableString", void 0);
|
|
7716
|
-
__decorate([
|
|
7762
|
+
__decorate$1([
|
|
7717
7763
|
AsnProp({ type: AsnPropTypes.UniversalString })
|
|
7718
7764
|
], DirectoryString.prototype, "universalString", void 0);
|
|
7719
|
-
__decorate([
|
|
7765
|
+
__decorate$1([
|
|
7720
7766
|
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
7721
7767
|
], DirectoryString.prototype, "utf8String", void 0);
|
|
7722
|
-
__decorate([
|
|
7768
|
+
__decorate$1([
|
|
7723
7769
|
AsnProp({ type: AsnPropTypes.BmpString })
|
|
7724
7770
|
], DirectoryString.prototype, "bmpString", void 0);
|
|
7725
|
-
DirectoryString = __decorate([
|
|
7771
|
+
DirectoryString = __decorate$1([
|
|
7726
7772
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
7727
7773
|
], DirectoryString);
|
|
7728
7774
|
let AttributeValue = class AttributeValue extends DirectoryString {
|
|
@@ -7731,16 +7777,16 @@ let AttributeValue = class AttributeValue extends DirectoryString {
|
|
|
7731
7777
|
Object.assign(this, params);
|
|
7732
7778
|
}
|
|
7733
7779
|
toString() {
|
|
7734
|
-
return this.ia5String || (this.anyValue ?
|
|
7780
|
+
return this.ia5String || (this.anyValue ? Convert_1.ToHex(this.anyValue) : super.toString());
|
|
7735
7781
|
}
|
|
7736
7782
|
};
|
|
7737
|
-
__decorate([
|
|
7783
|
+
__decorate$1([
|
|
7738
7784
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
7739
7785
|
], AttributeValue.prototype, "ia5String", void 0);
|
|
7740
|
-
__decorate([
|
|
7786
|
+
__decorate$1([
|
|
7741
7787
|
AsnProp({ type: AsnPropTypes.Any })
|
|
7742
7788
|
], AttributeValue.prototype, "anyValue", void 0);
|
|
7743
|
-
AttributeValue = __decorate([
|
|
7789
|
+
AttributeValue = __decorate$1([
|
|
7744
7790
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
7745
7791
|
], AttributeValue);
|
|
7746
7792
|
class AttributeTypeAndValue {
|
|
@@ -7750,10 +7796,10 @@ class AttributeTypeAndValue {
|
|
|
7750
7796
|
Object.assign(this, params);
|
|
7751
7797
|
}
|
|
7752
7798
|
}
|
|
7753
|
-
__decorate([
|
|
7799
|
+
__decorate$1([
|
|
7754
7800
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
7755
7801
|
], AttributeTypeAndValue.prototype, "type", void 0);
|
|
7756
|
-
__decorate([
|
|
7802
|
+
__decorate$1([
|
|
7757
7803
|
AsnProp({ type: AttributeValue })
|
|
7758
7804
|
], AttributeTypeAndValue.prototype, "value", void 0);
|
|
7759
7805
|
let RelativeDistinguishedName = RelativeDistinguishedName_1 = class RelativeDistinguishedName extends AsnArray {
|
|
@@ -7762,7 +7808,7 @@ let RelativeDistinguishedName = RelativeDistinguishedName_1 = class RelativeDist
|
|
|
7762
7808
|
Object.setPrototypeOf(this, RelativeDistinguishedName_1.prototype);
|
|
7763
7809
|
}
|
|
7764
7810
|
};
|
|
7765
|
-
RelativeDistinguishedName = RelativeDistinguishedName_1 = __decorate([
|
|
7811
|
+
RelativeDistinguishedName = RelativeDistinguishedName_1 = __decorate$1([
|
|
7766
7812
|
AsnType({ type: AsnTypeTypes.Set, itemType: AttributeTypeAndValue })
|
|
7767
7813
|
], RelativeDistinguishedName);
|
|
7768
7814
|
let RDNSequence = RDNSequence_1 = class RDNSequence extends AsnArray {
|
|
@@ -7771,7 +7817,7 @@ let RDNSequence = RDNSequence_1 = class RDNSequence extends AsnArray {
|
|
|
7771
7817
|
Object.setPrototypeOf(this, RDNSequence_1.prototype);
|
|
7772
7818
|
}
|
|
7773
7819
|
};
|
|
7774
|
-
RDNSequence = RDNSequence_1 = __decorate([
|
|
7820
|
+
RDNSequence = RDNSequence_1 = __decorate$1([
|
|
7775
7821
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: RelativeDistinguishedName })
|
|
7776
7822
|
], RDNSequence);
|
|
7777
7823
|
let Name$1 = Name_1 = class Name extends RDNSequence {
|
|
@@ -7780,7 +7826,7 @@ let Name$1 = Name_1 = class Name extends RDNSequence {
|
|
|
7780
7826
|
Object.setPrototypeOf(this, Name_1.prototype);
|
|
7781
7827
|
}
|
|
7782
7828
|
};
|
|
7783
|
-
Name$1 = Name_1 = __decorate([
|
|
7829
|
+
Name$1 = Name_1 = __decorate$1([
|
|
7784
7830
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
7785
7831
|
], Name$1);
|
|
7786
7832
|
|
|
@@ -7795,10 +7841,10 @@ class OtherName {
|
|
|
7795
7841
|
Object.assign(this, params);
|
|
7796
7842
|
}
|
|
7797
7843
|
}
|
|
7798
|
-
__decorate([
|
|
7844
|
+
__decorate$1([
|
|
7799
7845
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
7800
7846
|
], OtherName.prototype, "typeId", void 0);
|
|
7801
|
-
__decorate([
|
|
7847
|
+
__decorate$1([
|
|
7802
7848
|
AsnProp({ type: AsnPropTypes.Any, context: 0 })
|
|
7803
7849
|
], OtherName.prototype, "value", void 0);
|
|
7804
7850
|
class EDIPartyName {
|
|
@@ -7807,10 +7853,10 @@ class EDIPartyName {
|
|
|
7807
7853
|
Object.assign(this, params);
|
|
7808
7854
|
}
|
|
7809
7855
|
}
|
|
7810
|
-
__decorate([
|
|
7856
|
+
__decorate$1([
|
|
7811
7857
|
AsnProp({ type: DirectoryString, optional: true, context: 0, implicit: true })
|
|
7812
7858
|
], EDIPartyName.prototype, "nameAssigner", void 0);
|
|
7813
|
-
__decorate([
|
|
7859
|
+
__decorate$1([
|
|
7814
7860
|
AsnProp({ type: DirectoryString, context: 1, implicit: true })
|
|
7815
7861
|
], EDIPartyName.prototype, "partyName", void 0);
|
|
7816
7862
|
let GeneralName = class GeneralName {
|
|
@@ -7818,34 +7864,34 @@ let GeneralName = class GeneralName {
|
|
|
7818
7864
|
Object.assign(this, params);
|
|
7819
7865
|
}
|
|
7820
7866
|
};
|
|
7821
|
-
__decorate([
|
|
7867
|
+
__decorate$1([
|
|
7822
7868
|
AsnProp({ type: OtherName, context: 0, implicit: true })
|
|
7823
7869
|
], GeneralName.prototype, "otherName", void 0);
|
|
7824
|
-
__decorate([
|
|
7870
|
+
__decorate$1([
|
|
7825
7871
|
AsnProp({ type: AsnPropTypes.IA5String, context: 1, implicit: true })
|
|
7826
7872
|
], GeneralName.prototype, "rfc822Name", void 0);
|
|
7827
|
-
__decorate([
|
|
7873
|
+
__decorate$1([
|
|
7828
7874
|
AsnProp({ type: AsnPropTypes.IA5String, context: 2, implicit: true })
|
|
7829
7875
|
], GeneralName.prototype, "dNSName", void 0);
|
|
7830
|
-
__decorate([
|
|
7876
|
+
__decorate$1([
|
|
7831
7877
|
AsnProp({ type: AsnPropTypes.Any, context: 3, implicit: true })
|
|
7832
7878
|
], GeneralName.prototype, "x400Address", void 0);
|
|
7833
|
-
__decorate([
|
|
7879
|
+
__decorate$1([
|
|
7834
7880
|
AsnProp({ type: Name$1, context: 4, implicit: false })
|
|
7835
7881
|
], GeneralName.prototype, "directoryName", void 0);
|
|
7836
|
-
__decorate([
|
|
7882
|
+
__decorate$1([
|
|
7837
7883
|
AsnProp({ type: EDIPartyName, context: 5 })
|
|
7838
7884
|
], GeneralName.prototype, "ediPartyName", void 0);
|
|
7839
|
-
__decorate([
|
|
7885
|
+
__decorate$1([
|
|
7840
7886
|
AsnProp({ type: AsnPropTypes.IA5String, context: 6, implicit: true })
|
|
7841
7887
|
], GeneralName.prototype, "uniformResourceIdentifier", void 0);
|
|
7842
|
-
__decorate([
|
|
7888
|
+
__decorate$1([
|
|
7843
7889
|
AsnProp({ type: AsnPropTypes.OctetString, context: 7, implicit: true, converter: AsnIpConverter })
|
|
7844
7890
|
], GeneralName.prototype, "iPAddress", void 0);
|
|
7845
|
-
__decorate([
|
|
7891
|
+
__decorate$1([
|
|
7846
7892
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier, context: 8, implicit: true })
|
|
7847
7893
|
], GeneralName.prototype, "registeredID", void 0);
|
|
7848
|
-
GeneralName = __decorate([
|
|
7894
|
+
GeneralName = __decorate$1([
|
|
7849
7895
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
7850
7896
|
], GeneralName);
|
|
7851
7897
|
|
|
@@ -7862,10 +7908,10 @@ class AccessDescription {
|
|
|
7862
7908
|
Object.assign(this, params);
|
|
7863
7909
|
}
|
|
7864
7910
|
}
|
|
7865
|
-
__decorate([
|
|
7911
|
+
__decorate$1([
|
|
7866
7912
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
7867
7913
|
], AccessDescription.prototype, "accessMethod", void 0);
|
|
7868
|
-
__decorate([
|
|
7914
|
+
__decorate$1([
|
|
7869
7915
|
AsnProp({ type: GeneralName })
|
|
7870
7916
|
], AccessDescription.prototype, "accessLocation", void 0);
|
|
7871
7917
|
let AuthorityInfoAccessSyntax = AuthorityInfoAccessSyntax_1 = class AuthorityInfoAccessSyntax extends AsnArray {
|
|
@@ -7874,7 +7920,7 @@ let AuthorityInfoAccessSyntax = AuthorityInfoAccessSyntax_1 = class AuthorityInf
|
|
|
7874
7920
|
Object.setPrototypeOf(this, AuthorityInfoAccessSyntax_1.prototype);
|
|
7875
7921
|
}
|
|
7876
7922
|
};
|
|
7877
|
-
AuthorityInfoAccessSyntax = AuthorityInfoAccessSyntax_1 = __decorate([
|
|
7923
|
+
AuthorityInfoAccessSyntax = AuthorityInfoAccessSyntax_1 = __decorate$1([
|
|
7878
7924
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: AccessDescription })
|
|
7879
7925
|
], AuthorityInfoAccessSyntax);
|
|
7880
7926
|
|
|
@@ -7888,13 +7934,13 @@ class AuthorityKeyIdentifier {
|
|
|
7888
7934
|
}
|
|
7889
7935
|
}
|
|
7890
7936
|
}
|
|
7891
|
-
__decorate([
|
|
7937
|
+
__decorate$1([
|
|
7892
7938
|
AsnProp({ type: KeyIdentifier, context: 0, optional: true, implicit: true })
|
|
7893
7939
|
], AuthorityKeyIdentifier.prototype, "keyIdentifier", void 0);
|
|
7894
|
-
__decorate([
|
|
7940
|
+
__decorate$1([
|
|
7895
7941
|
AsnProp({ type: GeneralName, context: 1, optional: true, implicit: true, repeated: "sequence" })
|
|
7896
7942
|
], AuthorityKeyIdentifier.prototype, "authorityCertIssuer", void 0);
|
|
7897
|
-
__decorate([
|
|
7943
|
+
__decorate$1([
|
|
7898
7944
|
AsnProp({
|
|
7899
7945
|
type: AsnPropTypes.Integer,
|
|
7900
7946
|
context: 2,
|
|
@@ -7911,10 +7957,10 @@ class BasicConstraints {
|
|
|
7911
7957
|
Object.assign(this, params);
|
|
7912
7958
|
}
|
|
7913
7959
|
}
|
|
7914
|
-
__decorate([
|
|
7960
|
+
__decorate$1([
|
|
7915
7961
|
AsnProp({ type: AsnPropTypes.Boolean, defaultValue: false })
|
|
7916
7962
|
], BasicConstraints.prototype, "cA", void 0);
|
|
7917
|
-
__decorate([
|
|
7963
|
+
__decorate$1([
|
|
7918
7964
|
AsnProp({ type: AsnPropTypes.Integer, optional: true })
|
|
7919
7965
|
], BasicConstraints.prototype, "pathLenConstraint", void 0);
|
|
7920
7966
|
|
|
@@ -7925,7 +7971,7 @@ let GeneralNames = GeneralNames_1 = class GeneralNames extends AsnArray {
|
|
|
7925
7971
|
Object.setPrototypeOf(this, GeneralNames_1.prototype);
|
|
7926
7972
|
}
|
|
7927
7973
|
};
|
|
7928
|
-
GeneralNames = GeneralNames_1 = __decorate([
|
|
7974
|
+
GeneralNames = GeneralNames_1 = __decorate$1([
|
|
7929
7975
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: GeneralName })
|
|
7930
7976
|
], GeneralNames);
|
|
7931
7977
|
|
|
@@ -7937,7 +7983,7 @@ let CertificateIssuer = CertificateIssuer_1 = class CertificateIssuer extends Ge
|
|
|
7937
7983
|
Object.setPrototypeOf(this, CertificateIssuer_1.prototype);
|
|
7938
7984
|
}
|
|
7939
7985
|
};
|
|
7940
|
-
CertificateIssuer = CertificateIssuer_1 = __decorate([
|
|
7986
|
+
CertificateIssuer = CertificateIssuer_1 = __decorate$1([
|
|
7941
7987
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
7942
7988
|
], CertificateIssuer);
|
|
7943
7989
|
|
|
@@ -7951,19 +7997,19 @@ let DisplayText = class DisplayText {
|
|
|
7951
7997
|
return this.ia5String || this.visibleString || this.bmpString || this.utf8String || "";
|
|
7952
7998
|
}
|
|
7953
7999
|
};
|
|
7954
|
-
__decorate([
|
|
8000
|
+
__decorate$1([
|
|
7955
8001
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
7956
8002
|
], DisplayText.prototype, "ia5String", void 0);
|
|
7957
|
-
__decorate([
|
|
8003
|
+
__decorate$1([
|
|
7958
8004
|
AsnProp({ type: AsnPropTypes.VisibleString })
|
|
7959
8005
|
], DisplayText.prototype, "visibleString", void 0);
|
|
7960
|
-
__decorate([
|
|
8006
|
+
__decorate$1([
|
|
7961
8007
|
AsnProp({ type: AsnPropTypes.BmpString })
|
|
7962
8008
|
], DisplayText.prototype, "bmpString", void 0);
|
|
7963
|
-
__decorate([
|
|
8009
|
+
__decorate$1([
|
|
7964
8010
|
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
7965
8011
|
], DisplayText.prototype, "utf8String", void 0);
|
|
7966
|
-
DisplayText = __decorate([
|
|
8012
|
+
DisplayText = __decorate$1([
|
|
7967
8013
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
7968
8014
|
], DisplayText);
|
|
7969
8015
|
class NoticeReference {
|
|
@@ -7973,10 +8019,10 @@ class NoticeReference {
|
|
|
7973
8019
|
Object.assign(this, params);
|
|
7974
8020
|
}
|
|
7975
8021
|
}
|
|
7976
|
-
__decorate([
|
|
8022
|
+
__decorate$1([
|
|
7977
8023
|
AsnProp({ type: DisplayText })
|
|
7978
8024
|
], NoticeReference.prototype, "organization", void 0);
|
|
7979
|
-
__decorate([
|
|
8025
|
+
__decorate$1([
|
|
7980
8026
|
AsnProp({ type: AsnPropTypes.Integer, repeated: "sequence" })
|
|
7981
8027
|
], NoticeReference.prototype, "noticeNumbers", void 0);
|
|
7982
8028
|
class UserNotice {
|
|
@@ -7984,10 +8030,10 @@ class UserNotice {
|
|
|
7984
8030
|
Object.assign(this, params);
|
|
7985
8031
|
}
|
|
7986
8032
|
}
|
|
7987
|
-
__decorate([
|
|
8033
|
+
__decorate$1([
|
|
7988
8034
|
AsnProp({ type: NoticeReference, optional: true })
|
|
7989
8035
|
], UserNotice.prototype, "noticeRef", void 0);
|
|
7990
|
-
__decorate([
|
|
8036
|
+
__decorate$1([
|
|
7991
8037
|
AsnProp({ type: DisplayText, optional: true })
|
|
7992
8038
|
], UserNotice.prototype, "explicitText", void 0);
|
|
7993
8039
|
let Qualifier = class Qualifier {
|
|
@@ -7995,13 +8041,13 @@ let Qualifier = class Qualifier {
|
|
|
7995
8041
|
Object.assign(this, params);
|
|
7996
8042
|
}
|
|
7997
8043
|
};
|
|
7998
|
-
__decorate([
|
|
8044
|
+
__decorate$1([
|
|
7999
8045
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
8000
8046
|
], Qualifier.prototype, "cPSuri", void 0);
|
|
8001
|
-
__decorate([
|
|
8047
|
+
__decorate$1([
|
|
8002
8048
|
AsnProp({ type: UserNotice })
|
|
8003
8049
|
], Qualifier.prototype, "userNotice", void 0);
|
|
8004
|
-
Qualifier = __decorate([
|
|
8050
|
+
Qualifier = __decorate$1([
|
|
8005
8051
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
8006
8052
|
], Qualifier);
|
|
8007
8053
|
class PolicyQualifierInfo {
|
|
@@ -8011,10 +8057,10 @@ class PolicyQualifierInfo {
|
|
|
8011
8057
|
Object.assign(this, params);
|
|
8012
8058
|
}
|
|
8013
8059
|
}
|
|
8014
|
-
__decorate([
|
|
8060
|
+
__decorate$1([
|
|
8015
8061
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
8016
8062
|
], PolicyQualifierInfo.prototype, "policyQualifierId", void 0);
|
|
8017
|
-
__decorate([
|
|
8063
|
+
__decorate$1([
|
|
8018
8064
|
AsnProp({ type: AsnPropTypes.Any })
|
|
8019
8065
|
], PolicyQualifierInfo.prototype, "qualifier", void 0);
|
|
8020
8066
|
class PolicyInformation {
|
|
@@ -8023,10 +8069,10 @@ class PolicyInformation {
|
|
|
8023
8069
|
Object.assign(this, params);
|
|
8024
8070
|
}
|
|
8025
8071
|
}
|
|
8026
|
-
__decorate([
|
|
8072
|
+
__decorate$1([
|
|
8027
8073
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
8028
8074
|
], PolicyInformation.prototype, "policyIdentifier", void 0);
|
|
8029
|
-
__decorate([
|
|
8075
|
+
__decorate$1([
|
|
8030
8076
|
AsnProp({ type: PolicyQualifierInfo, repeated: "sequence", optional: true })
|
|
8031
8077
|
], PolicyInformation.prototype, "policyQualifiers", void 0);
|
|
8032
8078
|
let CertificatePolicies = CertificatePolicies_1 = class CertificatePolicies extends AsnArray {
|
|
@@ -8035,7 +8081,7 @@ let CertificatePolicies = CertificatePolicies_1 = class CertificatePolicies exte
|
|
|
8035
8081
|
Object.setPrototypeOf(this, CertificatePolicies_1.prototype);
|
|
8036
8082
|
}
|
|
8037
8083
|
};
|
|
8038
|
-
CertificatePolicies = CertificatePolicies_1 = __decorate([
|
|
8084
|
+
CertificatePolicies = CertificatePolicies_1 = __decorate$1([
|
|
8039
8085
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: PolicyInformation })
|
|
8040
8086
|
], CertificatePolicies);
|
|
8041
8087
|
|
|
@@ -8045,17 +8091,17 @@ let CRLNumber = class CRLNumber {
|
|
|
8045
8091
|
this.value = value;
|
|
8046
8092
|
}
|
|
8047
8093
|
};
|
|
8048
|
-
__decorate([
|
|
8094
|
+
__decorate$1([
|
|
8049
8095
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
8050
8096
|
], CRLNumber.prototype, "value", void 0);
|
|
8051
|
-
CRLNumber = __decorate([
|
|
8097
|
+
CRLNumber = __decorate$1([
|
|
8052
8098
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
8053
8099
|
], CRLNumber);
|
|
8054
8100
|
|
|
8055
8101
|
const id_ce_deltaCRLIndicator = `${id_ce}.27`;
|
|
8056
8102
|
let BaseCRLNumber = class BaseCRLNumber extends CRLNumber {
|
|
8057
8103
|
};
|
|
8058
|
-
BaseCRLNumber = __decorate([
|
|
8104
|
+
BaseCRLNumber = __decorate$1([
|
|
8059
8105
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
8060
8106
|
], BaseCRLNumber);
|
|
8061
8107
|
|
|
@@ -8115,13 +8161,13 @@ let DistributionPointName = class DistributionPointName {
|
|
|
8115
8161
|
Object.assign(this, params);
|
|
8116
8162
|
}
|
|
8117
8163
|
};
|
|
8118
|
-
__decorate([
|
|
8164
|
+
__decorate$1([
|
|
8119
8165
|
AsnProp({ type: GeneralName, context: 0, repeated: "sequence", implicit: true })
|
|
8120
8166
|
], DistributionPointName.prototype, "fullName", void 0);
|
|
8121
|
-
__decorate([
|
|
8167
|
+
__decorate$1([
|
|
8122
8168
|
AsnProp({ type: RelativeDistinguishedName, context: 1, implicit: true })
|
|
8123
8169
|
], DistributionPointName.prototype, "nameRelativeToCRLIssuer", void 0);
|
|
8124
|
-
DistributionPointName = __decorate([
|
|
8170
|
+
DistributionPointName = __decorate$1([
|
|
8125
8171
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
8126
8172
|
], DistributionPointName);
|
|
8127
8173
|
class DistributionPoint {
|
|
@@ -8129,13 +8175,13 @@ class DistributionPoint {
|
|
|
8129
8175
|
Object.assign(this, params);
|
|
8130
8176
|
}
|
|
8131
8177
|
}
|
|
8132
|
-
__decorate([
|
|
8178
|
+
__decorate$1([
|
|
8133
8179
|
AsnProp({ type: DistributionPointName, context: 0, optional: true })
|
|
8134
8180
|
], DistributionPoint.prototype, "distributionPoint", void 0);
|
|
8135
|
-
__decorate([
|
|
8181
|
+
__decorate$1([
|
|
8136
8182
|
AsnProp({ type: Reason, context: 1, optional: true, implicit: true })
|
|
8137
8183
|
], DistributionPoint.prototype, "reasons", void 0);
|
|
8138
|
-
__decorate([
|
|
8184
|
+
__decorate$1([
|
|
8139
8185
|
AsnProp({ type: GeneralName, context: 2, optional: true, repeated: "sequence", implicit: true })
|
|
8140
8186
|
], DistributionPoint.prototype, "cRLIssuer", void 0);
|
|
8141
8187
|
let CRLDistributionPoints = CRLDistributionPoints_1 = class CRLDistributionPoints extends AsnArray {
|
|
@@ -8144,7 +8190,7 @@ let CRLDistributionPoints = CRLDistributionPoints_1 = class CRLDistributionPoint
|
|
|
8144
8190
|
Object.setPrototypeOf(this, CRLDistributionPoints_1.prototype);
|
|
8145
8191
|
}
|
|
8146
8192
|
};
|
|
8147
|
-
CRLDistributionPoints = CRLDistributionPoints_1 = __decorate([
|
|
8193
|
+
CRLDistributionPoints = CRLDistributionPoints_1 = __decorate$1([
|
|
8148
8194
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: DistributionPoint })
|
|
8149
8195
|
], CRLDistributionPoints);
|
|
8150
8196
|
|
|
@@ -8155,7 +8201,7 @@ let FreshestCRL = FreshestCRL_1 = class FreshestCRL extends CRLDistributionPoint
|
|
|
8155
8201
|
Object.setPrototypeOf(this, FreshestCRL_1.prototype);
|
|
8156
8202
|
}
|
|
8157
8203
|
};
|
|
8158
|
-
FreshestCRL = FreshestCRL_1 = __decorate([
|
|
8204
|
+
FreshestCRL = FreshestCRL_1 = __decorate$1([
|
|
8159
8205
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: DistributionPoint })
|
|
8160
8206
|
], FreshestCRL);
|
|
8161
8207
|
|
|
@@ -8170,22 +8216,22 @@ class IssuingDistributionPoint {
|
|
|
8170
8216
|
}
|
|
8171
8217
|
}
|
|
8172
8218
|
IssuingDistributionPoint.ONLY = false;
|
|
8173
|
-
__decorate([
|
|
8219
|
+
__decorate$1([
|
|
8174
8220
|
AsnProp({ type: DistributionPointName, context: 0, optional: true })
|
|
8175
8221
|
], IssuingDistributionPoint.prototype, "distributionPoint", void 0);
|
|
8176
|
-
__decorate([
|
|
8222
|
+
__decorate$1([
|
|
8177
8223
|
AsnProp({ type: AsnPropTypes.Boolean, context: 1, defaultValue: IssuingDistributionPoint.ONLY, implicit: true })
|
|
8178
8224
|
], IssuingDistributionPoint.prototype, "onlyContainsUserCerts", void 0);
|
|
8179
|
-
__decorate([
|
|
8225
|
+
__decorate$1([
|
|
8180
8226
|
AsnProp({ type: AsnPropTypes.Boolean, context: 2, defaultValue: IssuingDistributionPoint.ONLY, implicit: true })
|
|
8181
8227
|
], IssuingDistributionPoint.prototype, "onlyContainsCACerts", void 0);
|
|
8182
|
-
__decorate([
|
|
8228
|
+
__decorate$1([
|
|
8183
8229
|
AsnProp({ type: Reason, context: 3, optional: true, implicit: true })
|
|
8184
8230
|
], IssuingDistributionPoint.prototype, "onlySomeReasons", void 0);
|
|
8185
|
-
__decorate([
|
|
8231
|
+
__decorate$1([
|
|
8186
8232
|
AsnProp({ type: AsnPropTypes.Boolean, context: 4, defaultValue: IssuingDistributionPoint.ONLY, implicit: true })
|
|
8187
8233
|
], IssuingDistributionPoint.prototype, "indirectCRL", void 0);
|
|
8188
|
-
__decorate([
|
|
8234
|
+
__decorate$1([
|
|
8189
8235
|
AsnProp({ type: AsnPropTypes.Boolean, context: 5, defaultValue: IssuingDistributionPoint.ONLY, implicit: true })
|
|
8190
8236
|
], IssuingDistributionPoint.prototype, "onlyContainsAttributeCerts", void 0);
|
|
8191
8237
|
|
|
@@ -8215,10 +8261,10 @@ let CRLReason = class CRLReason {
|
|
|
8215
8261
|
return this.toJSON();
|
|
8216
8262
|
}
|
|
8217
8263
|
};
|
|
8218
|
-
__decorate([
|
|
8264
|
+
__decorate$1([
|
|
8219
8265
|
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
8220
8266
|
], CRLReason.prototype, "reason", void 0);
|
|
8221
|
-
CRLReason = __decorate([
|
|
8267
|
+
CRLReason = __decorate$1([
|
|
8222
8268
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
8223
8269
|
], CRLReason);
|
|
8224
8270
|
|
|
@@ -8230,7 +8276,7 @@ let ExtendedKeyUsage = ExtendedKeyUsage_1 = class ExtendedKeyUsage extends AsnAr
|
|
|
8230
8276
|
Object.setPrototypeOf(this, ExtendedKeyUsage_1.prototype);
|
|
8231
8277
|
}
|
|
8232
8278
|
};
|
|
8233
|
-
ExtendedKeyUsage = ExtendedKeyUsage_1 = __decorate([
|
|
8279
|
+
ExtendedKeyUsage = ExtendedKeyUsage_1 = __decorate$1([
|
|
8234
8280
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: AsnPropTypes.ObjectIdentifier })
|
|
8235
8281
|
], ExtendedKeyUsage);
|
|
8236
8282
|
|
|
@@ -8240,10 +8286,10 @@ let InhibitAnyPolicy = class InhibitAnyPolicy {
|
|
|
8240
8286
|
this.value = value;
|
|
8241
8287
|
}
|
|
8242
8288
|
};
|
|
8243
|
-
__decorate([
|
|
8289
|
+
__decorate$1([
|
|
8244
8290
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
8245
8291
|
], InhibitAnyPolicy.prototype, "value", void 0);
|
|
8246
|
-
InhibitAnyPolicy = __decorate([
|
|
8292
|
+
InhibitAnyPolicy = __decorate$1([
|
|
8247
8293
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
8248
8294
|
], InhibitAnyPolicy);
|
|
8249
8295
|
|
|
@@ -8256,10 +8302,10 @@ let InvalidityDate = class InvalidityDate {
|
|
|
8256
8302
|
}
|
|
8257
8303
|
}
|
|
8258
8304
|
};
|
|
8259
|
-
__decorate([
|
|
8305
|
+
__decorate$1([
|
|
8260
8306
|
AsnProp({ type: AsnPropTypes.GeneralizedTime })
|
|
8261
8307
|
], InvalidityDate.prototype, "value", void 0);
|
|
8262
|
-
InvalidityDate = __decorate([
|
|
8308
|
+
InvalidityDate = __decorate$1([
|
|
8263
8309
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
8264
8310
|
], InvalidityDate);
|
|
8265
8311
|
|
|
@@ -8271,7 +8317,7 @@ let IssueAlternativeName = IssueAlternativeName_1 = class IssueAlternativeName e
|
|
|
8271
8317
|
Object.setPrototypeOf(this, IssueAlternativeName_1.prototype);
|
|
8272
8318
|
}
|
|
8273
8319
|
};
|
|
8274
|
-
IssueAlternativeName = IssueAlternativeName_1 = __decorate([
|
|
8320
|
+
IssueAlternativeName = IssueAlternativeName_1 = __decorate$1([
|
|
8275
8321
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
8276
8322
|
], IssueAlternativeName);
|
|
8277
8323
|
|
|
@@ -8335,13 +8381,13 @@ class GeneralSubtree {
|
|
|
8335
8381
|
Object.assign(this, params);
|
|
8336
8382
|
}
|
|
8337
8383
|
}
|
|
8338
|
-
__decorate([
|
|
8384
|
+
__decorate$1([
|
|
8339
8385
|
AsnProp({ type: GeneralName })
|
|
8340
8386
|
], GeneralSubtree.prototype, "base", void 0);
|
|
8341
|
-
__decorate([
|
|
8387
|
+
__decorate$1([
|
|
8342
8388
|
AsnProp({ type: AsnPropTypes.Integer, context: 0, defaultValue: 0, implicit: true })
|
|
8343
8389
|
], GeneralSubtree.prototype, "minimum", void 0);
|
|
8344
|
-
__decorate([
|
|
8390
|
+
__decorate$1([
|
|
8345
8391
|
AsnProp({ type: AsnPropTypes.Integer, context: 1, optional: true, implicit: true })
|
|
8346
8392
|
], GeneralSubtree.prototype, "maximum", void 0);
|
|
8347
8393
|
let GeneralSubtrees = GeneralSubtrees_1 = class GeneralSubtrees extends AsnArray {
|
|
@@ -8350,7 +8396,7 @@ let GeneralSubtrees = GeneralSubtrees_1 = class GeneralSubtrees extends AsnArray
|
|
|
8350
8396
|
Object.setPrototypeOf(this, GeneralSubtrees_1.prototype);
|
|
8351
8397
|
}
|
|
8352
8398
|
};
|
|
8353
|
-
GeneralSubtrees = GeneralSubtrees_1 = __decorate([
|
|
8399
|
+
GeneralSubtrees = GeneralSubtrees_1 = __decorate$1([
|
|
8354
8400
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: GeneralSubtree })
|
|
8355
8401
|
], GeneralSubtrees);
|
|
8356
8402
|
class NameConstraints {
|
|
@@ -8358,10 +8404,10 @@ class NameConstraints {
|
|
|
8358
8404
|
Object.assign(this, params);
|
|
8359
8405
|
}
|
|
8360
8406
|
}
|
|
8361
|
-
__decorate([
|
|
8407
|
+
__decorate$1([
|
|
8362
8408
|
AsnProp({ type: GeneralSubtrees, context: 0, optional: true, implicit: true })
|
|
8363
8409
|
], NameConstraints.prototype, "permittedSubtrees", void 0);
|
|
8364
|
-
__decorate([
|
|
8410
|
+
__decorate$1([
|
|
8365
8411
|
AsnProp({ type: GeneralSubtrees, context: 1, optional: true, implicit: true })
|
|
8366
8412
|
], NameConstraints.prototype, "excludedSubtrees", void 0);
|
|
8367
8413
|
|
|
@@ -8371,13 +8417,13 @@ class PolicyConstraints {
|
|
|
8371
8417
|
Object.assign(this, params);
|
|
8372
8418
|
}
|
|
8373
8419
|
}
|
|
8374
|
-
__decorate([
|
|
8420
|
+
__decorate$1([
|
|
8375
8421
|
AsnProp({
|
|
8376
8422
|
type: AsnPropTypes.Integer, context: 0, implicit: true, optional: true,
|
|
8377
8423
|
converter: AsnIntegerArrayBufferConverter,
|
|
8378
8424
|
})
|
|
8379
8425
|
], PolicyConstraints.prototype, "requireExplicitPolicy", void 0);
|
|
8380
|
-
__decorate([
|
|
8426
|
+
__decorate$1([
|
|
8381
8427
|
AsnProp({
|
|
8382
8428
|
type: AsnPropTypes.Integer, context: 1, implicit: true, optional: true,
|
|
8383
8429
|
converter: AsnIntegerArrayBufferConverter,
|
|
@@ -8393,10 +8439,10 @@ class PolicyMapping {
|
|
|
8393
8439
|
Object.assign(this, params);
|
|
8394
8440
|
}
|
|
8395
8441
|
}
|
|
8396
|
-
__decorate([
|
|
8442
|
+
__decorate$1([
|
|
8397
8443
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
8398
8444
|
], PolicyMapping.prototype, "issuerDomainPolicy", void 0);
|
|
8399
|
-
__decorate([
|
|
8445
|
+
__decorate$1([
|
|
8400
8446
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
8401
8447
|
], PolicyMapping.prototype, "subjectDomainPolicy", void 0);
|
|
8402
8448
|
let PolicyMappings = PolicyMappings_1 = class PolicyMappings extends AsnArray {
|
|
@@ -8405,7 +8451,7 @@ let PolicyMappings = PolicyMappings_1 = class PolicyMappings extends AsnArray {
|
|
|
8405
8451
|
Object.setPrototypeOf(this, PolicyMappings_1.prototype);
|
|
8406
8452
|
}
|
|
8407
8453
|
};
|
|
8408
|
-
PolicyMappings = PolicyMappings_1 = __decorate([
|
|
8454
|
+
PolicyMappings = PolicyMappings_1 = __decorate$1([
|
|
8409
8455
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: PolicyMapping })
|
|
8410
8456
|
], PolicyMappings);
|
|
8411
8457
|
|
|
@@ -8417,7 +8463,7 @@ let SubjectAlternativeName = SubjectAlternativeName_1 = class SubjectAlternative
|
|
|
8417
8463
|
Object.setPrototypeOf(this, SubjectAlternativeName_1.prototype);
|
|
8418
8464
|
}
|
|
8419
8465
|
};
|
|
8420
|
-
SubjectAlternativeName = SubjectAlternativeName_1 = __decorate([
|
|
8466
|
+
SubjectAlternativeName = SubjectAlternativeName_1 = __decorate$1([
|
|
8421
8467
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
8422
8468
|
], SubjectAlternativeName);
|
|
8423
8469
|
|
|
@@ -8428,10 +8474,10 @@ class Attribute$1 {
|
|
|
8428
8474
|
Object.assign(this, params);
|
|
8429
8475
|
}
|
|
8430
8476
|
}
|
|
8431
|
-
__decorate([
|
|
8477
|
+
__decorate$1([
|
|
8432
8478
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
8433
8479
|
], Attribute$1.prototype, "type", void 0);
|
|
8434
|
-
__decorate([
|
|
8480
|
+
__decorate$1([
|
|
8435
8481
|
AsnProp({ type: AsnPropTypes.Any, repeated: "set" })
|
|
8436
8482
|
], Attribute$1.prototype, "values", void 0);
|
|
8437
8483
|
|
|
@@ -8443,7 +8489,7 @@ let SubjectDirectoryAttributes = SubjectDirectoryAttributes_1 = class SubjectDir
|
|
|
8443
8489
|
Object.setPrototypeOf(this, SubjectDirectoryAttributes_1.prototype);
|
|
8444
8490
|
}
|
|
8445
8491
|
};
|
|
8446
|
-
SubjectDirectoryAttributes = SubjectDirectoryAttributes_1 = __decorate([
|
|
8492
|
+
SubjectDirectoryAttributes = SubjectDirectoryAttributes_1 = __decorate$1([
|
|
8447
8493
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: Attribute$1 })
|
|
8448
8494
|
], SubjectDirectoryAttributes);
|
|
8449
8495
|
|
|
@@ -8457,10 +8503,10 @@ class PrivateKeyUsagePeriod {
|
|
|
8457
8503
|
Object.assign(this, params);
|
|
8458
8504
|
}
|
|
8459
8505
|
}
|
|
8460
|
-
__decorate([
|
|
8506
|
+
__decorate$1([
|
|
8461
8507
|
AsnProp({ type: AsnPropTypes.GeneralizedTime, context: 0, implicit: true, optional: true })
|
|
8462
8508
|
], PrivateKeyUsagePeriod.prototype, "notBefore", void 0);
|
|
8463
|
-
__decorate([
|
|
8509
|
+
__decorate$1([
|
|
8464
8510
|
AsnProp({ type: AsnPropTypes.GeneralizedTime, context: 1, implicit: true, optional: true, })
|
|
8465
8511
|
], PrivateKeyUsagePeriod.prototype, "notAfter", void 0);
|
|
8466
8512
|
|
|
@@ -8497,10 +8543,10 @@ class EntrustVersionInfo {
|
|
|
8497
8543
|
Object.assign(this, params);
|
|
8498
8544
|
}
|
|
8499
8545
|
}
|
|
8500
|
-
__decorate([
|
|
8546
|
+
__decorate$1([
|
|
8501
8547
|
AsnProp({ type: AsnPropTypes.GeneralString })
|
|
8502
8548
|
], EntrustVersionInfo.prototype, "entrustVers", void 0);
|
|
8503
|
-
__decorate([
|
|
8549
|
+
__decorate$1([
|
|
8504
8550
|
AsnProp({ type: EntrustInfo })
|
|
8505
8551
|
], EntrustVersionInfo.prototype, "entrustInfoFlags", void 0);
|
|
8506
8552
|
|
|
@@ -8512,7 +8558,7 @@ let SubjectInfoAccessSyntax = SubjectInfoAccessSyntax_1 = class SubjectInfoAcces
|
|
|
8512
8558
|
Object.setPrototypeOf(this, SubjectInfoAccessSyntax_1.prototype);
|
|
8513
8559
|
}
|
|
8514
8560
|
};
|
|
8515
|
-
SubjectInfoAccessSyntax = SubjectInfoAccessSyntax_1 = __decorate([
|
|
8561
|
+
SubjectInfoAccessSyntax = SubjectInfoAccessSyntax_1 = __decorate$1([
|
|
8516
8562
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: AccessDescription })
|
|
8517
8563
|
], SubjectInfoAccessSyntax);
|
|
8518
8564
|
|
|
@@ -8525,17 +8571,17 @@ class AlgorithmIdentifier {
|
|
|
8525
8571
|
return data instanceof AlgorithmIdentifier
|
|
8526
8572
|
&& data.algorithm == this.algorithm
|
|
8527
8573
|
&& ((data.parameters && this.parameters
|
|
8528
|
-
&&
|
|
8574
|
+
&& isEqual_1(data.parameters, this.parameters))
|
|
8529
8575
|
||
|
|
8530
8576
|
(data.parameters === this.parameters));
|
|
8531
8577
|
}
|
|
8532
8578
|
}
|
|
8533
|
-
__decorate([
|
|
8579
|
+
__decorate$1([
|
|
8534
8580
|
AsnProp({
|
|
8535
8581
|
type: AsnPropTypes.ObjectIdentifier,
|
|
8536
8582
|
})
|
|
8537
8583
|
], AlgorithmIdentifier.prototype, "algorithm", void 0);
|
|
8538
|
-
__decorate([
|
|
8584
|
+
__decorate$1([
|
|
8539
8585
|
AsnProp({
|
|
8540
8586
|
type: AsnPropTypes.Any,
|
|
8541
8587
|
optional: true,
|
|
@@ -8549,10 +8595,10 @@ class SubjectPublicKeyInfo {
|
|
|
8549
8595
|
Object.assign(this, params);
|
|
8550
8596
|
}
|
|
8551
8597
|
}
|
|
8552
|
-
__decorate([
|
|
8598
|
+
__decorate$1([
|
|
8553
8599
|
AsnProp({ type: AlgorithmIdentifier })
|
|
8554
8600
|
], SubjectPublicKeyInfo.prototype, "algorithm", void 0);
|
|
8555
|
-
__decorate([
|
|
8601
|
+
__decorate$1([
|
|
8556
8602
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
8557
8603
|
], SubjectPublicKeyInfo.prototype, "subjectPublicKey", void 0);
|
|
8558
8604
|
|
|
@@ -8581,17 +8627,17 @@ let Time = class Time {
|
|
|
8581
8627
|
return time;
|
|
8582
8628
|
}
|
|
8583
8629
|
};
|
|
8584
|
-
__decorate([
|
|
8630
|
+
__decorate$1([
|
|
8585
8631
|
AsnProp({
|
|
8586
8632
|
type: AsnPropTypes.UTCTime,
|
|
8587
8633
|
})
|
|
8588
8634
|
], Time.prototype, "utcTime", void 0);
|
|
8589
|
-
__decorate([
|
|
8635
|
+
__decorate$1([
|
|
8590
8636
|
AsnProp({
|
|
8591
8637
|
type: AsnPropTypes.GeneralizedTime,
|
|
8592
8638
|
})
|
|
8593
8639
|
], Time.prototype, "generalTime", void 0);
|
|
8594
|
-
Time = __decorate([
|
|
8640
|
+
Time = __decorate$1([
|
|
8595
8641
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
8596
8642
|
], Time);
|
|
8597
8643
|
|
|
@@ -8605,10 +8651,10 @@ class Validity {
|
|
|
8605
8651
|
}
|
|
8606
8652
|
}
|
|
8607
8653
|
}
|
|
8608
|
-
__decorate([
|
|
8654
|
+
__decorate$1([
|
|
8609
8655
|
AsnProp({ type: Time })
|
|
8610
8656
|
], Validity.prototype, "notBefore", void 0);
|
|
8611
|
-
__decorate([
|
|
8657
|
+
__decorate$1([
|
|
8612
8658
|
AsnProp({ type: Time })
|
|
8613
8659
|
], Validity.prototype, "notAfter", void 0);
|
|
8614
8660
|
|
|
@@ -8622,16 +8668,16 @@ class Extension$1 {
|
|
|
8622
8668
|
}
|
|
8623
8669
|
}
|
|
8624
8670
|
Extension$1.CRITICAL = false;
|
|
8625
|
-
__decorate([
|
|
8671
|
+
__decorate$1([
|
|
8626
8672
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
8627
8673
|
], Extension$1.prototype, "extnID", void 0);
|
|
8628
|
-
__decorate([
|
|
8674
|
+
__decorate$1([
|
|
8629
8675
|
AsnProp({
|
|
8630
8676
|
type: AsnPropTypes.Boolean,
|
|
8631
8677
|
defaultValue: Extension$1.CRITICAL,
|
|
8632
8678
|
})
|
|
8633
8679
|
], Extension$1.prototype, "critical", void 0);
|
|
8634
|
-
__decorate([
|
|
8680
|
+
__decorate$1([
|
|
8635
8681
|
AsnProp({ type: OctetString })
|
|
8636
8682
|
], Extension$1.prototype, "extnValue", void 0);
|
|
8637
8683
|
let Extensions = Extensions_1 = class Extensions extends AsnArray {
|
|
@@ -8640,20 +8686,20 @@ let Extensions = Extensions_1 = class Extensions extends AsnArray {
|
|
|
8640
8686
|
Object.setPrototypeOf(this, Extensions_1.prototype);
|
|
8641
8687
|
}
|
|
8642
8688
|
};
|
|
8643
|
-
Extensions = Extensions_1 = __decorate([
|
|
8689
|
+
Extensions = Extensions_1 = __decorate$1([
|
|
8644
8690
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: Extension$1 })
|
|
8645
8691
|
], Extensions);
|
|
8646
8692
|
|
|
8647
|
-
var Version$
|
|
8693
|
+
var Version$4;
|
|
8648
8694
|
(function (Version) {
|
|
8649
8695
|
Version[Version["v1"] = 0] = "v1";
|
|
8650
8696
|
Version[Version["v2"] = 1] = "v2";
|
|
8651
8697
|
Version[Version["v3"] = 2] = "v3";
|
|
8652
|
-
})(Version$
|
|
8698
|
+
})(Version$4 || (Version$4 = {}));
|
|
8653
8699
|
|
|
8654
8700
|
class TBSCertificate {
|
|
8655
8701
|
constructor(params = {}) {
|
|
8656
|
-
this.version = Version$
|
|
8702
|
+
this.version = Version$4.v1;
|
|
8657
8703
|
this.serialNumber = new ArrayBuffer(0);
|
|
8658
8704
|
this.signature = new AlgorithmIdentifier();
|
|
8659
8705
|
this.issuer = new Name$1();
|
|
@@ -8663,35 +8709,35 @@ class TBSCertificate {
|
|
|
8663
8709
|
Object.assign(this, params);
|
|
8664
8710
|
}
|
|
8665
8711
|
}
|
|
8666
|
-
__decorate([
|
|
8712
|
+
__decorate$1([
|
|
8667
8713
|
AsnProp({
|
|
8668
8714
|
type: AsnPropTypes.Integer,
|
|
8669
8715
|
context: 0,
|
|
8670
|
-
defaultValue: Version$
|
|
8716
|
+
defaultValue: Version$4.v1,
|
|
8671
8717
|
})
|
|
8672
8718
|
], TBSCertificate.prototype, "version", void 0);
|
|
8673
|
-
__decorate([
|
|
8719
|
+
__decorate$1([
|
|
8674
8720
|
AsnProp({
|
|
8675
8721
|
type: AsnPropTypes.Integer,
|
|
8676
8722
|
converter: AsnIntegerArrayBufferConverter,
|
|
8677
8723
|
})
|
|
8678
8724
|
], TBSCertificate.prototype, "serialNumber", void 0);
|
|
8679
|
-
__decorate([
|
|
8725
|
+
__decorate$1([
|
|
8680
8726
|
AsnProp({ type: AlgorithmIdentifier })
|
|
8681
8727
|
], TBSCertificate.prototype, "signature", void 0);
|
|
8682
|
-
__decorate([
|
|
8728
|
+
__decorate$1([
|
|
8683
8729
|
AsnProp({ type: Name$1 })
|
|
8684
8730
|
], TBSCertificate.prototype, "issuer", void 0);
|
|
8685
|
-
__decorate([
|
|
8731
|
+
__decorate$1([
|
|
8686
8732
|
AsnProp({ type: Validity })
|
|
8687
8733
|
], TBSCertificate.prototype, "validity", void 0);
|
|
8688
|
-
__decorate([
|
|
8734
|
+
__decorate$1([
|
|
8689
8735
|
AsnProp({ type: Name$1 })
|
|
8690
8736
|
], TBSCertificate.prototype, "subject", void 0);
|
|
8691
|
-
__decorate([
|
|
8737
|
+
__decorate$1([
|
|
8692
8738
|
AsnProp({ type: SubjectPublicKeyInfo })
|
|
8693
8739
|
], TBSCertificate.prototype, "subjectPublicKeyInfo", void 0);
|
|
8694
|
-
__decorate([
|
|
8740
|
+
__decorate$1([
|
|
8695
8741
|
AsnProp({
|
|
8696
8742
|
type: AsnPropTypes.BitString,
|
|
8697
8743
|
context: 1,
|
|
@@ -8699,10 +8745,10 @@ __decorate([
|
|
|
8699
8745
|
optional: true,
|
|
8700
8746
|
})
|
|
8701
8747
|
], TBSCertificate.prototype, "issuerUniqueID", void 0);
|
|
8702
|
-
__decorate([
|
|
8748
|
+
__decorate$1([
|
|
8703
8749
|
AsnProp({ type: AsnPropTypes.BitString, context: 2, implicit: true, optional: true })
|
|
8704
8750
|
], TBSCertificate.prototype, "subjectUniqueID", void 0);
|
|
8705
|
-
__decorate([
|
|
8751
|
+
__decorate$1([
|
|
8706
8752
|
AsnProp({ type: Extensions, context: 3, optional: true })
|
|
8707
8753
|
], TBSCertificate.prototype, "extensions", void 0);
|
|
8708
8754
|
|
|
@@ -8714,13 +8760,13 @@ class Certificate {
|
|
|
8714
8760
|
Object.assign(this, params);
|
|
8715
8761
|
}
|
|
8716
8762
|
}
|
|
8717
|
-
__decorate([
|
|
8763
|
+
__decorate$1([
|
|
8718
8764
|
AsnProp({ type: TBSCertificate })
|
|
8719
8765
|
], Certificate.prototype, "tbsCertificate", void 0);
|
|
8720
|
-
__decorate([
|
|
8766
|
+
__decorate$1([
|
|
8721
8767
|
AsnProp({ type: AlgorithmIdentifier })
|
|
8722
8768
|
], Certificate.prototype, "signatureAlgorithm", void 0);
|
|
8723
|
-
__decorate([
|
|
8769
|
+
__decorate$1([
|
|
8724
8770
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
8725
8771
|
], Certificate.prototype, "signatureValue", void 0);
|
|
8726
8772
|
|
|
@@ -8731,13 +8777,13 @@ class RevokedCertificate {
|
|
|
8731
8777
|
Object.assign(this, params);
|
|
8732
8778
|
}
|
|
8733
8779
|
}
|
|
8734
|
-
__decorate([
|
|
8780
|
+
__decorate$1([
|
|
8735
8781
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
8736
8782
|
], RevokedCertificate.prototype, "userCertificate", void 0);
|
|
8737
|
-
__decorate([
|
|
8783
|
+
__decorate$1([
|
|
8738
8784
|
AsnProp({ type: Time })
|
|
8739
8785
|
], RevokedCertificate.prototype, "revocationDate", void 0);
|
|
8740
|
-
__decorate([
|
|
8786
|
+
__decorate$1([
|
|
8741
8787
|
AsnProp({ type: Extension$1, optional: true, repeated: "sequence" })
|
|
8742
8788
|
], RevokedCertificate.prototype, "crlEntryExtensions", void 0);
|
|
8743
8789
|
class TBSCertList {
|
|
@@ -8748,25 +8794,25 @@ class TBSCertList {
|
|
|
8748
8794
|
Object.assign(this, params);
|
|
8749
8795
|
}
|
|
8750
8796
|
}
|
|
8751
|
-
__decorate([
|
|
8797
|
+
__decorate$1([
|
|
8752
8798
|
AsnProp({ type: AsnPropTypes.Integer, optional: true })
|
|
8753
8799
|
], TBSCertList.prototype, "version", void 0);
|
|
8754
|
-
__decorate([
|
|
8800
|
+
__decorate$1([
|
|
8755
8801
|
AsnProp({ type: AlgorithmIdentifier })
|
|
8756
8802
|
], TBSCertList.prototype, "signature", void 0);
|
|
8757
|
-
__decorate([
|
|
8803
|
+
__decorate$1([
|
|
8758
8804
|
AsnProp({ type: Name$1 })
|
|
8759
8805
|
], TBSCertList.prototype, "issuer", void 0);
|
|
8760
|
-
__decorate([
|
|
8806
|
+
__decorate$1([
|
|
8761
8807
|
AsnProp({ type: Time })
|
|
8762
8808
|
], TBSCertList.prototype, "thisUpdate", void 0);
|
|
8763
|
-
__decorate([
|
|
8809
|
+
__decorate$1([
|
|
8764
8810
|
AsnProp({ type: Time, optional: true })
|
|
8765
8811
|
], TBSCertList.prototype, "nextUpdate", void 0);
|
|
8766
|
-
__decorate([
|
|
8812
|
+
__decorate$1([
|
|
8767
8813
|
AsnProp({ type: RevokedCertificate, repeated: "sequence", optional: true })
|
|
8768
8814
|
], TBSCertList.prototype, "revokedCertificates", void 0);
|
|
8769
|
-
__decorate([
|
|
8815
|
+
__decorate$1([
|
|
8770
8816
|
AsnProp({ type: Extension$1, optional: true, context: 0, repeated: "sequence" })
|
|
8771
8817
|
], TBSCertList.prototype, "crlExtensions", void 0);
|
|
8772
8818
|
|
|
@@ -8778,13 +8824,13 @@ class CertificateList {
|
|
|
8778
8824
|
Object.assign(this, params);
|
|
8779
8825
|
}
|
|
8780
8826
|
}
|
|
8781
|
-
__decorate([
|
|
8827
|
+
__decorate$1([
|
|
8782
8828
|
AsnProp({ type: TBSCertList })
|
|
8783
8829
|
], CertificateList.prototype, "tbsCertList", void 0);
|
|
8784
|
-
__decorate([
|
|
8830
|
+
__decorate$1([
|
|
8785
8831
|
AsnProp({ type: AlgorithmIdentifier })
|
|
8786
8832
|
], CertificateList.prototype, "signatureAlgorithm", void 0);
|
|
8787
|
-
__decorate([
|
|
8833
|
+
__decorate$1([
|
|
8788
8834
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
8789
8835
|
], CertificateList.prototype, "signature", void 0);
|
|
8790
8836
|
|
|
@@ -8809,10 +8855,10 @@ let ECParameters = class ECParameters {
|
|
|
8809
8855
|
Object.assign(this, params);
|
|
8810
8856
|
}
|
|
8811
8857
|
};
|
|
8812
|
-
__decorate([
|
|
8858
|
+
__decorate$1([
|
|
8813
8859
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
8814
8860
|
], ECParameters.prototype, "namedCurve", void 0);
|
|
8815
|
-
ECParameters = __decorate([
|
|
8861
|
+
ECParameters = __decorate$1([
|
|
8816
8862
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
8817
8863
|
], ECParameters);
|
|
8818
8864
|
|
|
@@ -8823,16 +8869,16 @@ class ECPrivateKey {
|
|
|
8823
8869
|
Object.assign(this, params);
|
|
8824
8870
|
}
|
|
8825
8871
|
}
|
|
8826
|
-
__decorate([
|
|
8872
|
+
__decorate$1([
|
|
8827
8873
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
8828
8874
|
], ECPrivateKey.prototype, "version", void 0);
|
|
8829
|
-
__decorate([
|
|
8875
|
+
__decorate$1([
|
|
8830
8876
|
AsnProp({ type: OctetString })
|
|
8831
8877
|
], ECPrivateKey.prototype, "privateKey", void 0);
|
|
8832
|
-
__decorate([
|
|
8878
|
+
__decorate$1([
|
|
8833
8879
|
AsnProp({ type: ECParameters, context: 0, optional: true })
|
|
8834
8880
|
], ECPrivateKey.prototype, "parameters", void 0);
|
|
8835
|
-
__decorate([
|
|
8881
|
+
__decorate$1([
|
|
8836
8882
|
AsnProp({ type: AsnPropTypes.BitString, context: 1, optional: true })
|
|
8837
8883
|
], ECPrivateKey.prototype, "publicKey", void 0);
|
|
8838
8884
|
|
|
@@ -8843,10 +8889,10 @@ class ECDSASigValue {
|
|
|
8843
8889
|
Object.assign(this, params);
|
|
8844
8890
|
}
|
|
8845
8891
|
}
|
|
8846
|
-
__decorate([
|
|
8892
|
+
__decorate$1([
|
|
8847
8893
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
8848
8894
|
], ECDSASigValue.prototype, "r", void 0);
|
|
8849
|
-
__decorate([
|
|
8895
|
+
__decorate$1([
|
|
8850
8896
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
8851
8897
|
], ECDSASigValue.prototype, "s", void 0);
|
|
8852
8898
|
|
|
@@ -8915,13 +8961,13 @@ class RsaEsOaepParams {
|
|
|
8915
8961
|
Object.assign(this, params);
|
|
8916
8962
|
}
|
|
8917
8963
|
}
|
|
8918
|
-
__decorate([
|
|
8964
|
+
__decorate$1([
|
|
8919
8965
|
AsnProp({ type: AlgorithmIdentifier, context: 0, defaultValue: sha1 })
|
|
8920
8966
|
], RsaEsOaepParams.prototype, "hashAlgorithm", void 0);
|
|
8921
|
-
__decorate([
|
|
8967
|
+
__decorate$1([
|
|
8922
8968
|
AsnProp({ type: AlgorithmIdentifier, context: 1, defaultValue: mgf1SHA1 })
|
|
8923
8969
|
], RsaEsOaepParams.prototype, "maskGenAlgorithm", void 0);
|
|
8924
|
-
__decorate([
|
|
8970
|
+
__decorate$1([
|
|
8925
8971
|
AsnProp({ type: AlgorithmIdentifier, context: 2, defaultValue: pSpecifiedEmpty })
|
|
8926
8972
|
], RsaEsOaepParams.prototype, "pSourceAlgorithm", void 0);
|
|
8927
8973
|
new AlgorithmIdentifier({
|
|
@@ -8941,16 +8987,16 @@ class RsaSaPssParams {
|
|
|
8941
8987
|
Object.assign(this, params);
|
|
8942
8988
|
}
|
|
8943
8989
|
}
|
|
8944
|
-
__decorate([
|
|
8990
|
+
__decorate$1([
|
|
8945
8991
|
AsnProp({ type: AlgorithmIdentifier, context: 0, defaultValue: sha1 })
|
|
8946
8992
|
], RsaSaPssParams.prototype, "hashAlgorithm", void 0);
|
|
8947
|
-
__decorate([
|
|
8993
|
+
__decorate$1([
|
|
8948
8994
|
AsnProp({ type: AlgorithmIdentifier, context: 1, defaultValue: mgf1SHA1 })
|
|
8949
8995
|
], RsaSaPssParams.prototype, "maskGenAlgorithm", void 0);
|
|
8950
|
-
__decorate([
|
|
8996
|
+
__decorate$1([
|
|
8951
8997
|
AsnProp({ type: AsnPropTypes.Integer, context: 2, defaultValue: 20 })
|
|
8952
8998
|
], RsaSaPssParams.prototype, "saltLength", void 0);
|
|
8953
|
-
__decorate([
|
|
8999
|
+
__decorate$1([
|
|
8954
9000
|
AsnProp({ type: AsnPropTypes.Integer, context: 3, defaultValue: 1 })
|
|
8955
9001
|
], RsaSaPssParams.prototype, "trailerField", void 0);
|
|
8956
9002
|
new AlgorithmIdentifier({
|
|
@@ -8965,10 +9011,10 @@ class DigestInfo {
|
|
|
8965
9011
|
Object.assign(this, params);
|
|
8966
9012
|
}
|
|
8967
9013
|
}
|
|
8968
|
-
__decorate([
|
|
9014
|
+
__decorate$1([
|
|
8969
9015
|
AsnProp({ type: AlgorithmIdentifier })
|
|
8970
9016
|
], DigestInfo.prototype, "digestAlgorithm", void 0);
|
|
8971
|
-
__decorate([
|
|
9017
|
+
__decorate$1([
|
|
8972
9018
|
AsnProp({ type: OctetString })
|
|
8973
9019
|
], DigestInfo.prototype, "digest", void 0);
|
|
8974
9020
|
|
|
@@ -8981,13 +9027,13 @@ class OtherPrimeInfo {
|
|
|
8981
9027
|
Object.assign(this, params);
|
|
8982
9028
|
}
|
|
8983
9029
|
}
|
|
8984
|
-
__decorate([
|
|
9030
|
+
__decorate$1([
|
|
8985
9031
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
8986
9032
|
], OtherPrimeInfo.prototype, "prime", void 0);
|
|
8987
|
-
__decorate([
|
|
9033
|
+
__decorate$1([
|
|
8988
9034
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
8989
9035
|
], OtherPrimeInfo.prototype, "exponent", void 0);
|
|
8990
|
-
__decorate([
|
|
9036
|
+
__decorate$1([
|
|
8991
9037
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
8992
9038
|
], OtherPrimeInfo.prototype, "coefficient", void 0);
|
|
8993
9039
|
let OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos extends AsnArray {
|
|
@@ -8996,7 +9042,7 @@ let OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos extends AsnArray
|
|
|
8996
9042
|
Object.setPrototypeOf(this, OtherPrimeInfos_1.prototype);
|
|
8997
9043
|
}
|
|
8998
9044
|
};
|
|
8999
|
-
OtherPrimeInfos = OtherPrimeInfos_1 = __decorate([
|
|
9045
|
+
OtherPrimeInfos = OtherPrimeInfos_1 = __decorate$1([
|
|
9000
9046
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: OtherPrimeInfo })
|
|
9001
9047
|
], OtherPrimeInfos);
|
|
9002
9048
|
|
|
@@ -9014,34 +9060,34 @@ class RSAPrivateKey {
|
|
|
9014
9060
|
Object.assign(this, params);
|
|
9015
9061
|
}
|
|
9016
9062
|
}
|
|
9017
|
-
__decorate([
|
|
9063
|
+
__decorate$1([
|
|
9018
9064
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
9019
9065
|
], RSAPrivateKey.prototype, "version", void 0);
|
|
9020
|
-
__decorate([
|
|
9066
|
+
__decorate$1([
|
|
9021
9067
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9022
9068
|
], RSAPrivateKey.prototype, "modulus", void 0);
|
|
9023
|
-
__decorate([
|
|
9069
|
+
__decorate$1([
|
|
9024
9070
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9025
9071
|
], RSAPrivateKey.prototype, "publicExponent", void 0);
|
|
9026
|
-
__decorate([
|
|
9072
|
+
__decorate$1([
|
|
9027
9073
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9028
9074
|
], RSAPrivateKey.prototype, "privateExponent", void 0);
|
|
9029
|
-
__decorate([
|
|
9075
|
+
__decorate$1([
|
|
9030
9076
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9031
9077
|
], RSAPrivateKey.prototype, "prime1", void 0);
|
|
9032
|
-
__decorate([
|
|
9078
|
+
__decorate$1([
|
|
9033
9079
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9034
9080
|
], RSAPrivateKey.prototype, "prime2", void 0);
|
|
9035
|
-
__decorate([
|
|
9081
|
+
__decorate$1([
|
|
9036
9082
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9037
9083
|
], RSAPrivateKey.prototype, "exponent1", void 0);
|
|
9038
|
-
__decorate([
|
|
9084
|
+
__decorate$1([
|
|
9039
9085
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9040
9086
|
], RSAPrivateKey.prototype, "exponent2", void 0);
|
|
9041
|
-
__decorate([
|
|
9087
|
+
__decorate$1([
|
|
9042
9088
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9043
9089
|
], RSAPrivateKey.prototype, "coefficient", void 0);
|
|
9044
|
-
__decorate([
|
|
9090
|
+
__decorate$1([
|
|
9045
9091
|
AsnProp({ type: OtherPrimeInfos, optional: true })
|
|
9046
9092
|
], RSAPrivateKey.prototype, "otherPrimeInfos", void 0);
|
|
9047
9093
|
|
|
@@ -9052,10 +9098,10 @@ class RSAPublicKey {
|
|
|
9052
9098
|
Object.assign(this, params);
|
|
9053
9099
|
}
|
|
9054
9100
|
}
|
|
9055
|
-
__decorate([
|
|
9101
|
+
__decorate$1([
|
|
9056
9102
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9057
9103
|
], RSAPublicKey.prototype, "modulus", void 0);
|
|
9058
|
-
__decorate([
|
|
9104
|
+
__decorate$1([
|
|
9059
9105
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9060
9106
|
], RSAPublicKey.prototype, "publicExponent", void 0);
|
|
9061
9107
|
|
|
@@ -9067,7 +9113,7 @@ let CompositeParams = CompositeParams_1 = class CompositeParams extends AsnArray
|
|
|
9067
9113
|
Object.setPrototypeOf(this, CompositeParams_1.prototype);
|
|
9068
9114
|
}
|
|
9069
9115
|
};
|
|
9070
|
-
CompositeParams = CompositeParams_1 = __decorate([
|
|
9116
|
+
CompositeParams = CompositeParams_1 = __decorate$1([
|
|
9071
9117
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: AlgorithmIdentifier })
|
|
9072
9118
|
], CompositeParams);
|
|
9073
9119
|
let CompositeSignatureValue = CompositeSignatureValue_1 = class CompositeSignatureValue extends AsnArray {
|
|
@@ -9076,7 +9122,7 @@ let CompositeSignatureValue = CompositeSignatureValue_1 = class CompositeSignatu
|
|
|
9076
9122
|
Object.setPrototypeOf(this, CompositeSignatureValue_1.prototype);
|
|
9077
9123
|
}
|
|
9078
9124
|
};
|
|
9079
|
-
CompositeSignatureValue = CompositeSignatureValue_1 = __decorate([
|
|
9125
|
+
CompositeSignatureValue = CompositeSignatureValue_1 = __decorate$1([
|
|
9080
9126
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: AsnPropTypes.BitString })
|
|
9081
9127
|
], CompositeSignatureValue);
|
|
9082
9128
|
|
|
@@ -9089,18 +9135,18 @@ class EncryptedPrivateKeyInfo$1 {
|
|
|
9089
9135
|
Object.assign(this, params);
|
|
9090
9136
|
}
|
|
9091
9137
|
}
|
|
9092
|
-
__decorate([
|
|
9138
|
+
__decorate$1([
|
|
9093
9139
|
AsnProp({ type: AlgorithmIdentifier })
|
|
9094
9140
|
], EncryptedPrivateKeyInfo$1.prototype, "encryptionAlgorithm", void 0);
|
|
9095
|
-
__decorate([
|
|
9141
|
+
__decorate$1([
|
|
9096
9142
|
AsnProp({ type: EncryptedData })
|
|
9097
9143
|
], EncryptedPrivateKeyInfo$1.prototype, "encryptedData", void 0);
|
|
9098
9144
|
|
|
9099
9145
|
var Attributes_1$1;
|
|
9100
|
-
var Version$
|
|
9146
|
+
var Version$3;
|
|
9101
9147
|
(function (Version) {
|
|
9102
9148
|
Version[Version["v1"] = 0] = "v1";
|
|
9103
|
-
})(Version$
|
|
9149
|
+
})(Version$3 || (Version$3 = {}));
|
|
9104
9150
|
class PrivateKey extends OctetString {
|
|
9105
9151
|
}
|
|
9106
9152
|
let Attributes$1 = Attributes_1$1 = class Attributes extends AsnArray {
|
|
@@ -9109,69 +9155,69 @@ let Attributes$1 = Attributes_1$1 = class Attributes extends AsnArray {
|
|
|
9109
9155
|
Object.setPrototypeOf(this, Attributes_1$1.prototype);
|
|
9110
9156
|
}
|
|
9111
9157
|
};
|
|
9112
|
-
Attributes$1 = Attributes_1$1 = __decorate([
|
|
9158
|
+
Attributes$1 = Attributes_1$1 = __decorate$1([
|
|
9113
9159
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: Attribute$1 })
|
|
9114
9160
|
], Attributes$1);
|
|
9115
9161
|
class PrivateKeyInfo$1 {
|
|
9116
9162
|
constructor(params = {}) {
|
|
9117
|
-
this.version = Version$
|
|
9163
|
+
this.version = Version$3.v1;
|
|
9118
9164
|
this.privateKeyAlgorithm = new AlgorithmIdentifier();
|
|
9119
9165
|
this.privateKey = new PrivateKey();
|
|
9120
9166
|
Object.assign(this, params);
|
|
9121
9167
|
}
|
|
9122
9168
|
}
|
|
9123
|
-
__decorate([
|
|
9169
|
+
__decorate$1([
|
|
9124
9170
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
9125
9171
|
], PrivateKeyInfo$1.prototype, "version", void 0);
|
|
9126
|
-
__decorate([
|
|
9172
|
+
__decorate$1([
|
|
9127
9173
|
AsnProp({ type: AlgorithmIdentifier })
|
|
9128
9174
|
], PrivateKeyInfo$1.prototype, "privateKeyAlgorithm", void 0);
|
|
9129
|
-
__decorate([
|
|
9175
|
+
__decorate$1([
|
|
9130
9176
|
AsnProp({ type: PrivateKey })
|
|
9131
9177
|
], PrivateKeyInfo$1.prototype, "privateKey", void 0);
|
|
9132
|
-
__decorate([
|
|
9178
|
+
__decorate$1([
|
|
9133
9179
|
AsnProp({ type: Attributes$1, implicit: true, context: 0, optional: true })
|
|
9134
9180
|
], PrivateKeyInfo$1.prototype, "attributes", void 0);
|
|
9135
9181
|
|
|
9136
9182
|
var AsymmetricKeyPackage_1;
|
|
9137
|
-
var Version$
|
|
9183
|
+
var Version$2;
|
|
9138
9184
|
(function (Version) {
|
|
9139
9185
|
Version[Version["v1"] = 0] = "v1";
|
|
9140
9186
|
Version[Version["v2"] = 1] = "v2";
|
|
9141
|
-
})(Version$
|
|
9187
|
+
})(Version$2 || (Version$2 = {}));
|
|
9142
9188
|
let PrivateKeyAlgorithmIdentifier = class PrivateKeyAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
9143
9189
|
};
|
|
9144
|
-
PrivateKeyAlgorithmIdentifier = __decorate([
|
|
9190
|
+
PrivateKeyAlgorithmIdentifier = __decorate$1([
|
|
9145
9191
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9146
9192
|
], PrivateKeyAlgorithmIdentifier);
|
|
9147
9193
|
let OneAsymmetricKey = class OneAsymmetricKey {
|
|
9148
9194
|
constructor() {
|
|
9149
|
-
this.version = Version$
|
|
9195
|
+
this.version = Version$2.v1;
|
|
9150
9196
|
this.privateKeyAlgorithm = new AlgorithmIdentifier();
|
|
9151
9197
|
this.privateKey = new ArrayBuffer(0);
|
|
9152
9198
|
}
|
|
9153
9199
|
};
|
|
9154
|
-
__decorate([
|
|
9200
|
+
__decorate$1([
|
|
9155
9201
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
9156
9202
|
], OneAsymmetricKey.prototype, "version", void 0);
|
|
9157
|
-
__decorate([
|
|
9203
|
+
__decorate$1([
|
|
9158
9204
|
AsnProp({ type: AlgorithmIdentifier })
|
|
9159
9205
|
], OneAsymmetricKey.prototype, "privateKeyAlgorithm", void 0);
|
|
9160
|
-
__decorate([
|
|
9206
|
+
__decorate$1([
|
|
9161
9207
|
AsnProp({ type: AsnPropTypes.OctetString })
|
|
9162
9208
|
], OneAsymmetricKey.prototype, "privateKey", void 0);
|
|
9163
|
-
__decorate([
|
|
9209
|
+
__decorate$1([
|
|
9164
9210
|
AsnProp({ type: Attributes$1, context: 0, implicit: true, optional: true })
|
|
9165
9211
|
], OneAsymmetricKey.prototype, "attributes", void 0);
|
|
9166
|
-
__decorate([
|
|
9212
|
+
__decorate$1([
|
|
9167
9213
|
AsnProp({ type: AsnPropTypes.BitString, context: 1, implicit: true, optional: true })
|
|
9168
9214
|
], OneAsymmetricKey.prototype, "publicKey", void 0);
|
|
9169
|
-
OneAsymmetricKey = __decorate([
|
|
9215
|
+
OneAsymmetricKey = __decorate$1([
|
|
9170
9216
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9171
9217
|
], OneAsymmetricKey);
|
|
9172
9218
|
let PrivateKeyInfo = class PrivateKeyInfo extends OneAsymmetricKey {
|
|
9173
9219
|
};
|
|
9174
|
-
PrivateKeyInfo = __decorate([
|
|
9220
|
+
PrivateKeyInfo = __decorate$1([
|
|
9175
9221
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9176
9222
|
], PrivateKeyInfo);
|
|
9177
9223
|
let AsymmetricKeyPackage = AsymmetricKeyPackage_1 = class AsymmetricKeyPackage extends AsnArray {
|
|
@@ -9180,7 +9226,7 @@ let AsymmetricKeyPackage = AsymmetricKeyPackage_1 = class AsymmetricKeyPackage e
|
|
|
9180
9226
|
Object.setPrototypeOf(this, AsymmetricKeyPackage_1.prototype);
|
|
9181
9227
|
}
|
|
9182
9228
|
};
|
|
9183
|
-
AsymmetricKeyPackage = AsymmetricKeyPackage_1 = __decorate([
|
|
9229
|
+
AsymmetricKeyPackage = AsymmetricKeyPackage_1 = __decorate$1([
|
|
9184
9230
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: OneAsymmetricKey })
|
|
9185
9231
|
], AsymmetricKeyPackage);
|
|
9186
9232
|
|
|
@@ -9188,7 +9234,7 @@ var CompositePublicKey_1, CompositePrivateKey_1;
|
|
|
9188
9234
|
const id_composite_key = "2.16.840.1.114027.80.4.1";
|
|
9189
9235
|
let CompositeAlgorithmIdentifier = class CompositeAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
9190
9236
|
};
|
|
9191
|
-
CompositeAlgorithmIdentifier = __decorate([
|
|
9237
|
+
CompositeAlgorithmIdentifier = __decorate$1([
|
|
9192
9238
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9193
9239
|
], CompositeAlgorithmIdentifier);
|
|
9194
9240
|
let CompositePublicKey = CompositePublicKey_1 = class CompositePublicKey extends AsnArray {
|
|
@@ -9197,7 +9243,7 @@ let CompositePublicKey = CompositePublicKey_1 = class CompositePublicKey extends
|
|
|
9197
9243
|
Object.setPrototypeOf(this, CompositePublicKey_1.prototype);
|
|
9198
9244
|
}
|
|
9199
9245
|
};
|
|
9200
|
-
CompositePublicKey = CompositePublicKey_1 = __decorate([
|
|
9246
|
+
CompositePublicKey = CompositePublicKey_1 = __decorate$1([
|
|
9201
9247
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: SubjectPublicKeyInfo })
|
|
9202
9248
|
], CompositePublicKey);
|
|
9203
9249
|
let CompositePrivateKey = CompositePrivateKey_1 = class CompositePrivateKey extends AsnArray {
|
|
@@ -9206,7 +9252,7 @@ let CompositePrivateKey = CompositePrivateKey_1 = class CompositePrivateKey exte
|
|
|
9206
9252
|
Object.setPrototypeOf(this, CompositePrivateKey_1.prototype);
|
|
9207
9253
|
}
|
|
9208
9254
|
};
|
|
9209
|
-
CompositePrivateKey = CompositePrivateKey_1 = __decorate([
|
|
9255
|
+
CompositePrivateKey = CompositePrivateKey_1 = __decorate$1([
|
|
9210
9256
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: OneAsymmetricKey })
|
|
9211
9257
|
], CompositePrivateKey);
|
|
9212
9258
|
|
|
@@ -9232,7 +9278,7 @@ var _Name_asn;
|
|
|
9232
9278
|
class Name {
|
|
9233
9279
|
constructor(data) {
|
|
9234
9280
|
_Name_asn.set(this, new Name$1());
|
|
9235
|
-
if (
|
|
9281
|
+
if (BufferSourceConverter_1.isBufferSource(data)) {
|
|
9236
9282
|
__classPrivateFieldSet$1(this, _Name_asn, AsnParser.parse(data, Name$1), "f");
|
|
9237
9283
|
}
|
|
9238
9284
|
else {
|
|
@@ -9266,13 +9312,13 @@ let TypeOfBiometricData = class TypeOfBiometricData {
|
|
|
9266
9312
|
Object.assign(this, params);
|
|
9267
9313
|
}
|
|
9268
9314
|
};
|
|
9269
|
-
__decorate([
|
|
9315
|
+
__decorate$1([
|
|
9270
9316
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
9271
9317
|
], TypeOfBiometricData.prototype, "predefinedBiometricType", void 0);
|
|
9272
|
-
__decorate([
|
|
9318
|
+
__decorate$1([
|
|
9273
9319
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
9274
9320
|
], TypeOfBiometricData.prototype, "biometricDataOid", void 0);
|
|
9275
|
-
TypeOfBiometricData = __decorate([
|
|
9321
|
+
TypeOfBiometricData = __decorate$1([
|
|
9276
9322
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9277
9323
|
], TypeOfBiometricData);
|
|
9278
9324
|
class BiometricData {
|
|
@@ -9283,16 +9329,16 @@ class BiometricData {
|
|
|
9283
9329
|
Object.assign(this, params);
|
|
9284
9330
|
}
|
|
9285
9331
|
}
|
|
9286
|
-
__decorate([
|
|
9332
|
+
__decorate$1([
|
|
9287
9333
|
AsnProp({ type: TypeOfBiometricData })
|
|
9288
9334
|
], BiometricData.prototype, "typeOfBiometricData", void 0);
|
|
9289
|
-
__decorate([
|
|
9335
|
+
__decorate$1([
|
|
9290
9336
|
AsnProp({ type: AlgorithmIdentifier })
|
|
9291
9337
|
], BiometricData.prototype, "hashAlgorithm", void 0);
|
|
9292
|
-
__decorate([
|
|
9338
|
+
__decorate$1([
|
|
9293
9339
|
AsnProp({ type: OctetString })
|
|
9294
9340
|
], BiometricData.prototype, "biometricDataHash", void 0);
|
|
9295
|
-
__decorate([
|
|
9341
|
+
__decorate$1([
|
|
9296
9342
|
AsnProp({ type: AsnPropTypes.IA5String, optional: true })
|
|
9297
9343
|
], BiometricData.prototype, "sourceDataUri", void 0);
|
|
9298
9344
|
let BiometricSyntax = BiometricSyntax_1 = class BiometricSyntax extends AsnArray {
|
|
@@ -9301,7 +9347,7 @@ let BiometricSyntax = BiometricSyntax_1 = class BiometricSyntax extends AsnArray
|
|
|
9301
9347
|
Object.setPrototypeOf(this, BiometricSyntax_1.prototype);
|
|
9302
9348
|
}
|
|
9303
9349
|
};
|
|
9304
|
-
BiometricSyntax = BiometricSyntax_1 = __decorate([
|
|
9350
|
+
BiometricSyntax = BiometricSyntax_1 = __decorate$1([
|
|
9305
9351
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: BiometricData })
|
|
9306
9352
|
], BiometricSyntax);
|
|
9307
9353
|
|
|
@@ -9315,10 +9361,10 @@ class QCStatement {
|
|
|
9315
9361
|
this.statementInfo = new ArrayBuffer(0);
|
|
9316
9362
|
}
|
|
9317
9363
|
}
|
|
9318
|
-
__decorate([
|
|
9364
|
+
__decorate$1([
|
|
9319
9365
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
9320
9366
|
], QCStatement.prototype, "statementId", void 0);
|
|
9321
|
-
__decorate([
|
|
9367
|
+
__decorate$1([
|
|
9322
9368
|
AsnProp({ type: AsnPropTypes.Any, optional: true })
|
|
9323
9369
|
], QCStatement.prototype, "statementInfo", void 0);
|
|
9324
9370
|
const id_qcs_pkixQCSyntax_v2 = `${id_qcs}.2`;
|
|
@@ -9328,7 +9374,7 @@ let NameRegistrationAuthorities = NameRegistrationAuthorities_1 = class NameRegi
|
|
|
9328
9374
|
Object.setPrototypeOf(this, NameRegistrationAuthorities_1.prototype);
|
|
9329
9375
|
}
|
|
9330
9376
|
};
|
|
9331
|
-
NameRegistrationAuthorities = NameRegistrationAuthorities_1 = __decorate([
|
|
9377
|
+
NameRegistrationAuthorities = NameRegistrationAuthorities_1 = __decorate$1([
|
|
9332
9378
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: GeneralName })
|
|
9333
9379
|
], NameRegistrationAuthorities);
|
|
9334
9380
|
class SemanticsInformation {
|
|
@@ -9336,10 +9382,10 @@ class SemanticsInformation {
|
|
|
9336
9382
|
Object.assign(this, params);
|
|
9337
9383
|
}
|
|
9338
9384
|
}
|
|
9339
|
-
__decorate([
|
|
9385
|
+
__decorate$1([
|
|
9340
9386
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier, optional: true })
|
|
9341
9387
|
], SemanticsInformation.prototype, "semanticsIdentifier", void 0);
|
|
9342
|
-
__decorate([
|
|
9388
|
+
__decorate$1([
|
|
9343
9389
|
AsnProp({ type: NameRegistrationAuthorities, optional: true })
|
|
9344
9390
|
], SemanticsInformation.prototype, "nameRegistrationAuthorities", void 0);
|
|
9345
9391
|
let QCStatements = QCStatements_1 = class QCStatements extends AsnArray {
|
|
@@ -9348,13 +9394,13 @@ let QCStatements = QCStatements_1 = class QCStatements extends AsnArray {
|
|
|
9348
9394
|
Object.setPrototypeOf(this, QCStatements_1.prototype);
|
|
9349
9395
|
}
|
|
9350
9396
|
};
|
|
9351
|
-
QCStatements = QCStatements_1 = __decorate([
|
|
9397
|
+
QCStatements = QCStatements_1 = __decorate$1([
|
|
9352
9398
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: QCStatement })
|
|
9353
9399
|
], QCStatements);
|
|
9354
9400
|
|
|
9355
9401
|
let PlaceOfBirth$1 = class PlaceOfBirth extends DirectoryString {
|
|
9356
9402
|
};
|
|
9357
|
-
PlaceOfBirth$1 = __decorate([
|
|
9403
|
+
PlaceOfBirth$1 = __decorate$1([
|
|
9358
9404
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9359
9405
|
], PlaceOfBirth$1);
|
|
9360
9406
|
var Gender$1;
|
|
@@ -9372,7 +9418,7 @@ let CertificateApplicationPolicies = CertificateApplicationPolicies_1 = class Ce
|
|
|
9372
9418
|
Object.setPrototypeOf(this, CertificateApplicationPolicies_1.prototype);
|
|
9373
9419
|
}
|
|
9374
9420
|
};
|
|
9375
|
-
CertificateApplicationPolicies = CertificateApplicationPolicies_1 = __decorate([
|
|
9421
|
+
CertificateApplicationPolicies = CertificateApplicationPolicies_1 = __decorate$1([
|
|
9376
9422
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9377
9423
|
], CertificateApplicationPolicies);
|
|
9378
9424
|
|
|
@@ -9385,13 +9431,13 @@ class CertificateTemplate {
|
|
|
9385
9431
|
Object.assign(this, params);
|
|
9386
9432
|
}
|
|
9387
9433
|
}
|
|
9388
|
-
__decorate([
|
|
9434
|
+
__decorate$1([
|
|
9389
9435
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
9390
9436
|
], CertificateTemplate.prototype, "templateID", void 0);
|
|
9391
|
-
__decorate([
|
|
9437
|
+
__decorate$1([
|
|
9392
9438
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
9393
9439
|
], CertificateTemplate.prototype, "templateMajorVersion", void 0);
|
|
9394
|
-
__decorate([
|
|
9440
|
+
__decorate$1([
|
|
9395
9441
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
9396
9442
|
], CertificateTemplate.prototype, "templateMinorVersion", void 0);
|
|
9397
9443
|
|
|
@@ -9402,7 +9448,7 @@ class EnrollCertType {
|
|
|
9402
9448
|
Object.assign(this, params);
|
|
9403
9449
|
}
|
|
9404
9450
|
}
|
|
9405
|
-
__decorate([
|
|
9451
|
+
__decorate$1([
|
|
9406
9452
|
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
9407
9453
|
], EnrollCertType.prototype, "name", void 0);
|
|
9408
9454
|
let EnrollCertTypeChoice = class EnrollCertTypeChoice {
|
|
@@ -9414,13 +9460,13 @@ let EnrollCertTypeChoice = class EnrollCertTypeChoice {
|
|
|
9414
9460
|
return ((_a = this.name) === null || _a === void 0 ? void 0 : _a.toString()) || ((_b = this.spec) === null || _b === void 0 ? void 0 : _b.name) || "";
|
|
9415
9461
|
}
|
|
9416
9462
|
};
|
|
9417
|
-
__decorate([
|
|
9463
|
+
__decorate$1([
|
|
9418
9464
|
AsnProp({ type: DirectoryString })
|
|
9419
9465
|
], EnrollCertTypeChoice.prototype, "name", void 0);
|
|
9420
|
-
__decorate([
|
|
9466
|
+
__decorate$1([
|
|
9421
9467
|
AsnProp({ type: EnrollCertType })
|
|
9422
9468
|
], EnrollCertTypeChoice.prototype, "spec", void 0);
|
|
9423
|
-
EnrollCertTypeChoice = __decorate([
|
|
9469
|
+
EnrollCertTypeChoice = __decorate$1([
|
|
9424
9470
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9425
9471
|
], EnrollCertTypeChoice);
|
|
9426
9472
|
|
|
@@ -9440,15 +9486,15 @@ let CaVersion = class CaVersion {
|
|
|
9440
9486
|
data.set(new Uint8Array(this.value), 4 - this.value.byteLength);
|
|
9441
9487
|
}
|
|
9442
9488
|
return {
|
|
9443
|
-
keyIndex: parseInt(
|
|
9444
|
-
certificateIndex: parseInt(
|
|
9489
|
+
keyIndex: parseInt(Convert_1.ToHex(data.slice(0, 2)), 16),
|
|
9490
|
+
certificateIndex: parseInt(Convert_1.ToHex(data.slice(2)), 16),
|
|
9445
9491
|
};
|
|
9446
9492
|
}
|
|
9447
9493
|
};
|
|
9448
|
-
__decorate([
|
|
9494
|
+
__decorate$1([
|
|
9449
9495
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
9450
9496
|
], CaVersion.prototype, "value", void 0);
|
|
9451
|
-
CaVersion = __decorate([
|
|
9497
|
+
CaVersion = __decorate$1([
|
|
9452
9498
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9453
9499
|
], CaVersion);
|
|
9454
9500
|
|
|
@@ -9457,37 +9503,37 @@ let AnyString = class AnyString {
|
|
|
9457
9503
|
Object.assign(this, params);
|
|
9458
9504
|
}
|
|
9459
9505
|
};
|
|
9460
|
-
__decorate([
|
|
9506
|
+
__decorate$1([
|
|
9461
9507
|
AsnProp({ type: AsnPropTypes.NumericString })
|
|
9462
9508
|
], AnyString.prototype, "numericString", void 0);
|
|
9463
|
-
__decorate([
|
|
9509
|
+
__decorate$1([
|
|
9464
9510
|
AsnProp({ type: AsnPropTypes.PrintableString })
|
|
9465
9511
|
], AnyString.prototype, "printableString", void 0);
|
|
9466
|
-
__decorate([
|
|
9512
|
+
__decorate$1([
|
|
9467
9513
|
AsnProp({ type: AsnPropTypes.TeletexString })
|
|
9468
9514
|
], AnyString.prototype, "teletexString", void 0);
|
|
9469
|
-
__decorate([
|
|
9515
|
+
__decorate$1([
|
|
9470
9516
|
AsnProp({ type: AsnPropTypes.VideotexString })
|
|
9471
9517
|
], AnyString.prototype, "videotexString", void 0);
|
|
9472
|
-
__decorate([
|
|
9518
|
+
__decorate$1([
|
|
9473
9519
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
9474
9520
|
], AnyString.prototype, "ia5String", void 0);
|
|
9475
|
-
__decorate([
|
|
9521
|
+
__decorate$1([
|
|
9476
9522
|
AsnProp({ type: AsnPropTypes.GraphicString })
|
|
9477
9523
|
], AnyString.prototype, "graphicString", void 0);
|
|
9478
|
-
__decorate([
|
|
9524
|
+
__decorate$1([
|
|
9479
9525
|
AsnProp({ type: AsnPropTypes.VisibleString })
|
|
9480
9526
|
], AnyString.prototype, "visibleString", void 0);
|
|
9481
|
-
__decorate([
|
|
9527
|
+
__decorate$1([
|
|
9482
9528
|
AsnProp({ type: AsnPropTypes.GeneralString })
|
|
9483
9529
|
], AnyString.prototype, "generalString", void 0);
|
|
9484
|
-
__decorate([
|
|
9530
|
+
__decorate$1([
|
|
9485
9531
|
AsnProp({ type: AsnPropTypes.UniversalString })
|
|
9486
9532
|
], AnyString.prototype, "universalString", void 0);
|
|
9487
|
-
__decorate([
|
|
9533
|
+
__decorate$1([
|
|
9488
9534
|
AsnProp({ type: AsnPropTypes.BmpString })
|
|
9489
9535
|
], AnyString.prototype, "bmpString", void 0);
|
|
9490
|
-
AnyString = __decorate([
|
|
9536
|
+
AnyString = __decorate$1([
|
|
9491
9537
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9492
9538
|
], AnyString);
|
|
9493
9539
|
|
|
@@ -9496,10 +9542,10 @@ let ArchivedKey = class ArchivedKey {
|
|
|
9496
9542
|
this.value = value;
|
|
9497
9543
|
}
|
|
9498
9544
|
};
|
|
9499
|
-
__decorate([
|
|
9545
|
+
__decorate$1([
|
|
9500
9546
|
AsnProp({ type: AsnPropTypes.Any })
|
|
9501
9547
|
], ArchivedKey.prototype, "value", void 0);
|
|
9502
|
-
ArchivedKey = __decorate([
|
|
9548
|
+
ArchivedKey = __decorate$1([
|
|
9503
9549
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9504
9550
|
], ArchivedKey);
|
|
9505
9551
|
|
|
@@ -9510,7 +9556,7 @@ let CertExtensions = CertExtensions_1 = class CertExtensions extends Extensions
|
|
|
9510
9556
|
Object.setPrototypeOf(this, CertExtensions_1.prototype);
|
|
9511
9557
|
}
|
|
9512
9558
|
};
|
|
9513
|
-
CertExtensions = CertExtensions_1 = __decorate([
|
|
9559
|
+
CertExtensions = CertExtensions_1 = __decorate$1([
|
|
9514
9560
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9515
9561
|
], CertExtensions);
|
|
9516
9562
|
|
|
@@ -9522,13 +9568,13 @@ class CSPProvider {
|
|
|
9522
9568
|
Object.assign(this, params);
|
|
9523
9569
|
}
|
|
9524
9570
|
}
|
|
9525
|
-
__decorate([
|
|
9571
|
+
__decorate$1([
|
|
9526
9572
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
9527
9573
|
], CSPProvider.prototype, "keySpec", void 0);
|
|
9528
|
-
__decorate([
|
|
9574
|
+
__decorate$1([
|
|
9529
9575
|
AsnProp({ type: AsnPropTypes.BmpString })
|
|
9530
9576
|
], CSPProvider.prototype, "cspName", void 0);
|
|
9531
|
-
__decorate([
|
|
9577
|
+
__decorate$1([
|
|
9532
9578
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
9533
9579
|
], CSPProvider.prototype, "signature", void 0);
|
|
9534
9580
|
|
|
@@ -9539,7 +9585,7 @@ let AttestationIdentityKeyInfo = AttestationIdentityKeyInfo_1 = class Attestatio
|
|
|
9539
9585
|
Object.setPrototypeOf(this, AttestationIdentityKeyInfo_1.prototype);
|
|
9540
9586
|
}
|
|
9541
9587
|
};
|
|
9542
|
-
AttestationIdentityKeyInfo = AttestationIdentityKeyInfo_1 = __decorate([
|
|
9588
|
+
AttestationIdentityKeyInfo = AttestationIdentityKeyInfo_1 = __decorate$1([
|
|
9543
9589
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: AsnPropTypes.Any })
|
|
9544
9590
|
], AttestationIdentityKeyInfo);
|
|
9545
9591
|
|
|
@@ -9550,7 +9596,7 @@ let EndorsementKeyInfo = EndorsementKeyInfo_1 = class EndorsementKeyInfo extends
|
|
|
9550
9596
|
Object.setPrototypeOf(this, EndorsementKeyInfo_1.prototype);
|
|
9551
9597
|
}
|
|
9552
9598
|
};
|
|
9553
|
-
EndorsementKeyInfo = EndorsementKeyInfo_1 = __decorate([
|
|
9599
|
+
EndorsementKeyInfo = EndorsementKeyInfo_1 = __decorate$1([
|
|
9554
9600
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: AsnPropTypes.Any })
|
|
9555
9601
|
], EndorsementKeyInfo);
|
|
9556
9602
|
|
|
@@ -9562,10 +9608,10 @@ class EnrollmentNameValuePair {
|
|
|
9562
9608
|
Object.assign(this, params);
|
|
9563
9609
|
}
|
|
9564
9610
|
}
|
|
9565
|
-
__decorate([
|
|
9611
|
+
__decorate$1([
|
|
9566
9612
|
AsnProp({ type: AsnPropTypes.BmpString })
|
|
9567
9613
|
], EnrollmentNameValuePair.prototype, "name", void 0);
|
|
9568
|
-
__decorate([
|
|
9614
|
+
__decorate$1([
|
|
9569
9615
|
AsnProp({ type: AsnPropTypes.BmpString })
|
|
9570
9616
|
], EnrollmentNameValuePair.prototype, "value", void 0);
|
|
9571
9617
|
let EnrollmentNameValuePairs = EnrollmentNameValuePairs_1 = class EnrollmentNameValuePairs extends AsnArray {
|
|
@@ -9574,25 +9620,25 @@ let EnrollmentNameValuePairs = EnrollmentNameValuePairs_1 = class EnrollmentName
|
|
|
9574
9620
|
Object.setPrototypeOf(this, EnrollmentNameValuePairs_1.prototype);
|
|
9575
9621
|
}
|
|
9576
9622
|
};
|
|
9577
|
-
EnrollmentNameValuePairs = EnrollmentNameValuePairs_1 = __decorate([
|
|
9623
|
+
EnrollmentNameValuePairs = EnrollmentNameValuePairs_1 = __decorate$1([
|
|
9578
9624
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: EnrollmentNameValuePair })
|
|
9579
9625
|
], EnrollmentNameValuePairs);
|
|
9580
9626
|
|
|
9581
9627
|
let NTPrincipalName = class NTPrincipalName extends OtherName {
|
|
9582
9628
|
};
|
|
9583
|
-
NTPrincipalName = __decorate([
|
|
9629
|
+
NTPrincipalName = __decorate$1([
|
|
9584
9630
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9585
9631
|
], NTPrincipalName);
|
|
9586
9632
|
|
|
9587
9633
|
let NTDSReplication = class NTDSReplication extends OtherName {
|
|
9588
9634
|
};
|
|
9589
|
-
NTDSReplication = __decorate([
|
|
9635
|
+
NTDSReplication = __decorate$1([
|
|
9590
9636
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9591
9637
|
], NTDSReplication);
|
|
9592
9638
|
|
|
9593
9639
|
let RenewalCertificate = class RenewalCertificate extends Certificate {
|
|
9594
9640
|
};
|
|
9595
|
-
RenewalCertificate = __decorate([
|
|
9641
|
+
RenewalCertificate = __decorate$1([
|
|
9596
9642
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9597
9643
|
], RenewalCertificate);
|
|
9598
9644
|
|
|
@@ -9605,16 +9651,16 @@ class RequestClientInfo {
|
|
|
9605
9651
|
Object.assign(this, params);
|
|
9606
9652
|
}
|
|
9607
9653
|
}
|
|
9608
|
-
__decorate([
|
|
9654
|
+
__decorate$1([
|
|
9609
9655
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
9610
9656
|
], RequestClientInfo.prototype, "clientId", void 0);
|
|
9611
|
-
__decorate([
|
|
9657
|
+
__decorate$1([
|
|
9612
9658
|
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
9613
9659
|
], RequestClientInfo.prototype, "machineName", void 0);
|
|
9614
|
-
__decorate([
|
|
9660
|
+
__decorate$1([
|
|
9615
9661
|
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
9616
9662
|
], RequestClientInfo.prototype, "userName", void 0);
|
|
9617
|
-
__decorate([
|
|
9663
|
+
__decorate$1([
|
|
9618
9664
|
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
9619
9665
|
], RequestClientInfo.prototype, "processName", void 0);
|
|
9620
9666
|
|
|
@@ -9629,10 +9675,10 @@ let NetscapeBaseUrl = class NetscapeBaseUrl {
|
|
|
9629
9675
|
}
|
|
9630
9676
|
}
|
|
9631
9677
|
};
|
|
9632
|
-
__decorate([
|
|
9678
|
+
__decorate$1([
|
|
9633
9679
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
9634
9680
|
], NetscapeBaseUrl.prototype, "value", void 0);
|
|
9635
|
-
NetscapeBaseUrl = __decorate([
|
|
9681
|
+
NetscapeBaseUrl = __decorate$1([
|
|
9636
9682
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9637
9683
|
], NetscapeBaseUrl);
|
|
9638
9684
|
|
|
@@ -9644,10 +9690,10 @@ let NetscapeCaPolicyUrl = class NetscapeCaPolicyUrl {
|
|
|
9644
9690
|
}
|
|
9645
9691
|
}
|
|
9646
9692
|
};
|
|
9647
|
-
__decorate([
|
|
9693
|
+
__decorate$1([
|
|
9648
9694
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
9649
9695
|
], NetscapeCaPolicyUrl.prototype, "value", void 0);
|
|
9650
|
-
NetscapeCaPolicyUrl = __decorate([
|
|
9696
|
+
NetscapeCaPolicyUrl = __decorate$1([
|
|
9651
9697
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9652
9698
|
], NetscapeCaPolicyUrl);
|
|
9653
9699
|
|
|
@@ -9659,10 +9705,10 @@ let NetscapeCaRevocationUrl = class NetscapeCaRevocationUrl {
|
|
|
9659
9705
|
}
|
|
9660
9706
|
}
|
|
9661
9707
|
};
|
|
9662
|
-
__decorate([
|
|
9708
|
+
__decorate$1([
|
|
9663
9709
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
9664
9710
|
], NetscapeCaRevocationUrl.prototype, "value", void 0);
|
|
9665
|
-
NetscapeCaRevocationUrl = __decorate([
|
|
9711
|
+
NetscapeCaRevocationUrl = __decorate$1([
|
|
9666
9712
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9667
9713
|
], NetscapeCaRevocationUrl);
|
|
9668
9714
|
|
|
@@ -9674,10 +9720,10 @@ let NetscapeCertRenewUrl = class NetscapeCertRenewUrl {
|
|
|
9674
9720
|
}
|
|
9675
9721
|
}
|
|
9676
9722
|
};
|
|
9677
|
-
__decorate([
|
|
9723
|
+
__decorate$1([
|
|
9678
9724
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
9679
9725
|
], NetscapeCertRenewUrl.prototype, "value", void 0);
|
|
9680
|
-
NetscapeCertRenewUrl = __decorate([
|
|
9726
|
+
NetscapeCertRenewUrl = __decorate$1([
|
|
9681
9727
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9682
9728
|
], NetscapeCertRenewUrl);
|
|
9683
9729
|
|
|
@@ -9733,10 +9779,10 @@ let NetscapeComment = class NetscapeComment {
|
|
|
9733
9779
|
}
|
|
9734
9780
|
}
|
|
9735
9781
|
};
|
|
9736
|
-
__decorate([
|
|
9782
|
+
__decorate$1([
|
|
9737
9783
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
9738
9784
|
], NetscapeComment.prototype, "value", void 0);
|
|
9739
|
-
NetscapeComment = __decorate([
|
|
9785
|
+
NetscapeComment = __decorate$1([
|
|
9740
9786
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9741
9787
|
], NetscapeComment);
|
|
9742
9788
|
|
|
@@ -9748,10 +9794,10 @@ let NetscapeRevocationUrl = class NetscapeRevocationUrl {
|
|
|
9748
9794
|
}
|
|
9749
9795
|
}
|
|
9750
9796
|
};
|
|
9751
|
-
__decorate([
|
|
9797
|
+
__decorate$1([
|
|
9752
9798
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
9753
9799
|
], NetscapeRevocationUrl.prototype, "value", void 0);
|
|
9754
|
-
NetscapeRevocationUrl = __decorate([
|
|
9800
|
+
NetscapeRevocationUrl = __decorate$1([
|
|
9755
9801
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9756
9802
|
], NetscapeRevocationUrl);
|
|
9757
9803
|
|
|
@@ -9763,10 +9809,10 @@ let NetscapeSSLServerName = class NetscapeSSLServerName {
|
|
|
9763
9809
|
}
|
|
9764
9810
|
}
|
|
9765
9811
|
};
|
|
9766
|
-
__decorate([
|
|
9812
|
+
__decorate$1([
|
|
9767
9813
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
9768
9814
|
], NetscapeSSLServerName.prototype, "value", void 0);
|
|
9769
|
-
NetscapeSSLServerName = __decorate([
|
|
9815
|
+
NetscapeSSLServerName = __decorate$1([
|
|
9770
9816
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9771
9817
|
], NetscapeSSLServerName);
|
|
9772
9818
|
|
|
@@ -9777,21 +9823,16 @@ let Lei = class Lei {
|
|
|
9777
9823
|
Object.assign(this, params);
|
|
9778
9824
|
}
|
|
9779
9825
|
};
|
|
9780
|
-
__decorate([
|
|
9826
|
+
__decorate$1([
|
|
9781
9827
|
AsnProp({ type: PrintableString })
|
|
9782
9828
|
], Lei.prototype, "leiCode", void 0);
|
|
9783
|
-
__decorate([
|
|
9829
|
+
__decorate$1([
|
|
9784
9830
|
AsnProp({ type: PrintableString, context: 0, optional: true })
|
|
9785
9831
|
], Lei.prototype, "leiRole", void 0);
|
|
9786
|
-
Lei = __decorate([
|
|
9832
|
+
Lei = __decorate$1([
|
|
9787
9833
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
9788
9834
|
], Lei);
|
|
9789
9835
|
let BaseLeiChoice = class BaseLeiChoice {
|
|
9790
|
-
constructor(value) {
|
|
9791
|
-
if (value) {
|
|
9792
|
-
this.text = value;
|
|
9793
|
-
}
|
|
9794
|
-
}
|
|
9795
9836
|
get text() {
|
|
9796
9837
|
if (this.bmpString !== undefined) {
|
|
9797
9838
|
return this.bmpString;
|
|
@@ -9813,23 +9854,28 @@ let BaseLeiChoice = class BaseLeiChoice {
|
|
|
9813
9854
|
set text(value) {
|
|
9814
9855
|
this.printableString = value;
|
|
9815
9856
|
}
|
|
9857
|
+
constructor(value) {
|
|
9858
|
+
if (value) {
|
|
9859
|
+
this.text = value;
|
|
9860
|
+
}
|
|
9861
|
+
}
|
|
9816
9862
|
};
|
|
9817
|
-
__decorate([
|
|
9863
|
+
__decorate$1([
|
|
9818
9864
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
9819
9865
|
], BaseLeiChoice.prototype, "ia5String", void 0);
|
|
9820
|
-
__decorate([
|
|
9866
|
+
__decorate$1([
|
|
9821
9867
|
AsnProp({ type: AsnPropTypes.VisibleString })
|
|
9822
9868
|
], BaseLeiChoice.prototype, "visibleString", void 0);
|
|
9823
|
-
__decorate([
|
|
9869
|
+
__decorate$1([
|
|
9824
9870
|
AsnProp({ type: AsnPropTypes.BmpString })
|
|
9825
9871
|
], BaseLeiChoice.prototype, "bmpString", void 0);
|
|
9826
|
-
__decorate([
|
|
9872
|
+
__decorate$1([
|
|
9827
9873
|
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
9828
9874
|
], BaseLeiChoice.prototype, "utf8String", void 0);
|
|
9829
|
-
__decorate([
|
|
9875
|
+
__decorate$1([
|
|
9830
9876
|
AsnProp({ type: AsnPropTypes.PrintableString })
|
|
9831
9877
|
], BaseLeiChoice.prototype, "printableString", void 0);
|
|
9832
|
-
BaseLeiChoice = __decorate([
|
|
9878
|
+
BaseLeiChoice = __decorate$1([
|
|
9833
9879
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9834
9880
|
], BaseLeiChoice);
|
|
9835
9881
|
let LeiChoice = class LeiChoice extends BaseLeiChoice {
|
|
@@ -9843,27 +9889,27 @@ let LeiChoice = class LeiChoice extends BaseLeiChoice {
|
|
|
9843
9889
|
}
|
|
9844
9890
|
}
|
|
9845
9891
|
};
|
|
9846
|
-
__decorate([
|
|
9892
|
+
__decorate$1([
|
|
9847
9893
|
AsnProp({ type: Lei })
|
|
9848
9894
|
], LeiChoice.prototype, "struct", void 0);
|
|
9849
|
-
LeiChoice = __decorate([
|
|
9895
|
+
LeiChoice = __decorate$1([
|
|
9850
9896
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9851
9897
|
], LeiChoice);
|
|
9852
9898
|
const id_role = "1.3.6.1.4.1.52266.2";
|
|
9853
9899
|
let LeiRole = class LeiRole extends BaseLeiChoice {
|
|
9854
9900
|
};
|
|
9855
|
-
LeiRole = __decorate([
|
|
9901
|
+
LeiRole = __decorate$1([
|
|
9856
9902
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
9857
9903
|
], LeiRole);
|
|
9858
9904
|
|
|
9859
9905
|
class ByteStream {
|
|
9860
|
-
constructor(bytes) {
|
|
9861
|
-
this.offset = 0;
|
|
9862
|
-
this.view = build.BufferSourceConverter.toUint8Array(bytes);
|
|
9863
|
-
}
|
|
9864
9906
|
get position() {
|
|
9865
9907
|
return this.offset;
|
|
9866
9908
|
}
|
|
9909
|
+
constructor(bytes) {
|
|
9910
|
+
this.offset = 0;
|
|
9911
|
+
this.view = BufferSourceConverter_1.toUint8Array(bytes);
|
|
9912
|
+
}
|
|
9867
9913
|
read(size = 1) {
|
|
9868
9914
|
const res = this.view.slice(this.offset, this.offset + size);
|
|
9869
9915
|
this.offset = this.offset + res.length;
|
|
@@ -9878,7 +9924,7 @@ class ByteStream {
|
|
|
9878
9924
|
}
|
|
9879
9925
|
readNumber(size) {
|
|
9880
9926
|
const bytes = this.read(size);
|
|
9881
|
-
const hex =
|
|
9927
|
+
const hex = Convert_1.ToHex(bytes);
|
|
9882
9928
|
return parseInt(hex, 16);
|
|
9883
9929
|
}
|
|
9884
9930
|
readEnd() {
|
|
@@ -9891,7 +9937,7 @@ class ByteStream {
|
|
|
9891
9937
|
|
|
9892
9938
|
class Structure {
|
|
9893
9939
|
static createStream(bytes) {
|
|
9894
|
-
const view =
|
|
9940
|
+
const view = BufferSourceConverter_1.toUint8Array(bytes);
|
|
9895
9941
|
return new ByteStream(view);
|
|
9896
9942
|
}
|
|
9897
9943
|
}
|
|
@@ -9935,7 +9981,7 @@ class SignedCertificateTimestamp extends Structure {
|
|
|
9935
9981
|
parse(stream) {
|
|
9936
9982
|
this.version = stream.readByte();
|
|
9937
9983
|
stream.read(2);
|
|
9938
|
-
this.logId =
|
|
9984
|
+
this.logId = BufferSourceConverter_1.toArrayBuffer(stream.read(32));
|
|
9939
9985
|
this.timestamp = new Date(stream.readNumber(8));
|
|
9940
9986
|
const extLen = stream.readNumber(2);
|
|
9941
9987
|
this.extensions = stream.read(extLen).buffer;
|
|
@@ -9946,12 +9992,12 @@ class SignedCertificateTimestamp extends Structure {
|
|
|
9946
9992
|
toJSON() {
|
|
9947
9993
|
return {
|
|
9948
9994
|
version: this.version,
|
|
9949
|
-
logId:
|
|
9995
|
+
logId: Convert_1.ToHex(this.logId),
|
|
9950
9996
|
timestamp: this.timestamp,
|
|
9951
|
-
extensions:
|
|
9997
|
+
extensions: Convert_1.ToBase64(this.extensions),
|
|
9952
9998
|
hashAlgorithm: HashAlgorithm[this.hashAlgorithm] || "undefined",
|
|
9953
9999
|
signatureAlgorithm: SignatureAlgorithm[this.signatureAlgorithm] || "undefined",
|
|
9954
|
-
signature:
|
|
10000
|
+
signature: Convert_1.ToBase64(this.signature),
|
|
9955
10001
|
};
|
|
9956
10002
|
}
|
|
9957
10003
|
}
|
|
@@ -9977,38 +10023,38 @@ class CertificateTransparency extends OctetString {
|
|
|
9977
10023
|
}
|
|
9978
10024
|
}
|
|
9979
10025
|
|
|
9980
|
-
var Version;
|
|
10026
|
+
var Version$1;
|
|
9981
10027
|
(function (Version) {
|
|
9982
10028
|
Version[Version["v1"] = 1] = "v1";
|
|
9983
|
-
})(Version || (Version = {}));
|
|
10029
|
+
})(Version$1 || (Version$1 = {}));
|
|
9984
10030
|
|
|
9985
10031
|
const id_adbe_archiveRevInfo = "1.2.840.113583.1.1.9.2";
|
|
9986
10032
|
class ArchiveRevInfo {
|
|
9987
10033
|
constructor(params = {}) {
|
|
9988
|
-
this.version = Version.v1;
|
|
10034
|
+
this.version = Version$1.v1;
|
|
9989
10035
|
Object.assign(this, params);
|
|
9990
10036
|
}
|
|
9991
10037
|
}
|
|
9992
|
-
__decorate([
|
|
10038
|
+
__decorate$1([
|
|
9993
10039
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
9994
10040
|
], ArchiveRevInfo.prototype, "version", void 0);
|
|
9995
10041
|
|
|
9996
10042
|
const id_adbe_timestamp = "1.2.840.113583.1.1.9.1";
|
|
9997
10043
|
class Timestamp {
|
|
9998
10044
|
constructor(params = {}) {
|
|
9999
|
-
this.version = Version.v1;
|
|
10045
|
+
this.version = Version$1.v1;
|
|
10000
10046
|
this.location = new GeneralName();
|
|
10001
10047
|
this.requiresAuth = false;
|
|
10002
10048
|
Object.assign(this, params);
|
|
10003
10049
|
}
|
|
10004
10050
|
}
|
|
10005
|
-
__decorate([
|
|
10051
|
+
__decorate$1([
|
|
10006
10052
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10007
10053
|
], Timestamp.prototype, "version", void 0);
|
|
10008
|
-
__decorate([
|
|
10054
|
+
__decorate$1([
|
|
10009
10055
|
AsnProp({ type: GeneralName })
|
|
10010
10056
|
], Timestamp.prototype, "location", void 0);
|
|
10011
|
-
__decorate([
|
|
10057
|
+
__decorate$1([
|
|
10012
10058
|
AsnProp({ type: AsnPropTypes.Boolean, defaultValue: false, optional: true })
|
|
10013
10059
|
], Timestamp.prototype, "requiresAuth", void 0);
|
|
10014
10060
|
|
|
@@ -10019,10 +10065,10 @@ class HashAlgAndValue {
|
|
|
10019
10065
|
Object.assign(this, params);
|
|
10020
10066
|
}
|
|
10021
10067
|
}
|
|
10022
|
-
__decorate([
|
|
10068
|
+
__decorate$1([
|
|
10023
10069
|
AsnProp({ type: AlgorithmIdentifier })
|
|
10024
10070
|
], HashAlgAndValue.prototype, "hashAlg", void 0);
|
|
10025
|
-
__decorate([
|
|
10071
|
+
__decorate$1([
|
|
10026
10072
|
AsnProp({ type: OctetString })
|
|
10027
10073
|
], HashAlgAndValue.prototype, "hashValue", void 0);
|
|
10028
10074
|
|
|
@@ -10034,13 +10080,13 @@ class LogotypeDetails {
|
|
|
10034
10080
|
Object.assign(this, params);
|
|
10035
10081
|
}
|
|
10036
10082
|
}
|
|
10037
|
-
__decorate([
|
|
10083
|
+
__decorate$1([
|
|
10038
10084
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
10039
10085
|
], LogotypeDetails.prototype, "mediaType", void 0);
|
|
10040
|
-
__decorate([
|
|
10086
|
+
__decorate$1([
|
|
10041
10087
|
AsnProp({ type: HashAlgAndValue, repeated: "sequence" })
|
|
10042
10088
|
], LogotypeDetails.prototype, "logotypeHash", void 0);
|
|
10043
|
-
__decorate([
|
|
10089
|
+
__decorate$1([
|
|
10044
10090
|
AsnProp({ type: AsnPropTypes.IA5String, repeated: "sequence" })
|
|
10045
10091
|
], LogotypeDetails.prototype, "logotypeURI", void 0);
|
|
10046
10092
|
|
|
@@ -10058,19 +10104,19 @@ class LogotypeAudioInfo {
|
|
|
10058
10104
|
Object.assign(this, params);
|
|
10059
10105
|
}
|
|
10060
10106
|
}
|
|
10061
|
-
__decorate([
|
|
10107
|
+
__decorate$1([
|
|
10062
10108
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10063
10109
|
], LogotypeAudioInfo.prototype, "fileSize", void 0);
|
|
10064
|
-
__decorate([
|
|
10110
|
+
__decorate$1([
|
|
10065
10111
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10066
10112
|
], LogotypeAudioInfo.prototype, "playTime", void 0);
|
|
10067
|
-
__decorate([
|
|
10113
|
+
__decorate$1([
|
|
10068
10114
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10069
10115
|
], LogotypeAudioInfo.prototype, "channels", void 0);
|
|
10070
|
-
__decorate([
|
|
10116
|
+
__decorate$1([
|
|
10071
10117
|
AsnProp({ type: AsnPropTypes.Integer, implicit: true, context: 3, optional: true })
|
|
10072
10118
|
], LogotypeAudioInfo.prototype, "sampleRate", void 0);
|
|
10073
|
-
__decorate([
|
|
10119
|
+
__decorate$1([
|
|
10074
10120
|
AsnProp({ type: AsnPropTypes.IA5String, implicit: true, context: 4, optional: true })
|
|
10075
10121
|
], LogotypeAudioInfo.prototype, "language", void 0);
|
|
10076
10122
|
|
|
@@ -10080,10 +10126,10 @@ class LogotypeAudio {
|
|
|
10080
10126
|
Object.assign(this, params);
|
|
10081
10127
|
}
|
|
10082
10128
|
}
|
|
10083
|
-
__decorate([
|
|
10129
|
+
__decorate$1([
|
|
10084
10130
|
AsnProp({ type: LogotypeDetails })
|
|
10085
10131
|
], LogotypeAudio.prototype, "audioDetails", void 0);
|
|
10086
|
-
__decorate([
|
|
10132
|
+
__decorate$1([
|
|
10087
10133
|
AsnProp({ type: LogotypeAudioInfo, optional: true })
|
|
10088
10134
|
], LogotypeAudio.prototype, "audioInfo", void 0);
|
|
10089
10135
|
|
|
@@ -10092,13 +10138,13 @@ let LogotypeImageResolution = class LogotypeImageResolution {
|
|
|
10092
10138
|
Object.assign(this, params);
|
|
10093
10139
|
}
|
|
10094
10140
|
};
|
|
10095
|
-
__decorate([
|
|
10141
|
+
__decorate$1([
|
|
10096
10142
|
AsnProp({ type: AsnPropTypes.Integer, context: 1, implicit: true })
|
|
10097
10143
|
], LogotypeImageResolution.prototype, "numBits", void 0);
|
|
10098
|
-
__decorate([
|
|
10144
|
+
__decorate$1([
|
|
10099
10145
|
AsnProp({ type: AsnPropTypes.Integer, context: 2, implicit: true })
|
|
10100
10146
|
], LogotypeImageResolution.prototype, "tableSize", void 0);
|
|
10101
|
-
LogotypeImageResolution = __decorate([
|
|
10147
|
+
LogotypeImageResolution = __decorate$1([
|
|
10102
10148
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
10103
10149
|
], LogotypeImageResolution);
|
|
10104
10150
|
|
|
@@ -10116,22 +10162,22 @@ class LogotypeImageInfo {
|
|
|
10116
10162
|
Object.assign(this, params);
|
|
10117
10163
|
}
|
|
10118
10164
|
}
|
|
10119
|
-
__decorate([
|
|
10165
|
+
__decorate$1([
|
|
10120
10166
|
AsnProp({ type: AsnPropTypes.Integer, context: 0, implicit: true, defaultValue: LogotypeImageType.color })
|
|
10121
10167
|
], LogotypeImageInfo.prototype, "type", void 0);
|
|
10122
|
-
__decorate([
|
|
10168
|
+
__decorate$1([
|
|
10123
10169
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10124
10170
|
], LogotypeImageInfo.prototype, "fileSize", void 0);
|
|
10125
|
-
__decorate([
|
|
10171
|
+
__decorate$1([
|
|
10126
10172
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10127
10173
|
], LogotypeImageInfo.prototype, "xSize", void 0);
|
|
10128
|
-
__decorate([
|
|
10174
|
+
__decorate$1([
|
|
10129
10175
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10130
10176
|
], LogotypeImageInfo.prototype, "ySize", void 0);
|
|
10131
|
-
__decorate([
|
|
10177
|
+
__decorate$1([
|
|
10132
10178
|
AsnProp({ type: LogotypeImageResolution })
|
|
10133
10179
|
], LogotypeImageInfo.prototype, "resolution", void 0);
|
|
10134
|
-
__decorate([
|
|
10180
|
+
__decorate$1([
|
|
10135
10181
|
AsnProp({ type: AsnPropTypes.IA5String, context: 4, implicit: true, optional: true })
|
|
10136
10182
|
], LogotypeImageInfo.prototype, "language", void 0);
|
|
10137
10183
|
|
|
@@ -10141,10 +10187,10 @@ class LogotypeImage {
|
|
|
10141
10187
|
Object.assign(this, params);
|
|
10142
10188
|
}
|
|
10143
10189
|
}
|
|
10144
|
-
__decorate([
|
|
10190
|
+
__decorate$1([
|
|
10145
10191
|
AsnProp({ type: LogotypeDetails })
|
|
10146
10192
|
], LogotypeImage.prototype, "imageDetails", void 0);
|
|
10147
|
-
__decorate([
|
|
10193
|
+
__decorate$1([
|
|
10148
10194
|
AsnProp({ type: LogotypeImageInfo, optional: true })
|
|
10149
10195
|
], LogotypeImage.prototype, "imageInfo", void 0);
|
|
10150
10196
|
|
|
@@ -10153,10 +10199,10 @@ class LogotypeData {
|
|
|
10153
10199
|
Object.assign(this, params);
|
|
10154
10200
|
}
|
|
10155
10201
|
}
|
|
10156
|
-
__decorate([
|
|
10202
|
+
__decorate$1([
|
|
10157
10203
|
AsnProp({ type: LogotypeImage, repeated: "sequence", optional: true })
|
|
10158
10204
|
], LogotypeData.prototype, "image", void 0);
|
|
10159
|
-
__decorate([
|
|
10205
|
+
__decorate$1([
|
|
10160
10206
|
AsnProp({ type: LogotypeAudio, repeated: "sequence", context: 1, optional: true })
|
|
10161
10207
|
], LogotypeData.prototype, "audio", void 0);
|
|
10162
10208
|
|
|
@@ -10167,10 +10213,10 @@ class LogotypeReference {
|
|
|
10167
10213
|
Object.assign(this, params);
|
|
10168
10214
|
}
|
|
10169
10215
|
}
|
|
10170
|
-
__decorate([
|
|
10216
|
+
__decorate$1([
|
|
10171
10217
|
AsnProp({ type: HashAlgAndValue, repeated: "sequence" })
|
|
10172
10218
|
], LogotypeReference.prototype, "refStructHash", void 0);
|
|
10173
|
-
__decorate([
|
|
10219
|
+
__decorate$1([
|
|
10174
10220
|
AsnProp({ type: AsnPropTypes.IA5String, repeated: "sequence" })
|
|
10175
10221
|
], LogotypeReference.prototype, "refStructURI", void 0);
|
|
10176
10222
|
|
|
@@ -10179,13 +10225,13 @@ let LogotypeInfo = class LogotypeInfo {
|
|
|
10179
10225
|
Object.assign(this, params);
|
|
10180
10226
|
}
|
|
10181
10227
|
};
|
|
10182
|
-
__decorate([
|
|
10228
|
+
__decorate$1([
|
|
10183
10229
|
AsnProp({ type: LogotypeData, implicit: true, context: 0 })
|
|
10184
10230
|
], LogotypeInfo.prototype, "direct", void 0);
|
|
10185
|
-
__decorate([
|
|
10231
|
+
__decorate$1([
|
|
10186
10232
|
AsnProp({ type: LogotypeReference, implicit: true, context: 1 })
|
|
10187
10233
|
], LogotypeInfo.prototype, "indirect", void 0);
|
|
10188
|
-
LogotypeInfo = __decorate([
|
|
10234
|
+
LogotypeInfo = __decorate$1([
|
|
10189
10235
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
10190
10236
|
], LogotypeInfo);
|
|
10191
10237
|
|
|
@@ -10196,10 +10242,10 @@ class OtherLogotypeInfo {
|
|
|
10196
10242
|
Object.assign(this, params);
|
|
10197
10243
|
}
|
|
10198
10244
|
}
|
|
10199
|
-
__decorate([
|
|
10245
|
+
__decorate$1([
|
|
10200
10246
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
10201
10247
|
], OtherLogotypeInfo.prototype, "logotypeType", void 0);
|
|
10202
|
-
__decorate([
|
|
10248
|
+
__decorate$1([
|
|
10203
10249
|
AsnProp({ type: LogotypeInfo })
|
|
10204
10250
|
], OtherLogotypeInfo.prototype, "info", void 0);
|
|
10205
10251
|
|
|
@@ -10208,16 +10254,16 @@ class LogotypeExtn {
|
|
|
10208
10254
|
Object.assign(this, params);
|
|
10209
10255
|
}
|
|
10210
10256
|
}
|
|
10211
|
-
__decorate([
|
|
10257
|
+
__decorate$1([
|
|
10212
10258
|
AsnProp({ type: LogotypeInfo, context: 0, repeated: "sequence", optional: true })
|
|
10213
10259
|
], LogotypeExtn.prototype, "communityLogos", void 0);
|
|
10214
|
-
__decorate([
|
|
10260
|
+
__decorate$1([
|
|
10215
10261
|
AsnProp({ type: LogotypeInfo, context: 1, optional: true })
|
|
10216
10262
|
], LogotypeExtn.prototype, "issuerLogo", void 0);
|
|
10217
|
-
__decorate([
|
|
10263
|
+
__decorate$1([
|
|
10218
10264
|
AsnProp({ type: LogotypeInfo, context: 2, optional: true })
|
|
10219
10265
|
], LogotypeExtn.prototype, "subjectLogo", void 0);
|
|
10220
|
-
__decorate([
|
|
10266
|
+
__decorate$1([
|
|
10221
10267
|
AsnProp({ type: OtherLogotypeInfo, context: 3, repeated: "sequence", optional: true })
|
|
10222
10268
|
], LogotypeExtn.prototype, "otherLogos", void 0);
|
|
10223
10269
|
|
|
@@ -10232,7 +10278,7 @@ let JWTClaimNames = JWTClaimNames_1 = class JWTClaimNames extends AsnArray {
|
|
|
10232
10278
|
Object.setPrototypeOf(this, JWTClaimNames_1.prototype);
|
|
10233
10279
|
}
|
|
10234
10280
|
};
|
|
10235
|
-
JWTClaimNames = JWTClaimNames_1 = __decorate([
|
|
10281
|
+
JWTClaimNames = JWTClaimNames_1 = __decorate$1([
|
|
10236
10282
|
AsnType({
|
|
10237
10283
|
type: AsnTypeTypes.Sequence,
|
|
10238
10284
|
itemType: AsnPropTypes.IA5String
|
|
@@ -10245,12 +10291,12 @@ class JWTClaimPermittedValues {
|
|
|
10245
10291
|
Object.assign(this, params);
|
|
10246
10292
|
}
|
|
10247
10293
|
}
|
|
10248
|
-
__decorate([
|
|
10294
|
+
__decorate$1([
|
|
10249
10295
|
AsnProp({
|
|
10250
10296
|
type: AsnPropTypes.IA5String,
|
|
10251
10297
|
})
|
|
10252
10298
|
], JWTClaimPermittedValues.prototype, "claim", void 0);
|
|
10253
|
-
__decorate([
|
|
10299
|
+
__decorate$1([
|
|
10254
10300
|
AsnProp({
|
|
10255
10301
|
type: AsnPropTypes.Utf8String,
|
|
10256
10302
|
repeated: "sequence",
|
|
@@ -10262,7 +10308,7 @@ let JWTClaimPermittedValuesList = JWTClaimPermittedValuesList_1 = class JWTClaim
|
|
|
10262
10308
|
Object.setPrototypeOf(this, JWTClaimPermittedValuesList_1.prototype);
|
|
10263
10309
|
}
|
|
10264
10310
|
};
|
|
10265
|
-
JWTClaimPermittedValuesList = JWTClaimPermittedValuesList_1 = __decorate([
|
|
10311
|
+
JWTClaimPermittedValuesList = JWTClaimPermittedValuesList_1 = __decorate$1([
|
|
10266
10312
|
AsnType({
|
|
10267
10313
|
type: AsnTypeTypes.Sequence,
|
|
10268
10314
|
itemType: JWTClaimPermittedValues
|
|
@@ -10273,14 +10319,14 @@ class JWTClaimConstraints {
|
|
|
10273
10319
|
Object.assign(this, params);
|
|
10274
10320
|
}
|
|
10275
10321
|
}
|
|
10276
|
-
__decorate([
|
|
10322
|
+
__decorate$1([
|
|
10277
10323
|
AsnProp({
|
|
10278
10324
|
type: JWTClaimNames,
|
|
10279
10325
|
optional: true,
|
|
10280
10326
|
context: 0,
|
|
10281
10327
|
})
|
|
10282
10328
|
], JWTClaimConstraints.prototype, "mustInclude", void 0);
|
|
10283
|
-
__decorate([
|
|
10329
|
+
__decorate$1([
|
|
10284
10330
|
AsnProp({
|
|
10285
10331
|
type: JWTClaimPermittedValuesList,
|
|
10286
10332
|
optional: true,
|
|
@@ -10294,10 +10340,10 @@ class TelephoneNumberRange {
|
|
|
10294
10340
|
this.count = 2;
|
|
10295
10341
|
}
|
|
10296
10342
|
}
|
|
10297
|
-
__decorate([
|
|
10343
|
+
__decorate$1([
|
|
10298
10344
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
10299
10345
|
], TelephoneNumberRange.prototype, "start", void 0);
|
|
10300
|
-
__decorate([
|
|
10346
|
+
__decorate$1([
|
|
10301
10347
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10302
10348
|
], TelephoneNumberRange.prototype, "count", void 0);
|
|
10303
10349
|
let TNEntry = class TNEntry {
|
|
@@ -10305,25 +10351,25 @@ let TNEntry = class TNEntry {
|
|
|
10305
10351
|
Object.assign(this, params);
|
|
10306
10352
|
}
|
|
10307
10353
|
};
|
|
10308
|
-
__decorate([
|
|
10354
|
+
__decorate$1([
|
|
10309
10355
|
AsnProp({
|
|
10310
10356
|
type: AsnPropTypes.IA5String,
|
|
10311
10357
|
context: 0,
|
|
10312
10358
|
})
|
|
10313
10359
|
], TNEntry.prototype, "spc", void 0);
|
|
10314
|
-
__decorate([
|
|
10360
|
+
__decorate$1([
|
|
10315
10361
|
AsnProp({
|
|
10316
10362
|
type: TelephoneNumberRange,
|
|
10317
10363
|
context: 1,
|
|
10318
10364
|
})
|
|
10319
10365
|
], TNEntry.prototype, "range", void 0);
|
|
10320
|
-
__decorate([
|
|
10366
|
+
__decorate$1([
|
|
10321
10367
|
AsnProp({
|
|
10322
10368
|
type: AsnPropTypes.IA5String,
|
|
10323
10369
|
context: 2,
|
|
10324
10370
|
})
|
|
10325
10371
|
], TNEntry.prototype, "one", void 0);
|
|
10326
|
-
TNEntry = __decorate([
|
|
10372
|
+
TNEntry = __decorate$1([
|
|
10327
10373
|
AsnType({
|
|
10328
10374
|
type: AsnTypeTypes.Choice,
|
|
10329
10375
|
})
|
|
@@ -10334,13 +10380,350 @@ let TNAuthorizationList = TNAuthorizationList_1 = class TNAuthorizationList exte
|
|
|
10334
10380
|
Object.setPrototypeOf(this, TNAuthorizationList_1.prototype);
|
|
10335
10381
|
}
|
|
10336
10382
|
};
|
|
10337
|
-
TNAuthorizationList = TNAuthorizationList_1 = __decorate([
|
|
10383
|
+
TNAuthorizationList = TNAuthorizationList_1 = __decorate$1([
|
|
10338
10384
|
AsnType({
|
|
10339
10385
|
type: AsnTypeTypes.Sequence,
|
|
10340
10386
|
itemType: TNEntry,
|
|
10341
10387
|
})
|
|
10342
10388
|
], TNAuthorizationList);
|
|
10343
10389
|
|
|
10390
|
+
var IntegerSet_1;
|
|
10391
|
+
const id_ce_keyDescription = "1.3.6.1.4.1.11129.2.1.17";
|
|
10392
|
+
var VerifiedBootState;
|
|
10393
|
+
(function (VerifiedBootState) {
|
|
10394
|
+
VerifiedBootState[VerifiedBootState["verified"] = 0] = "verified";
|
|
10395
|
+
VerifiedBootState[VerifiedBootState["selfSigned"] = 1] = "selfSigned";
|
|
10396
|
+
VerifiedBootState[VerifiedBootState["unverified"] = 2] = "unverified";
|
|
10397
|
+
VerifiedBootState[VerifiedBootState["failed"] = 3] = "failed";
|
|
10398
|
+
})(VerifiedBootState || (VerifiedBootState = {}));
|
|
10399
|
+
class RootOfTrust {
|
|
10400
|
+
constructor(params = {}) {
|
|
10401
|
+
this.verifiedBootKey = new OctetString();
|
|
10402
|
+
this.deviceLocked = false;
|
|
10403
|
+
this.verifiedBootState = VerifiedBootState.verified;
|
|
10404
|
+
Object.assign(this, params);
|
|
10405
|
+
}
|
|
10406
|
+
}
|
|
10407
|
+
__decorate$1([
|
|
10408
|
+
AsnProp({ type: OctetString })
|
|
10409
|
+
], RootOfTrust.prototype, "verifiedBootKey", void 0);
|
|
10410
|
+
__decorate$1([
|
|
10411
|
+
AsnProp({ type: AsnPropTypes.Boolean })
|
|
10412
|
+
], RootOfTrust.prototype, "deviceLocked", void 0);
|
|
10413
|
+
__decorate$1([
|
|
10414
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10415
|
+
], RootOfTrust.prototype, "verifiedBootState", void 0);
|
|
10416
|
+
__decorate$1([
|
|
10417
|
+
AsnProp({ type: OctetString, optional: true })
|
|
10418
|
+
], RootOfTrust.prototype, "verifiedBootHash", void 0);
|
|
10419
|
+
let IntegerSet = IntegerSet_1 = class IntegerSet extends AsnArray {
|
|
10420
|
+
constructor(items) {
|
|
10421
|
+
super(items);
|
|
10422
|
+
Object.setPrototypeOf(this, IntegerSet_1.prototype);
|
|
10423
|
+
}
|
|
10424
|
+
};
|
|
10425
|
+
IntegerSet = IntegerSet_1 = __decorate$1([
|
|
10426
|
+
AsnType({ type: AsnTypeTypes.Set, itemType: AsnPropTypes.Integer })
|
|
10427
|
+
], IntegerSet);
|
|
10428
|
+
class AuthorizationList {
|
|
10429
|
+
constructor(params = {}) {
|
|
10430
|
+
Object.assign(this, params);
|
|
10431
|
+
}
|
|
10432
|
+
}
|
|
10433
|
+
__decorate$1([
|
|
10434
|
+
AsnProp({ context: 1, type: IntegerSet, optional: true })
|
|
10435
|
+
], AuthorizationList.prototype, "purpose", void 0);
|
|
10436
|
+
__decorate$1([
|
|
10437
|
+
AsnProp({ context: 2, type: AsnPropTypes.Integer, optional: true })
|
|
10438
|
+
], AuthorizationList.prototype, "algorithm", void 0);
|
|
10439
|
+
__decorate$1([
|
|
10440
|
+
AsnProp({ context: 3, type: AsnPropTypes.Integer, optional: true })
|
|
10441
|
+
], AuthorizationList.prototype, "keySize", void 0);
|
|
10442
|
+
__decorate$1([
|
|
10443
|
+
AsnProp({ context: 5, type: IntegerSet, optional: true })
|
|
10444
|
+
], AuthorizationList.prototype, "digest", void 0);
|
|
10445
|
+
__decorate$1([
|
|
10446
|
+
AsnProp({ context: 6, type: IntegerSet, optional: true })
|
|
10447
|
+
], AuthorizationList.prototype, "padding", void 0);
|
|
10448
|
+
__decorate$1([
|
|
10449
|
+
AsnProp({ context: 10, type: AsnPropTypes.Integer, optional: true })
|
|
10450
|
+
], AuthorizationList.prototype, "ecCurve", void 0);
|
|
10451
|
+
__decorate$1([
|
|
10452
|
+
AsnProp({ context: 200, type: AsnPropTypes.Integer, optional: true })
|
|
10453
|
+
], AuthorizationList.prototype, "rsaPublicExponent", void 0);
|
|
10454
|
+
__decorate$1([
|
|
10455
|
+
AsnProp({ context: 303, type: AsnPropTypes.Null, optional: true })
|
|
10456
|
+
], AuthorizationList.prototype, "rollbackResistance", void 0);
|
|
10457
|
+
__decorate$1([
|
|
10458
|
+
AsnProp({ context: 305, type: AsnPropTypes.Null, optional: true })
|
|
10459
|
+
], AuthorizationList.prototype, "earlyBootOnly", void 0);
|
|
10460
|
+
__decorate$1([
|
|
10461
|
+
AsnProp({ context: 400, type: AsnPropTypes.Integer, optional: true })
|
|
10462
|
+
], AuthorizationList.prototype, "activeDateTime", void 0);
|
|
10463
|
+
__decorate$1([
|
|
10464
|
+
AsnProp({ context: 401, type: AsnPropTypes.Integer, optional: true })
|
|
10465
|
+
], AuthorizationList.prototype, "originationExpireDateTime", void 0);
|
|
10466
|
+
__decorate$1([
|
|
10467
|
+
AsnProp({ context: 402, type: AsnPropTypes.Integer, optional: true })
|
|
10468
|
+
], AuthorizationList.prototype, "usageExpireDateTime", void 0);
|
|
10469
|
+
__decorate$1([
|
|
10470
|
+
AsnProp({ context: 503, type: AsnPropTypes.Null, optional: true })
|
|
10471
|
+
], AuthorizationList.prototype, "noAuthRequired", void 0);
|
|
10472
|
+
__decorate$1([
|
|
10473
|
+
AsnProp({ context: 504, type: AsnPropTypes.Integer, optional: true })
|
|
10474
|
+
], AuthorizationList.prototype, "userAuthType", void 0);
|
|
10475
|
+
__decorate$1([
|
|
10476
|
+
AsnProp({ context: 505, type: AsnPropTypes.Integer, optional: true })
|
|
10477
|
+
], AuthorizationList.prototype, "authTimeout", void 0);
|
|
10478
|
+
__decorate$1([
|
|
10479
|
+
AsnProp({ context: 506, type: AsnPropTypes.Null, optional: true })
|
|
10480
|
+
], AuthorizationList.prototype, "allowWhileOnBody", void 0);
|
|
10481
|
+
__decorate$1([
|
|
10482
|
+
AsnProp({ context: 507, type: AsnPropTypes.Null, optional: true })
|
|
10483
|
+
], AuthorizationList.prototype, "trustedUserPresenceRequired", void 0);
|
|
10484
|
+
__decorate$1([
|
|
10485
|
+
AsnProp({ context: 508, type: AsnPropTypes.Null, optional: true })
|
|
10486
|
+
], AuthorizationList.prototype, "trustedConfirmationRequired", void 0);
|
|
10487
|
+
__decorate$1([
|
|
10488
|
+
AsnProp({ context: 509, type: AsnPropTypes.Null, optional: true })
|
|
10489
|
+
], AuthorizationList.prototype, "unlockedDeviceRequired", void 0);
|
|
10490
|
+
__decorate$1([
|
|
10491
|
+
AsnProp({ context: 600, type: AsnPropTypes.Null, optional: true })
|
|
10492
|
+
], AuthorizationList.prototype, "allApplications", void 0);
|
|
10493
|
+
__decorate$1([
|
|
10494
|
+
AsnProp({ context: 601, type: OctetString, optional: true })
|
|
10495
|
+
], AuthorizationList.prototype, "applicationId", void 0);
|
|
10496
|
+
__decorate$1([
|
|
10497
|
+
AsnProp({ context: 701, type: AsnPropTypes.Integer, optional: true })
|
|
10498
|
+
], AuthorizationList.prototype, "creationDateTime", void 0);
|
|
10499
|
+
__decorate$1([
|
|
10500
|
+
AsnProp({ context: 702, type: AsnPropTypes.Integer, optional: true })
|
|
10501
|
+
], AuthorizationList.prototype, "origin", void 0);
|
|
10502
|
+
__decorate$1([
|
|
10503
|
+
AsnProp({ context: 703, type: AsnPropTypes.Null, optional: true })
|
|
10504
|
+
], AuthorizationList.prototype, "rollbackResistant", void 0);
|
|
10505
|
+
__decorate$1([
|
|
10506
|
+
AsnProp({ context: 704, type: RootOfTrust, optional: true })
|
|
10507
|
+
], AuthorizationList.prototype, "rootOfTrust", void 0);
|
|
10508
|
+
__decorate$1([
|
|
10509
|
+
AsnProp({ context: 705, type: AsnPropTypes.Integer, optional: true })
|
|
10510
|
+
], AuthorizationList.prototype, "osVersion", void 0);
|
|
10511
|
+
__decorate$1([
|
|
10512
|
+
AsnProp({ context: 706, type: AsnPropTypes.Integer, optional: true })
|
|
10513
|
+
], AuthorizationList.prototype, "osPatchLevel", void 0);
|
|
10514
|
+
__decorate$1([
|
|
10515
|
+
AsnProp({ context: 709, type: OctetString, optional: true })
|
|
10516
|
+
], AuthorizationList.prototype, "attestationApplicationId", void 0);
|
|
10517
|
+
__decorate$1([
|
|
10518
|
+
AsnProp({ context: 710, type: OctetString, optional: true })
|
|
10519
|
+
], AuthorizationList.prototype, "attestationIdBrand", void 0);
|
|
10520
|
+
__decorate$1([
|
|
10521
|
+
AsnProp({ context: 711, type: OctetString, optional: true })
|
|
10522
|
+
], AuthorizationList.prototype, "attestationIdDevice", void 0);
|
|
10523
|
+
__decorate$1([
|
|
10524
|
+
AsnProp({ context: 712, type: OctetString, optional: true })
|
|
10525
|
+
], AuthorizationList.prototype, "attestationIdProduct", void 0);
|
|
10526
|
+
__decorate$1([
|
|
10527
|
+
AsnProp({ context: 713, type: OctetString, optional: true })
|
|
10528
|
+
], AuthorizationList.prototype, "attestationIdSerial", void 0);
|
|
10529
|
+
__decorate$1([
|
|
10530
|
+
AsnProp({ context: 714, type: OctetString, optional: true })
|
|
10531
|
+
], AuthorizationList.prototype, "attestationIdImei", void 0);
|
|
10532
|
+
__decorate$1([
|
|
10533
|
+
AsnProp({ context: 715, type: OctetString, optional: true })
|
|
10534
|
+
], AuthorizationList.prototype, "attestationIdMeid", void 0);
|
|
10535
|
+
__decorate$1([
|
|
10536
|
+
AsnProp({ context: 716, type: OctetString, optional: true })
|
|
10537
|
+
], AuthorizationList.prototype, "attestationIdManufacturer", void 0);
|
|
10538
|
+
__decorate$1([
|
|
10539
|
+
AsnProp({ context: 717, type: OctetString, optional: true })
|
|
10540
|
+
], AuthorizationList.prototype, "attestationIdModel", void 0);
|
|
10541
|
+
__decorate$1([
|
|
10542
|
+
AsnProp({ context: 718, type: AsnPropTypes.Integer, optional: true })
|
|
10543
|
+
], AuthorizationList.prototype, "vendorPatchLevel", void 0);
|
|
10544
|
+
__decorate$1([
|
|
10545
|
+
AsnProp({ context: 719, type: AsnPropTypes.Integer, optional: true })
|
|
10546
|
+
], AuthorizationList.prototype, "bootPatchLevel", void 0);
|
|
10547
|
+
__decorate$1([
|
|
10548
|
+
AsnProp({ context: 720, type: AsnPropTypes.Null, optional: true })
|
|
10549
|
+
], AuthorizationList.prototype, "deviceUniqueAttestation", void 0);
|
|
10550
|
+
var SecurityLevel;
|
|
10551
|
+
(function (SecurityLevel) {
|
|
10552
|
+
SecurityLevel[SecurityLevel["software"] = 0] = "software";
|
|
10553
|
+
SecurityLevel[SecurityLevel["trustedEnvironment"] = 1] = "trustedEnvironment";
|
|
10554
|
+
SecurityLevel[SecurityLevel["strongBox"] = 2] = "strongBox";
|
|
10555
|
+
})(SecurityLevel || (SecurityLevel = {}));
|
|
10556
|
+
var Version;
|
|
10557
|
+
(function (Version) {
|
|
10558
|
+
Version[Version["KM2"] = 1] = "KM2";
|
|
10559
|
+
Version[Version["KM3"] = 2] = "KM3";
|
|
10560
|
+
Version[Version["KM4"] = 3] = "KM4";
|
|
10561
|
+
Version[Version["KM4_1"] = 4] = "KM4_1";
|
|
10562
|
+
Version[Version["keyMint1"] = 100] = "keyMint1";
|
|
10563
|
+
Version[Version["keyMint2"] = 200] = "keyMint2";
|
|
10564
|
+
})(Version || (Version = {}));
|
|
10565
|
+
class KeyDescription {
|
|
10566
|
+
constructor(params = {}) {
|
|
10567
|
+
this.attestationVersion = Version.KM4;
|
|
10568
|
+
this.attestationSecurityLevel = SecurityLevel.software;
|
|
10569
|
+
this.keymasterVersion = 0;
|
|
10570
|
+
this.keymasterSecurityLevel = SecurityLevel.software;
|
|
10571
|
+
this.attestationChallenge = new OctetString();
|
|
10572
|
+
this.uniqueId = new OctetString();
|
|
10573
|
+
this.softwareEnforced = new AuthorizationList();
|
|
10574
|
+
this.teeEnforced = new AuthorizationList();
|
|
10575
|
+
Object.assign(this, params);
|
|
10576
|
+
}
|
|
10577
|
+
}
|
|
10578
|
+
__decorate$1([
|
|
10579
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10580
|
+
], KeyDescription.prototype, "attestationVersion", void 0);
|
|
10581
|
+
__decorate$1([
|
|
10582
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10583
|
+
], KeyDescription.prototype, "attestationSecurityLevel", void 0);
|
|
10584
|
+
__decorate$1([
|
|
10585
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10586
|
+
], KeyDescription.prototype, "keymasterVersion", void 0);
|
|
10587
|
+
__decorate$1([
|
|
10588
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10589
|
+
], KeyDescription.prototype, "keymasterSecurityLevel", void 0);
|
|
10590
|
+
__decorate$1([
|
|
10591
|
+
AsnProp({ type: OctetString })
|
|
10592
|
+
], KeyDescription.prototype, "attestationChallenge", void 0);
|
|
10593
|
+
__decorate$1([
|
|
10594
|
+
AsnProp({ type: OctetString })
|
|
10595
|
+
], KeyDescription.prototype, "uniqueId", void 0);
|
|
10596
|
+
__decorate$1([
|
|
10597
|
+
AsnProp({ type: AuthorizationList })
|
|
10598
|
+
], KeyDescription.prototype, "softwareEnforced", void 0);
|
|
10599
|
+
__decorate$1([
|
|
10600
|
+
AsnProp({ type: AuthorizationList })
|
|
10601
|
+
], KeyDescription.prototype, "teeEnforced", void 0);
|
|
10602
|
+
|
|
10603
|
+
var NonStandardAuthorizationList_1;
|
|
10604
|
+
let NonStandardAuthorization = class NonStandardAuthorization extends AuthorizationList {
|
|
10605
|
+
};
|
|
10606
|
+
NonStandardAuthorization = __decorate$1([
|
|
10607
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
10608
|
+
], NonStandardAuthorization);
|
|
10609
|
+
let NonStandardAuthorizationList = NonStandardAuthorizationList_1 = class NonStandardAuthorizationList extends AsnArray {
|
|
10610
|
+
constructor(items) {
|
|
10611
|
+
super(items);
|
|
10612
|
+
Object.setPrototypeOf(this, NonStandardAuthorizationList_1.prototype);
|
|
10613
|
+
}
|
|
10614
|
+
findProperty(key) {
|
|
10615
|
+
const prop = this.find((o => key in o));
|
|
10616
|
+
if (prop) {
|
|
10617
|
+
return prop[key];
|
|
10618
|
+
}
|
|
10619
|
+
return undefined;
|
|
10620
|
+
}
|
|
10621
|
+
};
|
|
10622
|
+
NonStandardAuthorizationList = NonStandardAuthorizationList_1 = __decorate$1([
|
|
10623
|
+
AsnType({ type: AsnTypeTypes.Sequence, itemType: NonStandardAuthorization })
|
|
10624
|
+
], NonStandardAuthorizationList);
|
|
10625
|
+
class NonStandardKeyDescription {
|
|
10626
|
+
constructor(params = {}) {
|
|
10627
|
+
this.attestationVersion = Version.KM4;
|
|
10628
|
+
this.attestationSecurityLevel = SecurityLevel.software;
|
|
10629
|
+
this.keymasterVersion = 0;
|
|
10630
|
+
this.keymasterSecurityLevel = SecurityLevel.software;
|
|
10631
|
+
this.attestationChallenge = new OctetString();
|
|
10632
|
+
this.uniqueId = new OctetString();
|
|
10633
|
+
this.softwareEnforced = new NonStandardAuthorizationList();
|
|
10634
|
+
this.teeEnforced = new NonStandardAuthorizationList();
|
|
10635
|
+
Object.assign(this, params);
|
|
10636
|
+
}
|
|
10637
|
+
}
|
|
10638
|
+
__decorate$1([
|
|
10639
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10640
|
+
], NonStandardKeyDescription.prototype, "attestationVersion", void 0);
|
|
10641
|
+
__decorate$1([
|
|
10642
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10643
|
+
], NonStandardKeyDescription.prototype, "attestationSecurityLevel", void 0);
|
|
10644
|
+
__decorate$1([
|
|
10645
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10646
|
+
], NonStandardKeyDescription.prototype, "keymasterVersion", void 0);
|
|
10647
|
+
__decorate$1([
|
|
10648
|
+
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10649
|
+
], NonStandardKeyDescription.prototype, "keymasterSecurityLevel", void 0);
|
|
10650
|
+
__decorate$1([
|
|
10651
|
+
AsnProp({ type: OctetString })
|
|
10652
|
+
], NonStandardKeyDescription.prototype, "attestationChallenge", void 0);
|
|
10653
|
+
__decorate$1([
|
|
10654
|
+
AsnProp({ type: OctetString })
|
|
10655
|
+
], NonStandardKeyDescription.prototype, "uniqueId", void 0);
|
|
10656
|
+
__decorate$1([
|
|
10657
|
+
AsnProp({ type: NonStandardAuthorizationList })
|
|
10658
|
+
], NonStandardKeyDescription.prototype, "softwareEnforced", void 0);
|
|
10659
|
+
__decorate$1([
|
|
10660
|
+
AsnProp({ type: NonStandardAuthorizationList })
|
|
10661
|
+
], NonStandardKeyDescription.prototype, "teeEnforced", void 0);
|
|
10662
|
+
|
|
10663
|
+
class AttestationPackageInfo {
|
|
10664
|
+
constructor(params = {}) {
|
|
10665
|
+
Object.assign(this, params);
|
|
10666
|
+
}
|
|
10667
|
+
}
|
|
10668
|
+
__decorate$1([
|
|
10669
|
+
AsnProp({ type: AsnPropTypes.OctetString })
|
|
10670
|
+
], AttestationPackageInfo.prototype, "packageName", void 0);
|
|
10671
|
+
__decorate$1([
|
|
10672
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
10673
|
+
], AttestationPackageInfo.prototype, "version", void 0);
|
|
10674
|
+
class AttestationApplicationId {
|
|
10675
|
+
constructor(params = {}) {
|
|
10676
|
+
Object.assign(this, params);
|
|
10677
|
+
}
|
|
10678
|
+
}
|
|
10679
|
+
__decorate$1([
|
|
10680
|
+
AsnProp({ type: AttestationPackageInfo, repeated: "set" })
|
|
10681
|
+
], AttestationApplicationId.prototype, "packageInfos", void 0);
|
|
10682
|
+
__decorate$1([
|
|
10683
|
+
AsnProp({ type: AsnPropTypes.OctetString, repeated: "set" })
|
|
10684
|
+
], AttestationApplicationId.prototype, "signatureDigests", void 0);
|
|
10685
|
+
|
|
10686
|
+
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
10687
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
10688
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
10689
|
+
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;
|
|
10690
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
10691
|
+
};
|
|
10692
|
+
/**
|
|
10693
|
+
* Extension OID for CABF organization identifier.
|
|
10694
|
+
*/
|
|
10695
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
10696
|
+
const id_cabforganizationIdentifier = '2.23.140.3.1';
|
|
10697
|
+
/**
|
|
10698
|
+
* Implements ASN.1 enumeration for CABF organization identifier.
|
|
10699
|
+
*
|
|
10700
|
+
* ```asn
|
|
10701
|
+
* CABFOrganizationIdentifier ::= SEQUENCE {
|
|
10702
|
+
* registrationSchemeIdentifier PrintableString (SIZE(3)),
|
|
10703
|
+
* registrationCountry PrintableString (SIZE(2)),
|
|
10704
|
+
* registrationStateOrProvince [0] IMPLICIT PrintableString OPTIONAL (SIZE(0..128)),
|
|
10705
|
+
* registrationReference UTF8String
|
|
10706
|
+
* }
|
|
10707
|
+
* ```
|
|
10708
|
+
*/
|
|
10709
|
+
class CabforganizationIdentifier {
|
|
10710
|
+
constructor(params = {}) {
|
|
10711
|
+
Object.assign(this, params);
|
|
10712
|
+
}
|
|
10713
|
+
}
|
|
10714
|
+
__decorate([
|
|
10715
|
+
AsnProp({ type: AsnPropTypes.PrintableString })
|
|
10716
|
+
], CabforganizationIdentifier.prototype, "registrationSchemeIdentifier", void 0);
|
|
10717
|
+
__decorate([
|
|
10718
|
+
AsnProp({ type: AsnPropTypes.PrintableString })
|
|
10719
|
+
], CabforganizationIdentifier.prototype, "registrationCountry", void 0);
|
|
10720
|
+
__decorate([
|
|
10721
|
+
AsnProp({ type: AsnPropTypes.PrintableString, optional: true })
|
|
10722
|
+
], CabforganizationIdentifier.prototype, "registrationStateOrProvince", void 0);
|
|
10723
|
+
__decorate([
|
|
10724
|
+
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
10725
|
+
], CabforganizationIdentifier.prototype, "registrationReference", void 0);
|
|
10726
|
+
|
|
10344
10727
|
/**
|
|
10345
10728
|
* @license
|
|
10346
10729
|
* Copyright (c) Peculiar Ventures, LLC.
|
|
@@ -10373,7 +10756,7 @@ class AsnData {
|
|
|
10373
10756
|
else {
|
|
10374
10757
|
// raw, type
|
|
10375
10758
|
__classPrivateFieldSet(this, _AsnData_asn, AsnConvert.parse(args[0], args[1]), "f");
|
|
10376
|
-
__classPrivateFieldSet(this, _AsnData_raw,
|
|
10759
|
+
__classPrivateFieldSet(this, _AsnData_raw, BufferSourceConverter_1.toArrayBuffer(args[0]), "f");
|
|
10377
10760
|
}
|
|
10378
10761
|
}
|
|
10379
10762
|
get asn() {
|
|
@@ -10517,14 +10900,20 @@ class Extension extends AsnData {
|
|
|
10517
10900
|
case id_ce_deltaCRLIndicator:
|
|
10518
10901
|
this.value = AsnParser.parse(asnExtnValue, BaseCRLNumber);
|
|
10519
10902
|
break;
|
|
10903
|
+
case id_ce_keyDescription:
|
|
10904
|
+
this.value = AsnParser.parse(asnExtnValue, NonStandardKeyDescription);
|
|
10905
|
+
break;
|
|
10906
|
+
case id_cabforganizationIdentifier:
|
|
10907
|
+
this.value = AsnParser.parse(asnExtnValue, CabforganizationIdentifier);
|
|
10908
|
+
break;
|
|
10520
10909
|
default:
|
|
10521
10910
|
console.warn(`Didn't detect parser for "${this.asn.extnID}" extension.`);
|
|
10522
|
-
this.value =
|
|
10911
|
+
this.value = Convert_1.ToHex(asnExtnValue);
|
|
10523
10912
|
}
|
|
10524
10913
|
}
|
|
10525
10914
|
catch (error) {
|
|
10526
10915
|
console.error(`Error parse "${this.asn.extnID}" extension:`, error.message);
|
|
10527
|
-
this.value =
|
|
10916
|
+
this.value = Convert_1.ToHex(asnExtnValue);
|
|
10528
10917
|
}
|
|
10529
10918
|
}
|
|
10530
10919
|
}
|
|
@@ -10586,13 +10975,13 @@ const certificateRawToBuffer = (raw) => {
|
|
|
10586
10975
|
const rawClarified = base64Clarify(raw);
|
|
10587
10976
|
let buffer;
|
|
10588
10977
|
if (isHex(rawClarified)) {
|
|
10589
|
-
buffer =
|
|
10978
|
+
buffer = Convert_1.FromHex(rawClarified);
|
|
10590
10979
|
}
|
|
10591
10980
|
else if (isBase64(rawClarified) || isPem(rawClarified)) {
|
|
10592
|
-
buffer =
|
|
10981
|
+
buffer = Convert_1.FromBase64(rawClarified);
|
|
10593
10982
|
}
|
|
10594
10983
|
else {
|
|
10595
|
-
buffer =
|
|
10984
|
+
buffer = Convert_1.FromBinary(raw);
|
|
10596
10985
|
}
|
|
10597
10986
|
return buffer;
|
|
10598
10987
|
};
|
|
@@ -10612,13 +11001,13 @@ class ACClearAttrs {
|
|
|
10612
11001
|
Object.assign(this, params);
|
|
10613
11002
|
}
|
|
10614
11003
|
}
|
|
10615
|
-
__decorate([
|
|
11004
|
+
__decorate$1([
|
|
10616
11005
|
AsnProp({ type: GeneralName })
|
|
10617
11006
|
], ACClearAttrs.prototype, "acIssuer", void 0);
|
|
10618
|
-
__decorate([
|
|
11007
|
+
__decorate$1([
|
|
10619
11008
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10620
11009
|
], ACClearAttrs.prototype, "acSerial", void 0);
|
|
10621
|
-
__decorate([
|
|
11010
|
+
__decorate$1([
|
|
10622
11011
|
AsnProp({ type: Attribute$1, repeated: "sequence" })
|
|
10623
11012
|
], ACClearAttrs.prototype, "attrs", void 0);
|
|
10624
11013
|
|
|
@@ -10629,7 +11018,7 @@ let AttrSpec = AttrSpec_1 = class AttrSpec extends AsnArray {
|
|
|
10629
11018
|
Object.setPrototypeOf(this, AttrSpec_1.prototype);
|
|
10630
11019
|
}
|
|
10631
11020
|
};
|
|
10632
|
-
AttrSpec = AttrSpec_1 = __decorate([
|
|
11021
|
+
AttrSpec = AttrSpec_1 = __decorate$1([
|
|
10633
11022
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: AsnPropTypes.ObjectIdentifier })
|
|
10634
11023
|
], AttrSpec);
|
|
10635
11024
|
|
|
@@ -10639,16 +11028,16 @@ class AAControls {
|
|
|
10639
11028
|
Object.assign(this, params);
|
|
10640
11029
|
}
|
|
10641
11030
|
}
|
|
10642
|
-
__decorate([
|
|
11031
|
+
__decorate$1([
|
|
10643
11032
|
AsnProp({ type: AsnPropTypes.Integer, optional: true })
|
|
10644
11033
|
], AAControls.prototype, "pathLenConstraint", void 0);
|
|
10645
|
-
__decorate([
|
|
11034
|
+
__decorate$1([
|
|
10646
11035
|
AsnProp({ type: AttrSpec, implicit: true, context: 0, optional: true })
|
|
10647
11036
|
], AAControls.prototype, "permittedAttrs", void 0);
|
|
10648
|
-
__decorate([
|
|
11037
|
+
__decorate$1([
|
|
10649
11038
|
AsnProp({ type: AttrSpec, implicit: true, context: 1, optional: true })
|
|
10650
11039
|
], AAControls.prototype, "excludedAttrs", void 0);
|
|
10651
|
-
__decorate([
|
|
11040
|
+
__decorate$1([
|
|
10652
11041
|
AsnProp({ type: AsnPropTypes.Boolean, defaultValue: true })
|
|
10653
11042
|
], AAControls.prototype, "permitUnSpecified", void 0);
|
|
10654
11043
|
|
|
@@ -10660,13 +11049,13 @@ class IssuerSerial {
|
|
|
10660
11049
|
Object.assign(this, params);
|
|
10661
11050
|
}
|
|
10662
11051
|
}
|
|
10663
|
-
__decorate([
|
|
11052
|
+
__decorate$1([
|
|
10664
11053
|
AsnProp({ type: GeneralNames })
|
|
10665
11054
|
], IssuerSerial.prototype, "issuer", void 0);
|
|
10666
|
-
__decorate([
|
|
11055
|
+
__decorate$1([
|
|
10667
11056
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
10668
11057
|
], IssuerSerial.prototype, "serial", void 0);
|
|
10669
|
-
__decorate([
|
|
11058
|
+
__decorate$1([
|
|
10670
11059
|
AsnProp({ type: AsnPropTypes.BitString, optional: true })
|
|
10671
11060
|
], IssuerSerial.prototype, "issuerUID", void 0);
|
|
10672
11061
|
|
|
@@ -10684,16 +11073,16 @@ class ObjectDigestInfo {
|
|
|
10684
11073
|
Object.assign(this, params);
|
|
10685
11074
|
}
|
|
10686
11075
|
}
|
|
10687
|
-
__decorate([
|
|
11076
|
+
__decorate$1([
|
|
10688
11077
|
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
10689
11078
|
], ObjectDigestInfo.prototype, "digestedObjectType", void 0);
|
|
10690
|
-
__decorate([
|
|
11079
|
+
__decorate$1([
|
|
10691
11080
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier, optional: true })
|
|
10692
11081
|
], ObjectDigestInfo.prototype, "otherObjectTypeID", void 0);
|
|
10693
|
-
__decorate([
|
|
11082
|
+
__decorate$1([
|
|
10694
11083
|
AsnProp({ type: AlgorithmIdentifier })
|
|
10695
11084
|
], ObjectDigestInfo.prototype, "digestAlgorithm", void 0);
|
|
10696
|
-
__decorate([
|
|
11085
|
+
__decorate$1([
|
|
10697
11086
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
10698
11087
|
], ObjectDigestInfo.prototype, "objectDigest", void 0);
|
|
10699
11088
|
|
|
@@ -10702,13 +11091,13 @@ class V2Form {
|
|
|
10702
11091
|
Object.assign(this, params);
|
|
10703
11092
|
}
|
|
10704
11093
|
}
|
|
10705
|
-
__decorate([
|
|
11094
|
+
__decorate$1([
|
|
10706
11095
|
AsnProp({ type: GeneralNames, optional: true })
|
|
10707
11096
|
], V2Form.prototype, "issuerName", void 0);
|
|
10708
|
-
__decorate([
|
|
11097
|
+
__decorate$1([
|
|
10709
11098
|
AsnProp({ type: IssuerSerial, context: 0, implicit: true, optional: true })
|
|
10710
11099
|
], V2Form.prototype, "baseCertificateID", void 0);
|
|
10711
|
-
__decorate([
|
|
11100
|
+
__decorate$1([
|
|
10712
11101
|
AsnProp({ type: ObjectDigestInfo, context: 1, implicit: true, optional: true })
|
|
10713
11102
|
], V2Form.prototype, "objectDigestInfo", void 0);
|
|
10714
11103
|
|
|
@@ -10717,13 +11106,13 @@ let AttCertIssuer = class AttCertIssuer {
|
|
|
10717
11106
|
Object.assign(this, params);
|
|
10718
11107
|
}
|
|
10719
11108
|
};
|
|
10720
|
-
__decorate([
|
|
11109
|
+
__decorate$1([
|
|
10721
11110
|
AsnProp({ type: GeneralName, repeated: "sequence" })
|
|
10722
11111
|
], AttCertIssuer.prototype, "v1Form", void 0);
|
|
10723
|
-
__decorate([
|
|
11112
|
+
__decorate$1([
|
|
10724
11113
|
AsnProp({ type: V2Form, context: 0, implicit: true })
|
|
10725
11114
|
], AttCertIssuer.prototype, "v2Form", void 0);
|
|
10726
|
-
AttCertIssuer = __decorate([
|
|
11115
|
+
AttCertIssuer = __decorate$1([
|
|
10727
11116
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
10728
11117
|
], AttCertIssuer);
|
|
10729
11118
|
|
|
@@ -10734,10 +11123,10 @@ class AttCertValidityPeriod {
|
|
|
10734
11123
|
Object.assign(this, params);
|
|
10735
11124
|
}
|
|
10736
11125
|
}
|
|
10737
|
-
__decorate([
|
|
11126
|
+
__decorate$1([
|
|
10738
11127
|
AsnProp({ type: AsnPropTypes.GeneralizedTime })
|
|
10739
11128
|
], AttCertValidityPeriod.prototype, "notBeforeTime", void 0);
|
|
10740
|
-
__decorate([
|
|
11129
|
+
__decorate$1([
|
|
10741
11130
|
AsnProp({ type: AsnPropTypes.GeneralizedTime })
|
|
10742
11131
|
], AttCertValidityPeriod.prototype, "notAfterTime", void 0);
|
|
10743
11132
|
|
|
@@ -10746,13 +11135,13 @@ class Holder {
|
|
|
10746
11135
|
Object.assign(this, params);
|
|
10747
11136
|
}
|
|
10748
11137
|
}
|
|
10749
|
-
__decorate([
|
|
11138
|
+
__decorate$1([
|
|
10750
11139
|
AsnProp({ type: IssuerSerial, implicit: true, context: 0, optional: true })
|
|
10751
11140
|
], Holder.prototype, "baseCertificateID", void 0);
|
|
10752
|
-
__decorate([
|
|
11141
|
+
__decorate$1([
|
|
10753
11142
|
AsnProp({ type: GeneralNames, implicit: true, context: 1, optional: true })
|
|
10754
11143
|
], Holder.prototype, "entityName", void 0);
|
|
10755
|
-
__decorate([
|
|
11144
|
+
__decorate$1([
|
|
10756
11145
|
AsnProp({ type: ObjectDigestInfo, implicit: true, context: 2, optional: true })
|
|
10757
11146
|
], Holder.prototype, "objectDigestInfo", void 0);
|
|
10758
11147
|
|
|
@@ -10772,31 +11161,31 @@ class AttributeCertificateInfo {
|
|
|
10772
11161
|
Object.assign(this, params);
|
|
10773
11162
|
}
|
|
10774
11163
|
}
|
|
10775
|
-
__decorate([
|
|
11164
|
+
__decorate$1([
|
|
10776
11165
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
10777
11166
|
], AttributeCertificateInfo.prototype, "version", void 0);
|
|
10778
|
-
__decorate([
|
|
11167
|
+
__decorate$1([
|
|
10779
11168
|
AsnProp({ type: Holder })
|
|
10780
11169
|
], AttributeCertificateInfo.prototype, "holder", void 0);
|
|
10781
|
-
__decorate([
|
|
11170
|
+
__decorate$1([
|
|
10782
11171
|
AsnProp({ type: AttCertIssuer })
|
|
10783
11172
|
], AttributeCertificateInfo.prototype, "issuer", void 0);
|
|
10784
|
-
__decorate([
|
|
11173
|
+
__decorate$1([
|
|
10785
11174
|
AsnProp({ type: AlgorithmIdentifier })
|
|
10786
11175
|
], AttributeCertificateInfo.prototype, "signature", void 0);
|
|
10787
|
-
__decorate([
|
|
11176
|
+
__decorate$1([
|
|
10788
11177
|
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
10789
11178
|
], AttributeCertificateInfo.prototype, "serialNumber", void 0);
|
|
10790
|
-
__decorate([
|
|
11179
|
+
__decorate$1([
|
|
10791
11180
|
AsnProp({ type: AttCertValidityPeriod })
|
|
10792
11181
|
], AttributeCertificateInfo.prototype, "attrCertValidityPeriod", void 0);
|
|
10793
|
-
__decorate([
|
|
11182
|
+
__decorate$1([
|
|
10794
11183
|
AsnProp({ type: Attribute$1, repeated: "sequence" })
|
|
10795
11184
|
], AttributeCertificateInfo.prototype, "attributes", void 0);
|
|
10796
|
-
__decorate([
|
|
11185
|
+
__decorate$1([
|
|
10797
11186
|
AsnProp({ type: AsnPropTypes.BitString, optional: true })
|
|
10798
11187
|
], AttributeCertificateInfo.prototype, "issuerUniqueID", void 0);
|
|
10799
|
-
__decorate([
|
|
11188
|
+
__decorate$1([
|
|
10800
11189
|
AsnProp({ type: Extensions, optional: true })
|
|
10801
11190
|
], AttributeCertificateInfo.prototype, "extensions", void 0);
|
|
10802
11191
|
|
|
@@ -10808,13 +11197,13 @@ class AttributeCertificate {
|
|
|
10808
11197
|
Object.assign(this, params);
|
|
10809
11198
|
}
|
|
10810
11199
|
}
|
|
10811
|
-
__decorate([
|
|
11200
|
+
__decorate$1([
|
|
10812
11201
|
AsnProp({ type: AttributeCertificateInfo })
|
|
10813
11202
|
], AttributeCertificate.prototype, "acinfo", void 0);
|
|
10814
|
-
__decorate([
|
|
11203
|
+
__decorate$1([
|
|
10815
11204
|
AsnProp({ type: AlgorithmIdentifier })
|
|
10816
11205
|
], AttributeCertificate.prototype, "signatureAlgorithm", void 0);
|
|
10817
|
-
__decorate([
|
|
11206
|
+
__decorate$1([
|
|
10818
11207
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
10819
11208
|
], AttributeCertificate.prototype, "signatureValue", void 0);
|
|
10820
11209
|
|
|
@@ -10837,10 +11226,10 @@ class SecurityCategory {
|
|
|
10837
11226
|
Object.assign(this, params);
|
|
10838
11227
|
}
|
|
10839
11228
|
}
|
|
10840
|
-
__decorate([
|
|
11229
|
+
__decorate$1([
|
|
10841
11230
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier, implicit: true, context: 0 })
|
|
10842
11231
|
], SecurityCategory.prototype, "type", void 0);
|
|
10843
|
-
__decorate([
|
|
11232
|
+
__decorate$1([
|
|
10844
11233
|
AsnProp({ type: AsnPropTypes.Any, implicit: true, context: 1 })
|
|
10845
11234
|
], SecurityCategory.prototype, "value", void 0);
|
|
10846
11235
|
|
|
@@ -10851,13 +11240,13 @@ class Clearance {
|
|
|
10851
11240
|
Object.assign(this, params);
|
|
10852
11241
|
}
|
|
10853
11242
|
}
|
|
10854
|
-
__decorate([
|
|
11243
|
+
__decorate$1([
|
|
10855
11244
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
10856
11245
|
], Clearance.prototype, "policyId", void 0);
|
|
10857
|
-
__decorate([
|
|
11246
|
+
__decorate$1([
|
|
10858
11247
|
AsnProp({ type: ClassList, defaultValue: new ClassList(ClassListFlags.unclassified) })
|
|
10859
11248
|
], Clearance.prototype, "classList", void 0);
|
|
10860
|
-
__decorate([
|
|
11249
|
+
__decorate$1([
|
|
10861
11250
|
AsnProp({ type: SecurityCategory, repeated: "set" })
|
|
10862
11251
|
], Clearance.prototype, "securityCategories", void 0);
|
|
10863
11252
|
|
|
@@ -10866,13 +11255,13 @@ class IetfAttrSyntaxValueChoices {
|
|
|
10866
11255
|
Object.assign(this, params);
|
|
10867
11256
|
}
|
|
10868
11257
|
}
|
|
10869
|
-
__decorate([
|
|
11258
|
+
__decorate$1([
|
|
10870
11259
|
AsnProp({ type: OctetString })
|
|
10871
11260
|
], IetfAttrSyntaxValueChoices.prototype, "cotets", void 0);
|
|
10872
|
-
__decorate([
|
|
11261
|
+
__decorate$1([
|
|
10873
11262
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
10874
11263
|
], IetfAttrSyntaxValueChoices.prototype, "oid", void 0);
|
|
10875
|
-
__decorate([
|
|
11264
|
+
__decorate$1([
|
|
10876
11265
|
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
10877
11266
|
], IetfAttrSyntaxValueChoices.prototype, "string", void 0);
|
|
10878
11267
|
class IetfAttrSyntax {
|
|
@@ -10881,10 +11270,10 @@ class IetfAttrSyntax {
|
|
|
10881
11270
|
Object.assign(this, params);
|
|
10882
11271
|
}
|
|
10883
11272
|
}
|
|
10884
|
-
__decorate([
|
|
11273
|
+
__decorate$1([
|
|
10885
11274
|
AsnProp({ type: GeneralNames, implicit: true, context: 0, optional: true })
|
|
10886
11275
|
], IetfAttrSyntax.prototype, "policyAuthority", void 0);
|
|
10887
|
-
__decorate([
|
|
11276
|
+
__decorate$1([
|
|
10888
11277
|
AsnProp({ type: IetfAttrSyntaxValueChoices, repeated: "sequence" })
|
|
10889
11278
|
], IetfAttrSyntax.prototype, "values", void 0);
|
|
10890
11279
|
|
|
@@ -10895,13 +11284,13 @@ class TargetCert {
|
|
|
10895
11284
|
Object.assign(this, params);
|
|
10896
11285
|
}
|
|
10897
11286
|
}
|
|
10898
|
-
__decorate([
|
|
11287
|
+
__decorate$1([
|
|
10899
11288
|
AsnProp({ type: IssuerSerial })
|
|
10900
11289
|
], TargetCert.prototype, "targetCertificate", void 0);
|
|
10901
|
-
__decorate([
|
|
11290
|
+
__decorate$1([
|
|
10902
11291
|
AsnProp({ type: GeneralName, optional: true })
|
|
10903
11292
|
], TargetCert.prototype, "targetName", void 0);
|
|
10904
|
-
__decorate([
|
|
11293
|
+
__decorate$1([
|
|
10905
11294
|
AsnProp({ type: ObjectDigestInfo, optional: true })
|
|
10906
11295
|
], TargetCert.prototype, "certDigestInfo", void 0);
|
|
10907
11296
|
let Target = class Target {
|
|
@@ -10909,16 +11298,16 @@ let Target = class Target {
|
|
|
10909
11298
|
Object.assign(this, params);
|
|
10910
11299
|
}
|
|
10911
11300
|
};
|
|
10912
|
-
__decorate([
|
|
11301
|
+
__decorate$1([
|
|
10913
11302
|
AsnProp({ type: GeneralName, context: 0, implicit: true })
|
|
10914
11303
|
], Target.prototype, "targetName", void 0);
|
|
10915
|
-
__decorate([
|
|
11304
|
+
__decorate$1([
|
|
10916
11305
|
AsnProp({ type: GeneralName, context: 1, implicit: true })
|
|
10917
11306
|
], Target.prototype, "targetGroup", void 0);
|
|
10918
|
-
__decorate([
|
|
11307
|
+
__decorate$1([
|
|
10919
11308
|
AsnProp({ type: TargetCert, context: 2, implicit: true })
|
|
10920
11309
|
], Target.prototype, "targetCert", void 0);
|
|
10921
|
-
Target = __decorate([
|
|
11310
|
+
Target = __decorate$1([
|
|
10922
11311
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
10923
11312
|
], Target);
|
|
10924
11313
|
let Targets = Targets_1 = class Targets extends AsnArray {
|
|
@@ -10927,7 +11316,7 @@ let Targets = Targets_1 = class Targets extends AsnArray {
|
|
|
10927
11316
|
Object.setPrototypeOf(this, Targets_1.prototype);
|
|
10928
11317
|
}
|
|
10929
11318
|
};
|
|
10930
|
-
Targets = Targets_1 = __decorate([
|
|
11319
|
+
Targets = Targets_1 = __decorate$1([
|
|
10931
11320
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: Target })
|
|
10932
11321
|
], Targets);
|
|
10933
11322
|
|
|
@@ -10938,7 +11327,7 @@ let ProxyInfo = ProxyInfo_1 = class ProxyInfo extends AsnArray {
|
|
|
10938
11327
|
Object.setPrototypeOf(this, ProxyInfo_1.prototype);
|
|
10939
11328
|
}
|
|
10940
11329
|
};
|
|
10941
|
-
ProxyInfo = ProxyInfo_1 = __decorate([
|
|
11330
|
+
ProxyInfo = ProxyInfo_1 = __decorate$1([
|
|
10942
11331
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: Targets })
|
|
10943
11332
|
], ProxyInfo);
|
|
10944
11333
|
|
|
@@ -10947,10 +11336,10 @@ class RoleSyntax {
|
|
|
10947
11336
|
Object.assign(this, params);
|
|
10948
11337
|
}
|
|
10949
11338
|
}
|
|
10950
|
-
__decorate([
|
|
11339
|
+
__decorate$1([
|
|
10951
11340
|
AsnProp({ type: GeneralNames, implicit: true, context: 0, optional: true })
|
|
10952
11341
|
], RoleSyntax.prototype, "roleAuthority", void 0);
|
|
10953
|
-
__decorate([
|
|
11342
|
+
__decorate$1([
|
|
10954
11343
|
AsnProp({ type: GeneralName, implicit: true, context: 1 })
|
|
10955
11344
|
], RoleSyntax.prototype, "roleName", void 0);
|
|
10956
11345
|
|
|
@@ -10961,13 +11350,13 @@ class SvceAuthInfo {
|
|
|
10961
11350
|
Object.assign(this, params);
|
|
10962
11351
|
}
|
|
10963
11352
|
}
|
|
10964
|
-
__decorate([
|
|
11353
|
+
__decorate$1([
|
|
10965
11354
|
AsnProp({ type: GeneralName })
|
|
10966
11355
|
], SvceAuthInfo.prototype, "service", void 0);
|
|
10967
|
-
__decorate([
|
|
11356
|
+
__decorate$1([
|
|
10968
11357
|
AsnProp({ type: GeneralName })
|
|
10969
11358
|
], SvceAuthInfo.prototype, "ident", void 0);
|
|
10970
|
-
__decorate([
|
|
11359
|
+
__decorate$1([
|
|
10971
11360
|
AsnProp({ type: OctetString, optional: true })
|
|
10972
11361
|
], SvceAuthInfo.prototype, "authInfo", void 0);
|
|
10973
11362
|
|
|
@@ -10983,19 +11372,19 @@ let ActivityDescription = class ActivityDescription {
|
|
|
10983
11372
|
Object.assign(this, params);
|
|
10984
11373
|
}
|
|
10985
11374
|
};
|
|
10986
|
-
__decorate([
|
|
11375
|
+
__decorate$1([
|
|
10987
11376
|
AsnProp({ type: GeneralName, context: 0 })
|
|
10988
11377
|
], ActivityDescription.prototype, "codeAuthority", void 0);
|
|
10989
|
-
__decorate([
|
|
11378
|
+
__decorate$1([
|
|
10990
11379
|
AsnProp({ type: GeneralName, context: 1 })
|
|
10991
11380
|
], ActivityDescription.prototype, "codeId", void 0);
|
|
10992
|
-
__decorate([
|
|
11381
|
+
__decorate$1([
|
|
10993
11382
|
AsnProp({ type: AsnPropTypes.Utf8String, context: 2 })
|
|
10994
11383
|
], ActivityDescription.prototype, "shortName", void 0);
|
|
10995
|
-
__decorate([
|
|
11384
|
+
__decorate$1([
|
|
10996
11385
|
AsnProp({ type: AsnPropTypes.Utf8String, context: 3 })
|
|
10997
11386
|
], ActivityDescription.prototype, "shortDescription", void 0);
|
|
10998
|
-
ActivityDescription = __decorate([
|
|
11387
|
+
ActivityDescription = __decorate$1([
|
|
10999
11388
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11000
11389
|
], ActivityDescription);
|
|
11001
11390
|
|
|
@@ -11005,7 +11394,7 @@ let DomainName = class DomainName extends Name$1 {
|
|
|
11005
11394
|
Object.setPrototypeOf(this, Name$1.prototype);
|
|
11006
11395
|
}
|
|
11007
11396
|
};
|
|
11008
|
-
DomainName = __decorate([
|
|
11397
|
+
DomainName = __decorate$1([
|
|
11009
11398
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11010
11399
|
], DomainName);
|
|
11011
11400
|
|
|
@@ -11016,7 +11405,7 @@ let DomainNameBeneficiary = class DomainNameBeneficiary extends DomainName {
|
|
|
11016
11405
|
Object.setPrototypeOf(this, Name$1.prototype);
|
|
11017
11406
|
}
|
|
11018
11407
|
};
|
|
11019
|
-
DomainNameBeneficiary = __decorate([
|
|
11408
|
+
DomainNameBeneficiary = __decorate$1([
|
|
11020
11409
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11021
11410
|
], DomainNameBeneficiary);
|
|
11022
11411
|
|
|
@@ -11027,7 +11416,7 @@ let DomainNameLegalRepresentative = class DomainNameLegalRepresentative extends
|
|
|
11027
11416
|
Object.setPrototypeOf(this, Name$1.prototype);
|
|
11028
11417
|
}
|
|
11029
11418
|
};
|
|
11030
|
-
DomainNameLegalRepresentative = __decorate([
|
|
11419
|
+
DomainNameLegalRepresentative = __decorate$1([
|
|
11031
11420
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11032
11421
|
], DomainNameLegalRepresentative);
|
|
11033
11422
|
|
|
@@ -11038,7 +11427,7 @@ let DomainNameOwner = class DomainNameOwner extends DomainName {
|
|
|
11038
11427
|
Object.setPrototypeOf(this, Name$1.prototype);
|
|
11039
11428
|
}
|
|
11040
11429
|
};
|
|
11041
|
-
DomainNameOwner = __decorate([
|
|
11430
|
+
DomainNameOwner = __decorate$1([
|
|
11042
11431
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11043
11432
|
], DomainNameOwner);
|
|
11044
11433
|
|
|
@@ -11049,7 +11438,7 @@ let DomainNameTechnicalOperator = class DomainNameTechnicalOperator extends Doma
|
|
|
11049
11438
|
Object.setPrototypeOf(this, Name$1.prototype);
|
|
11050
11439
|
}
|
|
11051
11440
|
};
|
|
11052
|
-
DomainNameTechnicalOperator = __decorate([
|
|
11441
|
+
DomainNameTechnicalOperator = __decorate$1([
|
|
11053
11442
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11054
11443
|
], DomainNameTechnicalOperator);
|
|
11055
11444
|
|
|
@@ -11065,16 +11454,16 @@ let InsuranceValue = class InsuranceValue {
|
|
|
11065
11454
|
return `${this.base} x 10^${this.degree} ${this.location}`;
|
|
11066
11455
|
}
|
|
11067
11456
|
};
|
|
11068
|
-
__decorate([
|
|
11457
|
+
__decorate$1([
|
|
11069
11458
|
AsnProp({ type: AsnPropTypes.PrintableString })
|
|
11070
11459
|
], InsuranceValue.prototype, "location", void 0);
|
|
11071
|
-
__decorate([
|
|
11460
|
+
__decorate$1([
|
|
11072
11461
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11073
11462
|
], InsuranceValue.prototype, "base", void 0);
|
|
11074
|
-
__decorate([
|
|
11463
|
+
__decorate$1([
|
|
11075
11464
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11076
11465
|
], InsuranceValue.prototype, "degree", void 0);
|
|
11077
|
-
InsuranceValue = __decorate([
|
|
11466
|
+
InsuranceValue = __decorate$1([
|
|
11078
11467
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11079
11468
|
], InsuranceValue);
|
|
11080
11469
|
|
|
@@ -11089,22 +11478,22 @@ let ValuationRanking = class ValuationRanking {
|
|
|
11089
11478
|
Object.assign(this, params);
|
|
11090
11479
|
}
|
|
11091
11480
|
};
|
|
11092
|
-
__decorate([
|
|
11481
|
+
__decorate$1([
|
|
11093
11482
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11094
11483
|
], ValuationRanking.prototype, "stars5", void 0);
|
|
11095
|
-
__decorate([
|
|
11484
|
+
__decorate$1([
|
|
11096
11485
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11097
11486
|
], ValuationRanking.prototype, "stars4", void 0);
|
|
11098
|
-
__decorate([
|
|
11487
|
+
__decorate$1([
|
|
11099
11488
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11100
11489
|
], ValuationRanking.prototype, "stars3", void 0);
|
|
11101
|
-
__decorate([
|
|
11490
|
+
__decorate$1([
|
|
11102
11491
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11103
11492
|
], ValuationRanking.prototype, "stars2", void 0);
|
|
11104
|
-
__decorate([
|
|
11493
|
+
__decorate$1([
|
|
11105
11494
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11106
11495
|
], ValuationRanking.prototype, "stars1", void 0);
|
|
11107
|
-
ValuationRanking = __decorate([
|
|
11496
|
+
ValuationRanking = __decorate$1([
|
|
11108
11497
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11109
11498
|
], ValuationRanking);
|
|
11110
11499
|
|
|
@@ -11117,16 +11506,16 @@ let TypeRelationship = class TypeRelationship {
|
|
|
11117
11506
|
Object.assign(this, params);
|
|
11118
11507
|
}
|
|
11119
11508
|
};
|
|
11120
|
-
__decorate([
|
|
11509
|
+
__decorate$1([
|
|
11121
11510
|
AsnProp({ type: BitString, context: 0 })
|
|
11122
11511
|
], TypeRelationship.prototype, "DNBvsDNO", void 0);
|
|
11123
|
-
__decorate([
|
|
11512
|
+
__decorate$1([
|
|
11124
11513
|
AsnProp({ type: BitString, context: 1 })
|
|
11125
11514
|
], TypeRelationship.prototype, "DNBvsDNT", void 0);
|
|
11126
|
-
__decorate([
|
|
11515
|
+
__decorate$1([
|
|
11127
11516
|
AsnProp({ type: BitString, context: 2 })
|
|
11128
11517
|
], TypeRelationship.prototype, "DNOvsDNT", void 0);
|
|
11129
|
-
TypeRelationship = __decorate([
|
|
11518
|
+
TypeRelationship = __decorate$1([
|
|
11130
11519
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11131
11520
|
], TypeRelationship);
|
|
11132
11521
|
|
|
@@ -11141,77 +11530,199 @@ let WebGDPR = class WebGDPR {
|
|
|
11141
11530
|
Object.assign(this, params);
|
|
11142
11531
|
}
|
|
11143
11532
|
};
|
|
11144
|
-
__decorate([
|
|
11533
|
+
__decorate$1([
|
|
11145
11534
|
AsnProp({ type: GeneralName, context: 0 })
|
|
11146
11535
|
], WebGDPR.prototype, "assessmentAuthority", void 0);
|
|
11147
|
-
__decorate([
|
|
11536
|
+
__decorate$1([
|
|
11148
11537
|
AsnProp({ type: GeneralName, context: 1 })
|
|
11149
11538
|
], WebGDPR.prototype, "assessmentRef", void 0);
|
|
11150
|
-
__decorate([
|
|
11539
|
+
__decorate$1([
|
|
11151
11540
|
AsnProp({ type: GeneralName, context: 2 })
|
|
11152
11541
|
], WebGDPR.prototype, "assessmentLocation", void 0);
|
|
11153
|
-
__decorate([
|
|
11542
|
+
__decorate$1([
|
|
11154
11543
|
AsnProp({ type: AsnPropTypes.PrintableString, context: 3 })
|
|
11155
11544
|
], WebGDPR.prototype, "dataStorageTerritory", void 0);
|
|
11156
|
-
__decorate([
|
|
11545
|
+
__decorate$1([
|
|
11157
11546
|
AsnProp({ type: AsnPropTypes.Utf8String, context: 4 })
|
|
11158
11547
|
], WebGDPR.prototype, "description", void 0);
|
|
11159
|
-
WebGDPR = __decorate([
|
|
11548
|
+
WebGDPR = __decorate$1([
|
|
11160
11549
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11161
11550
|
], WebGDPR);
|
|
11162
11551
|
|
|
11163
|
-
class
|
|
11552
|
+
class IssuerAndSerialNumber {
|
|
11164
11553
|
constructor(params = {}) {
|
|
11165
|
-
this.
|
|
11166
|
-
this.
|
|
11554
|
+
this.issuer = new Name$1;
|
|
11555
|
+
this.serialNumber = new ArrayBuffer(0);
|
|
11167
11556
|
Object.assign(this, params);
|
|
11168
11557
|
}
|
|
11169
11558
|
}
|
|
11170
|
-
__decorate([
|
|
11171
|
-
AsnProp({ type:
|
|
11172
|
-
],
|
|
11173
|
-
__decorate([
|
|
11174
|
-
AsnProp({ type: AsnPropTypes.
|
|
11175
|
-
],
|
|
11559
|
+
__decorate$1([
|
|
11560
|
+
AsnProp({ type: Name$1 })
|
|
11561
|
+
], IssuerAndSerialNumber.prototype, "issuer", void 0);
|
|
11562
|
+
__decorate$1([
|
|
11563
|
+
AsnProp({ type: AsnPropTypes.Integer, converter: AsnIntegerArrayBufferConverter })
|
|
11564
|
+
], IssuerAndSerialNumber.prototype, "serialNumber", void 0);
|
|
11176
11565
|
|
|
11177
|
-
|
|
11178
|
-
class OtherCertificateFormat {
|
|
11179
|
-
constructor(params = {}) {
|
|
11180
|
-
this.otherCertFormat = "";
|
|
11181
|
-
this.otherCert = new ArrayBuffer(0);
|
|
11182
|
-
Object.assign(this, params);
|
|
11183
|
-
}
|
|
11184
|
-
}
|
|
11185
|
-
__decorate([
|
|
11186
|
-
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11187
|
-
], OtherCertificateFormat.prototype, "otherCertFormat", void 0);
|
|
11188
|
-
__decorate([
|
|
11189
|
-
AsnProp({ type: AsnPropTypes.Any })
|
|
11190
|
-
], OtherCertificateFormat.prototype, "otherCert", void 0);
|
|
11191
|
-
let CertificateChoices = class CertificateChoices {
|
|
11566
|
+
let SignerIdentifier = class SignerIdentifier {
|
|
11192
11567
|
constructor(params = {}) {
|
|
11193
11568
|
Object.assign(this, params);
|
|
11194
11569
|
}
|
|
11195
11570
|
};
|
|
11196
|
-
__decorate([
|
|
11197
|
-
AsnProp({ type:
|
|
11198
|
-
],
|
|
11199
|
-
__decorate([
|
|
11200
|
-
AsnProp({ type:
|
|
11201
|
-
],
|
|
11202
|
-
__decorate([
|
|
11203
|
-
AsnProp({ type: OtherCertificateFormat, context: 3, implicit: true })
|
|
11204
|
-
], CertificateChoices.prototype, "other", void 0);
|
|
11205
|
-
CertificateChoices = __decorate([
|
|
11571
|
+
__decorate$1([
|
|
11572
|
+
AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true })
|
|
11573
|
+
], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
11574
|
+
__decorate$1([
|
|
11575
|
+
AsnProp({ type: IssuerAndSerialNumber })
|
|
11576
|
+
], SignerIdentifier.prototype, "issuerAndSerialNumber", void 0);
|
|
11577
|
+
SignerIdentifier = __decorate$1([
|
|
11206
11578
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11207
|
-
],
|
|
11208
|
-
|
|
11209
|
-
|
|
11210
|
-
|
|
11211
|
-
|
|
11212
|
-
|
|
11213
|
-
|
|
11214
|
-
|
|
11579
|
+
], SignerIdentifier);
|
|
11580
|
+
|
|
11581
|
+
var CMSVersion;
|
|
11582
|
+
(function (CMSVersion) {
|
|
11583
|
+
CMSVersion[CMSVersion["v0"] = 0] = "v0";
|
|
11584
|
+
CMSVersion[CMSVersion["v1"] = 1] = "v1";
|
|
11585
|
+
CMSVersion[CMSVersion["v2"] = 2] = "v2";
|
|
11586
|
+
CMSVersion[CMSVersion["v3"] = 3] = "v3";
|
|
11587
|
+
CMSVersion[CMSVersion["v4"] = 4] = "v4";
|
|
11588
|
+
CMSVersion[CMSVersion["v5"] = 5] = "v5";
|
|
11589
|
+
})(CMSVersion || (CMSVersion = {}));
|
|
11590
|
+
let DigestAlgorithmIdentifier = class DigestAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11591
|
+
};
|
|
11592
|
+
DigestAlgorithmIdentifier = __decorate$1([
|
|
11593
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11594
|
+
], DigestAlgorithmIdentifier);
|
|
11595
|
+
let SignatureAlgorithmIdentifier = class SignatureAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11596
|
+
};
|
|
11597
|
+
SignatureAlgorithmIdentifier = __decorate$1([
|
|
11598
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11599
|
+
], SignatureAlgorithmIdentifier);
|
|
11600
|
+
let KeyEncryptionAlgorithmIdentifier = class KeyEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11601
|
+
};
|
|
11602
|
+
KeyEncryptionAlgorithmIdentifier = __decorate$1([
|
|
11603
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11604
|
+
], KeyEncryptionAlgorithmIdentifier);
|
|
11605
|
+
let ContentEncryptionAlgorithmIdentifier = class ContentEncryptionAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11606
|
+
};
|
|
11607
|
+
ContentEncryptionAlgorithmIdentifier = __decorate$1([
|
|
11608
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11609
|
+
], ContentEncryptionAlgorithmIdentifier);
|
|
11610
|
+
let MessageAuthenticationCodeAlgorithm = class MessageAuthenticationCodeAlgorithm extends AlgorithmIdentifier {
|
|
11611
|
+
};
|
|
11612
|
+
MessageAuthenticationCodeAlgorithm = __decorate$1([
|
|
11613
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11614
|
+
], MessageAuthenticationCodeAlgorithm);
|
|
11615
|
+
let KeyDerivationAlgorithmIdentifier = class KeyDerivationAlgorithmIdentifier extends AlgorithmIdentifier {
|
|
11616
|
+
};
|
|
11617
|
+
KeyDerivationAlgorithmIdentifier = __decorate$1([
|
|
11618
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11619
|
+
], KeyDerivationAlgorithmIdentifier);
|
|
11620
|
+
|
|
11621
|
+
class Attribute {
|
|
11622
|
+
constructor(params = {}) {
|
|
11623
|
+
this.attrType = "";
|
|
11624
|
+
this.attrValues = [];
|
|
11625
|
+
Object.assign(this, params);
|
|
11626
|
+
}
|
|
11627
|
+
}
|
|
11628
|
+
__decorate$1([
|
|
11629
|
+
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11630
|
+
], Attribute.prototype, "attrType", void 0);
|
|
11631
|
+
__decorate$1([
|
|
11632
|
+
AsnProp({ type: AsnPropTypes.Any, repeated: "set" })
|
|
11633
|
+
], Attribute.prototype, "attrValues", void 0);
|
|
11634
|
+
|
|
11635
|
+
var SignerInfos_1;
|
|
11636
|
+
class SignerInfo {
|
|
11637
|
+
constructor(params = {}) {
|
|
11638
|
+
this.version = CMSVersion.v0;
|
|
11639
|
+
this.sid = new SignerIdentifier();
|
|
11640
|
+
this.digestAlgorithm = new DigestAlgorithmIdentifier();
|
|
11641
|
+
this.signatureAlgorithm = new SignatureAlgorithmIdentifier();
|
|
11642
|
+
this.signature = new OctetString();
|
|
11643
|
+
Object.assign(this, params);
|
|
11644
|
+
}
|
|
11645
|
+
}
|
|
11646
|
+
__decorate$1([
|
|
11647
|
+
AsnProp({ type: AsnPropTypes.Integer })
|
|
11648
|
+
], SignerInfo.prototype, "version", void 0);
|
|
11649
|
+
__decorate$1([
|
|
11650
|
+
AsnProp({ type: SignerIdentifier })
|
|
11651
|
+
], SignerInfo.prototype, "sid", void 0);
|
|
11652
|
+
__decorate$1([
|
|
11653
|
+
AsnProp({ type: DigestAlgorithmIdentifier })
|
|
11654
|
+
], SignerInfo.prototype, "digestAlgorithm", void 0);
|
|
11655
|
+
__decorate$1([
|
|
11656
|
+
AsnProp({ type: Attribute, repeated: "set", context: 0, implicit: true, optional: true })
|
|
11657
|
+
], SignerInfo.prototype, "signedAttrs", void 0);
|
|
11658
|
+
__decorate$1([
|
|
11659
|
+
AsnProp({ type: SignatureAlgorithmIdentifier })
|
|
11660
|
+
], SignerInfo.prototype, "signatureAlgorithm", void 0);
|
|
11661
|
+
__decorate$1([
|
|
11662
|
+
AsnProp({ type: OctetString })
|
|
11663
|
+
], SignerInfo.prototype, "signature", void 0);
|
|
11664
|
+
__decorate$1([
|
|
11665
|
+
AsnProp({ type: Attribute, repeated: "set", context: 1, implicit: true, optional: true })
|
|
11666
|
+
], SignerInfo.prototype, "unsignedAttrs", void 0);
|
|
11667
|
+
let SignerInfos = SignerInfos_1 = class SignerInfos extends AsnArray {
|
|
11668
|
+
constructor(items) {
|
|
11669
|
+
super(items);
|
|
11670
|
+
Object.setPrototypeOf(this, SignerInfos_1.prototype);
|
|
11671
|
+
}
|
|
11672
|
+
};
|
|
11673
|
+
SignerInfos = SignerInfos_1 = __decorate$1([
|
|
11674
|
+
AsnType({ type: AsnTypeTypes.Set, itemType: SignerInfo })
|
|
11675
|
+
], SignerInfos);
|
|
11676
|
+
|
|
11677
|
+
let SigningTime$1 = class SigningTime extends Time {
|
|
11678
|
+
};
|
|
11679
|
+
SigningTime$1 = __decorate$1([
|
|
11680
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
11681
|
+
], SigningTime$1);
|
|
11682
|
+
let CounterSignature$1 = class CounterSignature extends SignerInfo {
|
|
11683
|
+
};
|
|
11684
|
+
CounterSignature$1 = __decorate$1([
|
|
11685
|
+
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11686
|
+
], CounterSignature$1);
|
|
11687
|
+
|
|
11688
|
+
var CertificateSet_1;
|
|
11689
|
+
class OtherCertificateFormat {
|
|
11690
|
+
constructor(params = {}) {
|
|
11691
|
+
this.otherCertFormat = "";
|
|
11692
|
+
this.otherCert = new ArrayBuffer(0);
|
|
11693
|
+
Object.assign(this, params);
|
|
11694
|
+
}
|
|
11695
|
+
}
|
|
11696
|
+
__decorate$1([
|
|
11697
|
+
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11698
|
+
], OtherCertificateFormat.prototype, "otherCertFormat", void 0);
|
|
11699
|
+
__decorate$1([
|
|
11700
|
+
AsnProp({ type: AsnPropTypes.Any })
|
|
11701
|
+
], OtherCertificateFormat.prototype, "otherCert", void 0);
|
|
11702
|
+
let CertificateChoices = class CertificateChoices {
|
|
11703
|
+
constructor(params = {}) {
|
|
11704
|
+
Object.assign(this, params);
|
|
11705
|
+
}
|
|
11706
|
+
};
|
|
11707
|
+
__decorate$1([
|
|
11708
|
+
AsnProp({ type: Certificate })
|
|
11709
|
+
], CertificateChoices.prototype, "certificate", void 0);
|
|
11710
|
+
__decorate$1([
|
|
11711
|
+
AsnProp({ type: AttributeCertificate, context: 2, implicit: true })
|
|
11712
|
+
], CertificateChoices.prototype, "v2AttrCert", void 0);
|
|
11713
|
+
__decorate$1([
|
|
11714
|
+
AsnProp({ type: OtherCertificateFormat, context: 3, implicit: true })
|
|
11715
|
+
], CertificateChoices.prototype, "other", void 0);
|
|
11716
|
+
CertificateChoices = __decorate$1([
|
|
11717
|
+
AsnType({ type: AsnTypeTypes.Choice })
|
|
11718
|
+
], CertificateChoices);
|
|
11719
|
+
let CertificateSet = CertificateSet_1 = class CertificateSet extends AsnArray {
|
|
11720
|
+
constructor(items) {
|
|
11721
|
+
super(items);
|
|
11722
|
+
Object.setPrototypeOf(this, CertificateSet_1.prototype);
|
|
11723
|
+
}
|
|
11724
|
+
};
|
|
11725
|
+
CertificateSet = CertificateSet_1 = __decorate$1([
|
|
11215
11726
|
AsnType({ type: AsnTypeTypes.Set, itemType: CertificateChoices })
|
|
11216
11727
|
], CertificateSet);
|
|
11217
11728
|
|
|
@@ -11222,10 +11733,10 @@ class ContentInfo {
|
|
|
11222
11733
|
Object.assign(this, params);
|
|
11223
11734
|
}
|
|
11224
11735
|
}
|
|
11225
|
-
__decorate([
|
|
11736
|
+
__decorate$1([
|
|
11226
11737
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11227
11738
|
], ContentInfo.prototype, "contentType", void 0);
|
|
11228
|
-
__decorate([
|
|
11739
|
+
__decorate$1([
|
|
11229
11740
|
AsnProp({ type: AsnPropTypes.Any, context: 0 })
|
|
11230
11741
|
], ContentInfo.prototype, "content", void 0);
|
|
11231
11742
|
|
|
@@ -11234,13 +11745,13 @@ let EncapsulatedContent = class EncapsulatedContent {
|
|
|
11234
11745
|
Object.assign(this, params);
|
|
11235
11746
|
}
|
|
11236
11747
|
};
|
|
11237
|
-
__decorate([
|
|
11748
|
+
__decorate$1([
|
|
11238
11749
|
AsnProp({ type: OctetString })
|
|
11239
11750
|
], EncapsulatedContent.prototype, "single", void 0);
|
|
11240
|
-
__decorate([
|
|
11751
|
+
__decorate$1([
|
|
11241
11752
|
AsnProp({ type: AsnPropTypes.Any })
|
|
11242
11753
|
], EncapsulatedContent.prototype, "any", void 0);
|
|
11243
|
-
EncapsulatedContent = __decorate([
|
|
11754
|
+
EncapsulatedContent = __decorate$1([
|
|
11244
11755
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11245
11756
|
], EncapsulatedContent);
|
|
11246
11757
|
class EncapsulatedContentInfo {
|
|
@@ -11249,65 +11760,25 @@ class EncapsulatedContentInfo {
|
|
|
11249
11760
|
Object.assign(this, params);
|
|
11250
11761
|
}
|
|
11251
11762
|
}
|
|
11252
|
-
__decorate([
|
|
11763
|
+
__decorate$1([
|
|
11253
11764
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11254
11765
|
], EncapsulatedContentInfo.prototype, "eContentType", void 0);
|
|
11255
|
-
__decorate([
|
|
11766
|
+
__decorate$1([
|
|
11256
11767
|
AsnProp({ type: EncapsulatedContent, context: 0, optional: true })
|
|
11257
11768
|
], EncapsulatedContentInfo.prototype, "eContent", void 0);
|
|
11258
11769
|
|
|
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
11770
|
let EncryptedContent = class EncryptedContent {
|
|
11300
11771
|
constructor(params = {}) {
|
|
11301
11772
|
Object.assign(this, params);
|
|
11302
11773
|
}
|
|
11303
11774
|
};
|
|
11304
|
-
__decorate([
|
|
11775
|
+
__decorate$1([
|
|
11305
11776
|
AsnProp({ type: OctetString, context: 0, implicit: true, optional: true })
|
|
11306
11777
|
], EncryptedContent.prototype, "value", void 0);
|
|
11307
|
-
__decorate([
|
|
11778
|
+
__decorate$1([
|
|
11308
11779
|
AsnProp({ type: OctetString, converter: AsnConstructedOctetStringConverter, context: 0, implicit: true, optional: true, repeated: "sequence" })
|
|
11309
11780
|
], EncryptedContent.prototype, "constructedValue", void 0);
|
|
11310
|
-
EncryptedContent = __decorate([
|
|
11781
|
+
EncryptedContent = __decorate$1([
|
|
11311
11782
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11312
11783
|
], EncryptedContent);
|
|
11313
11784
|
class EncryptedContentInfo {
|
|
@@ -11317,40 +11788,26 @@ class EncryptedContentInfo {
|
|
|
11317
11788
|
Object.assign(this, params);
|
|
11318
11789
|
}
|
|
11319
11790
|
}
|
|
11320
|
-
__decorate([
|
|
11791
|
+
__decorate$1([
|
|
11321
11792
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11322
11793
|
], EncryptedContentInfo.prototype, "contentType", void 0);
|
|
11323
|
-
__decorate([
|
|
11794
|
+
__decorate$1([
|
|
11324
11795
|
AsnProp({ type: ContentEncryptionAlgorithmIdentifier })
|
|
11325
11796
|
], EncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0);
|
|
11326
|
-
__decorate([
|
|
11797
|
+
__decorate$1([
|
|
11327
11798
|
AsnProp({ type: EncryptedContent, optional: true })
|
|
11328
11799
|
], EncryptedContentInfo.prototype, "encryptedContent", void 0);
|
|
11329
11800
|
|
|
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
11801
|
class OtherKeyAttribute {
|
|
11345
11802
|
constructor(params = {}) {
|
|
11346
11803
|
this.keyAttrId = "";
|
|
11347
11804
|
Object.assign(this, params);
|
|
11348
11805
|
}
|
|
11349
11806
|
}
|
|
11350
|
-
__decorate([
|
|
11807
|
+
__decorate$1([
|
|
11351
11808
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11352
11809
|
], OtherKeyAttribute.prototype, "keyAttrId", void 0);
|
|
11353
|
-
__decorate([
|
|
11810
|
+
__decorate$1([
|
|
11354
11811
|
AsnProp({ type: AsnPropTypes.Any, optional: true })
|
|
11355
11812
|
], OtherKeyAttribute.prototype, "keyAttr", void 0);
|
|
11356
11813
|
|
|
@@ -11361,13 +11818,13 @@ class RecipientKeyIdentifier {
|
|
|
11361
11818
|
Object.assign(this, params);
|
|
11362
11819
|
}
|
|
11363
11820
|
}
|
|
11364
|
-
__decorate([
|
|
11821
|
+
__decorate$1([
|
|
11365
11822
|
AsnProp({ type: SubjectKeyIdentifier })
|
|
11366
11823
|
], RecipientKeyIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
11367
|
-
__decorate([
|
|
11824
|
+
__decorate$1([
|
|
11368
11825
|
AsnProp({ type: AsnPropTypes.GeneralizedTime, optional: true })
|
|
11369
11826
|
], RecipientKeyIdentifier.prototype, "date", void 0);
|
|
11370
|
-
__decorate([
|
|
11827
|
+
__decorate$1([
|
|
11371
11828
|
AsnProp({ type: OtherKeyAttribute, optional: true })
|
|
11372
11829
|
], RecipientKeyIdentifier.prototype, "other", void 0);
|
|
11373
11830
|
let KeyAgreeRecipientIdentifier = class KeyAgreeRecipientIdentifier {
|
|
@@ -11375,13 +11832,13 @@ let KeyAgreeRecipientIdentifier = class KeyAgreeRecipientIdentifier {
|
|
|
11375
11832
|
Object.assign(this, params);
|
|
11376
11833
|
}
|
|
11377
11834
|
};
|
|
11378
|
-
__decorate([
|
|
11835
|
+
__decorate$1([
|
|
11379
11836
|
AsnProp({ type: RecipientKeyIdentifier, context: 0, implicit: true, optional: true })
|
|
11380
11837
|
], KeyAgreeRecipientIdentifier.prototype, "rKeyId", void 0);
|
|
11381
|
-
__decorate([
|
|
11838
|
+
__decorate$1([
|
|
11382
11839
|
AsnProp({ type: IssuerAndSerialNumber, optional: true })
|
|
11383
11840
|
], KeyAgreeRecipientIdentifier.prototype, "issuerAndSerialNumber", void 0);
|
|
11384
|
-
KeyAgreeRecipientIdentifier = __decorate([
|
|
11841
|
+
KeyAgreeRecipientIdentifier = __decorate$1([
|
|
11385
11842
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11386
11843
|
], KeyAgreeRecipientIdentifier);
|
|
11387
11844
|
class RecipientEncryptedKey {
|
|
@@ -11391,10 +11848,10 @@ class RecipientEncryptedKey {
|
|
|
11391
11848
|
Object.assign(this, params);
|
|
11392
11849
|
}
|
|
11393
11850
|
}
|
|
11394
|
-
__decorate([
|
|
11851
|
+
__decorate$1([
|
|
11395
11852
|
AsnProp({ type: KeyAgreeRecipientIdentifier })
|
|
11396
11853
|
], RecipientEncryptedKey.prototype, "rid", void 0);
|
|
11397
|
-
__decorate([
|
|
11854
|
+
__decorate$1([
|
|
11398
11855
|
AsnProp({ type: OctetString })
|
|
11399
11856
|
], RecipientEncryptedKey.prototype, "encryptedKey", void 0);
|
|
11400
11857
|
let RecipientEncryptedKeys = RecipientEncryptedKeys_1 = class RecipientEncryptedKeys extends AsnArray {
|
|
@@ -11403,7 +11860,7 @@ let RecipientEncryptedKeys = RecipientEncryptedKeys_1 = class RecipientEncrypted
|
|
|
11403
11860
|
Object.setPrototypeOf(this, RecipientEncryptedKeys_1.prototype);
|
|
11404
11861
|
}
|
|
11405
11862
|
};
|
|
11406
|
-
RecipientEncryptedKeys = RecipientEncryptedKeys_1 = __decorate([
|
|
11863
|
+
RecipientEncryptedKeys = RecipientEncryptedKeys_1 = __decorate$1([
|
|
11407
11864
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: RecipientEncryptedKey })
|
|
11408
11865
|
], RecipientEncryptedKeys);
|
|
11409
11866
|
class OriginatorPublicKey {
|
|
@@ -11413,10 +11870,10 @@ class OriginatorPublicKey {
|
|
|
11413
11870
|
Object.assign(this, params);
|
|
11414
11871
|
}
|
|
11415
11872
|
}
|
|
11416
|
-
__decorate([
|
|
11873
|
+
__decorate$1([
|
|
11417
11874
|
AsnProp({ type: AlgorithmIdentifier })
|
|
11418
11875
|
], OriginatorPublicKey.prototype, "algorithm", void 0);
|
|
11419
|
-
__decorate([
|
|
11876
|
+
__decorate$1([
|
|
11420
11877
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
11421
11878
|
], OriginatorPublicKey.prototype, "publicKey", void 0);
|
|
11422
11879
|
let OriginatorIdentifierOrKey = class OriginatorIdentifierOrKey {
|
|
@@ -11424,16 +11881,16 @@ let OriginatorIdentifierOrKey = class OriginatorIdentifierOrKey {
|
|
|
11424
11881
|
Object.assign(this, params);
|
|
11425
11882
|
}
|
|
11426
11883
|
};
|
|
11427
|
-
__decorate([
|
|
11884
|
+
__decorate$1([
|
|
11428
11885
|
AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true, optional: true })
|
|
11429
11886
|
], OriginatorIdentifierOrKey.prototype, "subjectKeyIdentifier", void 0);
|
|
11430
|
-
__decorate([
|
|
11887
|
+
__decorate$1([
|
|
11431
11888
|
AsnProp({ type: OriginatorPublicKey, context: 1, implicit: true, optional: true })
|
|
11432
11889
|
], OriginatorIdentifierOrKey.prototype, "originatorKey", void 0);
|
|
11433
|
-
__decorate([
|
|
11890
|
+
__decorate$1([
|
|
11434
11891
|
AsnProp({ type: IssuerAndSerialNumber, optional: true })
|
|
11435
11892
|
], OriginatorIdentifierOrKey.prototype, "issuerAndSerialNumber", void 0);
|
|
11436
|
-
OriginatorIdentifierOrKey = __decorate([
|
|
11893
|
+
OriginatorIdentifierOrKey = __decorate$1([
|
|
11437
11894
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11438
11895
|
], OriginatorIdentifierOrKey);
|
|
11439
11896
|
class KeyAgreeRecipientInfo {
|
|
@@ -11445,19 +11902,19 @@ class KeyAgreeRecipientInfo {
|
|
|
11445
11902
|
Object.assign(this, params);
|
|
11446
11903
|
}
|
|
11447
11904
|
}
|
|
11448
|
-
__decorate([
|
|
11905
|
+
__decorate$1([
|
|
11449
11906
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11450
11907
|
], KeyAgreeRecipientInfo.prototype, "version", void 0);
|
|
11451
|
-
__decorate([
|
|
11908
|
+
__decorate$1([
|
|
11452
11909
|
AsnProp({ type: OriginatorIdentifierOrKey, context: 0 })
|
|
11453
11910
|
], KeyAgreeRecipientInfo.prototype, "originator", void 0);
|
|
11454
|
-
__decorate([
|
|
11911
|
+
__decorate$1([
|
|
11455
11912
|
AsnProp({ type: OctetString, context: 1, optional: true })
|
|
11456
11913
|
], KeyAgreeRecipientInfo.prototype, "ukm", void 0);
|
|
11457
|
-
__decorate([
|
|
11914
|
+
__decorate$1([
|
|
11458
11915
|
AsnProp({ type: KeyEncryptionAlgorithmIdentifier })
|
|
11459
11916
|
], KeyAgreeRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
11460
|
-
__decorate([
|
|
11917
|
+
__decorate$1([
|
|
11461
11918
|
AsnProp({ type: RecipientEncryptedKeys })
|
|
11462
11919
|
], KeyAgreeRecipientInfo.prototype, "recipientEncryptedKeys", void 0);
|
|
11463
11920
|
|
|
@@ -11466,13 +11923,13 @@ let RecipientIdentifier = class RecipientIdentifier {
|
|
|
11466
11923
|
Object.assign(this, params);
|
|
11467
11924
|
}
|
|
11468
11925
|
};
|
|
11469
|
-
__decorate([
|
|
11926
|
+
__decorate$1([
|
|
11470
11927
|
AsnProp({ type: SubjectKeyIdentifier, context: 0, implicit: true })
|
|
11471
11928
|
], RecipientIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
11472
|
-
__decorate([
|
|
11929
|
+
__decorate$1([
|
|
11473
11930
|
AsnProp({ type: IssuerAndSerialNumber })
|
|
11474
11931
|
], RecipientIdentifier.prototype, "issuerAndSerialNumber", void 0);
|
|
11475
|
-
RecipientIdentifier = __decorate([
|
|
11932
|
+
RecipientIdentifier = __decorate$1([
|
|
11476
11933
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11477
11934
|
], RecipientIdentifier);
|
|
11478
11935
|
class KeyTransRecipientInfo {
|
|
@@ -11484,16 +11941,16 @@ class KeyTransRecipientInfo {
|
|
|
11484
11941
|
Object.assign(this, params);
|
|
11485
11942
|
}
|
|
11486
11943
|
}
|
|
11487
|
-
__decorate([
|
|
11944
|
+
__decorate$1([
|
|
11488
11945
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11489
11946
|
], KeyTransRecipientInfo.prototype, "version", void 0);
|
|
11490
|
-
__decorate([
|
|
11947
|
+
__decorate$1([
|
|
11491
11948
|
AsnProp({ type: RecipientIdentifier })
|
|
11492
11949
|
], KeyTransRecipientInfo.prototype, "rid", void 0);
|
|
11493
|
-
__decorate([
|
|
11950
|
+
__decorate$1([
|
|
11494
11951
|
AsnProp({ type: KeyEncryptionAlgorithmIdentifier })
|
|
11495
11952
|
], KeyTransRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
11496
|
-
__decorate([
|
|
11953
|
+
__decorate$1([
|
|
11497
11954
|
AsnProp({ type: OctetString })
|
|
11498
11955
|
], KeyTransRecipientInfo.prototype, "encryptedKey", void 0);
|
|
11499
11956
|
|
|
@@ -11503,13 +11960,13 @@ class KEKIdentifier {
|
|
|
11503
11960
|
Object.assign(this, params);
|
|
11504
11961
|
}
|
|
11505
11962
|
}
|
|
11506
|
-
__decorate([
|
|
11963
|
+
__decorate$1([
|
|
11507
11964
|
AsnProp({ type: OctetString })
|
|
11508
11965
|
], KEKIdentifier.prototype, "keyIdentifier", void 0);
|
|
11509
|
-
__decorate([
|
|
11966
|
+
__decorate$1([
|
|
11510
11967
|
AsnProp({ type: AsnPropTypes.GeneralizedTime, optional: true })
|
|
11511
11968
|
], KEKIdentifier.prototype, "date", void 0);
|
|
11512
|
-
__decorate([
|
|
11969
|
+
__decorate$1([
|
|
11513
11970
|
AsnProp({ type: OtherKeyAttribute, optional: true })
|
|
11514
11971
|
], KEKIdentifier.prototype, "other", void 0);
|
|
11515
11972
|
class KEKRecipientInfo {
|
|
@@ -11521,16 +11978,16 @@ class KEKRecipientInfo {
|
|
|
11521
11978
|
Object.assign(this, params);
|
|
11522
11979
|
}
|
|
11523
11980
|
}
|
|
11524
|
-
__decorate([
|
|
11981
|
+
__decorate$1([
|
|
11525
11982
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11526
11983
|
], KEKRecipientInfo.prototype, "version", void 0);
|
|
11527
|
-
__decorate([
|
|
11984
|
+
__decorate$1([
|
|
11528
11985
|
AsnProp({ type: KEKIdentifier })
|
|
11529
11986
|
], KEKRecipientInfo.prototype, "kekid", void 0);
|
|
11530
|
-
__decorate([
|
|
11987
|
+
__decorate$1([
|
|
11531
11988
|
AsnProp({ type: KeyEncryptionAlgorithmIdentifier })
|
|
11532
11989
|
], KEKRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
11533
|
-
__decorate([
|
|
11990
|
+
__decorate$1([
|
|
11534
11991
|
AsnProp({ type: OctetString })
|
|
11535
11992
|
], KEKRecipientInfo.prototype, "encryptedKey", void 0);
|
|
11536
11993
|
|
|
@@ -11542,16 +11999,16 @@ class PasswordRecipientInfo {
|
|
|
11542
11999
|
Object.assign(this, params);
|
|
11543
12000
|
}
|
|
11544
12001
|
}
|
|
11545
|
-
__decorate([
|
|
12002
|
+
__decorate$1([
|
|
11546
12003
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11547
12004
|
], PasswordRecipientInfo.prototype, "version", void 0);
|
|
11548
|
-
__decorate([
|
|
12005
|
+
__decorate$1([
|
|
11549
12006
|
AsnProp({ type: KeyDerivationAlgorithmIdentifier, context: 0, optional: true })
|
|
11550
12007
|
], PasswordRecipientInfo.prototype, "keyDerivationAlgorithm", void 0);
|
|
11551
|
-
__decorate([
|
|
12008
|
+
__decorate$1([
|
|
11552
12009
|
AsnProp({ type: KeyEncryptionAlgorithmIdentifier })
|
|
11553
12010
|
], PasswordRecipientInfo.prototype, "keyEncryptionAlgorithm", void 0);
|
|
11554
|
-
__decorate([
|
|
12011
|
+
__decorate$1([
|
|
11555
12012
|
AsnProp({ type: OctetString })
|
|
11556
12013
|
], PasswordRecipientInfo.prototype, "encryptedKey", void 0);
|
|
11557
12014
|
|
|
@@ -11562,10 +12019,10 @@ class OtherRecipientInfo {
|
|
|
11562
12019
|
Object.assign(this, params);
|
|
11563
12020
|
}
|
|
11564
12021
|
}
|
|
11565
|
-
__decorate([
|
|
12022
|
+
__decorate$1([
|
|
11566
12023
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11567
12024
|
], OtherRecipientInfo.prototype, "oriType", void 0);
|
|
11568
|
-
__decorate([
|
|
12025
|
+
__decorate$1([
|
|
11569
12026
|
AsnProp({ type: AsnPropTypes.Any })
|
|
11570
12027
|
], OtherRecipientInfo.prototype, "oriValue", void 0);
|
|
11571
12028
|
let RecipientInfo = class RecipientInfo {
|
|
@@ -11573,22 +12030,22 @@ let RecipientInfo = class RecipientInfo {
|
|
|
11573
12030
|
Object.assign(this, params);
|
|
11574
12031
|
}
|
|
11575
12032
|
};
|
|
11576
|
-
__decorate([
|
|
12033
|
+
__decorate$1([
|
|
11577
12034
|
AsnProp({ type: KeyTransRecipientInfo, optional: true })
|
|
11578
12035
|
], RecipientInfo.prototype, "ktri", void 0);
|
|
11579
|
-
__decorate([
|
|
12036
|
+
__decorate$1([
|
|
11580
12037
|
AsnProp({ type: KeyAgreeRecipientInfo, context: 1, implicit: true, optional: true })
|
|
11581
12038
|
], RecipientInfo.prototype, "kari", void 0);
|
|
11582
|
-
__decorate([
|
|
12039
|
+
__decorate$1([
|
|
11583
12040
|
AsnProp({ type: KEKRecipientInfo, context: 2, implicit: true, optional: true })
|
|
11584
12041
|
], RecipientInfo.prototype, "kekri", void 0);
|
|
11585
|
-
__decorate([
|
|
12042
|
+
__decorate$1([
|
|
11586
12043
|
AsnProp({ type: PasswordRecipientInfo, context: 3, implicit: true, optional: true })
|
|
11587
12044
|
], RecipientInfo.prototype, "pwri", void 0);
|
|
11588
|
-
__decorate([
|
|
12045
|
+
__decorate$1([
|
|
11589
12046
|
AsnProp({ type: OtherRecipientInfo, context: 4, implicit: true, optional: true })
|
|
11590
12047
|
], RecipientInfo.prototype, "ori", void 0);
|
|
11591
|
-
RecipientInfo = __decorate([
|
|
12048
|
+
RecipientInfo = __decorate$1([
|
|
11592
12049
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11593
12050
|
], RecipientInfo);
|
|
11594
12051
|
|
|
@@ -11599,7 +12056,7 @@ let RecipientInfos = RecipientInfos_1 = class RecipientInfos extends AsnArray {
|
|
|
11599
12056
|
Object.setPrototypeOf(this, RecipientInfos_1.prototype);
|
|
11600
12057
|
}
|
|
11601
12058
|
};
|
|
11602
|
-
RecipientInfos = RecipientInfos_1 = __decorate([
|
|
12059
|
+
RecipientInfos = RecipientInfos_1 = __decorate$1([
|
|
11603
12060
|
AsnType({ type: AsnTypeTypes.Set, itemType: RecipientInfo })
|
|
11604
12061
|
], RecipientInfos);
|
|
11605
12062
|
|
|
@@ -11611,10 +12068,10 @@ class OtherRevocationInfoFormat {
|
|
|
11611
12068
|
Object.assign(this, params);
|
|
11612
12069
|
}
|
|
11613
12070
|
}
|
|
11614
|
-
__decorate([
|
|
12071
|
+
__decorate$1([
|
|
11615
12072
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11616
12073
|
], OtherRevocationInfoFormat.prototype, "otherRevInfoFormat", void 0);
|
|
11617
|
-
__decorate([
|
|
12074
|
+
__decorate$1([
|
|
11618
12075
|
AsnProp({ type: AsnPropTypes.Any })
|
|
11619
12076
|
], OtherRevocationInfoFormat.prototype, "otherRevInfo", void 0);
|
|
11620
12077
|
let RevocationInfoChoice = class RevocationInfoChoice {
|
|
@@ -11623,10 +12080,10 @@ let RevocationInfoChoice = class RevocationInfoChoice {
|
|
|
11623
12080
|
Object.assign(this, params);
|
|
11624
12081
|
}
|
|
11625
12082
|
};
|
|
11626
|
-
__decorate([
|
|
12083
|
+
__decorate$1([
|
|
11627
12084
|
AsnProp({ type: OtherRevocationInfoFormat, context: 1, implicit: true })
|
|
11628
12085
|
], RevocationInfoChoice.prototype, "other", void 0);
|
|
11629
|
-
RevocationInfoChoice = __decorate([
|
|
12086
|
+
RevocationInfoChoice = __decorate$1([
|
|
11630
12087
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11631
12088
|
], RevocationInfoChoice);
|
|
11632
12089
|
let RevocationInfoChoices = RevocationInfoChoices_1 = class RevocationInfoChoices extends AsnArray {
|
|
@@ -11635,7 +12092,7 @@ let RevocationInfoChoices = RevocationInfoChoices_1 = class RevocationInfoChoice
|
|
|
11635
12092
|
Object.setPrototypeOf(this, RevocationInfoChoices_1.prototype);
|
|
11636
12093
|
}
|
|
11637
12094
|
};
|
|
11638
|
-
RevocationInfoChoices = RevocationInfoChoices_1 = __decorate([
|
|
12095
|
+
RevocationInfoChoices = RevocationInfoChoices_1 = __decorate$1([
|
|
11639
12096
|
AsnType({ type: AsnTypeTypes.Set, itemType: RevocationInfoChoice })
|
|
11640
12097
|
], RevocationInfoChoices);
|
|
11641
12098
|
|
|
@@ -11644,10 +12101,10 @@ class OriginatorInfo {
|
|
|
11644
12101
|
Object.assign(this, params);
|
|
11645
12102
|
}
|
|
11646
12103
|
}
|
|
11647
|
-
__decorate([
|
|
12104
|
+
__decorate$1([
|
|
11648
12105
|
AsnProp({ type: CertificateSet, context: 0, implicit: true, optional: true })
|
|
11649
12106
|
], OriginatorInfo.prototype, "certs", void 0);
|
|
11650
|
-
__decorate([
|
|
12107
|
+
__decorate$1([
|
|
11651
12108
|
AsnProp({ type: RevocationInfoChoices, context: 1, implicit: true, optional: true })
|
|
11652
12109
|
], OriginatorInfo.prototype, "crls", void 0);
|
|
11653
12110
|
|
|
@@ -11658,7 +12115,7 @@ let UnprotectedAttributes = UnprotectedAttributes_1 = class UnprotectedAttribute
|
|
|
11658
12115
|
Object.setPrototypeOf(this, UnprotectedAttributes_1.prototype);
|
|
11659
12116
|
}
|
|
11660
12117
|
};
|
|
11661
|
-
UnprotectedAttributes = UnprotectedAttributes_1 = __decorate([
|
|
12118
|
+
UnprotectedAttributes = UnprotectedAttributes_1 = __decorate$1([
|
|
11662
12119
|
AsnType({ type: AsnTypeTypes.Set, itemType: Attribute })
|
|
11663
12120
|
], UnprotectedAttributes);
|
|
11664
12121
|
class EnvelopedData {
|
|
@@ -11669,79 +12126,22 @@ class EnvelopedData {
|
|
|
11669
12126
|
Object.assign(this, params);
|
|
11670
12127
|
}
|
|
11671
12128
|
}
|
|
11672
|
-
__decorate([
|
|
12129
|
+
__decorate$1([
|
|
11673
12130
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11674
12131
|
], EnvelopedData.prototype, "version", void 0);
|
|
11675
|
-
__decorate([
|
|
12132
|
+
__decorate$1([
|
|
11676
12133
|
AsnProp({ type: OriginatorInfo, context: 0, implicit: true, optional: true })
|
|
11677
12134
|
], EnvelopedData.prototype, "originatorInfo", void 0);
|
|
11678
|
-
__decorate([
|
|
12135
|
+
__decorate$1([
|
|
11679
12136
|
AsnProp({ type: RecipientInfos })
|
|
11680
12137
|
], EnvelopedData.prototype, "recipientInfos", void 0);
|
|
11681
|
-
__decorate([
|
|
12138
|
+
__decorate$1([
|
|
11682
12139
|
AsnProp({ type: EncryptedContentInfo })
|
|
11683
12140
|
], EnvelopedData.prototype, "encryptedContentInfo", void 0);
|
|
11684
|
-
__decorate([
|
|
12141
|
+
__decorate$1([
|
|
11685
12142
|
AsnProp({ type: UnprotectedAttributes, context: 1, implicit: true, optional: true })
|
|
11686
12143
|
], EnvelopedData.prototype, "unprotectedAttrs", void 0);
|
|
11687
12144
|
|
|
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
12145
|
var DigestAlgorithmIdentifiers_1;
|
|
11746
12146
|
let DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgorithmIdentifiers extends AsnArray {
|
|
11747
12147
|
constructor(items) {
|
|
@@ -11749,7 +12149,7 @@ let DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgo
|
|
|
11749
12149
|
Object.setPrototypeOf(this, DigestAlgorithmIdentifiers_1.prototype);
|
|
11750
12150
|
}
|
|
11751
12151
|
};
|
|
11752
|
-
DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = __decorate([
|
|
12152
|
+
DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = __decorate$1([
|
|
11753
12153
|
AsnType({ type: AsnTypeTypes.Set, itemType: DigestAlgorithmIdentifier })
|
|
11754
12154
|
], DigestAlgorithmIdentifiers);
|
|
11755
12155
|
class SignedData {
|
|
@@ -11761,22 +12161,22 @@ class SignedData {
|
|
|
11761
12161
|
Object.assign(this, params);
|
|
11762
12162
|
}
|
|
11763
12163
|
}
|
|
11764
|
-
__decorate([
|
|
12164
|
+
__decorate$1([
|
|
11765
12165
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11766
12166
|
], SignedData.prototype, "version", void 0);
|
|
11767
|
-
__decorate([
|
|
12167
|
+
__decorate$1([
|
|
11768
12168
|
AsnProp({ type: DigestAlgorithmIdentifiers })
|
|
11769
12169
|
], SignedData.prototype, "digestAlgorithms", void 0);
|
|
11770
|
-
__decorate([
|
|
12170
|
+
__decorate$1([
|
|
11771
12171
|
AsnProp({ type: EncapsulatedContentInfo })
|
|
11772
12172
|
], SignedData.prototype, "encapContentInfo", void 0);
|
|
11773
|
-
__decorate([
|
|
12173
|
+
__decorate$1([
|
|
11774
12174
|
AsnProp({ type: CertificateSet, context: 0, implicit: true, optional: true })
|
|
11775
12175
|
], SignedData.prototype, "certificates", void 0);
|
|
11776
|
-
__decorate([
|
|
12176
|
+
__decorate$1([
|
|
11777
12177
|
AsnProp({ type: RevocationInfoChoice, context: 1, implicit: true, optional: true })
|
|
11778
12178
|
], SignedData.prototype, "crls", void 0);
|
|
11779
|
-
__decorate([
|
|
12179
|
+
__decorate$1([
|
|
11780
12180
|
AsnProp({ type: SignerInfos })
|
|
11781
12181
|
], SignedData.prototype, "signerInfos", void 0);
|
|
11782
12182
|
|
|
@@ -11788,10 +12188,10 @@ class PKCS12Attribute {
|
|
|
11788
12188
|
Object.assign(params);
|
|
11789
12189
|
}
|
|
11790
12190
|
}
|
|
11791
|
-
__decorate([
|
|
12191
|
+
__decorate$1([
|
|
11792
12192
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11793
12193
|
], PKCS12Attribute.prototype, "attrId", void 0);
|
|
11794
|
-
__decorate([
|
|
12194
|
+
__decorate$1([
|
|
11795
12195
|
AsnProp({ type: AsnPropTypes.Any, repeated: "set" })
|
|
11796
12196
|
], PKCS12Attribute.prototype, "attrValues", void 0);
|
|
11797
12197
|
let PKCS12AttrSet = PKCS12AttrSet_1 = class PKCS12AttrSet extends AsnArray {
|
|
@@ -11800,7 +12200,7 @@ let PKCS12AttrSet = PKCS12AttrSet_1 = class PKCS12AttrSet extends AsnArray {
|
|
|
11800
12200
|
Object.setPrototypeOf(this, PKCS12AttrSet_1.prototype);
|
|
11801
12201
|
}
|
|
11802
12202
|
};
|
|
11803
|
-
PKCS12AttrSet = PKCS12AttrSet_1 = __decorate([
|
|
12203
|
+
PKCS12AttrSet = PKCS12AttrSet_1 = __decorate$1([
|
|
11804
12204
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: PKCS12Attribute })
|
|
11805
12205
|
], PKCS12AttrSet);
|
|
11806
12206
|
|
|
@@ -11811,7 +12211,7 @@ let AuthenticatedSafe = AuthenticatedSafe_1 = class AuthenticatedSafe extends As
|
|
|
11811
12211
|
Object.setPrototypeOf(this, AuthenticatedSafe_1.prototype);
|
|
11812
12212
|
}
|
|
11813
12213
|
};
|
|
11814
|
-
AuthenticatedSafe = AuthenticatedSafe_1 = __decorate([
|
|
12214
|
+
AuthenticatedSafe = AuthenticatedSafe_1 = __decorate$1([
|
|
11815
12215
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: ContentInfo })
|
|
11816
12216
|
], AuthenticatedSafe);
|
|
11817
12217
|
|
|
@@ -11822,10 +12222,10 @@ class CertBag {
|
|
|
11822
12222
|
Object.assign(this, params);
|
|
11823
12223
|
}
|
|
11824
12224
|
}
|
|
11825
|
-
__decorate([
|
|
12225
|
+
__decorate$1([
|
|
11826
12226
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11827
12227
|
], CertBag.prototype, "certId", void 0);
|
|
11828
|
-
__decorate([
|
|
12228
|
+
__decorate$1([
|
|
11829
12229
|
AsnProp({ type: AsnPropTypes.Any, context: 0 })
|
|
11830
12230
|
], CertBag.prototype, "certValue", void 0);
|
|
11831
12231
|
|
|
@@ -11836,22 +12236,22 @@ class CRLBag {
|
|
|
11836
12236
|
Object.assign(this, params);
|
|
11837
12237
|
}
|
|
11838
12238
|
}
|
|
11839
|
-
__decorate([
|
|
12239
|
+
__decorate$1([
|
|
11840
12240
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11841
12241
|
], CRLBag.prototype, "crlId", void 0);
|
|
11842
|
-
__decorate([
|
|
12242
|
+
__decorate$1([
|
|
11843
12243
|
AsnProp({ type: AsnPropTypes.Any, context: 0 })
|
|
11844
12244
|
], CRLBag.prototype, "crltValue", void 0);
|
|
11845
12245
|
|
|
11846
12246
|
let KeyBag = class KeyBag extends PrivateKeyInfo$1 {
|
|
11847
12247
|
};
|
|
11848
|
-
KeyBag = __decorate([
|
|
12248
|
+
KeyBag = __decorate$1([
|
|
11849
12249
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11850
12250
|
], KeyBag);
|
|
11851
12251
|
|
|
11852
12252
|
let PKCS8ShroudedKeyBag = class PKCS8ShroudedKeyBag extends EncryptedPrivateKeyInfo$1 {
|
|
11853
12253
|
};
|
|
11854
|
-
PKCS8ShroudedKeyBag = __decorate([
|
|
12254
|
+
PKCS8ShroudedKeyBag = __decorate$1([
|
|
11855
12255
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11856
12256
|
], PKCS8ShroudedKeyBag);
|
|
11857
12257
|
|
|
@@ -11862,10 +12262,10 @@ class SecretBag {
|
|
|
11862
12262
|
Object.assign(this, params);
|
|
11863
12263
|
}
|
|
11864
12264
|
}
|
|
11865
|
-
__decorate([
|
|
12265
|
+
__decorate$1([
|
|
11866
12266
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11867
12267
|
], SecretBag.prototype, "secretTypeId", void 0);
|
|
11868
|
-
__decorate([
|
|
12268
|
+
__decorate$1([
|
|
11869
12269
|
AsnProp({ type: AsnPropTypes.Any, context: 0 })
|
|
11870
12270
|
], SecretBag.prototype, "secretValue", void 0);
|
|
11871
12271
|
|
|
@@ -11877,13 +12277,13 @@ class MacData {
|
|
|
11877
12277
|
Object.assign(this, params);
|
|
11878
12278
|
}
|
|
11879
12279
|
}
|
|
11880
|
-
__decorate([
|
|
12280
|
+
__decorate$1([
|
|
11881
12281
|
AsnProp({ type: DigestInfo })
|
|
11882
12282
|
], MacData.prototype, "mac", void 0);
|
|
11883
|
-
__decorate([
|
|
12283
|
+
__decorate$1([
|
|
11884
12284
|
AsnProp({ type: OctetString })
|
|
11885
12285
|
], MacData.prototype, "macSalt", void 0);
|
|
11886
|
-
__decorate([
|
|
12286
|
+
__decorate$1([
|
|
11887
12287
|
AsnProp({ type: AsnPropTypes.Integer, defaultValue: 1 })
|
|
11888
12288
|
], MacData.prototype, "iterations", void 0);
|
|
11889
12289
|
|
|
@@ -11895,13 +12295,13 @@ class PFX {
|
|
|
11895
12295
|
Object.assign(this, params);
|
|
11896
12296
|
}
|
|
11897
12297
|
}
|
|
11898
|
-
__decorate([
|
|
12298
|
+
__decorate$1([
|
|
11899
12299
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
11900
12300
|
], PFX.prototype, "version", void 0);
|
|
11901
|
-
__decorate([
|
|
12301
|
+
__decorate$1([
|
|
11902
12302
|
AsnProp({ type: ContentInfo })
|
|
11903
12303
|
], PFX.prototype, "authSafe", void 0);
|
|
11904
|
-
__decorate([
|
|
12304
|
+
__decorate$1([
|
|
11905
12305
|
AsnProp({ type: MacData, optional: true })
|
|
11906
12306
|
], PFX.prototype, "macData", void 0);
|
|
11907
12307
|
|
|
@@ -11913,13 +12313,13 @@ class SafeBag {
|
|
|
11913
12313
|
Object.assign(this, params);
|
|
11914
12314
|
}
|
|
11915
12315
|
}
|
|
11916
|
-
__decorate([
|
|
12316
|
+
__decorate$1([
|
|
11917
12317
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
11918
12318
|
], SafeBag.prototype, "bagId", void 0);
|
|
11919
|
-
__decorate([
|
|
12319
|
+
__decorate$1([
|
|
11920
12320
|
AsnProp({ type: AsnPropTypes.Any, context: 0 })
|
|
11921
12321
|
], SafeBag.prototype, "bagValue", void 0);
|
|
11922
|
-
__decorate([
|
|
12322
|
+
__decorate$1([
|
|
11923
12323
|
AsnProp({ type: PKCS12Attribute, repeated: "set", optional: true })
|
|
11924
12324
|
], SafeBag.prototype, "bagAttributes", void 0);
|
|
11925
12325
|
let SafeContents = SafeContents_1 = class SafeContents extends AsnArray {
|
|
@@ -11928,7 +12328,7 @@ let SafeContents = SafeContents_1 = class SafeContents extends AsnArray {
|
|
|
11928
12328
|
Object.setPrototypeOf(this, SafeContents_1.prototype);
|
|
11929
12329
|
}
|
|
11930
12330
|
};
|
|
11931
|
-
SafeContents = SafeContents_1 = __decorate([
|
|
12331
|
+
SafeContents = SafeContents_1 = __decorate$1([
|
|
11932
12332
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: SafeBag })
|
|
11933
12333
|
], SafeContents);
|
|
11934
12334
|
|
|
@@ -11947,25 +12347,25 @@ let PKCS9String = class PKCS9String extends DirectoryString {
|
|
|
11947
12347
|
return this.ia5String || super.toString();
|
|
11948
12348
|
}
|
|
11949
12349
|
};
|
|
11950
|
-
__decorate([
|
|
12350
|
+
__decorate$1([
|
|
11951
12351
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
11952
12352
|
], PKCS9String.prototype, "ia5String", void 0);
|
|
11953
|
-
PKCS9String = __decorate([
|
|
12353
|
+
PKCS9String = __decorate$1([
|
|
11954
12354
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11955
12355
|
], PKCS9String);
|
|
11956
12356
|
let Pkcs7PDU = class Pkcs7PDU extends ContentInfo {
|
|
11957
12357
|
};
|
|
11958
|
-
Pkcs7PDU = __decorate([
|
|
12358
|
+
Pkcs7PDU = __decorate$1([
|
|
11959
12359
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11960
12360
|
], Pkcs7PDU);
|
|
11961
12361
|
let UserPKCS12 = class UserPKCS12 extends PFX {
|
|
11962
12362
|
};
|
|
11963
|
-
UserPKCS12 = __decorate([
|
|
12363
|
+
UserPKCS12 = __decorate$1([
|
|
11964
12364
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11965
12365
|
], UserPKCS12);
|
|
11966
12366
|
let EncryptedPrivateKeyInfo = class EncryptedPrivateKeyInfo extends EncryptedPrivateKeyInfo$1 {
|
|
11967
12367
|
};
|
|
11968
|
-
EncryptedPrivateKeyInfo = __decorate([
|
|
12368
|
+
EncryptedPrivateKeyInfo = __decorate$1([
|
|
11969
12369
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
11970
12370
|
], EncryptedPrivateKeyInfo);
|
|
11971
12371
|
let EmailAddress = class EmailAddress {
|
|
@@ -11976,20 +12376,20 @@ let EmailAddress = class EmailAddress {
|
|
|
11976
12376
|
return this.value;
|
|
11977
12377
|
}
|
|
11978
12378
|
};
|
|
11979
|
-
__decorate([
|
|
12379
|
+
__decorate$1([
|
|
11980
12380
|
AsnProp({ type: AsnPropTypes.IA5String })
|
|
11981
12381
|
], EmailAddress.prototype, "value", void 0);
|
|
11982
|
-
EmailAddress = __decorate([
|
|
12382
|
+
EmailAddress = __decorate$1([
|
|
11983
12383
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11984
12384
|
], EmailAddress);
|
|
11985
12385
|
let UnstructuredName = class UnstructuredName extends PKCS9String {
|
|
11986
12386
|
};
|
|
11987
|
-
UnstructuredName = __decorate([
|
|
12387
|
+
UnstructuredName = __decorate$1([
|
|
11988
12388
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11989
12389
|
], UnstructuredName);
|
|
11990
12390
|
let UnstructuredAddress = class UnstructuredAddress extends DirectoryString {
|
|
11991
12391
|
};
|
|
11992
|
-
UnstructuredAddress = __decorate([
|
|
12392
|
+
UnstructuredAddress = __decorate$1([
|
|
11993
12393
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
11994
12394
|
], UnstructuredAddress);
|
|
11995
12395
|
let DateOfBirth = class DateOfBirth {
|
|
@@ -11997,15 +12397,15 @@ let DateOfBirth = class DateOfBirth {
|
|
|
11997
12397
|
this.value = value;
|
|
11998
12398
|
}
|
|
11999
12399
|
};
|
|
12000
|
-
__decorate([
|
|
12400
|
+
__decorate$1([
|
|
12001
12401
|
AsnProp({ type: AsnPropTypes.GeneralizedTime })
|
|
12002
12402
|
], DateOfBirth.prototype, "value", void 0);
|
|
12003
|
-
DateOfBirth = __decorate([
|
|
12403
|
+
DateOfBirth = __decorate$1([
|
|
12004
12404
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12005
12405
|
], DateOfBirth);
|
|
12006
12406
|
let PlaceOfBirth = class PlaceOfBirth extends DirectoryString {
|
|
12007
12407
|
};
|
|
12008
|
-
PlaceOfBirth = __decorate([
|
|
12408
|
+
PlaceOfBirth = __decorate$1([
|
|
12009
12409
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12010
12410
|
], PlaceOfBirth);
|
|
12011
12411
|
let Gender = class Gender {
|
|
@@ -12016,10 +12416,10 @@ let Gender = class Gender {
|
|
|
12016
12416
|
return this.value;
|
|
12017
12417
|
}
|
|
12018
12418
|
};
|
|
12019
|
-
__decorate([
|
|
12419
|
+
__decorate$1([
|
|
12020
12420
|
AsnProp({ type: AsnPropTypes.PrintableString })
|
|
12021
12421
|
], Gender.prototype, "value", void 0);
|
|
12022
|
-
Gender = __decorate([
|
|
12422
|
+
Gender = __decorate$1([
|
|
12023
12423
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12024
12424
|
], Gender);
|
|
12025
12425
|
let CountryOfCitizenship = class CountryOfCitizenship {
|
|
@@ -12030,20 +12430,20 @@ let CountryOfCitizenship = class CountryOfCitizenship {
|
|
|
12030
12430
|
return this.value;
|
|
12031
12431
|
}
|
|
12032
12432
|
};
|
|
12033
|
-
__decorate([
|
|
12433
|
+
__decorate$1([
|
|
12034
12434
|
AsnProp({ type: AsnPropTypes.PrintableString })
|
|
12035
12435
|
], CountryOfCitizenship.prototype, "value", void 0);
|
|
12036
|
-
CountryOfCitizenship = __decorate([
|
|
12436
|
+
CountryOfCitizenship = __decorate$1([
|
|
12037
12437
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12038
12438
|
], CountryOfCitizenship);
|
|
12039
12439
|
let CountryOfResidence = class CountryOfResidence extends CountryOfCitizenship {
|
|
12040
12440
|
};
|
|
12041
|
-
CountryOfResidence = __decorate([
|
|
12441
|
+
CountryOfResidence = __decorate$1([
|
|
12042
12442
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12043
12443
|
], CountryOfResidence);
|
|
12044
12444
|
let Pseudonym = class Pseudonym extends DirectoryString {
|
|
12045
12445
|
};
|
|
12046
|
-
Pseudonym = __decorate([
|
|
12446
|
+
Pseudonym = __decorate$1([
|
|
12047
12447
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12048
12448
|
], Pseudonym);
|
|
12049
12449
|
let ContentType = class ContentType {
|
|
@@ -12054,15 +12454,15 @@ let ContentType = class ContentType {
|
|
|
12054
12454
|
return this.value;
|
|
12055
12455
|
}
|
|
12056
12456
|
};
|
|
12057
|
-
__decorate([
|
|
12457
|
+
__decorate$1([
|
|
12058
12458
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
12059
12459
|
], ContentType.prototype, "value", void 0);
|
|
12060
|
-
ContentType = __decorate([
|
|
12460
|
+
ContentType = __decorate$1([
|
|
12061
12461
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12062
12462
|
], ContentType);
|
|
12063
12463
|
let SigningTime = class SigningTime extends Time {
|
|
12064
12464
|
};
|
|
12065
|
-
SigningTime = __decorate([
|
|
12465
|
+
SigningTime = __decorate$1([
|
|
12066
12466
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12067
12467
|
], SigningTime);
|
|
12068
12468
|
let SequenceNumber = class SequenceNumber {
|
|
@@ -12073,20 +12473,20 @@ let SequenceNumber = class SequenceNumber {
|
|
|
12073
12473
|
return this.value.toString();
|
|
12074
12474
|
}
|
|
12075
12475
|
};
|
|
12076
|
-
__decorate([
|
|
12476
|
+
__decorate$1([
|
|
12077
12477
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
12078
12478
|
], SequenceNumber.prototype, "value", void 0);
|
|
12079
|
-
SequenceNumber = __decorate([
|
|
12479
|
+
SequenceNumber = __decorate$1([
|
|
12080
12480
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12081
12481
|
], SequenceNumber);
|
|
12082
12482
|
let CounterSignature = class CounterSignature extends SignerInfo {
|
|
12083
12483
|
};
|
|
12084
|
-
CounterSignature = __decorate([
|
|
12484
|
+
CounterSignature = __decorate$1([
|
|
12085
12485
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
12086
12486
|
], CounterSignature);
|
|
12087
12487
|
let ChallengePassword = class ChallengePassword extends DirectoryString {
|
|
12088
12488
|
};
|
|
12089
|
-
ChallengePassword = __decorate([
|
|
12489
|
+
ChallengePassword = __decorate$1([
|
|
12090
12490
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12091
12491
|
], ChallengePassword);
|
|
12092
12492
|
let ExtensionRequest = ExtensionRequest_1 = class ExtensionRequest extends Extensions {
|
|
@@ -12095,7 +12495,7 @@ let ExtensionRequest = ExtensionRequest_1 = class ExtensionRequest extends Exten
|
|
|
12095
12495
|
Object.setPrototypeOf(this, ExtensionRequest_1.prototype);
|
|
12096
12496
|
}
|
|
12097
12497
|
};
|
|
12098
|
-
ExtensionRequest = ExtensionRequest_1 = __decorate([
|
|
12498
|
+
ExtensionRequest = ExtensionRequest_1 = __decorate$1([
|
|
12099
12499
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
12100
12500
|
], ExtensionRequest);
|
|
12101
12501
|
let ExtendedCertificateAttributes = ExtendedCertificateAttributes_1 = class ExtendedCertificateAttributes extends AsnArray {
|
|
@@ -12104,7 +12504,7 @@ let ExtendedCertificateAttributes = ExtendedCertificateAttributes_1 = class Exte
|
|
|
12104
12504
|
Object.setPrototypeOf(this, ExtendedCertificateAttributes_1.prototype);
|
|
12105
12505
|
}
|
|
12106
12506
|
};
|
|
12107
|
-
ExtendedCertificateAttributes = ExtendedCertificateAttributes_1 = __decorate([
|
|
12507
|
+
ExtendedCertificateAttributes = ExtendedCertificateAttributes_1 = __decorate$1([
|
|
12108
12508
|
AsnType({ type: AsnTypeTypes.Set, itemType: Attribute })
|
|
12109
12509
|
], ExtendedCertificateAttributes);
|
|
12110
12510
|
let FriendlyName = class FriendlyName {
|
|
@@ -12115,15 +12515,15 @@ let FriendlyName = class FriendlyName {
|
|
|
12115
12515
|
return this.value;
|
|
12116
12516
|
}
|
|
12117
12517
|
};
|
|
12118
|
-
__decorate([
|
|
12518
|
+
__decorate$1([
|
|
12119
12519
|
AsnProp({ type: AsnPropTypes.BmpString })
|
|
12120
12520
|
], FriendlyName.prototype, "value", void 0);
|
|
12121
|
-
FriendlyName = __decorate([
|
|
12521
|
+
FriendlyName = __decorate$1([
|
|
12122
12522
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
12123
12523
|
], FriendlyName);
|
|
12124
12524
|
let SMIMECapability = class SMIMECapability extends AlgorithmIdentifier {
|
|
12125
12525
|
};
|
|
12126
|
-
SMIMECapability = __decorate([
|
|
12526
|
+
SMIMECapability = __decorate$1([
|
|
12127
12527
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
12128
12528
|
], SMIMECapability);
|
|
12129
12529
|
let SMIMECapabilities = SMIMECapabilities_1 = class SMIMECapabilities extends AsnArray {
|
|
@@ -12132,7 +12532,7 @@ let SMIMECapabilities = SMIMECapabilities_1 = class SMIMECapabilities extends As
|
|
|
12132
12532
|
Object.setPrototypeOf(this, SMIMECapabilities_1.prototype);
|
|
12133
12533
|
}
|
|
12134
12534
|
};
|
|
12135
|
-
SMIMECapabilities = SMIMECapabilities_1 = __decorate([
|
|
12535
|
+
SMIMECapabilities = SMIMECapabilities_1 = __decorate$1([
|
|
12136
12536
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: SMIMECapability })
|
|
12137
12537
|
], SMIMECapabilities);
|
|
12138
12538
|
|
|
@@ -12143,7 +12543,7 @@ let Attributes = Attributes_1 = class Attributes extends AsnArray {
|
|
|
12143
12543
|
Object.setPrototypeOf(this, Attributes_1.prototype);
|
|
12144
12544
|
}
|
|
12145
12545
|
};
|
|
12146
|
-
Attributes = Attributes_1 = __decorate([
|
|
12546
|
+
Attributes = Attributes_1 = __decorate$1([
|
|
12147
12547
|
AsnType({ type: AsnTypeTypes.Sequence, itemType: Attribute$1 })
|
|
12148
12548
|
], Attributes);
|
|
12149
12549
|
|
|
@@ -12156,16 +12556,16 @@ class CertificationRequestInfo {
|
|
|
12156
12556
|
Object.assign(this, params);
|
|
12157
12557
|
}
|
|
12158
12558
|
}
|
|
12159
|
-
__decorate([
|
|
12559
|
+
__decorate$1([
|
|
12160
12560
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
12161
12561
|
], CertificationRequestInfo.prototype, "version", void 0);
|
|
12162
|
-
__decorate([
|
|
12562
|
+
__decorate$1([
|
|
12163
12563
|
AsnProp({ type: Name$1 })
|
|
12164
12564
|
], CertificationRequestInfo.prototype, "subject", void 0);
|
|
12165
|
-
__decorate([
|
|
12565
|
+
__decorate$1([
|
|
12166
12566
|
AsnProp({ type: SubjectPublicKeyInfo })
|
|
12167
12567
|
], CertificationRequestInfo.prototype, "subjectPKInfo", void 0);
|
|
12168
|
-
__decorate([
|
|
12568
|
+
__decorate$1([
|
|
12169
12569
|
AsnProp({ type: Attributes, implicit: true, context: 0 })
|
|
12170
12570
|
], CertificationRequestInfo.prototype, "attributes", void 0);
|
|
12171
12571
|
|
|
@@ -12177,16 +12577,16 @@ class CertificationRequest {
|
|
|
12177
12577
|
Object.assign(this, params);
|
|
12178
12578
|
}
|
|
12179
12579
|
}
|
|
12180
|
-
__decorate([
|
|
12580
|
+
__decorate$1([
|
|
12181
12581
|
AsnProp({ type: CertificationRequestInfo })
|
|
12182
12582
|
], CertificationRequest.prototype, "certificationRequestInfo", void 0);
|
|
12183
|
-
__decorate([
|
|
12583
|
+
__decorate$1([
|
|
12184
12584
|
AsnProp({ type: AlgorithmIdentifier })
|
|
12185
12585
|
], CertificationRequest.prototype, "signatureAlgorithm", void 0);
|
|
12186
|
-
__decorate([
|
|
12586
|
+
__decorate$1([
|
|
12187
12587
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
12188
12588
|
], CertificationRequest.prototype, "signature", void 0);
|
|
12189
12589
|
|
|
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,
|
|
12590
|
+
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, CabforganizationIdentifier as aT, __decorate$1 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
12591
|
|
|
12192
|
-
//# sourceMappingURL=certification_request-
|
|
12592
|
+
//# sourceMappingURL=certification_request-d5ea5973.js.map
|