node-opcua-crypto-web 5.5.0 → 5.6.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/dist/index_web.d.ts +46 -2
- package/dist/index_web.js +1656 -592
- package/package.json +3 -3
package/dist/index_web.js
CHANGED
|
@@ -232,7 +232,7 @@ var require_buffer = __commonJS({
|
|
|
232
232
|
"../../node_modules/buffer/index.js"(exports2) {
|
|
233
233
|
"use strict";
|
|
234
234
|
init_inject_buffer();
|
|
235
|
-
var
|
|
235
|
+
var base642 = require_base64_js();
|
|
236
236
|
var ieee754 = require_ieee754();
|
|
237
237
|
var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
|
|
238
238
|
exports2.Buffer = Buffer2;
|
|
@@ -931,9 +931,9 @@ var require_buffer = __commonJS({
|
|
|
931
931
|
};
|
|
932
932
|
function base64Slice(buf, start, end) {
|
|
933
933
|
if (start === 0 && end === buf.length) {
|
|
934
|
-
return
|
|
934
|
+
return base642.fromByteArray(buf);
|
|
935
935
|
} else {
|
|
936
|
-
return
|
|
936
|
+
return base642.fromByteArray(buf.slice(start, end));
|
|
937
937
|
}
|
|
938
938
|
}
|
|
939
939
|
function utf8Slice(buf, start, end) {
|
|
@@ -1784,7 +1784,7 @@ var require_buffer = __commonJS({
|
|
|
1784
1784
|
return byteArray;
|
|
1785
1785
|
}
|
|
1786
1786
|
function base64ToBytes(str) {
|
|
1787
|
-
return
|
|
1787
|
+
return base642.toByteArray(base64clean(str));
|
|
1788
1788
|
}
|
|
1789
1789
|
function blitBuffer(src, dst, offset, length) {
|
|
1790
1790
|
let i;
|
|
@@ -19813,9 +19813,9 @@ var require_dh = __commonJS({
|
|
|
19813
19813
|
var primeCache = {};
|
|
19814
19814
|
function checkPrime(prime, generator) {
|
|
19815
19815
|
var gen = generator.toString("hex");
|
|
19816
|
-
var
|
|
19817
|
-
if (
|
|
19818
|
-
return primeCache[
|
|
19816
|
+
var hex2 = [gen, prime.toString(16)].join("_");
|
|
19817
|
+
if (hex2 in primeCache) {
|
|
19818
|
+
return primeCache[hex2];
|
|
19819
19819
|
}
|
|
19820
19820
|
var error = 0;
|
|
19821
19821
|
if (prime.isEven() || !primes.simpleSieve || !primes.fermatTest(prime) || !millerRabin.test(prime)) {
|
|
@@ -19825,7 +19825,7 @@ var require_dh = __commonJS({
|
|
|
19825
19825
|
} else {
|
|
19826
19826
|
error += 4;
|
|
19827
19827
|
}
|
|
19828
|
-
primeCache[
|
|
19828
|
+
primeCache[hex2] = error;
|
|
19829
19829
|
return error;
|
|
19830
19830
|
}
|
|
19831
19831
|
if (!millerRabin.test(prime.shrn(1))) {
|
|
@@ -19847,7 +19847,7 @@ var require_dh = __commonJS({
|
|
|
19847
19847
|
default:
|
|
19848
19848
|
error += 4;
|
|
19849
19849
|
}
|
|
19850
|
-
primeCache[
|
|
19850
|
+
primeCache[hex2] = error;
|
|
19851
19851
|
return error;
|
|
19852
19852
|
}
|
|
19853
19853
|
function DH(prime, generator, malleable) {
|
|
@@ -25823,7 +25823,7 @@ var require_utils2 = __commonJS({
|
|
|
25823
25823
|
return res;
|
|
25824
25824
|
}
|
|
25825
25825
|
utils.toHex = toHex;
|
|
25826
|
-
utils.encode = function
|
|
25826
|
+
utils.encode = function encode3(arr, enc) {
|
|
25827
25827
|
if (enc === "hex")
|
|
25828
25828
|
return toHex(arr);
|
|
25829
25829
|
else
|
|
@@ -26197,7 +26197,7 @@ var require_base = __commonJS({
|
|
|
26197
26197
|
return [this.getY().isEven() ? 2 : 3].concat(x);
|
|
26198
26198
|
return [4].concat(x, this.getY().toArray("be", len));
|
|
26199
26199
|
};
|
|
26200
|
-
BasePoint.prototype.encode = function
|
|
26200
|
+
BasePoint.prototype.encode = function encode3(enc, compact) {
|
|
26201
26201
|
return utils.encode(this._encode(compact), enc);
|
|
26202
26202
|
};
|
|
26203
26203
|
BasePoint.prototype.precompute = function precompute(power) {
|
|
@@ -27078,7 +27078,7 @@ var require_mont = __commonJS({
|
|
|
27078
27078
|
Point.prototype.eq = function eq(other) {
|
|
27079
27079
|
return this.getX().cmp(other.getX()) === 0;
|
|
27080
27080
|
};
|
|
27081
|
-
Point.prototype.normalize = function
|
|
27081
|
+
Point.prototype.normalize = function normalize2() {
|
|
27082
27082
|
this.x = this.x.redMul(this.z.redInvm());
|
|
27083
27083
|
this.z = this.curve.one;
|
|
27084
27084
|
return this;
|
|
@@ -27341,7 +27341,7 @@ var require_edwards = __commonJS({
|
|
|
27341
27341
|
Point.prototype.jmulAdd = function jmulAdd(k1, p, k2) {
|
|
27342
27342
|
return this.curve._wnafMulAdd(1, [this, p], [k1, k2], 2, true);
|
|
27343
27343
|
};
|
|
27344
|
-
Point.prototype.normalize = function
|
|
27344
|
+
Point.prototype.normalize = function normalize2() {
|
|
27345
27345
|
if (this.zOne)
|
|
27346
27346
|
return this;
|
|
27347
27347
|
var zi = this.z.redInvm();
|
|
@@ -33798,7 +33798,7 @@ var require_api = __commonJS({
|
|
|
33798
33798
|
this.decoders[enc] = this._createNamed(asn12.decoders[enc]);
|
|
33799
33799
|
return this.decoders[enc];
|
|
33800
33800
|
};
|
|
33801
|
-
Entity.prototype.decode = function
|
|
33801
|
+
Entity.prototype.decode = function decode3(data, enc, options) {
|
|
33802
33802
|
return this._getDecoder(enc).decode(data, options);
|
|
33803
33803
|
};
|
|
33804
33804
|
Entity.prototype._getEncoder = function _getEncoder(enc) {
|
|
@@ -33807,7 +33807,7 @@ var require_api = __commonJS({
|
|
|
33807
33807
|
this.encoders[enc] = this._createNamed(asn12.encoders[enc]);
|
|
33808
33808
|
return this.encoders[enc];
|
|
33809
33809
|
};
|
|
33810
|
-
Entity.prototype.encode = function
|
|
33810
|
+
Entity.prototype.encode = function encode3(data, enc, reporter) {
|
|
33811
33811
|
return this._getEncoder(enc).encode(data, reporter);
|
|
33812
33812
|
};
|
|
33813
33813
|
}
|
|
@@ -34271,7 +34271,7 @@ var require_node = __commonJS({
|
|
|
34271
34271
|
state.contains = item;
|
|
34272
34272
|
return this;
|
|
34273
34273
|
};
|
|
34274
|
-
Node.prototype._decode = function
|
|
34274
|
+
Node.prototype._decode = function decode3(input, options) {
|
|
34275
34275
|
var state = this._baseState;
|
|
34276
34276
|
if (state.parent === null)
|
|
34277
34277
|
return input.wrapResult(state.children[0]._decode(input, options));
|
|
@@ -34427,7 +34427,7 @@ var require_node = __commonJS({
|
|
|
34427
34427
|
Node.prototype._createEncoderBuffer = function createEncoderBuffer(data) {
|
|
34428
34428
|
return new EncoderBuffer(data, this.reporter);
|
|
34429
34429
|
};
|
|
34430
|
-
Node.prototype._encode = function
|
|
34430
|
+
Node.prototype._encode = function encode3(data, reporter, parent) {
|
|
34431
34431
|
var state = this._baseState;
|
|
34432
34432
|
if (state["default"] !== null && state["default"] === data)
|
|
34433
34433
|
return;
|
|
@@ -34438,7 +34438,7 @@ var require_node = __commonJS({
|
|
|
34438
34438
|
return;
|
|
34439
34439
|
return result;
|
|
34440
34440
|
};
|
|
34441
|
-
Node.prototype._encodeValue = function
|
|
34441
|
+
Node.prototype._encodeValue = function encode3(data, reporter, parent) {
|
|
34442
34442
|
var state = this._baseState;
|
|
34443
34443
|
if (state.parent === null)
|
|
34444
34444
|
return state.children[0]._encode(data, reporter || new Reporter());
|
|
@@ -34646,7 +34646,7 @@ var require_der2 = __commonJS({
|
|
|
34646
34646
|
this.tree._init(entity.body);
|
|
34647
34647
|
}
|
|
34648
34648
|
module2.exports = DERDecoder;
|
|
34649
|
-
DERDecoder.prototype.decode = function
|
|
34649
|
+
DERDecoder.prototype.decode = function decode3(data, options) {
|
|
34650
34650
|
if (!(data instanceof base.DecoderBuffer))
|
|
34651
34651
|
data = new base.DecoderBuffer(data, options);
|
|
34652
34652
|
return this.tree._decode(data, options);
|
|
@@ -34906,7 +34906,7 @@ var require_pem = __commonJS({
|
|
|
34906
34906
|
}
|
|
34907
34907
|
inherits(PEMDecoder, DERDecoder);
|
|
34908
34908
|
module2.exports = PEMDecoder;
|
|
34909
|
-
PEMDecoder.prototype.decode = function
|
|
34909
|
+
PEMDecoder.prototype.decode = function decode3(data, options) {
|
|
34910
34910
|
var lines = data.toString().split(/[\r\n]+/g);
|
|
34911
34911
|
var label = options.label.toUpperCase();
|
|
34912
34912
|
var re = /^-----(BEGIN|END) ([^-]+)-----$/;
|
|
@@ -34931,9 +34931,9 @@ var require_pem = __commonJS({
|
|
|
34931
34931
|
}
|
|
34932
34932
|
if (start === -1 || end === -1)
|
|
34933
34933
|
throw new Error("PEM section not found for: " + label);
|
|
34934
|
-
var
|
|
34935
|
-
|
|
34936
|
-
var input = new Buffer2(
|
|
34934
|
+
var base642 = lines.slice(start + 1, end).join("");
|
|
34935
|
+
base642.replace(/[^a-z0-9\+\/=]+/gi, "");
|
|
34936
|
+
var input = new Buffer2(base642, "base64");
|
|
34937
34937
|
return DERDecoder.prototype.decode.call(this, input, options);
|
|
34938
34938
|
};
|
|
34939
34939
|
}
|
|
@@ -34966,7 +34966,7 @@ var require_der3 = __commonJS({
|
|
|
34966
34966
|
this.tree._init(entity.body);
|
|
34967
34967
|
}
|
|
34968
34968
|
module2.exports = DEREncoder;
|
|
34969
|
-
DEREncoder.prototype.encode = function
|
|
34969
|
+
DEREncoder.prototype.encode = function encode3(data, reporter) {
|
|
34970
34970
|
return this.tree._encode(data, reporter).join();
|
|
34971
34971
|
};
|
|
34972
34972
|
function DERNode(parent) {
|
|
@@ -35193,7 +35193,7 @@ var require_pem2 = __commonJS({
|
|
|
35193
35193
|
}
|
|
35194
35194
|
inherits(PEMEncoder, DEREncoder);
|
|
35195
35195
|
module2.exports = PEMEncoder;
|
|
35196
|
-
PEMEncoder.prototype.encode = function
|
|
35196
|
+
PEMEncoder.prototype.encode = function encode3(data, options) {
|
|
35197
35197
|
var buf = DEREncoder.prototype.encode.call(this, data);
|
|
35198
35198
|
var p = buf.toString("base64");
|
|
35199
35199
|
var out = ["-----BEGIN " + options.label + "-----"];
|
|
@@ -38804,9 +38804,9 @@ var require_browser11 = __commonJS({
|
|
|
38804
38804
|
this.curve = new elliptic.ec(this.curveType.name);
|
|
38805
38805
|
this.keys = void 0;
|
|
38806
38806
|
}
|
|
38807
|
-
ECDH.prototype.generateKeys = function(enc,
|
|
38807
|
+
ECDH.prototype.generateKeys = function(enc, format2) {
|
|
38808
38808
|
this.keys = this.curve.genKeyPair();
|
|
38809
|
-
return this.getPublicKey(enc,
|
|
38809
|
+
return this.getPublicKey(enc, format2);
|
|
38810
38810
|
};
|
|
38811
38811
|
ECDH.prototype.computeSecret = function(other, inenc, enc) {
|
|
38812
38812
|
inenc = inenc || "utf8";
|
|
@@ -38817,9 +38817,9 @@ var require_browser11 = __commonJS({
|
|
|
38817
38817
|
var out = otherPub.mul(this.keys.getPrivate()).getX();
|
|
38818
38818
|
return formatReturnValue(out, enc, this.curveType.byteLength);
|
|
38819
38819
|
};
|
|
38820
|
-
ECDH.prototype.getPublicKey = function(enc,
|
|
38821
|
-
var key = this.keys.getPublic(
|
|
38822
|
-
if (
|
|
38820
|
+
ECDH.prototype.getPublicKey = function(enc, format2) {
|
|
38821
|
+
var key = this.keys.getPublic(format2 === "compressed", true);
|
|
38822
|
+
if (format2 === "hybrid") {
|
|
38823
38823
|
if (key[key.length - 1] % 2) {
|
|
38824
38824
|
key[0] = 7;
|
|
38825
38825
|
} else {
|
|
@@ -42184,15 +42184,15 @@ function skipChildren(buf, offset, count) {
|
|
|
42184
42184
|
return offset;
|
|
42185
42185
|
}
|
|
42186
42186
|
function pemToDer(pem) {
|
|
42187
|
-
const
|
|
42188
|
-
return import_buffer.Buffer.from(
|
|
42187
|
+
const base642 = pem.replace(/-----[^-]+-----/g, "").replace(/\s+/g, "");
|
|
42188
|
+
return import_buffer.Buffer.from(base642, "base64");
|
|
42189
42189
|
}
|
|
42190
42190
|
function derToPem(der, label) {
|
|
42191
|
-
const
|
|
42191
|
+
const base642 = (import_buffer.Buffer.isBuffer(der) ? der : import_buffer.Buffer.from(der)).toString("base64");
|
|
42192
42192
|
let pem = `-----BEGIN ${label}-----
|
|
42193
42193
|
`;
|
|
42194
|
-
for (let i = 0; i <
|
|
42195
|
-
pem +=
|
|
42194
|
+
for (let i = 0; i < base642.length; i += 64) {
|
|
42195
|
+
pem += base642.substring(i, i + 64) + "\n";
|
|
42196
42196
|
}
|
|
42197
42197
|
pem += `-----END ${label}-----`;
|
|
42198
42198
|
return pem;
|
|
@@ -43358,7 +43358,7 @@ var require_implementation4 = __commonJS({
|
|
|
43358
43358
|
var numberIsNaN = function(value) {
|
|
43359
43359
|
return value !== value;
|
|
43360
43360
|
};
|
|
43361
|
-
module2.exports = function
|
|
43361
|
+
module2.exports = function is2(a, b) {
|
|
43362
43362
|
if (a === 0 && b === 0) {
|
|
43363
43363
|
return 1 / a === 1 / b;
|
|
43364
43364
|
}
|
|
@@ -45822,7 +45822,7 @@ var require_build = __commonJS({
|
|
|
45822
45822
|
return res;
|
|
45823
45823
|
}
|
|
45824
45824
|
};
|
|
45825
|
-
var
|
|
45825
|
+
var Convert3 = class _Convert {
|
|
45826
45826
|
static isHex(data) {
|
|
45827
45827
|
return typeof data === STRING_TYPE && HEX_REGEX.test(data);
|
|
45828
45828
|
}
|
|
@@ -45887,8 +45887,8 @@ var require_build = __commonJS({
|
|
|
45887
45887
|
return import_buffer.Buffer.from(buf).toString("base64");
|
|
45888
45888
|
}
|
|
45889
45889
|
}
|
|
45890
|
-
static FromBase64(
|
|
45891
|
-
const formatted = this.formatString(
|
|
45890
|
+
static FromBase64(base642) {
|
|
45891
|
+
const formatted = this.formatString(base642);
|
|
45892
45892
|
if (!formatted) {
|
|
45893
45893
|
return new ArrayBuffer(0);
|
|
45894
45894
|
}
|
|
@@ -45999,20 +45999,20 @@ var require_build = __commonJS({
|
|
|
45999
45999
|
static FromUtf16String(text, littleEndian = false) {
|
|
46000
46000
|
return Utf16Converter.fromString(text, littleEndian);
|
|
46001
46001
|
}
|
|
46002
|
-
static Base64Padding(
|
|
46003
|
-
const padCount = 4 -
|
|
46002
|
+
static Base64Padding(base642) {
|
|
46003
|
+
const padCount = 4 - base642.length % 4;
|
|
46004
46004
|
if (padCount < 4) {
|
|
46005
46005
|
for (let i = 0; i < padCount; i++) {
|
|
46006
|
-
|
|
46006
|
+
base642 += "=";
|
|
46007
46007
|
}
|
|
46008
46008
|
}
|
|
46009
|
-
return
|
|
46009
|
+
return base642;
|
|
46010
46010
|
}
|
|
46011
46011
|
static formatString(data) {
|
|
46012
46012
|
return (data === null || data === void 0 ? void 0 : data.replace(/[\n\r\t ]/g, "")) || "";
|
|
46013
46013
|
}
|
|
46014
46014
|
};
|
|
46015
|
-
|
|
46015
|
+
Convert3.DEFAULT_UTF8_ENCODING = "utf8";
|
|
46016
46016
|
function assign(target, ...sources) {
|
|
46017
46017
|
const res = arguments[0];
|
|
46018
46018
|
for (let i = 1; i < arguments.length; i++) {
|
|
@@ -46034,7 +46034,7 @@ var require_build = __commonJS({
|
|
|
46034
46034
|
});
|
|
46035
46035
|
return res.buffer;
|
|
46036
46036
|
}
|
|
46037
|
-
function
|
|
46037
|
+
function isEqual2(bytes1, bytes2) {
|
|
46038
46038
|
if (!(bytes1 && bytes2)) {
|
|
46039
46039
|
return false;
|
|
46040
46040
|
}
|
|
@@ -46051,10 +46051,10 @@ var require_build = __commonJS({
|
|
|
46051
46051
|
return true;
|
|
46052
46052
|
}
|
|
46053
46053
|
exports2.BufferSourceConverter = BufferSourceConverter3;
|
|
46054
|
-
exports2.Convert =
|
|
46054
|
+
exports2.Convert = Convert3;
|
|
46055
46055
|
exports2.assign = assign;
|
|
46056
46056
|
exports2.combine = combine2;
|
|
46057
|
-
exports2.isEqual =
|
|
46057
|
+
exports2.isEqual = isEqual2;
|
|
46058
46058
|
}
|
|
46059
46059
|
});
|
|
46060
46060
|
|
|
@@ -46075,6 +46075,30 @@ function isKeyObject(mayBeKeyObject) {
|
|
|
46075
46075
|
}
|
|
46076
46076
|
return typeof mayBeKeyObject === "object" && typeof mayBeKeyObject.type === "string";
|
|
46077
46077
|
}
|
|
46078
|
+
var PrivateKeyPassphraseRequiredError = class extends Error {
|
|
46079
|
+
constructor(message = "This private key is encrypted and requires a passphrase to be read") {
|
|
46080
|
+
super(message);
|
|
46081
|
+
this.name = "PrivateKeyPassphraseRequiredError";
|
|
46082
|
+
}
|
|
46083
|
+
};
|
|
46084
|
+
var PfxIntegrityError = class extends Error {
|
|
46085
|
+
constructor(message = "PFX integrity check failed: wrong password, or the file is corrupted or has been tampered with") {
|
|
46086
|
+
super(message);
|
|
46087
|
+
this.name = "PfxIntegrityError";
|
|
46088
|
+
}
|
|
46089
|
+
};
|
|
46090
|
+
var PfxMalformedError = class extends Error {
|
|
46091
|
+
constructor(message) {
|
|
46092
|
+
super(message);
|
|
46093
|
+
this.name = "PfxMalformedError";
|
|
46094
|
+
}
|
|
46095
|
+
};
|
|
46096
|
+
var Pkcs12UnsupportedAlgorithmError = class extends Error {
|
|
46097
|
+
constructor(message) {
|
|
46098
|
+
super(message);
|
|
46099
|
+
this.name = "Pkcs12UnsupportedAlgorithmError";
|
|
46100
|
+
}
|
|
46101
|
+
};
|
|
46078
46102
|
var CertificatePurpose = /* @__PURE__ */ ((CertificatePurpose2) => {
|
|
46079
46103
|
CertificatePurpose2[CertificatePurpose2["NotSpecified"] = 0] = "NotSpecified";
|
|
46080
46104
|
CertificatePurpose2[CertificatePurpose2["ForCertificateAuthority"] = 1] = "ForCertificateAuthority";
|
|
@@ -46878,15 +46902,15 @@ var createFastUninitializedBuffer = import_buffer.Buffer.allocUnsafe ? import_bu
|
|
|
46878
46902
|
|
|
46879
46903
|
// ../node-opcua-crypto/source/hexy.ts
|
|
46880
46904
|
init_inject_buffer();
|
|
46881
|
-
function hexy(buffer, { width, format } = {}) {
|
|
46905
|
+
function hexy(buffer, { width, format: format2 } = {}) {
|
|
46882
46906
|
width = width || 80;
|
|
46883
|
-
if (
|
|
46907
|
+
if (format2 === "twos") {
|
|
46884
46908
|
width = 26 * 3;
|
|
46885
46909
|
}
|
|
46886
46910
|
const regex = new RegExp(`.{1,${width}}`, "g");
|
|
46887
46911
|
const regexTwos = new RegExp(`.{1,${2}}`, "g");
|
|
46888
46912
|
let fullHex = buffer.toString("hex");
|
|
46889
|
-
if (
|
|
46913
|
+
if (format2 === "twos") {
|
|
46890
46914
|
fullHex = fullHex.match(regexTwos)?.join(" ") || "";
|
|
46891
46915
|
}
|
|
46892
46916
|
return fullHex.match(regex)?.join("\n") || "";
|
|
@@ -49915,8 +49939,8 @@ var Integer = class extends BaseBlock {
|
|
|
49915
49939
|
assertBigInt();
|
|
49916
49940
|
const bigIntValue = BigInt(value);
|
|
49917
49941
|
const writer = new ViewWriter();
|
|
49918
|
-
const
|
|
49919
|
-
const view = new Uint8Array(pvtsutils.Convert.FromHex(
|
|
49942
|
+
const hex2 = bigIntValue.toString(16).replace(/^-/, "");
|
|
49943
|
+
const view = new Uint8Array(pvtsutils.Convert.FromHex(hex2));
|
|
49920
49944
|
if (bigIntValue < 0) {
|
|
49921
49945
|
const first = new Uint8Array(view.length + (view[0] & 128 ? 1 : 0));
|
|
49922
49946
|
first[0] |= 128;
|
|
@@ -51445,6 +51469,19 @@ init_inject_buffer();
|
|
|
51445
51469
|
|
|
51446
51470
|
// ../../node_modules/@peculiar/utils/build/esm/bytes/equal.js
|
|
51447
51471
|
init_inject_buffer();
|
|
51472
|
+
function equal(a, b, options = {}) {
|
|
51473
|
+
const left = toUint8Array(a);
|
|
51474
|
+
const right = toUint8Array(b);
|
|
51475
|
+
if (!options.constantTime && left.byteLength !== right.byteLength) {
|
|
51476
|
+
return false;
|
|
51477
|
+
}
|
|
51478
|
+
const length = Math.max(left.byteLength, right.byteLength);
|
|
51479
|
+
let diff = left.byteLength ^ right.byteLength;
|
|
51480
|
+
for (let i = 0; i < length; i++) {
|
|
51481
|
+
diff |= (left[i] ?? 0) ^ (right[i] ?? 0);
|
|
51482
|
+
}
|
|
51483
|
+
return diff === 0;
|
|
51484
|
+
}
|
|
51448
51485
|
|
|
51449
51486
|
// ../../node_modules/@peculiar/utils/build/esm/bytes/sequence.js
|
|
51450
51487
|
init_inject_buffer();
|
|
@@ -51486,6 +51523,7 @@ var AsnPropTypes;
|
|
|
51486
51523
|
AsnPropTypes2[AsnPropTypes2["Duration"] = 25] = "Duration";
|
|
51487
51524
|
AsnPropTypes2[AsnPropTypes2["TIME"] = 26] = "TIME";
|
|
51488
51525
|
AsnPropTypes2[AsnPropTypes2["Null"] = 27] = "Null";
|
|
51526
|
+
AsnPropTypes2[AsnPropTypes2["RelativeObjectIdentifier"] = 28] = "RelativeObjectIdentifier";
|
|
51489
51527
|
})(AsnPropTypes || (AsnPropTypes = {}));
|
|
51490
51528
|
|
|
51491
51529
|
// ../../node_modules/@peculiar/asn1-schema/build/es2015/types/index.js
|
|
@@ -51624,6 +51662,10 @@ var AsnObjectIdentifierConverter = {
|
|
|
51624
51662
|
fromASN: (value) => value.valueBlock.toString(),
|
|
51625
51663
|
toASN: (value) => new ObjectIdentifier({ value })
|
|
51626
51664
|
};
|
|
51665
|
+
var AsnRelativeObjectIdentifierConverter = {
|
|
51666
|
+
fromASN: (value) => value.valueBlock.toString(),
|
|
51667
|
+
toASN: (value) => new RelativeObjectIdentifier({ value })
|
|
51668
|
+
};
|
|
51627
51669
|
var AsnBooleanConverter = {
|
|
51628
51670
|
fromASN: (value) => value.valueBlock.value,
|
|
51629
51671
|
toASN: (value) => new Boolean2({ value })
|
|
@@ -51698,6 +51740,8 @@ function defaultConverter(type) {
|
|
|
51698
51740
|
return AsnNumericStringConverter;
|
|
51699
51741
|
case AsnPropTypes.ObjectIdentifier:
|
|
51700
51742
|
return AsnObjectIdentifierConverter;
|
|
51743
|
+
case AsnPropTypes.RelativeObjectIdentifier:
|
|
51744
|
+
return AsnRelativeObjectIdentifierConverter;
|
|
51701
51745
|
case AsnPropTypes.OctetString:
|
|
51702
51746
|
return AsnOctetStringConverter;
|
|
51703
51747
|
case AsnPropTypes.PrintableString:
|
|
@@ -51836,10 +51880,12 @@ var AsnSchemaStorage = class {
|
|
|
51836
51880
|
const Container = item.repeated === "set" ? Set2 : Sequence;
|
|
51837
51881
|
asn1Item = new Container({
|
|
51838
51882
|
name: "",
|
|
51839
|
-
value: [
|
|
51840
|
-
|
|
51841
|
-
|
|
51842
|
-
|
|
51883
|
+
value: [
|
|
51884
|
+
new Repeated({
|
|
51885
|
+
name,
|
|
51886
|
+
value: asn1Item
|
|
51887
|
+
})
|
|
51888
|
+
]
|
|
51843
51889
|
});
|
|
51844
51890
|
}
|
|
51845
51891
|
if (item.context !== null && item.context !== void 0) {
|
|
@@ -51966,15 +52012,15 @@ var AsnSchemaValidationError = class extends Error {
|
|
|
51966
52012
|
|
|
51967
52013
|
// ../../node_modules/@peculiar/asn1-schema/build/es2015/parser.js
|
|
51968
52014
|
var AsnParser = class {
|
|
51969
|
-
static parse(data, target) {
|
|
51970
|
-
const asn1Parsed = fromBER(toArrayBuffer(data));
|
|
52015
|
+
static parse(data, target, options) {
|
|
52016
|
+
const asn1Parsed = fromBER(toArrayBuffer(data), options?.berOptions);
|
|
51971
52017
|
if (asn1Parsed.result.error) {
|
|
51972
52018
|
throw new Error(asn1Parsed.result.error);
|
|
51973
52019
|
}
|
|
51974
|
-
const res = this.fromASN(asn1Parsed.result, target);
|
|
52020
|
+
const res = this.fromASN(asn1Parsed.result, target, options);
|
|
51975
52021
|
return res;
|
|
51976
52022
|
}
|
|
51977
|
-
static fromASN(asn1Schema, target) {
|
|
52023
|
+
static fromASN(asn1Schema, target, options) {
|
|
51978
52024
|
try {
|
|
51979
52025
|
if (isConvertible(target)) {
|
|
51980
52026
|
const value = new target();
|
|
@@ -51983,7 +52029,7 @@ var AsnParser = class {
|
|
|
51983
52029
|
const schema = schemaStorage.get(target);
|
|
51984
52030
|
schemaStorage.cache(target);
|
|
51985
52031
|
let targetSchema = schema.schema;
|
|
51986
|
-
const choiceResult = this.handleChoiceTypes(asn1Schema, schema, target, targetSchema);
|
|
52032
|
+
const choiceResult = this.handleChoiceTypes(asn1Schema, schema, target, targetSchema, options);
|
|
51987
52033
|
if (choiceResult?.result) {
|
|
51988
52034
|
return choiceResult.result;
|
|
51989
52035
|
}
|
|
@@ -51993,9 +52039,9 @@ var AsnParser = class {
|
|
|
51993
52039
|
const sequenceResult = this.handleSequenceTypes(asn1Schema, schema, target, targetSchema);
|
|
51994
52040
|
const res = new target();
|
|
51995
52041
|
if (isTypeOfArray(target)) {
|
|
51996
|
-
return this.handleArrayTypes(asn1Schema, schema, target);
|
|
52042
|
+
return this.handleArrayTypes(asn1Schema, schema, target, options);
|
|
51997
52043
|
}
|
|
51998
|
-
this.processSchemaItems(schema, sequenceResult, res);
|
|
52044
|
+
this.processSchemaItems(schema, sequenceResult, res, options);
|
|
51999
52045
|
return res;
|
|
52000
52046
|
} catch (error) {
|
|
52001
52047
|
if (error instanceof AsnSchemaValidationError) {
|
|
@@ -52004,7 +52050,7 @@ var AsnParser = class {
|
|
|
52004
52050
|
throw error;
|
|
52005
52051
|
}
|
|
52006
52052
|
}
|
|
52007
|
-
static handleChoiceTypes(asn1Schema, schema, target, targetSchema) {
|
|
52053
|
+
static handleChoiceTypes(asn1Schema, schema, target, targetSchema, options) {
|
|
52008
52054
|
if (asn1Schema.constructor === Constructed && schema.type === AsnTypeTypes.Choice && asn1Schema.idBlock.tagClass === 3) {
|
|
52009
52055
|
for (const key in schema.items) {
|
|
52010
52056
|
const schemaItem = schema.items[key];
|
|
@@ -52015,7 +52061,7 @@ var AsnParser = class {
|
|
|
52015
52061
|
const newSeq = new Sequence();
|
|
52016
52062
|
if ("value" in asn1Schema.valueBlock && Array.isArray(asn1Schema.valueBlock.value) && "value" in newSeq.valueBlock) {
|
|
52017
52063
|
newSeq.valueBlock.value = asn1Schema.valueBlock.value;
|
|
52018
|
-
const fieldValue = this.fromASN(newSeq, schemaItem.type);
|
|
52064
|
+
const fieldValue = this.fromASN(newSeq, schemaItem.type, options);
|
|
52019
52065
|
const res = new target();
|
|
52020
52066
|
res[key] = fieldValue;
|
|
52021
52067
|
return { result: res };
|
|
@@ -52106,7 +52152,7 @@ var AsnParser = class {
|
|
|
52106
52152
|
throw err;
|
|
52107
52153
|
}
|
|
52108
52154
|
}
|
|
52109
|
-
static handleArrayTypes(asn1Schema, schema, target) {
|
|
52155
|
+
static handleArrayTypes(asn1Schema, schema, target, options) {
|
|
52110
52156
|
if (!("value" in asn1Schema.valueBlock && Array.isArray(asn1Schema.valueBlock.value))) {
|
|
52111
52157
|
throw new Error("Cannot get items from the ASN.1 parsed value. ASN.1 object is not constructed.");
|
|
52112
52158
|
}
|
|
@@ -52118,10 +52164,10 @@ var AsnParser = class {
|
|
|
52118
52164
|
}
|
|
52119
52165
|
return target.from(asn1Schema.valueBlock.value, (element) => converter.fromASN(element));
|
|
52120
52166
|
} else {
|
|
52121
|
-
return target.from(asn1Schema.valueBlock.value, (element) => this.fromASN(element, itemType));
|
|
52167
|
+
return target.from(asn1Schema.valueBlock.value, (element) => this.fromASN(element, itemType, options));
|
|
52122
52168
|
}
|
|
52123
52169
|
}
|
|
52124
|
-
static processSchemaItems(schema, asn1ComparedSchema, res) {
|
|
52170
|
+
static processSchemaItems(schema, asn1ComparedSchema, res, options) {
|
|
52125
52171
|
for (const key in schema.items) {
|
|
52126
52172
|
const asn1SchemaValue = asn1ComparedSchema.result[key];
|
|
52127
52173
|
if (!asn1SchemaValue) {
|
|
@@ -52131,9 +52177,9 @@ var AsnParser = class {
|
|
|
52131
52177
|
const schemaItemType = schemaItem.type;
|
|
52132
52178
|
let parsedValue;
|
|
52133
52179
|
if (typeof schemaItemType === "number" || isConvertible(schemaItemType)) {
|
|
52134
|
-
parsedValue = this.processPrimitiveSchemaItem(asn1SchemaValue, schemaItem, schemaItemType);
|
|
52180
|
+
parsedValue = this.processPrimitiveSchemaItem(asn1SchemaValue, schemaItem, schemaItemType, options);
|
|
52135
52181
|
} else {
|
|
52136
|
-
parsedValue = this.processComplexSchemaItem(asn1SchemaValue, schemaItem, schemaItemType);
|
|
52182
|
+
parsedValue = this.processComplexSchemaItem(asn1SchemaValue, schemaItem, schemaItemType, options);
|
|
52137
52183
|
}
|
|
52138
52184
|
if (parsedValue && typeof parsedValue === "object" && "value" in parsedValue && "raw" in parsedValue) {
|
|
52139
52185
|
res[key] = parsedValue.value;
|
|
@@ -52143,23 +52189,23 @@ var AsnParser = class {
|
|
|
52143
52189
|
}
|
|
52144
52190
|
}
|
|
52145
52191
|
}
|
|
52146
|
-
static processPrimitiveSchemaItem(asn1SchemaValue, schemaItem, schemaItemType) {
|
|
52192
|
+
static processPrimitiveSchemaItem(asn1SchemaValue, schemaItem, schemaItemType, options) {
|
|
52147
52193
|
const converter = schemaItem.converter ?? (isConvertible(schemaItemType) ? new schemaItemType() : null);
|
|
52148
52194
|
if (!converter) {
|
|
52149
52195
|
throw new Error("Converter is empty");
|
|
52150
52196
|
}
|
|
52151
52197
|
if (schemaItem.repeated) {
|
|
52152
|
-
return this.processRepeatedPrimitiveItem(asn1SchemaValue, schemaItem, converter);
|
|
52198
|
+
return this.processRepeatedPrimitiveItem(asn1SchemaValue, schemaItem, converter, options);
|
|
52153
52199
|
} else {
|
|
52154
|
-
return this.processSinglePrimitiveItem(asn1SchemaValue, schemaItem, schemaItemType, converter);
|
|
52200
|
+
return this.processSinglePrimitiveItem(asn1SchemaValue, schemaItem, schemaItemType, converter, options);
|
|
52155
52201
|
}
|
|
52156
52202
|
}
|
|
52157
|
-
static processRepeatedPrimitiveItem(asn1SchemaValue, schemaItem, converter) {
|
|
52203
|
+
static processRepeatedPrimitiveItem(asn1SchemaValue, schemaItem, converter, options) {
|
|
52158
52204
|
if (schemaItem.implicit) {
|
|
52159
52205
|
const Container = schemaItem.repeated === "sequence" ? Sequence : Set2;
|
|
52160
52206
|
const newItem = new Container();
|
|
52161
52207
|
newItem.valueBlock = asn1SchemaValue.valueBlock;
|
|
52162
|
-
const newItemAsn = fromBER(newItem.toBER(false));
|
|
52208
|
+
const newItemAsn = fromBER(newItem.toBER(false), options?.berOptions);
|
|
52163
52209
|
if (newItemAsn.offset === -1) {
|
|
52164
52210
|
throw new Error(`Cannot parse the child item. ${newItemAsn.result.error}`);
|
|
52165
52211
|
}
|
|
@@ -52172,7 +52218,7 @@ var AsnParser = class {
|
|
|
52172
52218
|
return Array.from(asn1SchemaValue, (element) => converter.fromASN(element));
|
|
52173
52219
|
}
|
|
52174
52220
|
}
|
|
52175
|
-
static processSinglePrimitiveItem(asn1SchemaValue, schemaItem, schemaItemType, converter) {
|
|
52221
|
+
static processSinglePrimitiveItem(asn1SchemaValue, schemaItem, schemaItemType, converter, options) {
|
|
52176
52222
|
let value = asn1SchemaValue;
|
|
52177
52223
|
if (schemaItem.implicit) {
|
|
52178
52224
|
let newItem;
|
|
@@ -52187,21 +52233,21 @@ var AsnParser = class {
|
|
|
52187
52233
|
newItem = new Asn1Type();
|
|
52188
52234
|
}
|
|
52189
52235
|
newItem.valueBlock = value.valueBlock;
|
|
52190
|
-
value = fromBER(newItem.toBER(false)).result;
|
|
52236
|
+
value = fromBER(newItem.toBER(false), options?.berOptions).result;
|
|
52191
52237
|
}
|
|
52192
52238
|
return converter.fromASN(value);
|
|
52193
52239
|
}
|
|
52194
|
-
static processComplexSchemaItem(asn1SchemaValue, schemaItem, schemaItemType) {
|
|
52240
|
+
static processComplexSchemaItem(asn1SchemaValue, schemaItem, schemaItemType, options) {
|
|
52195
52241
|
if (schemaItem.repeated) {
|
|
52196
52242
|
if (!Array.isArray(asn1SchemaValue)) {
|
|
52197
52243
|
throw new Error("Cannot get list of items from the ASN.1 parsed value. ASN.1 value should be iterable.");
|
|
52198
52244
|
}
|
|
52199
|
-
return Array.from(asn1SchemaValue, (element) => this.fromASN(element, schemaItemType));
|
|
52245
|
+
return Array.from(asn1SchemaValue, (element) => this.fromASN(element, schemaItemType, options));
|
|
52200
52246
|
} else {
|
|
52201
52247
|
const valueToProcess = this.handleImplicitTagging(asn1SchemaValue, schemaItem, schemaItemType);
|
|
52202
52248
|
if (this.isOptionalChoiceField(schemaItem)) {
|
|
52203
52249
|
try {
|
|
52204
|
-
return this.fromASN(valueToProcess, schemaItemType);
|
|
52250
|
+
return this.fromASN(valueToProcess, schemaItemType, options);
|
|
52205
52251
|
} catch (err) {
|
|
52206
52252
|
if (err instanceof AsnSchemaValidationError && /Wrong values for Choice type/.test(err.message)) {
|
|
52207
52253
|
return void 0;
|
|
@@ -52209,7 +52255,7 @@ var AsnParser = class {
|
|
|
52209
52255
|
throw err;
|
|
52210
52256
|
}
|
|
52211
52257
|
} else {
|
|
52212
|
-
const parsedValue = this.fromASN(valueToProcess, schemaItemType);
|
|
52258
|
+
const parsedValue = this.fromASN(valueToProcess, schemaItemType, options);
|
|
52213
52259
|
if (schemaItem.raw) {
|
|
52214
52260
|
return {
|
|
52215
52261
|
value: parsedValue,
|
|
@@ -52393,12 +52439,12 @@ var AsnConvert = class _AsnConvert {
|
|
|
52393
52439
|
static serialize(obj) {
|
|
52394
52440
|
return AsnSerializer.serialize(obj);
|
|
52395
52441
|
}
|
|
52396
|
-
static parse(data, target) {
|
|
52397
|
-
return AsnParser.parse(data, target);
|
|
52442
|
+
static parse(data, target, options) {
|
|
52443
|
+
return AsnParser.parse(data, target, options);
|
|
52398
52444
|
}
|
|
52399
|
-
static toString(data) {
|
|
52445
|
+
static toString(data, options) {
|
|
52400
52446
|
const buf = isBufferSource(data) ? toArrayBuffer(data) : _AsnConvert.serialize(data);
|
|
52401
|
-
const asn = fromBER(buf);
|
|
52447
|
+
const asn = fromBER(buf, options?.berOptions);
|
|
52402
52448
|
if (asn.offset === -1) {
|
|
52403
52449
|
throw new Error(`Cannot decode ASN.1 data. ${asn.result.error}`);
|
|
52404
52450
|
}
|
|
@@ -52440,7 +52486,257 @@ init_inject_buffer();
|
|
|
52440
52486
|
|
|
52441
52487
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js
|
|
52442
52488
|
init_inject_buffer();
|
|
52443
|
-
|
|
52489
|
+
|
|
52490
|
+
// ../../node_modules/@peculiar/utils/build/esm/encoding/index.js
|
|
52491
|
+
init_inject_buffer();
|
|
52492
|
+
|
|
52493
|
+
// ../../node_modules/@peculiar/utils/build/esm/encoding/binary.js
|
|
52494
|
+
init_inject_buffer();
|
|
52495
|
+
|
|
52496
|
+
// ../../node_modules/@peculiar/utils/build/esm/encoding/hex.js
|
|
52497
|
+
var hex_exports = {};
|
|
52498
|
+
__export(hex_exports, {
|
|
52499
|
+
decode: () => decode,
|
|
52500
|
+
encode: () => encode,
|
|
52501
|
+
format: () => format,
|
|
52502
|
+
formats: () => formats,
|
|
52503
|
+
hex: () => hex,
|
|
52504
|
+
is: () => is,
|
|
52505
|
+
normalize: () => normalize,
|
|
52506
|
+
parse: () => parse
|
|
52507
|
+
});
|
|
52508
|
+
init_inject_buffer();
|
|
52509
|
+
var HEX_CHARACTER_REGEX = /^[0-9a-f]$/i;
|
|
52510
|
+
var COMMON_SEPARATORS = [" ", " ", "\n", "\r", ":", "-", "."];
|
|
52511
|
+
function resolveSeparators(options) {
|
|
52512
|
+
if (options.separators === "none") {
|
|
52513
|
+
return [];
|
|
52514
|
+
}
|
|
52515
|
+
if (!options.separators || options.separators === "common") {
|
|
52516
|
+
return COMMON_SEPARATORS;
|
|
52517
|
+
}
|
|
52518
|
+
return options.separators;
|
|
52519
|
+
}
|
|
52520
|
+
function validateSeparator(separator) {
|
|
52521
|
+
if (!separator) {
|
|
52522
|
+
throw new TypeError("Hex separators must be non-empty strings");
|
|
52523
|
+
}
|
|
52524
|
+
}
|
|
52525
|
+
function matchSeparator(text, index, separators) {
|
|
52526
|
+
for (const separator of separators) {
|
|
52527
|
+
if (text.startsWith(separator, index)) {
|
|
52528
|
+
return separator;
|
|
52529
|
+
}
|
|
52530
|
+
}
|
|
52531
|
+
return void 0;
|
|
52532
|
+
}
|
|
52533
|
+
function detectCase(text) {
|
|
52534
|
+
const hasUpper = /[A-F]/.test(text);
|
|
52535
|
+
const hasLower = /[a-f]/.test(text);
|
|
52536
|
+
return hasUpper && !hasLower ? "upper" : "lower";
|
|
52537
|
+
}
|
|
52538
|
+
function detectLineSeparator(text) {
|
|
52539
|
+
const match = /\r\n|\n/.exec(text);
|
|
52540
|
+
if (!match) {
|
|
52541
|
+
return void 0;
|
|
52542
|
+
}
|
|
52543
|
+
return match[0] === "\r\n" ? "\r\n" : "\n";
|
|
52544
|
+
}
|
|
52545
|
+
function compactForDetection(text) {
|
|
52546
|
+
return text.replace(/[^0-9a-f]/gi, "");
|
|
52547
|
+
}
|
|
52548
|
+
function detectGroup(text) {
|
|
52549
|
+
const segments = text.match(/[0-9A-Fa-f]+|[^0-9A-Fa-f]+/g) ?? [];
|
|
52550
|
+
if (segments.length < 3) {
|
|
52551
|
+
return void 0;
|
|
52552
|
+
}
|
|
52553
|
+
const hexSegments = segments.filter((_, index) => index % 2 === 0);
|
|
52554
|
+
const separators = segments.filter((_, index) => index % 2 === 1);
|
|
52555
|
+
const separator = separators[0];
|
|
52556
|
+
if (!separator || separators.some((item) => item !== separator)) {
|
|
52557
|
+
return void 0;
|
|
52558
|
+
}
|
|
52559
|
+
if (hexSegments.some((segment) => segment.length === 0 || segment.length % 2 !== 0)) {
|
|
52560
|
+
return void 0;
|
|
52561
|
+
}
|
|
52562
|
+
const firstLength = hexSegments[0]?.length ?? 0;
|
|
52563
|
+
if (!firstLength) {
|
|
52564
|
+
return void 0;
|
|
52565
|
+
}
|
|
52566
|
+
if (hexSegments.slice(0, -1).some((segment) => segment.length !== firstLength)) {
|
|
52567
|
+
return void 0;
|
|
52568
|
+
}
|
|
52569
|
+
if ((hexSegments[hexSegments.length - 1]?.length ?? 0) > firstLength) {
|
|
52570
|
+
return void 0;
|
|
52571
|
+
}
|
|
52572
|
+
return {
|
|
52573
|
+
size: firstLength / 2,
|
|
52574
|
+
separator
|
|
52575
|
+
};
|
|
52576
|
+
}
|
|
52577
|
+
function detectFormat(text) {
|
|
52578
|
+
const trimmed = text.trim();
|
|
52579
|
+
const prefix = /^0x/i.test(trimmed) ? "0x" : "";
|
|
52580
|
+
const body = prefix ? trimmed.slice(2) : trimmed;
|
|
52581
|
+
const lineSeparator = detectLineSeparator(body);
|
|
52582
|
+
const lines = body.split(/\r\n|\n/).filter((line) => line.length > 0);
|
|
52583
|
+
const sampleLine = lines[0]?.trim() ?? "";
|
|
52584
|
+
const group = detectGroup(sampleLine);
|
|
52585
|
+
const format2 = {
|
|
52586
|
+
case: detectCase(trimmed),
|
|
52587
|
+
prefix
|
|
52588
|
+
};
|
|
52589
|
+
if (group) {
|
|
52590
|
+
format2.group = group;
|
|
52591
|
+
}
|
|
52592
|
+
if (lineSeparator && lines.length > 1) {
|
|
52593
|
+
const firstLineBytes = compactForDetection(lines[0] ?? "").length / 2;
|
|
52594
|
+
if (firstLineBytes > 0 && lines.slice(0, -1).every((line) => compactForDetection(line).length / 2 === firstLineBytes)) {
|
|
52595
|
+
format2.line = {
|
|
52596
|
+
bytesPerLine: firstLineBytes,
|
|
52597
|
+
separator: lineSeparator
|
|
52598
|
+
};
|
|
52599
|
+
}
|
|
52600
|
+
}
|
|
52601
|
+
return format2;
|
|
52602
|
+
}
|
|
52603
|
+
function normalizeText(text, options) {
|
|
52604
|
+
const allowPrefix = options.allowPrefix ?? true;
|
|
52605
|
+
const separators = [...resolveSeparators(options)].sort((left, right) => right.length - left.length);
|
|
52606
|
+
for (const separator of separators) {
|
|
52607
|
+
validateSeparator(separator);
|
|
52608
|
+
}
|
|
52609
|
+
let working = text.trim();
|
|
52610
|
+
if (/^0x/i.test(working)) {
|
|
52611
|
+
if (!allowPrefix) {
|
|
52612
|
+
throw new TypeError("Hexadecimal text must not include a 0x prefix");
|
|
52613
|
+
}
|
|
52614
|
+
working = working.slice(2);
|
|
52615
|
+
}
|
|
52616
|
+
let normalized = "";
|
|
52617
|
+
let lastTokenWasSeparator = false;
|
|
52618
|
+
for (let index = 0; index < working.length; ) {
|
|
52619
|
+
const character = working[index] ?? "";
|
|
52620
|
+
if (HEX_CHARACTER_REGEX.test(character)) {
|
|
52621
|
+
normalized += character;
|
|
52622
|
+
lastTokenWasSeparator = false;
|
|
52623
|
+
index += 1;
|
|
52624
|
+
continue;
|
|
52625
|
+
}
|
|
52626
|
+
const separator = matchSeparator(working, index, separators);
|
|
52627
|
+
if (!separator) {
|
|
52628
|
+
throw new TypeError("Input is not valid hexadecimal text");
|
|
52629
|
+
}
|
|
52630
|
+
if (options.strict && (lastTokenWasSeparator || normalized.length === 0)) {
|
|
52631
|
+
throw new TypeError("Hexadecimal text contains misplaced separators");
|
|
52632
|
+
}
|
|
52633
|
+
lastTokenWasSeparator = true;
|
|
52634
|
+
index += separator.length;
|
|
52635
|
+
}
|
|
52636
|
+
if (options.strict && lastTokenWasSeparator && normalized.length > 0) {
|
|
52637
|
+
throw new TypeError("Hexadecimal text must not end with a separator");
|
|
52638
|
+
}
|
|
52639
|
+
if (normalized.length % 2 !== 0) {
|
|
52640
|
+
if (!options.allowOddLength) {
|
|
52641
|
+
throw new TypeError("Hexadecimal text must contain an even number of characters");
|
|
52642
|
+
}
|
|
52643
|
+
normalized = `0${normalized}`;
|
|
52644
|
+
}
|
|
52645
|
+
return normalized.toLowerCase();
|
|
52646
|
+
}
|
|
52647
|
+
function groupPairs(pairs, group) {
|
|
52648
|
+
if (!group) {
|
|
52649
|
+
return pairs.join("");
|
|
52650
|
+
}
|
|
52651
|
+
if (!Number.isInteger(group.size) || group.size < 1) {
|
|
52652
|
+
throw new RangeError("Hex group size must be a positive integer");
|
|
52653
|
+
}
|
|
52654
|
+
const chunks = [];
|
|
52655
|
+
for (let index = 0; index < pairs.length; index += group.size) {
|
|
52656
|
+
chunks.push(pairs.slice(index, index + group.size).join(""));
|
|
52657
|
+
}
|
|
52658
|
+
return chunks.join(group.separator);
|
|
52659
|
+
}
|
|
52660
|
+
function normalize(text, options = {}) {
|
|
52661
|
+
return normalizeText(text, options);
|
|
52662
|
+
}
|
|
52663
|
+
function is(text, options = {}) {
|
|
52664
|
+
if (typeof text !== "string") {
|
|
52665
|
+
return false;
|
|
52666
|
+
}
|
|
52667
|
+
try {
|
|
52668
|
+
normalize(text, options);
|
|
52669
|
+
return true;
|
|
52670
|
+
} catch {
|
|
52671
|
+
return false;
|
|
52672
|
+
}
|
|
52673
|
+
}
|
|
52674
|
+
function encode(data, options = {}) {
|
|
52675
|
+
const bytes = toUint8Array(data);
|
|
52676
|
+
const casing = options.case ?? "lower";
|
|
52677
|
+
const pairs = Array.from(bytes, (byte) => {
|
|
52678
|
+
const text = byte.toString(16).padStart(2, "0");
|
|
52679
|
+
return casing === "upper" ? text.toUpperCase() : text;
|
|
52680
|
+
});
|
|
52681
|
+
let body = "";
|
|
52682
|
+
if (options.line) {
|
|
52683
|
+
const bytesPerLine = options.line.bytesPerLine;
|
|
52684
|
+
if (!Number.isInteger(bytesPerLine) || bytesPerLine < 1) {
|
|
52685
|
+
throw new RangeError("Hex bytesPerLine must be a positive integer");
|
|
52686
|
+
}
|
|
52687
|
+
const separator = options.line.separator ?? "\n";
|
|
52688
|
+
const lines = [];
|
|
52689
|
+
for (let index = 0; index < pairs.length; index += bytesPerLine) {
|
|
52690
|
+
lines.push(groupPairs(pairs.slice(index, index + bytesPerLine), options.group));
|
|
52691
|
+
}
|
|
52692
|
+
body = lines.join(separator);
|
|
52693
|
+
} else {
|
|
52694
|
+
body = groupPairs(pairs, options.group);
|
|
52695
|
+
}
|
|
52696
|
+
return `${options.prefix ?? ""}${body}`;
|
|
52697
|
+
}
|
|
52698
|
+
function decode(text, options = {}) {
|
|
52699
|
+
const normalized = normalize(text, options);
|
|
52700
|
+
const result = new Uint8Array(normalized.length / 2);
|
|
52701
|
+
for (let i = 0; i < normalized.length; i += 2) {
|
|
52702
|
+
result[i / 2] = Number.parseInt(normalized.slice(i, i + 2), 16);
|
|
52703
|
+
}
|
|
52704
|
+
return result;
|
|
52705
|
+
}
|
|
52706
|
+
function parse(text, options = {}) {
|
|
52707
|
+
const normalized = normalize(text, options);
|
|
52708
|
+
return {
|
|
52709
|
+
bytes: decode(normalized),
|
|
52710
|
+
format: detectFormat(text),
|
|
52711
|
+
normalized
|
|
52712
|
+
};
|
|
52713
|
+
}
|
|
52714
|
+
function format(data, value) {
|
|
52715
|
+
return encode(data, value);
|
|
52716
|
+
}
|
|
52717
|
+
var formats = {
|
|
52718
|
+
compact: Object.freeze({}),
|
|
52719
|
+
upper: Object.freeze({ case: "upper" }),
|
|
52720
|
+
colon: Object.freeze({ group: { size: 1, separator: ":" } }),
|
|
52721
|
+
colonUpper: Object.freeze({ case: "upper", group: { size: 1, separator: ":" } }),
|
|
52722
|
+
groupsOf4: Object.freeze({ group: { size: 4, separator: " " } }),
|
|
52723
|
+
prefixed: Object.freeze({ prefix: "0x" })
|
|
52724
|
+
};
|
|
52725
|
+
var hex = { encode, decode, format, formats, is, normalize, parse };
|
|
52726
|
+
|
|
52727
|
+
// ../../node_modules/@peculiar/utils/build/esm/encoding/utf8.js
|
|
52728
|
+
init_inject_buffer();
|
|
52729
|
+
|
|
52730
|
+
// ../../node_modules/@peculiar/utils/build/esm/encoding/utf16.js
|
|
52731
|
+
init_inject_buffer();
|
|
52732
|
+
|
|
52733
|
+
// ../../node_modules/@peculiar/utils/build/esm/encoding/base64.js
|
|
52734
|
+
init_inject_buffer();
|
|
52735
|
+
|
|
52736
|
+
// ../../node_modules/@peculiar/utils/build/esm/encoding/base64url.js
|
|
52737
|
+
init_inject_buffer();
|
|
52738
|
+
|
|
52739
|
+
// ../../node_modules/@peculiar/asn1-x509/build/es2015/ip_converter.js
|
|
52444
52740
|
var IpConverter = class {
|
|
52445
52741
|
static isIPv4(ip) {
|
|
52446
52742
|
return /^(\d{1,3}\.){3}\d{1,3}$/.test(ip);
|
|
@@ -52581,7 +52877,7 @@ var IpConverter = class {
|
|
|
52581
52877
|
return `${addrStr}/${prefixLen}`;
|
|
52582
52878
|
}
|
|
52583
52879
|
}
|
|
52584
|
-
return this.decodeIP(
|
|
52880
|
+
return this.decodeIP(hex_exports.encode(buf));
|
|
52585
52881
|
}
|
|
52586
52882
|
static fromString(text) {
|
|
52587
52883
|
if (text.includes("/")) {
|
|
@@ -52609,11 +52905,15 @@ var IpConverter = class {
|
|
|
52609
52905
|
|
|
52610
52906
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/name.js
|
|
52611
52907
|
init_inject_buffer();
|
|
52612
|
-
var import_pvtsutils2 = __toESM(require_build());
|
|
52613
52908
|
var RelativeDistinguishedName_1;
|
|
52614
52909
|
var RDNSequence_1;
|
|
52615
52910
|
var Name_1;
|
|
52616
52911
|
var DirectoryString = class DirectoryString2 {
|
|
52912
|
+
teletexString;
|
|
52913
|
+
printableString;
|
|
52914
|
+
universalString;
|
|
52915
|
+
utf8String;
|
|
52916
|
+
bmpString;
|
|
52617
52917
|
constructor(params = {}) {
|
|
52618
52918
|
Object.assign(this, params);
|
|
52619
52919
|
}
|
|
@@ -52640,12 +52940,14 @@ DirectoryString = __decorate([
|
|
|
52640
52940
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
52641
52941
|
], DirectoryString);
|
|
52642
52942
|
var AttributeValue = class AttributeValue2 extends DirectoryString {
|
|
52943
|
+
ia5String;
|
|
52944
|
+
anyValue;
|
|
52643
52945
|
constructor(params = {}) {
|
|
52644
52946
|
super(params);
|
|
52645
52947
|
Object.assign(this, params);
|
|
52646
52948
|
}
|
|
52647
52949
|
toString() {
|
|
52648
|
-
return this.ia5String || (this.anyValue ?
|
|
52950
|
+
return this.ia5String || (this.anyValue ? hex_exports.encode(this.anyValue) : super.toString());
|
|
52649
52951
|
}
|
|
52650
52952
|
};
|
|
52651
52953
|
__decorate([
|
|
@@ -52658,9 +52960,9 @@ AttributeValue = __decorate([
|
|
|
52658
52960
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
52659
52961
|
], AttributeValue);
|
|
52660
52962
|
var AttributeTypeAndValue = class {
|
|
52963
|
+
type = "";
|
|
52964
|
+
value = new AttributeValue();
|
|
52661
52965
|
constructor(params = {}) {
|
|
52662
|
-
this.type = "";
|
|
52663
|
-
this.value = new AttributeValue();
|
|
52664
52966
|
Object.assign(this, params);
|
|
52665
52967
|
}
|
|
52666
52968
|
};
|
|
@@ -52677,7 +52979,10 @@ var RelativeDistinguishedName = RelativeDistinguishedName_1 = class RelativeDist
|
|
|
52677
52979
|
}
|
|
52678
52980
|
};
|
|
52679
52981
|
RelativeDistinguishedName = RelativeDistinguishedName_1 = __decorate([
|
|
52680
|
-
AsnType({
|
|
52982
|
+
AsnType({
|
|
52983
|
+
type: AsnTypeTypes.Set,
|
|
52984
|
+
itemType: AttributeTypeAndValue
|
|
52985
|
+
})
|
|
52681
52986
|
], RelativeDistinguishedName);
|
|
52682
52987
|
var RDNSequence = RDNSequence_1 = class RDNSequence2 extends AsnArray {
|
|
52683
52988
|
constructor(items) {
|
|
@@ -52686,7 +52991,10 @@ var RDNSequence = RDNSequence_1 = class RDNSequence2 extends AsnArray {
|
|
|
52686
52991
|
}
|
|
52687
52992
|
};
|
|
52688
52993
|
RDNSequence = RDNSequence_1 = __decorate([
|
|
52689
|
-
AsnType({
|
|
52994
|
+
AsnType({
|
|
52995
|
+
type: AsnTypeTypes.Sequence,
|
|
52996
|
+
itemType: RelativeDistinguishedName
|
|
52997
|
+
})
|
|
52690
52998
|
], RDNSequence);
|
|
52691
52999
|
var Name = Name_1 = class Name2 extends RDNSequence {
|
|
52692
53000
|
constructor(items) {
|
|
@@ -52704,9 +53012,9 @@ var AsnIpConverter = {
|
|
|
52704
53012
|
toASN: (value) => AsnOctetStringConverter.toASN(IpConverter.fromString(value))
|
|
52705
53013
|
};
|
|
52706
53014
|
var OtherName = class {
|
|
53015
|
+
typeId = "";
|
|
53016
|
+
value = new ArrayBuffer(0);
|
|
52707
53017
|
constructor(params = {}) {
|
|
52708
|
-
this.typeId = "";
|
|
52709
|
-
this.value = new ArrayBuffer(0);
|
|
52710
53018
|
Object.assign(this, params);
|
|
52711
53019
|
}
|
|
52712
53020
|
};
|
|
@@ -52714,45 +53022,94 @@ __decorate([
|
|
|
52714
53022
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
52715
53023
|
], OtherName.prototype, "typeId", void 0);
|
|
52716
53024
|
__decorate([
|
|
52717
|
-
AsnProp({
|
|
53025
|
+
AsnProp({
|
|
53026
|
+
type: AsnPropTypes.Any,
|
|
53027
|
+
context: 0
|
|
53028
|
+
})
|
|
52718
53029
|
], OtherName.prototype, "value", void 0);
|
|
52719
53030
|
var EDIPartyName = class {
|
|
53031
|
+
nameAssigner;
|
|
53032
|
+
partyName = new DirectoryString();
|
|
52720
53033
|
constructor(params = {}) {
|
|
52721
|
-
this.partyName = new DirectoryString();
|
|
52722
53034
|
Object.assign(this, params);
|
|
52723
53035
|
}
|
|
52724
53036
|
};
|
|
52725
53037
|
__decorate([
|
|
52726
|
-
AsnProp({
|
|
53038
|
+
AsnProp({
|
|
53039
|
+
type: DirectoryString,
|
|
53040
|
+
optional: true,
|
|
53041
|
+
context: 0,
|
|
53042
|
+
implicit: true
|
|
53043
|
+
})
|
|
52727
53044
|
], EDIPartyName.prototype, "nameAssigner", void 0);
|
|
52728
53045
|
__decorate([
|
|
52729
|
-
AsnProp({
|
|
53046
|
+
AsnProp({
|
|
53047
|
+
type: DirectoryString,
|
|
53048
|
+
context: 1,
|
|
53049
|
+
implicit: true
|
|
53050
|
+
})
|
|
52730
53051
|
], EDIPartyName.prototype, "partyName", void 0);
|
|
52731
53052
|
var GeneralName = class GeneralName2 {
|
|
53053
|
+
otherName;
|
|
53054
|
+
rfc822Name;
|
|
53055
|
+
dNSName;
|
|
53056
|
+
x400Address;
|
|
53057
|
+
directoryName;
|
|
53058
|
+
ediPartyName;
|
|
53059
|
+
uniformResourceIdentifier;
|
|
53060
|
+
iPAddress;
|
|
53061
|
+
registeredID;
|
|
52732
53062
|
constructor(params = {}) {
|
|
52733
53063
|
Object.assign(this, params);
|
|
52734
53064
|
}
|
|
52735
53065
|
};
|
|
52736
53066
|
__decorate([
|
|
52737
|
-
AsnProp({
|
|
53067
|
+
AsnProp({
|
|
53068
|
+
type: OtherName,
|
|
53069
|
+
context: 0,
|
|
53070
|
+
implicit: true
|
|
53071
|
+
})
|
|
52738
53072
|
], GeneralName.prototype, "otherName", void 0);
|
|
52739
53073
|
__decorate([
|
|
52740
|
-
AsnProp({
|
|
53074
|
+
AsnProp({
|
|
53075
|
+
type: AsnPropTypes.IA5String,
|
|
53076
|
+
context: 1,
|
|
53077
|
+
implicit: true
|
|
53078
|
+
})
|
|
52741
53079
|
], GeneralName.prototype, "rfc822Name", void 0);
|
|
52742
53080
|
__decorate([
|
|
52743
|
-
AsnProp({
|
|
53081
|
+
AsnProp({
|
|
53082
|
+
type: AsnPropTypes.IA5String,
|
|
53083
|
+
context: 2,
|
|
53084
|
+
implicit: true
|
|
53085
|
+
})
|
|
52744
53086
|
], GeneralName.prototype, "dNSName", void 0);
|
|
52745
53087
|
__decorate([
|
|
52746
|
-
AsnProp({
|
|
53088
|
+
AsnProp({
|
|
53089
|
+
type: AsnPropTypes.Any,
|
|
53090
|
+
context: 3,
|
|
53091
|
+
implicit: true
|
|
53092
|
+
})
|
|
52747
53093
|
], GeneralName.prototype, "x400Address", void 0);
|
|
52748
53094
|
__decorate([
|
|
52749
|
-
AsnProp({
|
|
53095
|
+
AsnProp({
|
|
53096
|
+
type: Name,
|
|
53097
|
+
context: 4,
|
|
53098
|
+
implicit: false
|
|
53099
|
+
})
|
|
52750
53100
|
], GeneralName.prototype, "directoryName", void 0);
|
|
52751
53101
|
__decorate([
|
|
52752
|
-
AsnProp({
|
|
53102
|
+
AsnProp({
|
|
53103
|
+
type: EDIPartyName,
|
|
53104
|
+
context: 5
|
|
53105
|
+
})
|
|
52753
53106
|
], GeneralName.prototype, "ediPartyName", void 0);
|
|
52754
53107
|
__decorate([
|
|
52755
|
-
AsnProp({
|
|
53108
|
+
AsnProp({
|
|
53109
|
+
type: AsnPropTypes.IA5String,
|
|
53110
|
+
context: 6,
|
|
53111
|
+
implicit: true
|
|
53112
|
+
})
|
|
52756
53113
|
], GeneralName.prototype, "uniformResourceIdentifier", void 0);
|
|
52757
53114
|
__decorate([
|
|
52758
53115
|
AsnProp({
|
|
@@ -52763,7 +53120,11 @@ __decorate([
|
|
|
52763
53120
|
})
|
|
52764
53121
|
], GeneralName.prototype, "iPAddress", void 0);
|
|
52765
53122
|
__decorate([
|
|
52766
|
-
AsnProp({
|
|
53123
|
+
AsnProp({
|
|
53124
|
+
type: AsnPropTypes.ObjectIdentifier,
|
|
53125
|
+
context: 8,
|
|
53126
|
+
implicit: true
|
|
53127
|
+
})
|
|
52767
53128
|
], GeneralName.prototype, "registeredID", void 0);
|
|
52768
53129
|
GeneralName = __decorate([
|
|
52769
53130
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
@@ -52788,9 +53149,9 @@ var id_ce = "2.5.29";
|
|
|
52788
53149
|
var AuthorityInfoAccessSyntax_1;
|
|
52789
53150
|
var id_pe_authorityInfoAccess = `${id_pe}.1`;
|
|
52790
53151
|
var AccessDescription = class {
|
|
53152
|
+
accessMethod = "";
|
|
53153
|
+
accessLocation = new GeneralName();
|
|
52791
53154
|
constructor(params = {}) {
|
|
52792
|
-
this.accessMethod = "";
|
|
52793
|
-
this.accessLocation = new GeneralName();
|
|
52794
53155
|
Object.assign(this, params);
|
|
52795
53156
|
}
|
|
52796
53157
|
};
|
|
@@ -52807,7 +53168,10 @@ var AuthorityInfoAccessSyntax = AuthorityInfoAccessSyntax_1 = class AuthorityInf
|
|
|
52807
53168
|
}
|
|
52808
53169
|
};
|
|
52809
53170
|
AuthorityInfoAccessSyntax = AuthorityInfoAccessSyntax_1 = __decorate([
|
|
52810
|
-
AsnType({
|
|
53171
|
+
AsnType({
|
|
53172
|
+
type: AsnTypeTypes.Sequence,
|
|
53173
|
+
itemType: AccessDescription
|
|
53174
|
+
})
|
|
52811
53175
|
], AuthorityInfoAccessSyntax);
|
|
52812
53176
|
|
|
52813
53177
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/authority_key_identifier.js
|
|
@@ -52816,6 +53180,9 @@ var id_ce_authorityKeyIdentifier = `${id_ce}.35`;
|
|
|
52816
53180
|
var KeyIdentifier = class extends OctetString2 {
|
|
52817
53181
|
};
|
|
52818
53182
|
var AuthorityKeyIdentifier = class {
|
|
53183
|
+
keyIdentifier;
|
|
53184
|
+
authorityCertIssuer;
|
|
53185
|
+
authorityCertSerialNumber;
|
|
52819
53186
|
constructor(params = {}) {
|
|
52820
53187
|
if (params) {
|
|
52821
53188
|
Object.assign(this, params);
|
|
@@ -52823,10 +53190,21 @@ var AuthorityKeyIdentifier = class {
|
|
|
52823
53190
|
}
|
|
52824
53191
|
};
|
|
52825
53192
|
__decorate([
|
|
52826
|
-
AsnProp({
|
|
53193
|
+
AsnProp({
|
|
53194
|
+
type: KeyIdentifier,
|
|
53195
|
+
context: 0,
|
|
53196
|
+
optional: true,
|
|
53197
|
+
implicit: true
|
|
53198
|
+
})
|
|
52827
53199
|
], AuthorityKeyIdentifier.prototype, "keyIdentifier", void 0);
|
|
52828
53200
|
__decorate([
|
|
52829
|
-
AsnProp({
|
|
53201
|
+
AsnProp({
|
|
53202
|
+
type: GeneralName,
|
|
53203
|
+
context: 1,
|
|
53204
|
+
optional: true,
|
|
53205
|
+
implicit: true,
|
|
53206
|
+
repeated: "sequence"
|
|
53207
|
+
})
|
|
52830
53208
|
], AuthorityKeyIdentifier.prototype, "authorityCertIssuer", void 0);
|
|
52831
53209
|
__decorate([
|
|
52832
53210
|
AsnProp({
|
|
@@ -52842,16 +53220,23 @@ __decorate([
|
|
|
52842
53220
|
init_inject_buffer();
|
|
52843
53221
|
var id_ce_basicConstraints = `${id_ce}.19`;
|
|
52844
53222
|
var BasicConstraints = class {
|
|
53223
|
+
cA = false;
|
|
53224
|
+
pathLenConstraint;
|
|
52845
53225
|
constructor(params = {}) {
|
|
52846
|
-
this.cA = false;
|
|
52847
53226
|
Object.assign(this, params);
|
|
52848
53227
|
}
|
|
52849
53228
|
};
|
|
52850
53229
|
__decorate([
|
|
52851
|
-
AsnProp({
|
|
53230
|
+
AsnProp({
|
|
53231
|
+
type: AsnPropTypes.Boolean,
|
|
53232
|
+
defaultValue: false
|
|
53233
|
+
})
|
|
52852
53234
|
], BasicConstraints.prototype, "cA", void 0);
|
|
52853
53235
|
__decorate([
|
|
52854
|
-
AsnProp({
|
|
53236
|
+
AsnProp({
|
|
53237
|
+
type: AsnPropTypes.Integer,
|
|
53238
|
+
optional: true
|
|
53239
|
+
})
|
|
52855
53240
|
], BasicConstraints.prototype, "pathLenConstraint", void 0);
|
|
52856
53241
|
|
|
52857
53242
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js
|
|
@@ -52867,7 +53252,10 @@ var GeneralNames = GeneralNames_1 = class GeneralNames2 extends AsnArray {
|
|
|
52867
53252
|
}
|
|
52868
53253
|
};
|
|
52869
53254
|
GeneralNames = GeneralNames_1 = __decorate([
|
|
52870
|
-
AsnType({
|
|
53255
|
+
AsnType({
|
|
53256
|
+
type: AsnTypeTypes.Sequence,
|
|
53257
|
+
itemType: GeneralName
|
|
53258
|
+
})
|
|
52871
53259
|
], GeneralNames);
|
|
52872
53260
|
|
|
52873
53261
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/certificate_issuer.js
|
|
@@ -52889,6 +53277,10 @@ var CertificatePolicies_1;
|
|
|
52889
53277
|
var id_ce_certificatePolicies = `${id_ce}.32`;
|
|
52890
53278
|
var id_ce_certificatePolicies_anyPolicy = `${id_ce_certificatePolicies}.0`;
|
|
52891
53279
|
var DisplayText = class DisplayText2 {
|
|
53280
|
+
ia5String;
|
|
53281
|
+
visibleString;
|
|
53282
|
+
bmpString;
|
|
53283
|
+
utf8String;
|
|
52892
53284
|
constructor(params = {}) {
|
|
52893
53285
|
Object.assign(this, params);
|
|
52894
53286
|
}
|
|
@@ -52912,9 +53304,9 @@ DisplayText = __decorate([
|
|
|
52912
53304
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
52913
53305
|
], DisplayText);
|
|
52914
53306
|
var NoticeReference = class {
|
|
53307
|
+
organization = new DisplayText();
|
|
53308
|
+
noticeNumbers = [];
|
|
52915
53309
|
constructor(params = {}) {
|
|
52916
|
-
this.organization = new DisplayText();
|
|
52917
|
-
this.noticeNumbers = [];
|
|
52918
53310
|
Object.assign(this, params);
|
|
52919
53311
|
}
|
|
52920
53312
|
};
|
|
@@ -52922,20 +53314,33 @@ __decorate([
|
|
|
52922
53314
|
AsnProp({ type: DisplayText })
|
|
52923
53315
|
], NoticeReference.prototype, "organization", void 0);
|
|
52924
53316
|
__decorate([
|
|
52925
|
-
AsnProp({
|
|
53317
|
+
AsnProp({
|
|
53318
|
+
type: AsnPropTypes.Integer,
|
|
53319
|
+
repeated: "sequence"
|
|
53320
|
+
})
|
|
52926
53321
|
], NoticeReference.prototype, "noticeNumbers", void 0);
|
|
52927
53322
|
var UserNotice = class {
|
|
53323
|
+
noticeRef;
|
|
53324
|
+
explicitText;
|
|
52928
53325
|
constructor(params = {}) {
|
|
52929
53326
|
Object.assign(this, params);
|
|
52930
53327
|
}
|
|
52931
53328
|
};
|
|
52932
53329
|
__decorate([
|
|
52933
|
-
AsnProp({
|
|
53330
|
+
AsnProp({
|
|
53331
|
+
type: NoticeReference,
|
|
53332
|
+
optional: true
|
|
53333
|
+
})
|
|
52934
53334
|
], UserNotice.prototype, "noticeRef", void 0);
|
|
52935
53335
|
__decorate([
|
|
52936
|
-
AsnProp({
|
|
53336
|
+
AsnProp({
|
|
53337
|
+
type: DisplayText,
|
|
53338
|
+
optional: true
|
|
53339
|
+
})
|
|
52937
53340
|
], UserNotice.prototype, "explicitText", void 0);
|
|
52938
53341
|
var Qualifier = class Qualifier2 {
|
|
53342
|
+
cPSuri;
|
|
53343
|
+
userNotice;
|
|
52939
53344
|
constructor(params = {}) {
|
|
52940
53345
|
Object.assign(this, params);
|
|
52941
53346
|
}
|
|
@@ -52950,9 +53355,9 @@ Qualifier = __decorate([
|
|
|
52950
53355
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
52951
53356
|
], Qualifier);
|
|
52952
53357
|
var PolicyQualifierInfo = class {
|
|
53358
|
+
policyQualifierId = "";
|
|
53359
|
+
qualifier = new ArrayBuffer(0);
|
|
52953
53360
|
constructor(params = {}) {
|
|
52954
|
-
this.policyQualifierId = "";
|
|
52955
|
-
this.qualifier = new ArrayBuffer(0);
|
|
52956
53361
|
Object.assign(this, params);
|
|
52957
53362
|
}
|
|
52958
53363
|
};
|
|
@@ -52963,8 +53368,9 @@ __decorate([
|
|
|
52963
53368
|
AsnProp({ type: AsnPropTypes.Any })
|
|
52964
53369
|
], PolicyQualifierInfo.prototype, "qualifier", void 0);
|
|
52965
53370
|
var PolicyInformation = class {
|
|
53371
|
+
policyIdentifier = "";
|
|
53372
|
+
policyQualifiers;
|
|
52966
53373
|
constructor(params = {}) {
|
|
52967
|
-
this.policyIdentifier = "";
|
|
52968
53374
|
Object.assign(this, params);
|
|
52969
53375
|
}
|
|
52970
53376
|
};
|
|
@@ -52972,7 +53378,11 @@ __decorate([
|
|
|
52972
53378
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
52973
53379
|
], PolicyInformation.prototype, "policyIdentifier", void 0);
|
|
52974
53380
|
__decorate([
|
|
52975
|
-
AsnProp({
|
|
53381
|
+
AsnProp({
|
|
53382
|
+
type: PolicyQualifierInfo,
|
|
53383
|
+
repeated: "sequence",
|
|
53384
|
+
optional: true
|
|
53385
|
+
})
|
|
52976
53386
|
], PolicyInformation.prototype, "policyQualifiers", void 0);
|
|
52977
53387
|
var CertificatePolicies = CertificatePolicies_1 = class CertificatePolicies2 extends AsnArray {
|
|
52978
53388
|
constructor(items) {
|
|
@@ -52981,7 +53391,10 @@ var CertificatePolicies = CertificatePolicies_1 = class CertificatePolicies2 ext
|
|
|
52981
53391
|
}
|
|
52982
53392
|
};
|
|
52983
53393
|
CertificatePolicies = CertificatePolicies_1 = __decorate([
|
|
52984
|
-
AsnType({
|
|
53394
|
+
AsnType({
|
|
53395
|
+
type: AsnTypeTypes.Sequence,
|
|
53396
|
+
itemType: PolicyInformation
|
|
53397
|
+
})
|
|
52985
53398
|
], CertificatePolicies);
|
|
52986
53399
|
|
|
52987
53400
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_delta_indicator.js
|
|
@@ -52991,6 +53404,7 @@ init_inject_buffer();
|
|
|
52991
53404
|
init_inject_buffer();
|
|
52992
53405
|
var id_ce_cRLNumber = `${id_ce}.20`;
|
|
52993
53406
|
var CRLNumber = class CRLNumber2 {
|
|
53407
|
+
value;
|
|
52994
53408
|
constructor(value = 0) {
|
|
52995
53409
|
this.value = value;
|
|
52996
53410
|
}
|
|
@@ -53064,32 +53478,61 @@ var Reason = class extends BitString2 {
|
|
|
53064
53478
|
}
|
|
53065
53479
|
};
|
|
53066
53480
|
var DistributionPointName = class DistributionPointName2 {
|
|
53481
|
+
fullName;
|
|
53482
|
+
nameRelativeToCRLIssuer;
|
|
53067
53483
|
constructor(params = {}) {
|
|
53068
53484
|
Object.assign(this, params);
|
|
53069
53485
|
}
|
|
53070
53486
|
};
|
|
53071
53487
|
__decorate([
|
|
53072
|
-
AsnProp({
|
|
53488
|
+
AsnProp({
|
|
53489
|
+
type: GeneralName,
|
|
53490
|
+
context: 0,
|
|
53491
|
+
repeated: "sequence",
|
|
53492
|
+
implicit: true
|
|
53493
|
+
})
|
|
53073
53494
|
], DistributionPointName.prototype, "fullName", void 0);
|
|
53074
53495
|
__decorate([
|
|
53075
|
-
AsnProp({
|
|
53496
|
+
AsnProp({
|
|
53497
|
+
type: RelativeDistinguishedName,
|
|
53498
|
+
context: 1,
|
|
53499
|
+
implicit: true
|
|
53500
|
+
})
|
|
53076
53501
|
], DistributionPointName.prototype, "nameRelativeToCRLIssuer", void 0);
|
|
53077
53502
|
DistributionPointName = __decorate([
|
|
53078
53503
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
53079
53504
|
], DistributionPointName);
|
|
53080
53505
|
var DistributionPoint = class {
|
|
53506
|
+
distributionPoint;
|
|
53507
|
+
reasons;
|
|
53508
|
+
cRLIssuer;
|
|
53081
53509
|
constructor(params = {}) {
|
|
53082
53510
|
Object.assign(this, params);
|
|
53083
53511
|
}
|
|
53084
53512
|
};
|
|
53085
53513
|
__decorate([
|
|
53086
|
-
AsnProp({
|
|
53514
|
+
AsnProp({
|
|
53515
|
+
type: DistributionPointName,
|
|
53516
|
+
context: 0,
|
|
53517
|
+
optional: true
|
|
53518
|
+
})
|
|
53087
53519
|
], DistributionPoint.prototype, "distributionPoint", void 0);
|
|
53088
53520
|
__decorate([
|
|
53089
|
-
AsnProp({
|
|
53521
|
+
AsnProp({
|
|
53522
|
+
type: Reason,
|
|
53523
|
+
context: 1,
|
|
53524
|
+
optional: true,
|
|
53525
|
+
implicit: true
|
|
53526
|
+
})
|
|
53090
53527
|
], DistributionPoint.prototype, "reasons", void 0);
|
|
53091
53528
|
__decorate([
|
|
53092
|
-
AsnProp({
|
|
53529
|
+
AsnProp({
|
|
53530
|
+
type: GeneralName,
|
|
53531
|
+
context: 2,
|
|
53532
|
+
optional: true,
|
|
53533
|
+
repeated: "sequence",
|
|
53534
|
+
implicit: true
|
|
53535
|
+
})
|
|
53093
53536
|
], DistributionPoint.prototype, "cRLIssuer", void 0);
|
|
53094
53537
|
var CRLDistributionPoints = CRLDistributionPoints_1 = class CRLDistributionPoints2 extends AsnArray {
|
|
53095
53538
|
constructor(items) {
|
|
@@ -53098,7 +53541,10 @@ var CRLDistributionPoints = CRLDistributionPoints_1 = class CRLDistributionPoint
|
|
|
53098
53541
|
}
|
|
53099
53542
|
};
|
|
53100
53543
|
CRLDistributionPoints = CRLDistributionPoints_1 = __decorate([
|
|
53101
|
-
AsnType({
|
|
53544
|
+
AsnType({
|
|
53545
|
+
type: AsnTypeTypes.Sequence,
|
|
53546
|
+
itemType: DistributionPoint
|
|
53547
|
+
})
|
|
53102
53548
|
], CRLDistributionPoints);
|
|
53103
53549
|
|
|
53104
53550
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_freshest.js
|
|
@@ -53112,24 +53558,33 @@ var FreshestCRL = FreshestCRL_1 = class FreshestCRL2 extends CRLDistributionPoin
|
|
|
53112
53558
|
}
|
|
53113
53559
|
};
|
|
53114
53560
|
FreshestCRL = FreshestCRL_1 = __decorate([
|
|
53115
|
-
AsnType({
|
|
53561
|
+
AsnType({
|
|
53562
|
+
type: AsnTypeTypes.Sequence,
|
|
53563
|
+
itemType: DistributionPoint
|
|
53564
|
+
})
|
|
53116
53565
|
], FreshestCRL);
|
|
53117
53566
|
|
|
53118
53567
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/crl_issuing_distribution_point.js
|
|
53119
53568
|
init_inject_buffer();
|
|
53120
53569
|
var id_ce_issuingDistributionPoint = `${id_ce}.28`;
|
|
53121
53570
|
var IssuingDistributionPoint = class _IssuingDistributionPoint {
|
|
53571
|
+
static ONLY = false;
|
|
53572
|
+
distributionPoint;
|
|
53573
|
+
onlyContainsUserCerts = _IssuingDistributionPoint.ONLY;
|
|
53574
|
+
onlyContainsCACerts = _IssuingDistributionPoint.ONLY;
|
|
53575
|
+
onlySomeReasons;
|
|
53576
|
+
indirectCRL = _IssuingDistributionPoint.ONLY;
|
|
53577
|
+
onlyContainsAttributeCerts = _IssuingDistributionPoint.ONLY;
|
|
53122
53578
|
constructor(params = {}) {
|
|
53123
|
-
this.onlyContainsUserCerts = _IssuingDistributionPoint.ONLY;
|
|
53124
|
-
this.onlyContainsCACerts = _IssuingDistributionPoint.ONLY;
|
|
53125
|
-
this.indirectCRL = _IssuingDistributionPoint.ONLY;
|
|
53126
|
-
this.onlyContainsAttributeCerts = _IssuingDistributionPoint.ONLY;
|
|
53127
53579
|
Object.assign(this, params);
|
|
53128
53580
|
}
|
|
53129
53581
|
};
|
|
53130
|
-
IssuingDistributionPoint.ONLY = false;
|
|
53131
53582
|
__decorate([
|
|
53132
|
-
AsnProp({
|
|
53583
|
+
AsnProp({
|
|
53584
|
+
type: DistributionPointName,
|
|
53585
|
+
context: 0,
|
|
53586
|
+
optional: true
|
|
53587
|
+
})
|
|
53133
53588
|
], IssuingDistributionPoint.prototype, "distributionPoint", void 0);
|
|
53134
53589
|
__decorate([
|
|
53135
53590
|
AsnProp({
|
|
@@ -53148,7 +53603,12 @@ __decorate([
|
|
|
53148
53603
|
})
|
|
53149
53604
|
], IssuingDistributionPoint.prototype, "onlyContainsCACerts", void 0);
|
|
53150
53605
|
__decorate([
|
|
53151
|
-
AsnProp({
|
|
53606
|
+
AsnProp({
|
|
53607
|
+
type: Reason,
|
|
53608
|
+
context: 3,
|
|
53609
|
+
optional: true,
|
|
53610
|
+
implicit: true
|
|
53611
|
+
})
|
|
53152
53612
|
], IssuingDistributionPoint.prototype, "onlySomeReasons", void 0);
|
|
53153
53613
|
__decorate([
|
|
53154
53614
|
AsnProp({
|
|
@@ -53184,8 +53644,8 @@ var CRLReasons;
|
|
|
53184
53644
|
CRLReasons2[CRLReasons2["aACompromise"] = 10] = "aACompromise";
|
|
53185
53645
|
})(CRLReasons || (CRLReasons = {}));
|
|
53186
53646
|
var CRLReason = class CRLReason2 {
|
|
53647
|
+
reason = CRLReasons.unspecified;
|
|
53187
53648
|
constructor(reason = CRLReasons.unspecified) {
|
|
53188
|
-
this.reason = CRLReasons.unspecified;
|
|
53189
53649
|
this.reason = reason;
|
|
53190
53650
|
}
|
|
53191
53651
|
toJSON() {
|
|
@@ -53213,7 +53673,10 @@ var ExtendedKeyUsage = ExtendedKeyUsage_1 = class ExtendedKeyUsage2 extends AsnA
|
|
|
53213
53673
|
}
|
|
53214
53674
|
};
|
|
53215
53675
|
ExtendedKeyUsage = ExtendedKeyUsage_1 = __decorate([
|
|
53216
|
-
AsnType({
|
|
53676
|
+
AsnType({
|
|
53677
|
+
type: AsnTypeTypes.Sequence,
|
|
53678
|
+
itemType: AsnPropTypes.ObjectIdentifier
|
|
53679
|
+
})
|
|
53217
53680
|
], ExtendedKeyUsage);
|
|
53218
53681
|
var anyExtendedKeyUsage = `${id_ce_extKeyUsage}.0`;
|
|
53219
53682
|
var id_kp_serverAuth = `${id_kp}.1`;
|
|
@@ -53227,12 +53690,16 @@ var id_kp_OCSPSigning = `${id_kp}.9`;
|
|
|
53227
53690
|
init_inject_buffer();
|
|
53228
53691
|
var id_ce_inhibitAnyPolicy = `${id_ce}.54`;
|
|
53229
53692
|
var InhibitAnyPolicy = class InhibitAnyPolicy2 {
|
|
53693
|
+
value;
|
|
53230
53694
|
constructor(value = new ArrayBuffer(0)) {
|
|
53231
53695
|
this.value = value;
|
|
53232
53696
|
}
|
|
53233
53697
|
};
|
|
53234
53698
|
__decorate([
|
|
53235
|
-
AsnProp({
|
|
53699
|
+
AsnProp({
|
|
53700
|
+
type: AsnPropTypes.Integer,
|
|
53701
|
+
converter: AsnIntegerArrayBufferConverter
|
|
53702
|
+
})
|
|
53236
53703
|
], InhibitAnyPolicy.prototype, "value", void 0);
|
|
53237
53704
|
InhibitAnyPolicy = __decorate([
|
|
53238
53705
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
@@ -53242,8 +53709,8 @@ InhibitAnyPolicy = __decorate([
|
|
|
53242
53709
|
init_inject_buffer();
|
|
53243
53710
|
var id_ce_invalidityDate = `${id_ce}.24`;
|
|
53244
53711
|
var InvalidityDate = class InvalidityDate2 {
|
|
53712
|
+
value = /* @__PURE__ */ new Date();
|
|
53245
53713
|
constructor(value) {
|
|
53246
|
-
this.value = /* @__PURE__ */ new Date();
|
|
53247
53714
|
if (value) {
|
|
53248
53715
|
this.value = value;
|
|
53249
53716
|
}
|
|
@@ -53328,9 +53795,10 @@ init_inject_buffer();
|
|
|
53328
53795
|
var GeneralSubtrees_1;
|
|
53329
53796
|
var id_ce_nameConstraints = `${id_ce}.30`;
|
|
53330
53797
|
var GeneralSubtree = class {
|
|
53798
|
+
base = new GeneralName();
|
|
53799
|
+
minimum = 0;
|
|
53800
|
+
maximum;
|
|
53331
53801
|
constructor(params = {}) {
|
|
53332
|
-
this.base = new GeneralName();
|
|
53333
|
-
this.minimum = 0;
|
|
53334
53802
|
Object.assign(this, params);
|
|
53335
53803
|
}
|
|
53336
53804
|
};
|
|
@@ -53338,10 +53806,20 @@ __decorate([
|
|
|
53338
53806
|
AsnProp({ type: GeneralName })
|
|
53339
53807
|
], GeneralSubtree.prototype, "base", void 0);
|
|
53340
53808
|
__decorate([
|
|
53341
|
-
AsnProp({
|
|
53809
|
+
AsnProp({
|
|
53810
|
+
type: AsnPropTypes.Integer,
|
|
53811
|
+
context: 0,
|
|
53812
|
+
defaultValue: 0,
|
|
53813
|
+
implicit: true
|
|
53814
|
+
})
|
|
53342
53815
|
], GeneralSubtree.prototype, "minimum", void 0);
|
|
53343
53816
|
__decorate([
|
|
53344
|
-
AsnProp({
|
|
53817
|
+
AsnProp({
|
|
53818
|
+
type: AsnPropTypes.Integer,
|
|
53819
|
+
context: 1,
|
|
53820
|
+
optional: true,
|
|
53821
|
+
implicit: true
|
|
53822
|
+
})
|
|
53345
53823
|
], GeneralSubtree.prototype, "maximum", void 0);
|
|
53346
53824
|
var GeneralSubtrees = GeneralSubtrees_1 = class GeneralSubtrees2 extends AsnArray {
|
|
53347
53825
|
constructor(items) {
|
|
@@ -53350,24 +53828,41 @@ var GeneralSubtrees = GeneralSubtrees_1 = class GeneralSubtrees2 extends AsnArra
|
|
|
53350
53828
|
}
|
|
53351
53829
|
};
|
|
53352
53830
|
GeneralSubtrees = GeneralSubtrees_1 = __decorate([
|
|
53353
|
-
AsnType({
|
|
53831
|
+
AsnType({
|
|
53832
|
+
type: AsnTypeTypes.Sequence,
|
|
53833
|
+
itemType: GeneralSubtree
|
|
53834
|
+
})
|
|
53354
53835
|
], GeneralSubtrees);
|
|
53355
53836
|
var NameConstraints = class {
|
|
53837
|
+
permittedSubtrees;
|
|
53838
|
+
excludedSubtrees;
|
|
53356
53839
|
constructor(params = {}) {
|
|
53357
53840
|
Object.assign(this, params);
|
|
53358
53841
|
}
|
|
53359
53842
|
};
|
|
53360
53843
|
__decorate([
|
|
53361
|
-
AsnProp({
|
|
53844
|
+
AsnProp({
|
|
53845
|
+
type: GeneralSubtrees,
|
|
53846
|
+
context: 0,
|
|
53847
|
+
optional: true,
|
|
53848
|
+
implicit: true
|
|
53849
|
+
})
|
|
53362
53850
|
], NameConstraints.prototype, "permittedSubtrees", void 0);
|
|
53363
53851
|
__decorate([
|
|
53364
|
-
AsnProp({
|
|
53852
|
+
AsnProp({
|
|
53853
|
+
type: GeneralSubtrees,
|
|
53854
|
+
context: 1,
|
|
53855
|
+
optional: true,
|
|
53856
|
+
implicit: true
|
|
53857
|
+
})
|
|
53365
53858
|
], NameConstraints.prototype, "excludedSubtrees", void 0);
|
|
53366
53859
|
|
|
53367
53860
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/policy_constraints.js
|
|
53368
53861
|
init_inject_buffer();
|
|
53369
53862
|
var id_ce_policyConstraints = `${id_ce}.36`;
|
|
53370
53863
|
var PolicyConstraints = class {
|
|
53864
|
+
requireExplicitPolicy;
|
|
53865
|
+
inhibitPolicyMapping;
|
|
53371
53866
|
constructor(params = {}) {
|
|
53372
53867
|
Object.assign(this, params);
|
|
53373
53868
|
}
|
|
@@ -53396,9 +53891,9 @@ init_inject_buffer();
|
|
|
53396
53891
|
var PolicyMappings_1;
|
|
53397
53892
|
var id_ce_policyMappings = `${id_ce}.33`;
|
|
53398
53893
|
var PolicyMapping = class {
|
|
53894
|
+
issuerDomainPolicy = "";
|
|
53895
|
+
subjectDomainPolicy = "";
|
|
53399
53896
|
constructor(params = {}) {
|
|
53400
|
-
this.issuerDomainPolicy = "";
|
|
53401
|
-
this.subjectDomainPolicy = "";
|
|
53402
53897
|
Object.assign(this, params);
|
|
53403
53898
|
}
|
|
53404
53899
|
};
|
|
@@ -53415,7 +53910,10 @@ var PolicyMappings = PolicyMappings_1 = class PolicyMappings2 extends AsnArray {
|
|
|
53415
53910
|
}
|
|
53416
53911
|
};
|
|
53417
53912
|
PolicyMappings = PolicyMappings_1 = __decorate([
|
|
53418
|
-
AsnType({
|
|
53913
|
+
AsnType({
|
|
53914
|
+
type: AsnTypeTypes.Sequence,
|
|
53915
|
+
itemType: PolicyMapping
|
|
53916
|
+
})
|
|
53419
53917
|
], PolicyMappings);
|
|
53420
53918
|
|
|
53421
53919
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_alternative_name.js
|
|
@@ -53438,9 +53936,9 @@ init_inject_buffer();
|
|
|
53438
53936
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/attribute.js
|
|
53439
53937
|
init_inject_buffer();
|
|
53440
53938
|
var Attribute = class {
|
|
53939
|
+
type = "";
|
|
53940
|
+
values = [];
|
|
53441
53941
|
constructor(params = {}) {
|
|
53442
|
-
this.type = "";
|
|
53443
|
-
this.values = [];
|
|
53444
53942
|
Object.assign(this, params);
|
|
53445
53943
|
}
|
|
53446
53944
|
};
|
|
@@ -53448,7 +53946,10 @@ __decorate([
|
|
|
53448
53946
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
53449
53947
|
], Attribute.prototype, "type", void 0);
|
|
53450
53948
|
__decorate([
|
|
53451
|
-
AsnProp({
|
|
53949
|
+
AsnProp({
|
|
53950
|
+
type: AsnPropTypes.Any,
|
|
53951
|
+
repeated: "set"
|
|
53952
|
+
})
|
|
53452
53953
|
], Attribute.prototype, "values", void 0);
|
|
53453
53954
|
|
|
53454
53955
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_directory_attributes.js
|
|
@@ -53461,7 +53962,10 @@ var SubjectDirectoryAttributes = SubjectDirectoryAttributes_1 = class SubjectDir
|
|
|
53461
53962
|
}
|
|
53462
53963
|
};
|
|
53463
53964
|
SubjectDirectoryAttributes = SubjectDirectoryAttributes_1 = __decorate([
|
|
53464
|
-
AsnType({
|
|
53965
|
+
AsnType({
|
|
53966
|
+
type: AsnTypeTypes.Sequence,
|
|
53967
|
+
itemType: Attribute
|
|
53968
|
+
})
|
|
53465
53969
|
], SubjectDirectoryAttributes);
|
|
53466
53970
|
|
|
53467
53971
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/subject_key_identifier.js
|
|
@@ -53474,15 +53978,27 @@ var SubjectKeyIdentifier = class extends KeyIdentifier {
|
|
|
53474
53978
|
init_inject_buffer();
|
|
53475
53979
|
var id_ce_privateKeyUsagePeriod = `${id_ce}.16`;
|
|
53476
53980
|
var PrivateKeyUsagePeriod = class {
|
|
53981
|
+
notBefore;
|
|
53982
|
+
notAfter;
|
|
53477
53983
|
constructor(params = {}) {
|
|
53478
53984
|
Object.assign(this, params);
|
|
53479
53985
|
}
|
|
53480
53986
|
};
|
|
53481
53987
|
__decorate([
|
|
53482
|
-
AsnProp({
|
|
53988
|
+
AsnProp({
|
|
53989
|
+
type: AsnPropTypes.GeneralizedTime,
|
|
53990
|
+
context: 0,
|
|
53991
|
+
implicit: true,
|
|
53992
|
+
optional: true
|
|
53993
|
+
})
|
|
53483
53994
|
], PrivateKeyUsagePeriod.prototype, "notBefore", void 0);
|
|
53484
53995
|
__decorate([
|
|
53485
|
-
AsnProp({
|
|
53996
|
+
AsnProp({
|
|
53997
|
+
type: AsnPropTypes.GeneralizedTime,
|
|
53998
|
+
context: 1,
|
|
53999
|
+
implicit: true,
|
|
54000
|
+
optional: true
|
|
54001
|
+
})
|
|
53486
54002
|
], PrivateKeyUsagePeriod.prototype, "notAfter", void 0);
|
|
53487
54003
|
|
|
53488
54004
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/extensions/entrust_version_info.js
|
|
@@ -53513,9 +54029,9 @@ var EntrustInfo = class extends BitString2 {
|
|
|
53513
54029
|
}
|
|
53514
54030
|
};
|
|
53515
54031
|
var EntrustVersionInfo = class {
|
|
54032
|
+
entrustVers = "";
|
|
54033
|
+
entrustInfoFlags = new EntrustInfo();
|
|
53516
54034
|
constructor(params = {}) {
|
|
53517
|
-
this.entrustVers = "";
|
|
53518
|
-
this.entrustInfoFlags = new EntrustInfo();
|
|
53519
54035
|
Object.assign(this, params);
|
|
53520
54036
|
}
|
|
53521
54037
|
};
|
|
@@ -53537,25 +54053,26 @@ var SubjectInfoAccessSyntax = SubjectInfoAccessSyntax_1 = class SubjectInfoAcces
|
|
|
53537
54053
|
}
|
|
53538
54054
|
};
|
|
53539
54055
|
SubjectInfoAccessSyntax = SubjectInfoAccessSyntax_1 = __decorate([
|
|
53540
|
-
AsnType({
|
|
54056
|
+
AsnType({
|
|
54057
|
+
type: AsnTypeTypes.Sequence,
|
|
54058
|
+
itemType: AccessDescription
|
|
54059
|
+
})
|
|
53541
54060
|
], SubjectInfoAccessSyntax);
|
|
53542
54061
|
|
|
53543
54062
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/algorithm_identifier.js
|
|
53544
54063
|
init_inject_buffer();
|
|
53545
|
-
var pvtsutils2 = __toESM(require_build());
|
|
53546
54064
|
var AlgorithmIdentifier = class _AlgorithmIdentifier {
|
|
54065
|
+
algorithm = "";
|
|
54066
|
+
parameters;
|
|
53547
54067
|
constructor(params = {}) {
|
|
53548
|
-
this.algorithm = "";
|
|
53549
54068
|
Object.assign(this, params);
|
|
53550
54069
|
}
|
|
53551
54070
|
isEqual(data) {
|
|
53552
|
-
return data instanceof _AlgorithmIdentifier && data.algorithm == this.algorithm && (data.parameters && this.parameters &&
|
|
54071
|
+
return data instanceof _AlgorithmIdentifier && data.algorithm == this.algorithm && (data.parameters && this.parameters && equal(data.parameters, this.parameters) || data.parameters === this.parameters);
|
|
53553
54072
|
}
|
|
53554
54073
|
};
|
|
53555
54074
|
__decorate([
|
|
53556
|
-
AsnProp({
|
|
53557
|
-
type: AsnPropTypes.ObjectIdentifier
|
|
53558
|
-
})
|
|
54075
|
+
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
53559
54076
|
], AlgorithmIdentifier.prototype, "algorithm", void 0);
|
|
53560
54077
|
__decorate([
|
|
53561
54078
|
AsnProp({
|
|
@@ -53573,9 +54090,9 @@ init_inject_buffer();
|
|
|
53573
54090
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/subject_public_key_info.js
|
|
53574
54091
|
init_inject_buffer();
|
|
53575
54092
|
var SubjectPublicKeyInfo = class {
|
|
54093
|
+
algorithm = new AlgorithmIdentifier();
|
|
54094
|
+
subjectPublicKey = new ArrayBuffer(0);
|
|
53576
54095
|
constructor(params = {}) {
|
|
53577
|
-
this.algorithm = new AlgorithmIdentifier();
|
|
53578
|
-
this.subjectPublicKey = new ArrayBuffer(0);
|
|
53579
54096
|
Object.assign(this, params);
|
|
53580
54097
|
}
|
|
53581
54098
|
};
|
|
@@ -53592,10 +54109,13 @@ init_inject_buffer();
|
|
|
53592
54109
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/time.js
|
|
53593
54110
|
init_inject_buffer();
|
|
53594
54111
|
var Time = class Time2 {
|
|
54112
|
+
utcTime;
|
|
54113
|
+
generalTime;
|
|
53595
54114
|
constructor(time) {
|
|
53596
54115
|
if (time) {
|
|
53597
54116
|
if (typeof time === "string" || typeof time === "number" || time instanceof Date) {
|
|
53598
54117
|
const date = new Date(time);
|
|
54118
|
+
date.setMilliseconds(0);
|
|
53599
54119
|
if (date.getUTCFullYear() > 2049) {
|
|
53600
54120
|
this.generalTime = date;
|
|
53601
54121
|
} else {
|
|
@@ -53615,14 +54135,10 @@ var Time = class Time2 {
|
|
|
53615
54135
|
}
|
|
53616
54136
|
};
|
|
53617
54137
|
__decorate([
|
|
53618
|
-
AsnProp({
|
|
53619
|
-
type: AsnPropTypes.UTCTime
|
|
53620
|
-
})
|
|
54138
|
+
AsnProp({ type: AsnPropTypes.UTCTime })
|
|
53621
54139
|
], Time.prototype, "utcTime", void 0);
|
|
53622
54140
|
__decorate([
|
|
53623
|
-
AsnProp({
|
|
53624
|
-
type: AsnPropTypes.GeneralizedTime
|
|
53625
|
-
})
|
|
54141
|
+
AsnProp({ type: AsnPropTypes.GeneralizedTime })
|
|
53626
54142
|
], Time.prototype, "generalTime", void 0);
|
|
53627
54143
|
Time = __decorate([
|
|
53628
54144
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
@@ -53630,9 +54146,9 @@ Time = __decorate([
|
|
|
53630
54146
|
|
|
53631
54147
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/validity.js
|
|
53632
54148
|
var Validity = class {
|
|
54149
|
+
notBefore = new Time(/* @__PURE__ */ new Date());
|
|
54150
|
+
notAfter = new Time(/* @__PURE__ */ new Date());
|
|
53633
54151
|
constructor(params) {
|
|
53634
|
-
this.notBefore = new Time(/* @__PURE__ */ new Date());
|
|
53635
|
-
this.notAfter = new Time(/* @__PURE__ */ new Date());
|
|
53636
54152
|
if (params) {
|
|
53637
54153
|
this.notBefore = new Time(params.notBefore);
|
|
53638
54154
|
this.notAfter = new Time(params.notAfter);
|
|
@@ -53650,14 +54166,14 @@ __decorate([
|
|
|
53650
54166
|
init_inject_buffer();
|
|
53651
54167
|
var Extensions_1;
|
|
53652
54168
|
var Extension = class _Extension {
|
|
54169
|
+
static CRITICAL = false;
|
|
54170
|
+
extnID = "";
|
|
54171
|
+
critical = _Extension.CRITICAL;
|
|
54172
|
+
extnValue = new OctetString2();
|
|
53653
54173
|
constructor(params = {}) {
|
|
53654
|
-
this.extnID = "";
|
|
53655
|
-
this.critical = _Extension.CRITICAL;
|
|
53656
|
-
this.extnValue = new OctetString2();
|
|
53657
54174
|
Object.assign(this, params);
|
|
53658
54175
|
}
|
|
53659
54176
|
};
|
|
53660
|
-
Extension.CRITICAL = false;
|
|
53661
54177
|
__decorate([
|
|
53662
54178
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
53663
54179
|
], Extension.prototype, "extnID", void 0);
|
|
@@ -53677,7 +54193,10 @@ var Extensions = Extensions_1 = class Extensions2 extends AsnArray {
|
|
|
53677
54193
|
}
|
|
53678
54194
|
};
|
|
53679
54195
|
Extensions = Extensions_1 = __decorate([
|
|
53680
|
-
AsnType({
|
|
54196
|
+
AsnType({
|
|
54197
|
+
type: AsnTypeTypes.Sequence,
|
|
54198
|
+
itemType: Extension
|
|
54199
|
+
})
|
|
53681
54200
|
], Extensions);
|
|
53682
54201
|
|
|
53683
54202
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/types.js
|
|
@@ -53691,14 +54210,17 @@ var Version;
|
|
|
53691
54210
|
|
|
53692
54211
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/tbs_certificate.js
|
|
53693
54212
|
var TBSCertificate = class {
|
|
54213
|
+
version = Version.v1;
|
|
54214
|
+
serialNumber = new ArrayBuffer(0);
|
|
54215
|
+
signature = new AlgorithmIdentifier();
|
|
54216
|
+
issuer = new Name();
|
|
54217
|
+
validity = new Validity();
|
|
54218
|
+
subject = new Name();
|
|
54219
|
+
subjectPublicKeyInfo = new SubjectPublicKeyInfo();
|
|
54220
|
+
issuerUniqueID;
|
|
54221
|
+
subjectUniqueID;
|
|
54222
|
+
extensions;
|
|
53694
54223
|
constructor(params = {}) {
|
|
53695
|
-
this.version = Version.v1;
|
|
53696
|
-
this.serialNumber = new ArrayBuffer(0);
|
|
53697
|
-
this.signature = new AlgorithmIdentifier();
|
|
53698
|
-
this.issuer = new Name();
|
|
53699
|
-
this.validity = new Validity();
|
|
53700
|
-
this.subject = new Name();
|
|
53701
|
-
this.subjectPublicKeyInfo = new SubjectPublicKeyInfo();
|
|
53702
54224
|
Object.assign(this, params);
|
|
53703
54225
|
}
|
|
53704
54226
|
};
|
|
@@ -53739,23 +54261,36 @@ __decorate([
|
|
|
53739
54261
|
})
|
|
53740
54262
|
], TBSCertificate.prototype, "issuerUniqueID", void 0);
|
|
53741
54263
|
__decorate([
|
|
53742
|
-
AsnProp({
|
|
54264
|
+
AsnProp({
|
|
54265
|
+
type: AsnPropTypes.BitString,
|
|
54266
|
+
context: 2,
|
|
54267
|
+
implicit: true,
|
|
54268
|
+
optional: true
|
|
54269
|
+
})
|
|
53743
54270
|
], TBSCertificate.prototype, "subjectUniqueID", void 0);
|
|
53744
54271
|
__decorate([
|
|
53745
|
-
AsnProp({
|
|
54272
|
+
AsnProp({
|
|
54273
|
+
type: Extensions,
|
|
54274
|
+
context: 3,
|
|
54275
|
+
optional: true
|
|
54276
|
+
})
|
|
53746
54277
|
], TBSCertificate.prototype, "extensions", void 0);
|
|
53747
54278
|
|
|
53748
54279
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/certificate.js
|
|
53749
54280
|
var Certificate = class {
|
|
54281
|
+
tbsCertificate = new TBSCertificate();
|
|
54282
|
+
tbsCertificateRaw;
|
|
54283
|
+
signatureAlgorithm = new AlgorithmIdentifier();
|
|
54284
|
+
signatureValue = new ArrayBuffer(0);
|
|
53750
54285
|
constructor(params = {}) {
|
|
53751
|
-
this.tbsCertificate = new TBSCertificate();
|
|
53752
|
-
this.signatureAlgorithm = new AlgorithmIdentifier();
|
|
53753
|
-
this.signatureValue = new ArrayBuffer(0);
|
|
53754
54286
|
Object.assign(this, params);
|
|
53755
54287
|
}
|
|
53756
54288
|
};
|
|
53757
54289
|
__decorate([
|
|
53758
|
-
AsnProp({
|
|
54290
|
+
AsnProp({
|
|
54291
|
+
type: TBSCertificate,
|
|
54292
|
+
raw: true
|
|
54293
|
+
})
|
|
53759
54294
|
], Certificate.prototype, "tbsCertificate", void 0);
|
|
53760
54295
|
__decorate([
|
|
53761
54296
|
AsnProp({ type: AlgorithmIdentifier })
|
|
@@ -53770,31 +54305,46 @@ init_inject_buffer();
|
|
|
53770
54305
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/tbs_cert_list.js
|
|
53771
54306
|
init_inject_buffer();
|
|
53772
54307
|
var RevokedCertificate = class {
|
|
54308
|
+
userCertificate = new ArrayBuffer(0);
|
|
54309
|
+
revocationDate = new Time();
|
|
54310
|
+
crlEntryExtensions;
|
|
53773
54311
|
constructor(params = {}) {
|
|
53774
|
-
this.userCertificate = new ArrayBuffer(0);
|
|
53775
|
-
this.revocationDate = new Time();
|
|
53776
54312
|
Object.assign(this, params);
|
|
53777
54313
|
}
|
|
53778
54314
|
};
|
|
53779
54315
|
__decorate([
|
|
53780
|
-
AsnProp({
|
|
54316
|
+
AsnProp({
|
|
54317
|
+
type: AsnPropTypes.Integer,
|
|
54318
|
+
converter: AsnIntegerArrayBufferConverter
|
|
54319
|
+
})
|
|
53781
54320
|
], RevokedCertificate.prototype, "userCertificate", void 0);
|
|
53782
54321
|
__decorate([
|
|
53783
54322
|
AsnProp({ type: Time })
|
|
53784
54323
|
], RevokedCertificate.prototype, "revocationDate", void 0);
|
|
53785
54324
|
__decorate([
|
|
53786
|
-
AsnProp({
|
|
54325
|
+
AsnProp({
|
|
54326
|
+
type: Extension,
|
|
54327
|
+
optional: true,
|
|
54328
|
+
repeated: "sequence"
|
|
54329
|
+
})
|
|
53787
54330
|
], RevokedCertificate.prototype, "crlEntryExtensions", void 0);
|
|
53788
54331
|
var TBSCertList = class {
|
|
54332
|
+
version;
|
|
54333
|
+
signature = new AlgorithmIdentifier();
|
|
54334
|
+
issuer = new Name();
|
|
54335
|
+
thisUpdate = new Time();
|
|
54336
|
+
nextUpdate;
|
|
54337
|
+
revokedCertificates;
|
|
54338
|
+
crlExtensions;
|
|
53789
54339
|
constructor(params = {}) {
|
|
53790
|
-
this.signature = new AlgorithmIdentifier();
|
|
53791
|
-
this.issuer = new Name();
|
|
53792
|
-
this.thisUpdate = new Time();
|
|
53793
54340
|
Object.assign(this, params);
|
|
53794
54341
|
}
|
|
53795
54342
|
};
|
|
53796
54343
|
__decorate([
|
|
53797
|
-
AsnProp({
|
|
54344
|
+
AsnProp({
|
|
54345
|
+
type: AsnPropTypes.Integer,
|
|
54346
|
+
optional: true
|
|
54347
|
+
})
|
|
53798
54348
|
], TBSCertList.prototype, "version", void 0);
|
|
53799
54349
|
__decorate([
|
|
53800
54350
|
AsnProp({ type: AlgorithmIdentifier })
|
|
@@ -53806,26 +54356,42 @@ __decorate([
|
|
|
53806
54356
|
AsnProp({ type: Time })
|
|
53807
54357
|
], TBSCertList.prototype, "thisUpdate", void 0);
|
|
53808
54358
|
__decorate([
|
|
53809
|
-
AsnProp({
|
|
54359
|
+
AsnProp({
|
|
54360
|
+
type: Time,
|
|
54361
|
+
optional: true
|
|
54362
|
+
})
|
|
53810
54363
|
], TBSCertList.prototype, "nextUpdate", void 0);
|
|
53811
54364
|
__decorate([
|
|
53812
|
-
AsnProp({
|
|
54365
|
+
AsnProp({
|
|
54366
|
+
type: RevokedCertificate,
|
|
54367
|
+
repeated: "sequence",
|
|
54368
|
+
optional: true
|
|
54369
|
+
})
|
|
53813
54370
|
], TBSCertList.prototype, "revokedCertificates", void 0);
|
|
53814
54371
|
__decorate([
|
|
53815
|
-
AsnProp({
|
|
54372
|
+
AsnProp({
|
|
54373
|
+
type: Extension,
|
|
54374
|
+
optional: true,
|
|
54375
|
+
context: 0,
|
|
54376
|
+
repeated: "sequence"
|
|
54377
|
+
})
|
|
53816
54378
|
], TBSCertList.prototype, "crlExtensions", void 0);
|
|
53817
54379
|
|
|
53818
54380
|
// ../../node_modules/@peculiar/asn1-x509/build/es2015/certificate_list.js
|
|
53819
54381
|
var CertificateList = class {
|
|
54382
|
+
tbsCertList = new TBSCertList();
|
|
54383
|
+
tbsCertListRaw;
|
|
54384
|
+
signatureAlgorithm = new AlgorithmIdentifier();
|
|
54385
|
+
signature = new ArrayBuffer(0);
|
|
53820
54386
|
constructor(params = {}) {
|
|
53821
|
-
this.tbsCertList = new TBSCertList();
|
|
53822
|
-
this.signatureAlgorithm = new AlgorithmIdentifier();
|
|
53823
|
-
this.signature = new ArrayBuffer(0);
|
|
53824
54387
|
Object.assign(this, params);
|
|
53825
54388
|
}
|
|
53826
54389
|
};
|
|
53827
54390
|
__decorate([
|
|
53828
|
-
AsnProp({
|
|
54391
|
+
AsnProp({
|
|
54392
|
+
type: TBSCertList,
|
|
54393
|
+
raw: true
|
|
54394
|
+
})
|
|
53829
54395
|
], CertificateList.prototype, "tbsCertList", void 0);
|
|
53830
54396
|
__decorate([
|
|
53831
54397
|
AsnProp({ type: AlgorithmIdentifier })
|
|
@@ -53835,7 +54401,7 @@ __decorate([
|
|
|
53835
54401
|
], CertificateList.prototype, "signature", void 0);
|
|
53836
54402
|
|
|
53837
54403
|
// ../../node_modules/@peculiar/x509/build/x509.es.js
|
|
53838
|
-
var
|
|
54404
|
+
var import_pvtsutils = __toESM(require_build());
|
|
53839
54405
|
|
|
53840
54406
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/index.js
|
|
53841
54407
|
init_inject_buffer();
|
|
@@ -53855,9 +54421,9 @@ init_inject_buffer();
|
|
|
53855
54421
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/issuer_and_serial_number.js
|
|
53856
54422
|
init_inject_buffer();
|
|
53857
54423
|
var IssuerAndSerialNumber = class {
|
|
54424
|
+
issuer = new Name();
|
|
54425
|
+
serialNumber = new ArrayBuffer(0);
|
|
53858
54426
|
constructor(params = {}) {
|
|
53859
|
-
this.issuer = new Name();
|
|
53860
|
-
this.serialNumber = new ArrayBuffer(0);
|
|
53861
54427
|
Object.assign(this, params);
|
|
53862
54428
|
}
|
|
53863
54429
|
};
|
|
@@ -53865,17 +54431,26 @@ __decorate([
|
|
|
53865
54431
|
AsnProp({ type: Name })
|
|
53866
54432
|
], IssuerAndSerialNumber.prototype, "issuer", void 0);
|
|
53867
54433
|
__decorate([
|
|
53868
|
-
AsnProp({
|
|
54434
|
+
AsnProp({
|
|
54435
|
+
type: AsnPropTypes.Integer,
|
|
54436
|
+
converter: AsnIntegerArrayBufferConverter
|
|
54437
|
+
})
|
|
53869
54438
|
], IssuerAndSerialNumber.prototype, "serialNumber", void 0);
|
|
53870
54439
|
|
|
53871
54440
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/signer_identifier.js
|
|
53872
54441
|
var SignerIdentifier = class SignerIdentifier2 {
|
|
54442
|
+
subjectKeyIdentifier;
|
|
54443
|
+
issuerAndSerialNumber;
|
|
53873
54444
|
constructor(params = {}) {
|
|
53874
54445
|
Object.assign(this, params);
|
|
53875
54446
|
}
|
|
53876
54447
|
};
|
|
53877
54448
|
__decorate([
|
|
53878
|
-
AsnProp({
|
|
54449
|
+
AsnProp({
|
|
54450
|
+
type: SubjectKeyIdentifier,
|
|
54451
|
+
context: 0,
|
|
54452
|
+
implicit: true
|
|
54453
|
+
})
|
|
53879
54454
|
], SignerIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
53880
54455
|
__decorate([
|
|
53881
54456
|
AsnProp({ type: IssuerAndSerialNumber })
|
|
@@ -53929,9 +54504,9 @@ KeyDerivationAlgorithmIdentifier = __decorate([
|
|
|
53929
54504
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/attribute.js
|
|
53930
54505
|
init_inject_buffer();
|
|
53931
54506
|
var Attribute2 = class {
|
|
54507
|
+
attrType = "";
|
|
54508
|
+
attrValues = [];
|
|
53932
54509
|
constructor(params = {}) {
|
|
53933
|
-
this.attrType = "";
|
|
53934
|
-
this.attrValues = [];
|
|
53935
54510
|
Object.assign(this, params);
|
|
53936
54511
|
}
|
|
53937
54512
|
};
|
|
@@ -53939,18 +54514,24 @@ __decorate([
|
|
|
53939
54514
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
53940
54515
|
], Attribute2.prototype, "attrType", void 0);
|
|
53941
54516
|
__decorate([
|
|
53942
|
-
AsnProp({
|
|
54517
|
+
AsnProp({
|
|
54518
|
+
type: AsnPropTypes.Any,
|
|
54519
|
+
repeated: "set"
|
|
54520
|
+
})
|
|
53943
54521
|
], Attribute2.prototype, "attrValues", void 0);
|
|
53944
54522
|
|
|
53945
54523
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/signer_info.js
|
|
53946
54524
|
var SignerInfos_1;
|
|
53947
54525
|
var SignerInfo = class {
|
|
54526
|
+
version = CMSVersion.v0;
|
|
54527
|
+
sid = new SignerIdentifier();
|
|
54528
|
+
digestAlgorithm = new DigestAlgorithmIdentifier();
|
|
54529
|
+
signedAttrs;
|
|
54530
|
+
signedAttrsRaw;
|
|
54531
|
+
signatureAlgorithm = new SignatureAlgorithmIdentifier();
|
|
54532
|
+
signature = new OctetString2();
|
|
54533
|
+
unsignedAttrs;
|
|
53948
54534
|
constructor(params = {}) {
|
|
53949
|
-
this.version = CMSVersion.v0;
|
|
53950
|
-
this.sid = new SignerIdentifier();
|
|
53951
|
-
this.digestAlgorithm = new DigestAlgorithmIdentifier();
|
|
53952
|
-
this.signatureAlgorithm = new SignatureAlgorithmIdentifier();
|
|
53953
|
-
this.signature = new OctetString2();
|
|
53954
54535
|
Object.assign(this, params);
|
|
53955
54536
|
}
|
|
53956
54537
|
};
|
|
@@ -53980,7 +54561,13 @@ __decorate([
|
|
|
53980
54561
|
AsnProp({ type: OctetString2 })
|
|
53981
54562
|
], SignerInfo.prototype, "signature", void 0);
|
|
53982
54563
|
__decorate([
|
|
53983
|
-
AsnProp({
|
|
54564
|
+
AsnProp({
|
|
54565
|
+
type: Attribute2,
|
|
54566
|
+
repeated: "set",
|
|
54567
|
+
context: 1,
|
|
54568
|
+
implicit: true,
|
|
54569
|
+
optional: true
|
|
54570
|
+
})
|
|
53984
54571
|
], SignerInfo.prototype, "unsignedAttrs", void 0);
|
|
53985
54572
|
var SignerInfos = SignerInfos_1 = class SignerInfos2 extends AsnArray {
|
|
53986
54573
|
constructor(items) {
|
|
@@ -53989,7 +54576,10 @@ var SignerInfos = SignerInfos_1 = class SignerInfos2 extends AsnArray {
|
|
|
53989
54576
|
}
|
|
53990
54577
|
};
|
|
53991
54578
|
SignerInfos = SignerInfos_1 = __decorate([
|
|
53992
|
-
AsnType({
|
|
54579
|
+
AsnType({
|
|
54580
|
+
type: AsnTypeTypes.Set,
|
|
54581
|
+
itemType: SignerInfo
|
|
54582
|
+
})
|
|
53993
54583
|
], SignerInfos);
|
|
53994
54584
|
|
|
53995
54585
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/attributes/counter_signature.js
|
|
@@ -54019,10 +54609,10 @@ init_inject_buffer();
|
|
|
54019
54609
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_clear_attrs.js
|
|
54020
54610
|
init_inject_buffer();
|
|
54021
54611
|
var ACClearAttrs = class {
|
|
54612
|
+
acIssuer = new GeneralName();
|
|
54613
|
+
acSerial = 0;
|
|
54614
|
+
attrs = [];
|
|
54022
54615
|
constructor(params = {}) {
|
|
54023
|
-
this.acIssuer = new GeneralName();
|
|
54024
|
-
this.acSerial = 0;
|
|
54025
|
-
this.attrs = [];
|
|
54026
54616
|
Object.assign(this, params);
|
|
54027
54617
|
}
|
|
54028
54618
|
};
|
|
@@ -54033,7 +54623,10 @@ __decorate([
|
|
|
54033
54623
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
54034
54624
|
], ACClearAttrs.prototype, "acSerial", void 0);
|
|
54035
54625
|
__decorate([
|
|
54036
|
-
AsnProp({
|
|
54626
|
+
AsnProp({
|
|
54627
|
+
type: Attribute,
|
|
54628
|
+
repeated: "sequence"
|
|
54629
|
+
})
|
|
54037
54630
|
], ACClearAttrs.prototype, "attrs", void 0);
|
|
54038
54631
|
|
|
54039
54632
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_controls.js
|
|
@@ -54049,27 +54642,49 @@ var AttrSpec = AttrSpec_1 = class AttrSpec2 extends AsnArray {
|
|
|
54049
54642
|
}
|
|
54050
54643
|
};
|
|
54051
54644
|
AttrSpec = AttrSpec_1 = __decorate([
|
|
54052
|
-
AsnType({
|
|
54645
|
+
AsnType({
|
|
54646
|
+
type: AsnTypeTypes.Sequence,
|
|
54647
|
+
itemType: AsnPropTypes.ObjectIdentifier
|
|
54648
|
+
})
|
|
54053
54649
|
], AttrSpec);
|
|
54054
54650
|
|
|
54055
54651
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/aa_controls.js
|
|
54056
54652
|
var AAControls = class {
|
|
54653
|
+
pathLenConstraint;
|
|
54654
|
+
permittedAttrs;
|
|
54655
|
+
excludedAttrs;
|
|
54656
|
+
permitUnSpecified = true;
|
|
54057
54657
|
constructor(params = {}) {
|
|
54058
|
-
this.permitUnSpecified = true;
|
|
54059
54658
|
Object.assign(this, params);
|
|
54060
54659
|
}
|
|
54061
54660
|
};
|
|
54062
54661
|
__decorate([
|
|
54063
|
-
AsnProp({
|
|
54662
|
+
AsnProp({
|
|
54663
|
+
type: AsnPropTypes.Integer,
|
|
54664
|
+
optional: true
|
|
54665
|
+
})
|
|
54064
54666
|
], AAControls.prototype, "pathLenConstraint", void 0);
|
|
54065
54667
|
__decorate([
|
|
54066
|
-
AsnProp({
|
|
54668
|
+
AsnProp({
|
|
54669
|
+
type: AttrSpec,
|
|
54670
|
+
implicit: true,
|
|
54671
|
+
context: 0,
|
|
54672
|
+
optional: true
|
|
54673
|
+
})
|
|
54067
54674
|
], AAControls.prototype, "permittedAttrs", void 0);
|
|
54068
54675
|
__decorate([
|
|
54069
|
-
AsnProp({
|
|
54676
|
+
AsnProp({
|
|
54677
|
+
type: AttrSpec,
|
|
54678
|
+
implicit: true,
|
|
54679
|
+
context: 1,
|
|
54680
|
+
optional: true
|
|
54681
|
+
})
|
|
54070
54682
|
], AAControls.prototype, "excludedAttrs", void 0);
|
|
54071
54683
|
__decorate([
|
|
54072
|
-
AsnProp({
|
|
54684
|
+
AsnProp({
|
|
54685
|
+
type: AsnPropTypes.Boolean,
|
|
54686
|
+
defaultValue: true
|
|
54687
|
+
})
|
|
54073
54688
|
], AAControls.prototype, "permitUnSpecified", void 0);
|
|
54074
54689
|
|
|
54075
54690
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_issuer.js
|
|
@@ -54081,10 +54696,10 @@ init_inject_buffer();
|
|
|
54081
54696
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/issuer_serial.js
|
|
54082
54697
|
init_inject_buffer();
|
|
54083
54698
|
var IssuerSerial = class {
|
|
54699
|
+
issuer = new GeneralNames();
|
|
54700
|
+
serial = new ArrayBuffer(0);
|
|
54701
|
+
issuerUID = new ArrayBuffer(0);
|
|
54084
54702
|
constructor(params = {}) {
|
|
54085
|
-
this.issuer = new GeneralNames();
|
|
54086
|
-
this.serial = new ArrayBuffer(0);
|
|
54087
|
-
this.issuerUID = new ArrayBuffer(0);
|
|
54088
54703
|
Object.assign(this, params);
|
|
54089
54704
|
}
|
|
54090
54705
|
};
|
|
@@ -54092,10 +54707,16 @@ __decorate([
|
|
|
54092
54707
|
AsnProp({ type: GeneralNames })
|
|
54093
54708
|
], IssuerSerial.prototype, "issuer", void 0);
|
|
54094
54709
|
__decorate([
|
|
54095
|
-
AsnProp({
|
|
54710
|
+
AsnProp({
|
|
54711
|
+
type: AsnPropTypes.Integer,
|
|
54712
|
+
converter: AsnIntegerArrayBufferConverter
|
|
54713
|
+
})
|
|
54096
54714
|
], IssuerSerial.prototype, "serial", void 0);
|
|
54097
54715
|
__decorate([
|
|
54098
|
-
AsnProp({
|
|
54716
|
+
AsnProp({
|
|
54717
|
+
type: AsnPropTypes.BitString,
|
|
54718
|
+
optional: true
|
|
54719
|
+
})
|
|
54099
54720
|
], IssuerSerial.prototype, "issuerUID", void 0);
|
|
54100
54721
|
|
|
54101
54722
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/object_digest_info.js
|
|
@@ -54107,10 +54728,11 @@ var DigestedObjectType;
|
|
|
54107
54728
|
DigestedObjectType2[DigestedObjectType2["otherObjectTypes"] = 2] = "otherObjectTypes";
|
|
54108
54729
|
})(DigestedObjectType || (DigestedObjectType = {}));
|
|
54109
54730
|
var ObjectDigestInfo = class {
|
|
54731
|
+
digestedObjectType = DigestedObjectType.publicKey;
|
|
54732
|
+
otherObjectTypeID;
|
|
54733
|
+
digestAlgorithm = new AlgorithmIdentifier();
|
|
54734
|
+
objectDigest = new ArrayBuffer(0);
|
|
54110
54735
|
constructor(params = {}) {
|
|
54111
|
-
this.digestedObjectType = DigestedObjectType.publicKey;
|
|
54112
|
-
this.digestAlgorithm = new AlgorithmIdentifier();
|
|
54113
|
-
this.objectDigest = new ArrayBuffer(0);
|
|
54114
54736
|
Object.assign(this, params);
|
|
54115
54737
|
}
|
|
54116
54738
|
};
|
|
@@ -54118,7 +54740,10 @@ __decorate([
|
|
|
54118
54740
|
AsnProp({ type: AsnPropTypes.Enumerated })
|
|
54119
54741
|
], ObjectDigestInfo.prototype, "digestedObjectType", void 0);
|
|
54120
54742
|
__decorate([
|
|
54121
|
-
AsnProp({
|
|
54743
|
+
AsnProp({
|
|
54744
|
+
type: AsnPropTypes.ObjectIdentifier,
|
|
54745
|
+
optional: true
|
|
54746
|
+
})
|
|
54122
54747
|
], ObjectDigestInfo.prototype, "otherObjectTypeID", void 0);
|
|
54123
54748
|
__decorate([
|
|
54124
54749
|
AsnProp({ type: AlgorithmIdentifier })
|
|
@@ -54129,31 +54754,56 @@ __decorate([
|
|
|
54129
54754
|
|
|
54130
54755
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/v2_form.js
|
|
54131
54756
|
var V2Form = class {
|
|
54757
|
+
issuerName;
|
|
54758
|
+
baseCertificateID;
|
|
54759
|
+
objectDigestInfo;
|
|
54132
54760
|
constructor(params = {}) {
|
|
54133
54761
|
Object.assign(this, params);
|
|
54134
54762
|
}
|
|
54135
54763
|
};
|
|
54136
54764
|
__decorate([
|
|
54137
|
-
AsnProp({
|
|
54765
|
+
AsnProp({
|
|
54766
|
+
type: GeneralNames,
|
|
54767
|
+
optional: true
|
|
54768
|
+
})
|
|
54138
54769
|
], V2Form.prototype, "issuerName", void 0);
|
|
54139
54770
|
__decorate([
|
|
54140
|
-
AsnProp({
|
|
54771
|
+
AsnProp({
|
|
54772
|
+
type: IssuerSerial,
|
|
54773
|
+
context: 0,
|
|
54774
|
+
implicit: true,
|
|
54775
|
+
optional: true
|
|
54776
|
+
})
|
|
54141
54777
|
], V2Form.prototype, "baseCertificateID", void 0);
|
|
54142
54778
|
__decorate([
|
|
54143
|
-
AsnProp({
|
|
54779
|
+
AsnProp({
|
|
54780
|
+
type: ObjectDigestInfo,
|
|
54781
|
+
context: 1,
|
|
54782
|
+
implicit: true,
|
|
54783
|
+
optional: true
|
|
54784
|
+
})
|
|
54144
54785
|
], V2Form.prototype, "objectDigestInfo", void 0);
|
|
54145
54786
|
|
|
54146
54787
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_issuer.js
|
|
54147
54788
|
var AttCertIssuer = class AttCertIssuer2 {
|
|
54789
|
+
v1Form;
|
|
54790
|
+
v2Form;
|
|
54148
54791
|
constructor(params = {}) {
|
|
54149
54792
|
Object.assign(this, params);
|
|
54150
54793
|
}
|
|
54151
54794
|
};
|
|
54152
54795
|
__decorate([
|
|
54153
|
-
AsnProp({
|
|
54796
|
+
AsnProp({
|
|
54797
|
+
type: GeneralName,
|
|
54798
|
+
repeated: "sequence"
|
|
54799
|
+
})
|
|
54154
54800
|
], AttCertIssuer.prototype, "v1Form", void 0);
|
|
54155
54801
|
__decorate([
|
|
54156
|
-
AsnProp({
|
|
54802
|
+
AsnProp({
|
|
54803
|
+
type: V2Form,
|
|
54804
|
+
context: 0,
|
|
54805
|
+
implicit: true
|
|
54806
|
+
})
|
|
54157
54807
|
], AttCertIssuer.prototype, "v2Form", void 0);
|
|
54158
54808
|
AttCertIssuer = __decorate([
|
|
54159
54809
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
@@ -54162,9 +54812,9 @@ AttCertIssuer = __decorate([
|
|
|
54162
54812
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attr_cert_validity_period.js
|
|
54163
54813
|
init_inject_buffer();
|
|
54164
54814
|
var AttCertValidityPeriod = class {
|
|
54815
|
+
notBeforeTime = /* @__PURE__ */ new Date();
|
|
54816
|
+
notAfterTime = /* @__PURE__ */ new Date();
|
|
54165
54817
|
constructor(params = {}) {
|
|
54166
|
-
this.notBeforeTime = /* @__PURE__ */ new Date();
|
|
54167
|
-
this.notAfterTime = /* @__PURE__ */ new Date();
|
|
54168
54818
|
Object.assign(this, params);
|
|
54169
54819
|
}
|
|
54170
54820
|
};
|
|
@@ -54184,18 +54834,36 @@ init_inject_buffer();
|
|
|
54184
54834
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/holder.js
|
|
54185
54835
|
init_inject_buffer();
|
|
54186
54836
|
var Holder = class {
|
|
54837
|
+
baseCertificateID;
|
|
54838
|
+
entityName;
|
|
54839
|
+
objectDigestInfo;
|
|
54187
54840
|
constructor(params = {}) {
|
|
54188
54841
|
Object.assign(this, params);
|
|
54189
54842
|
}
|
|
54190
54843
|
};
|
|
54191
54844
|
__decorate([
|
|
54192
|
-
AsnProp({
|
|
54845
|
+
AsnProp({
|
|
54846
|
+
type: IssuerSerial,
|
|
54847
|
+
implicit: true,
|
|
54848
|
+
context: 0,
|
|
54849
|
+
optional: true
|
|
54850
|
+
})
|
|
54193
54851
|
], Holder.prototype, "baseCertificateID", void 0);
|
|
54194
54852
|
__decorate([
|
|
54195
|
-
AsnProp({
|
|
54853
|
+
AsnProp({
|
|
54854
|
+
type: GeneralNames,
|
|
54855
|
+
implicit: true,
|
|
54856
|
+
context: 1,
|
|
54857
|
+
optional: true
|
|
54858
|
+
})
|
|
54196
54859
|
], Holder.prototype, "entityName", void 0);
|
|
54197
54860
|
__decorate([
|
|
54198
|
-
AsnProp({
|
|
54861
|
+
AsnProp({
|
|
54862
|
+
type: ObjectDigestInfo,
|
|
54863
|
+
implicit: true,
|
|
54864
|
+
context: 2,
|
|
54865
|
+
optional: true
|
|
54866
|
+
})
|
|
54199
54867
|
], Holder.prototype, "objectDigestInfo", void 0);
|
|
54200
54868
|
|
|
54201
54869
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attribute_certificate_info.js
|
|
@@ -54204,14 +54872,16 @@ var AttCertVersion;
|
|
|
54204
54872
|
AttCertVersion2[AttCertVersion2["v2"] = 1] = "v2";
|
|
54205
54873
|
})(AttCertVersion || (AttCertVersion = {}));
|
|
54206
54874
|
var AttributeCertificateInfo = class {
|
|
54875
|
+
version = AttCertVersion.v2;
|
|
54876
|
+
holder = new Holder();
|
|
54877
|
+
issuer = new AttCertIssuer();
|
|
54878
|
+
signature = new AlgorithmIdentifier();
|
|
54879
|
+
serialNumber = new ArrayBuffer(0);
|
|
54880
|
+
attrCertValidityPeriod = new AttCertValidityPeriod();
|
|
54881
|
+
attributes = [];
|
|
54882
|
+
issuerUniqueID;
|
|
54883
|
+
extensions;
|
|
54207
54884
|
constructor(params = {}) {
|
|
54208
|
-
this.version = AttCertVersion.v2;
|
|
54209
|
-
this.holder = new Holder();
|
|
54210
|
-
this.issuer = new AttCertIssuer();
|
|
54211
|
-
this.signature = new AlgorithmIdentifier();
|
|
54212
|
-
this.serialNumber = new ArrayBuffer(0);
|
|
54213
|
-
this.attrCertValidityPeriod = new AttCertValidityPeriod();
|
|
54214
|
-
this.attributes = [];
|
|
54215
54885
|
Object.assign(this, params);
|
|
54216
54886
|
}
|
|
54217
54887
|
};
|
|
@@ -54228,27 +54898,39 @@ __decorate([
|
|
|
54228
54898
|
AsnProp({ type: AlgorithmIdentifier })
|
|
54229
54899
|
], AttributeCertificateInfo.prototype, "signature", void 0);
|
|
54230
54900
|
__decorate([
|
|
54231
|
-
AsnProp({
|
|
54901
|
+
AsnProp({
|
|
54902
|
+
type: AsnPropTypes.Integer,
|
|
54903
|
+
converter: AsnIntegerArrayBufferConverter
|
|
54904
|
+
})
|
|
54232
54905
|
], AttributeCertificateInfo.prototype, "serialNumber", void 0);
|
|
54233
54906
|
__decorate([
|
|
54234
54907
|
AsnProp({ type: AttCertValidityPeriod })
|
|
54235
54908
|
], AttributeCertificateInfo.prototype, "attrCertValidityPeriod", void 0);
|
|
54236
54909
|
__decorate([
|
|
54237
|
-
AsnProp({
|
|
54910
|
+
AsnProp({
|
|
54911
|
+
type: Attribute,
|
|
54912
|
+
repeated: "sequence"
|
|
54913
|
+
})
|
|
54238
54914
|
], AttributeCertificateInfo.prototype, "attributes", void 0);
|
|
54239
54915
|
__decorate([
|
|
54240
|
-
AsnProp({
|
|
54916
|
+
AsnProp({
|
|
54917
|
+
type: AsnPropTypes.BitString,
|
|
54918
|
+
optional: true
|
|
54919
|
+
})
|
|
54241
54920
|
], AttributeCertificateInfo.prototype, "issuerUniqueID", void 0);
|
|
54242
54921
|
__decorate([
|
|
54243
|
-
AsnProp({
|
|
54922
|
+
AsnProp({
|
|
54923
|
+
type: Extensions,
|
|
54924
|
+
optional: true
|
|
54925
|
+
})
|
|
54244
54926
|
], AttributeCertificateInfo.prototype, "extensions", void 0);
|
|
54245
54927
|
|
|
54246
54928
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/attribute_certificate.js
|
|
54247
54929
|
var AttributeCertificate = class {
|
|
54930
|
+
acinfo = new AttributeCertificateInfo();
|
|
54931
|
+
signatureAlgorithm = new AlgorithmIdentifier();
|
|
54932
|
+
signatureValue = new ArrayBuffer(0);
|
|
54248
54933
|
constructor(params = {}) {
|
|
54249
|
-
this.acinfo = new AttributeCertificateInfo();
|
|
54250
|
-
this.signatureAlgorithm = new AlgorithmIdentifier();
|
|
54251
|
-
this.signatureValue = new ArrayBuffer(0);
|
|
54252
54934
|
Object.assign(this, params);
|
|
54253
54935
|
}
|
|
54254
54936
|
};
|
|
@@ -54282,24 +54964,33 @@ init_inject_buffer();
|
|
|
54282
54964
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/security_category.js
|
|
54283
54965
|
init_inject_buffer();
|
|
54284
54966
|
var SecurityCategory = class {
|
|
54967
|
+
type = "";
|
|
54968
|
+
value = new ArrayBuffer(0);
|
|
54285
54969
|
constructor(params = {}) {
|
|
54286
|
-
this.type = "";
|
|
54287
|
-
this.value = new ArrayBuffer(0);
|
|
54288
54970
|
Object.assign(this, params);
|
|
54289
54971
|
}
|
|
54290
54972
|
};
|
|
54291
54973
|
__decorate([
|
|
54292
|
-
AsnProp({
|
|
54974
|
+
AsnProp({
|
|
54975
|
+
type: AsnPropTypes.ObjectIdentifier,
|
|
54976
|
+
implicit: true,
|
|
54977
|
+
context: 0
|
|
54978
|
+
})
|
|
54293
54979
|
], SecurityCategory.prototype, "type", void 0);
|
|
54294
54980
|
__decorate([
|
|
54295
|
-
AsnProp({
|
|
54981
|
+
AsnProp({
|
|
54982
|
+
type: AsnPropTypes.Any,
|
|
54983
|
+
implicit: true,
|
|
54984
|
+
context: 1
|
|
54985
|
+
})
|
|
54296
54986
|
], SecurityCategory.prototype, "value", void 0);
|
|
54297
54987
|
|
|
54298
54988
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/clearance.js
|
|
54299
54989
|
var Clearance = class {
|
|
54990
|
+
policyId = "";
|
|
54991
|
+
classList = new ClassList(ClassListFlags.unclassified);
|
|
54992
|
+
securityCategories;
|
|
54300
54993
|
constructor(params = {}) {
|
|
54301
|
-
this.policyId = "";
|
|
54302
|
-
this.classList = new ClassList(ClassListFlags.unclassified);
|
|
54303
54994
|
Object.assign(this, params);
|
|
54304
54995
|
}
|
|
54305
54996
|
};
|
|
@@ -54307,15 +54998,24 @@ __decorate([
|
|
|
54307
54998
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
54308
54999
|
], Clearance.prototype, "policyId", void 0);
|
|
54309
55000
|
__decorate([
|
|
54310
|
-
AsnProp({
|
|
55001
|
+
AsnProp({
|
|
55002
|
+
type: ClassList,
|
|
55003
|
+
defaultValue: new ClassList(ClassListFlags.unclassified)
|
|
55004
|
+
})
|
|
54311
55005
|
], Clearance.prototype, "classList", void 0);
|
|
54312
55006
|
__decorate([
|
|
54313
|
-
AsnProp({
|
|
55007
|
+
AsnProp({
|
|
55008
|
+
type: SecurityCategory,
|
|
55009
|
+
repeated: "set"
|
|
55010
|
+
})
|
|
54314
55011
|
], Clearance.prototype, "securityCategories", void 0);
|
|
54315
55012
|
|
|
54316
55013
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/ietf_attr_syntax.js
|
|
54317
55014
|
init_inject_buffer();
|
|
54318
55015
|
var IetfAttrSyntaxValueChoices = class {
|
|
55016
|
+
cotets;
|
|
55017
|
+
oid;
|
|
55018
|
+
string;
|
|
54319
55019
|
constructor(params = {}) {
|
|
54320
55020
|
Object.assign(this, params);
|
|
54321
55021
|
}
|
|
@@ -54330,16 +55030,25 @@ __decorate([
|
|
|
54330
55030
|
AsnProp({ type: AsnPropTypes.Utf8String })
|
|
54331
55031
|
], IetfAttrSyntaxValueChoices.prototype, "string", void 0);
|
|
54332
55032
|
var IetfAttrSyntax = class {
|
|
55033
|
+
policyAuthority;
|
|
55034
|
+
values = [];
|
|
54333
55035
|
constructor(params = {}) {
|
|
54334
|
-
this.values = [];
|
|
54335
55036
|
Object.assign(this, params);
|
|
54336
55037
|
}
|
|
54337
55038
|
};
|
|
54338
55039
|
__decorate([
|
|
54339
|
-
AsnProp({
|
|
55040
|
+
AsnProp({
|
|
55041
|
+
type: GeneralNames,
|
|
55042
|
+
implicit: true,
|
|
55043
|
+
context: 0,
|
|
55044
|
+
optional: true
|
|
55045
|
+
})
|
|
54340
55046
|
], IetfAttrSyntax.prototype, "policyAuthority", void 0);
|
|
54341
55047
|
__decorate([
|
|
54342
|
-
AsnProp({
|
|
55048
|
+
AsnProp({
|
|
55049
|
+
type: IetfAttrSyntaxValueChoices,
|
|
55050
|
+
repeated: "sequence"
|
|
55051
|
+
})
|
|
54343
55052
|
], IetfAttrSyntax.prototype, "values", void 0);
|
|
54344
55053
|
|
|
54345
55054
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/object_identifiers.js
|
|
@@ -54364,8 +55073,10 @@ init_inject_buffer();
|
|
|
54364
55073
|
init_inject_buffer();
|
|
54365
55074
|
var Targets_1;
|
|
54366
55075
|
var TargetCert = class {
|
|
55076
|
+
targetCertificate = new IssuerSerial();
|
|
55077
|
+
targetName;
|
|
55078
|
+
certDigestInfo;
|
|
54367
55079
|
constructor(params = {}) {
|
|
54368
|
-
this.targetCertificate = new IssuerSerial();
|
|
54369
55080
|
Object.assign(this, params);
|
|
54370
55081
|
}
|
|
54371
55082
|
};
|
|
@@ -54373,24 +55084,45 @@ __decorate([
|
|
|
54373
55084
|
AsnProp({ type: IssuerSerial })
|
|
54374
55085
|
], TargetCert.prototype, "targetCertificate", void 0);
|
|
54375
55086
|
__decorate([
|
|
54376
|
-
AsnProp({
|
|
55087
|
+
AsnProp({
|
|
55088
|
+
type: GeneralName,
|
|
55089
|
+
optional: true
|
|
55090
|
+
})
|
|
54377
55091
|
], TargetCert.prototype, "targetName", void 0);
|
|
54378
55092
|
__decorate([
|
|
54379
|
-
AsnProp({
|
|
55093
|
+
AsnProp({
|
|
55094
|
+
type: ObjectDigestInfo,
|
|
55095
|
+
optional: true
|
|
55096
|
+
})
|
|
54380
55097
|
], TargetCert.prototype, "certDigestInfo", void 0);
|
|
54381
55098
|
var Target = class Target2 {
|
|
55099
|
+
targetName;
|
|
55100
|
+
targetGroup;
|
|
55101
|
+
targetCert;
|
|
54382
55102
|
constructor(params = {}) {
|
|
54383
55103
|
Object.assign(this, params);
|
|
54384
55104
|
}
|
|
54385
55105
|
};
|
|
54386
55106
|
__decorate([
|
|
54387
|
-
AsnProp({
|
|
55107
|
+
AsnProp({
|
|
55108
|
+
type: GeneralName,
|
|
55109
|
+
context: 0,
|
|
55110
|
+
implicit: true
|
|
55111
|
+
})
|
|
54388
55112
|
], Target.prototype, "targetName", void 0);
|
|
54389
55113
|
__decorate([
|
|
54390
|
-
AsnProp({
|
|
55114
|
+
AsnProp({
|
|
55115
|
+
type: GeneralName,
|
|
55116
|
+
context: 1,
|
|
55117
|
+
implicit: true
|
|
55118
|
+
})
|
|
54391
55119
|
], Target.prototype, "targetGroup", void 0);
|
|
54392
55120
|
__decorate([
|
|
54393
|
-
AsnProp({
|
|
55121
|
+
AsnProp({
|
|
55122
|
+
type: TargetCert,
|
|
55123
|
+
context: 2,
|
|
55124
|
+
implicit: true
|
|
55125
|
+
})
|
|
54394
55126
|
], Target.prototype, "targetCert", void 0);
|
|
54395
55127
|
Target = __decorate([
|
|
54396
55128
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
@@ -54402,7 +55134,10 @@ var Targets = Targets_1 = class Targets2 extends AsnArray {
|
|
|
54402
55134
|
}
|
|
54403
55135
|
};
|
|
54404
55136
|
Targets = Targets_1 = __decorate([
|
|
54405
|
-
AsnType({
|
|
55137
|
+
AsnType({
|
|
55138
|
+
type: AsnTypeTypes.Sequence,
|
|
55139
|
+
itemType: Target
|
|
55140
|
+
})
|
|
54406
55141
|
], Targets);
|
|
54407
55142
|
|
|
54408
55143
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/proxy_info.js
|
|
@@ -54414,29 +55149,44 @@ var ProxyInfo = ProxyInfo_1 = class ProxyInfo2 extends AsnArray {
|
|
|
54414
55149
|
}
|
|
54415
55150
|
};
|
|
54416
55151
|
ProxyInfo = ProxyInfo_1 = __decorate([
|
|
54417
|
-
AsnType({
|
|
55152
|
+
AsnType({
|
|
55153
|
+
type: AsnTypeTypes.Sequence,
|
|
55154
|
+
itemType: Targets
|
|
55155
|
+
})
|
|
54418
55156
|
], ProxyInfo);
|
|
54419
55157
|
|
|
54420
55158
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/role_syntax.js
|
|
54421
55159
|
init_inject_buffer();
|
|
54422
55160
|
var RoleSyntax = class {
|
|
55161
|
+
roleAuthority;
|
|
55162
|
+
roleName;
|
|
54423
55163
|
constructor(params = {}) {
|
|
54424
55164
|
Object.assign(this, params);
|
|
54425
55165
|
}
|
|
54426
55166
|
};
|
|
54427
55167
|
__decorate([
|
|
54428
|
-
AsnProp({
|
|
55168
|
+
AsnProp({
|
|
55169
|
+
type: GeneralNames,
|
|
55170
|
+
implicit: true,
|
|
55171
|
+
context: 0,
|
|
55172
|
+
optional: true
|
|
55173
|
+
})
|
|
54429
55174
|
], RoleSyntax.prototype, "roleAuthority", void 0);
|
|
54430
55175
|
__decorate([
|
|
54431
|
-
AsnProp({
|
|
55176
|
+
AsnProp({
|
|
55177
|
+
type: GeneralName,
|
|
55178
|
+
implicit: true,
|
|
55179
|
+
context: 1
|
|
55180
|
+
})
|
|
54432
55181
|
], RoleSyntax.prototype, "roleName", void 0);
|
|
54433
55182
|
|
|
54434
55183
|
// ../../node_modules/@peculiar/asn1-x509-attr/build/es2015/svce_auth_info.js
|
|
54435
55184
|
init_inject_buffer();
|
|
54436
55185
|
var SvceAuthInfo = class {
|
|
55186
|
+
service = new GeneralName();
|
|
55187
|
+
ident = new GeneralName();
|
|
55188
|
+
authInfo;
|
|
54437
55189
|
constructor(params = {}) {
|
|
54438
|
-
this.service = new GeneralName();
|
|
54439
|
-
this.ident = new GeneralName();
|
|
54440
55190
|
Object.assign(this, params);
|
|
54441
55191
|
}
|
|
54442
55192
|
};
|
|
@@ -54447,15 +55197,18 @@ __decorate([
|
|
|
54447
55197
|
AsnProp({ type: GeneralName })
|
|
54448
55198
|
], SvceAuthInfo.prototype, "ident", void 0);
|
|
54449
55199
|
__decorate([
|
|
54450
|
-
AsnProp({
|
|
55200
|
+
AsnProp({
|
|
55201
|
+
type: OctetString2,
|
|
55202
|
+
optional: true
|
|
55203
|
+
})
|
|
54451
55204
|
], SvceAuthInfo.prototype, "authInfo", void 0);
|
|
54452
55205
|
|
|
54453
55206
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/certificate_choices.js
|
|
54454
55207
|
var CertificateSet_1;
|
|
54455
55208
|
var OtherCertificateFormat = class {
|
|
55209
|
+
otherCertFormat = "";
|
|
55210
|
+
otherCert = new ArrayBuffer(0);
|
|
54456
55211
|
constructor(params = {}) {
|
|
54457
|
-
this.otherCertFormat = "";
|
|
54458
|
-
this.otherCert = new ArrayBuffer(0);
|
|
54459
55212
|
Object.assign(this, params);
|
|
54460
55213
|
}
|
|
54461
55214
|
};
|
|
@@ -54466,6 +55219,9 @@ __decorate([
|
|
|
54466
55219
|
AsnProp({ type: AsnPropTypes.Any })
|
|
54467
55220
|
], OtherCertificateFormat.prototype, "otherCert", void 0);
|
|
54468
55221
|
var CertificateChoices = class CertificateChoices2 {
|
|
55222
|
+
certificate;
|
|
55223
|
+
v2AttrCert;
|
|
55224
|
+
other;
|
|
54469
55225
|
constructor(params = {}) {
|
|
54470
55226
|
Object.assign(this, params);
|
|
54471
55227
|
}
|
|
@@ -54474,10 +55230,18 @@ __decorate([
|
|
|
54474
55230
|
AsnProp({ type: Certificate })
|
|
54475
55231
|
], CertificateChoices.prototype, "certificate", void 0);
|
|
54476
55232
|
__decorate([
|
|
54477
|
-
AsnProp({
|
|
55233
|
+
AsnProp({
|
|
55234
|
+
type: AttributeCertificate,
|
|
55235
|
+
context: 2,
|
|
55236
|
+
implicit: true
|
|
55237
|
+
})
|
|
54478
55238
|
], CertificateChoices.prototype, "v2AttrCert", void 0);
|
|
54479
55239
|
__decorate([
|
|
54480
|
-
AsnProp({
|
|
55240
|
+
AsnProp({
|
|
55241
|
+
type: OtherCertificateFormat,
|
|
55242
|
+
context: 3,
|
|
55243
|
+
implicit: true
|
|
55244
|
+
})
|
|
54481
55245
|
], CertificateChoices.prototype, "other", void 0);
|
|
54482
55246
|
CertificateChoices = __decorate([
|
|
54483
55247
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
@@ -54489,15 +55253,18 @@ var CertificateSet = CertificateSet_1 = class CertificateSet2 extends AsnArray {
|
|
|
54489
55253
|
}
|
|
54490
55254
|
};
|
|
54491
55255
|
CertificateSet = CertificateSet_1 = __decorate([
|
|
54492
|
-
AsnType({
|
|
55256
|
+
AsnType({
|
|
55257
|
+
type: AsnTypeTypes.Set,
|
|
55258
|
+
itemType: CertificateChoices
|
|
55259
|
+
})
|
|
54493
55260
|
], CertificateSet);
|
|
54494
55261
|
|
|
54495
55262
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/content_info.js
|
|
54496
55263
|
init_inject_buffer();
|
|
54497
55264
|
var ContentInfo = class {
|
|
55265
|
+
contentType = "";
|
|
55266
|
+
content = new ArrayBuffer(0);
|
|
54498
55267
|
constructor(params = {}) {
|
|
54499
|
-
this.contentType = "";
|
|
54500
|
-
this.content = new ArrayBuffer(0);
|
|
54501
55268
|
Object.assign(this, params);
|
|
54502
55269
|
}
|
|
54503
55270
|
};
|
|
@@ -54505,12 +55272,17 @@ __decorate([
|
|
|
54505
55272
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
54506
55273
|
], ContentInfo.prototype, "contentType", void 0);
|
|
54507
55274
|
__decorate([
|
|
54508
|
-
AsnProp({
|
|
55275
|
+
AsnProp({
|
|
55276
|
+
type: AsnPropTypes.Any,
|
|
55277
|
+
context: 0
|
|
55278
|
+
})
|
|
54509
55279
|
], ContentInfo.prototype, "content", void 0);
|
|
54510
55280
|
|
|
54511
55281
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/encapsulated_content_info.js
|
|
54512
55282
|
init_inject_buffer();
|
|
54513
55283
|
var EncapsulatedContent = class EncapsulatedContent2 {
|
|
55284
|
+
single;
|
|
55285
|
+
any;
|
|
54514
55286
|
constructor(params = {}) {
|
|
54515
55287
|
Object.assign(this, params);
|
|
54516
55288
|
}
|
|
@@ -54525,8 +55297,9 @@ EncapsulatedContent = __decorate([
|
|
|
54525
55297
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
54526
55298
|
], EncapsulatedContent);
|
|
54527
55299
|
var EncapsulatedContentInfo = class {
|
|
55300
|
+
eContentType = "";
|
|
55301
|
+
eContent;
|
|
54528
55302
|
constructor(params = {}) {
|
|
54529
|
-
this.eContentType = "";
|
|
54530
55303
|
Object.assign(this, params);
|
|
54531
55304
|
}
|
|
54532
55305
|
};
|
|
@@ -54534,18 +55307,29 @@ __decorate([
|
|
|
54534
55307
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
54535
55308
|
], EncapsulatedContentInfo.prototype, "eContentType", void 0);
|
|
54536
55309
|
__decorate([
|
|
54537
|
-
AsnProp({
|
|
55310
|
+
AsnProp({
|
|
55311
|
+
type: EncapsulatedContent,
|
|
55312
|
+
context: 0,
|
|
55313
|
+
optional: true
|
|
55314
|
+
})
|
|
54538
55315
|
], EncapsulatedContentInfo.prototype, "eContent", void 0);
|
|
54539
55316
|
|
|
54540
55317
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/encrypted_content_info.js
|
|
54541
55318
|
init_inject_buffer();
|
|
54542
55319
|
var EncryptedContent = class EncryptedContent2 {
|
|
55320
|
+
value;
|
|
55321
|
+
constructedValue;
|
|
54543
55322
|
constructor(params = {}) {
|
|
54544
55323
|
Object.assign(this, params);
|
|
54545
55324
|
}
|
|
54546
55325
|
};
|
|
54547
55326
|
__decorate([
|
|
54548
|
-
AsnProp({
|
|
55327
|
+
AsnProp({
|
|
55328
|
+
type: OctetString2,
|
|
55329
|
+
context: 0,
|
|
55330
|
+
implicit: true,
|
|
55331
|
+
optional: true
|
|
55332
|
+
})
|
|
54549
55333
|
], EncryptedContent.prototype, "value", void 0);
|
|
54550
55334
|
__decorate([
|
|
54551
55335
|
AsnProp({
|
|
@@ -54561,9 +55345,10 @@ EncryptedContent = __decorate([
|
|
|
54561
55345
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
54562
55346
|
], EncryptedContent);
|
|
54563
55347
|
var EncryptedContentInfo = class {
|
|
55348
|
+
contentType = "";
|
|
55349
|
+
contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier();
|
|
55350
|
+
encryptedContent;
|
|
54564
55351
|
constructor(params = {}) {
|
|
54565
|
-
this.contentType = "";
|
|
54566
|
-
this.contentEncryptionAlgorithm = new ContentEncryptionAlgorithmIdentifier();
|
|
54567
55352
|
Object.assign(this, params);
|
|
54568
55353
|
}
|
|
54569
55354
|
};
|
|
@@ -54574,7 +55359,10 @@ __decorate([
|
|
|
54574
55359
|
AsnProp({ type: ContentEncryptionAlgorithmIdentifier })
|
|
54575
55360
|
], EncryptedContentInfo.prototype, "contentEncryptionAlgorithm", void 0);
|
|
54576
55361
|
__decorate([
|
|
54577
|
-
AsnProp({
|
|
55362
|
+
AsnProp({
|
|
55363
|
+
type: EncryptedContent,
|
|
55364
|
+
optional: true
|
|
55365
|
+
})
|
|
54578
55366
|
], EncryptedContentInfo.prototype, "encryptedContent", void 0);
|
|
54579
55367
|
|
|
54580
55368
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/enveloped_data.js
|
|
@@ -54592,8 +55380,9 @@ init_inject_buffer();
|
|
|
54592
55380
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/other_key_attribute.js
|
|
54593
55381
|
init_inject_buffer();
|
|
54594
55382
|
var OtherKeyAttribute = class {
|
|
55383
|
+
keyAttrId = "";
|
|
55384
|
+
keyAttr;
|
|
54595
55385
|
constructor(params = {}) {
|
|
54596
|
-
this.keyAttrId = "";
|
|
54597
55386
|
Object.assign(this, params);
|
|
54598
55387
|
}
|
|
54599
55388
|
};
|
|
@@ -54601,14 +55390,19 @@ __decorate([
|
|
|
54601
55390
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
54602
55391
|
], OtherKeyAttribute.prototype, "keyAttrId", void 0);
|
|
54603
55392
|
__decorate([
|
|
54604
|
-
AsnProp({
|
|
55393
|
+
AsnProp({
|
|
55394
|
+
type: AsnPropTypes.Any,
|
|
55395
|
+
optional: true
|
|
55396
|
+
})
|
|
54605
55397
|
], OtherKeyAttribute.prototype, "keyAttr", void 0);
|
|
54606
55398
|
|
|
54607
55399
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/key_agree_recipient_info.js
|
|
54608
55400
|
var RecipientEncryptedKeys_1;
|
|
54609
55401
|
var RecipientKeyIdentifier = class {
|
|
55402
|
+
subjectKeyIdentifier = new SubjectKeyIdentifier();
|
|
55403
|
+
date;
|
|
55404
|
+
other;
|
|
54610
55405
|
constructor(params = {}) {
|
|
54611
|
-
this.subjectKeyIdentifier = new SubjectKeyIdentifier();
|
|
54612
55406
|
Object.assign(this, params);
|
|
54613
55407
|
}
|
|
54614
55408
|
};
|
|
@@ -54616,29 +55410,45 @@ __decorate([
|
|
|
54616
55410
|
AsnProp({ type: SubjectKeyIdentifier })
|
|
54617
55411
|
], RecipientKeyIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
54618
55412
|
__decorate([
|
|
54619
|
-
AsnProp({
|
|
55413
|
+
AsnProp({
|
|
55414
|
+
type: AsnPropTypes.GeneralizedTime,
|
|
55415
|
+
optional: true
|
|
55416
|
+
})
|
|
54620
55417
|
], RecipientKeyIdentifier.prototype, "date", void 0);
|
|
54621
55418
|
__decorate([
|
|
54622
|
-
AsnProp({
|
|
55419
|
+
AsnProp({
|
|
55420
|
+
type: OtherKeyAttribute,
|
|
55421
|
+
optional: true
|
|
55422
|
+
})
|
|
54623
55423
|
], RecipientKeyIdentifier.prototype, "other", void 0);
|
|
54624
55424
|
var KeyAgreeRecipientIdentifier = class KeyAgreeRecipientIdentifier2 {
|
|
55425
|
+
rKeyId;
|
|
55426
|
+
issuerAndSerialNumber;
|
|
54625
55427
|
constructor(params = {}) {
|
|
54626
55428
|
Object.assign(this, params);
|
|
54627
55429
|
}
|
|
54628
55430
|
};
|
|
54629
55431
|
__decorate([
|
|
54630
|
-
AsnProp({
|
|
55432
|
+
AsnProp({
|
|
55433
|
+
type: RecipientKeyIdentifier,
|
|
55434
|
+
context: 0,
|
|
55435
|
+
implicit: true,
|
|
55436
|
+
optional: true
|
|
55437
|
+
})
|
|
54631
55438
|
], KeyAgreeRecipientIdentifier.prototype, "rKeyId", void 0);
|
|
54632
55439
|
__decorate([
|
|
54633
|
-
AsnProp({
|
|
55440
|
+
AsnProp({
|
|
55441
|
+
type: IssuerAndSerialNumber,
|
|
55442
|
+
optional: true
|
|
55443
|
+
})
|
|
54634
55444
|
], KeyAgreeRecipientIdentifier.prototype, "issuerAndSerialNumber", void 0);
|
|
54635
55445
|
KeyAgreeRecipientIdentifier = __decorate([
|
|
54636
55446
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
54637
55447
|
], KeyAgreeRecipientIdentifier);
|
|
54638
55448
|
var RecipientEncryptedKey = class {
|
|
55449
|
+
rid = new KeyAgreeRecipientIdentifier();
|
|
55450
|
+
encryptedKey = new OctetString2();
|
|
54639
55451
|
constructor(params = {}) {
|
|
54640
|
-
this.rid = new KeyAgreeRecipientIdentifier();
|
|
54641
|
-
this.encryptedKey = new OctetString2();
|
|
54642
55452
|
Object.assign(this, params);
|
|
54643
55453
|
}
|
|
54644
55454
|
};
|
|
@@ -54655,12 +55465,15 @@ var RecipientEncryptedKeys = RecipientEncryptedKeys_1 = class RecipientEncrypted
|
|
|
54655
55465
|
}
|
|
54656
55466
|
};
|
|
54657
55467
|
RecipientEncryptedKeys = RecipientEncryptedKeys_1 = __decorate([
|
|
54658
|
-
AsnType({
|
|
55468
|
+
AsnType({
|
|
55469
|
+
type: AsnTypeTypes.Sequence,
|
|
55470
|
+
itemType: RecipientEncryptedKey
|
|
55471
|
+
})
|
|
54659
55472
|
], RecipientEncryptedKeys);
|
|
54660
55473
|
var OriginatorPublicKey = class {
|
|
55474
|
+
algorithm = new AlgorithmIdentifier();
|
|
55475
|
+
publicKey = new ArrayBuffer(0);
|
|
54661
55476
|
constructor(params = {}) {
|
|
54662
|
-
this.algorithm = new AlgorithmIdentifier();
|
|
54663
|
-
this.publicKey = new ArrayBuffer(0);
|
|
54664
55477
|
Object.assign(this, params);
|
|
54665
55478
|
}
|
|
54666
55479
|
};
|
|
@@ -54671,28 +55484,45 @@ __decorate([
|
|
|
54671
55484
|
AsnProp({ type: AsnPropTypes.BitString })
|
|
54672
55485
|
], OriginatorPublicKey.prototype, "publicKey", void 0);
|
|
54673
55486
|
var OriginatorIdentifierOrKey = class OriginatorIdentifierOrKey2 {
|
|
55487
|
+
subjectKeyIdentifier;
|
|
55488
|
+
originatorKey;
|
|
55489
|
+
issuerAndSerialNumber;
|
|
54674
55490
|
constructor(params = {}) {
|
|
54675
55491
|
Object.assign(this, params);
|
|
54676
55492
|
}
|
|
54677
55493
|
};
|
|
54678
55494
|
__decorate([
|
|
54679
|
-
AsnProp({
|
|
55495
|
+
AsnProp({
|
|
55496
|
+
type: SubjectKeyIdentifier,
|
|
55497
|
+
context: 0,
|
|
55498
|
+
implicit: true,
|
|
55499
|
+
optional: true
|
|
55500
|
+
})
|
|
54680
55501
|
], OriginatorIdentifierOrKey.prototype, "subjectKeyIdentifier", void 0);
|
|
54681
55502
|
__decorate([
|
|
54682
|
-
AsnProp({
|
|
55503
|
+
AsnProp({
|
|
55504
|
+
type: OriginatorPublicKey,
|
|
55505
|
+
context: 1,
|
|
55506
|
+
implicit: true,
|
|
55507
|
+
optional: true
|
|
55508
|
+
})
|
|
54683
55509
|
], OriginatorIdentifierOrKey.prototype, "originatorKey", void 0);
|
|
54684
55510
|
__decorate([
|
|
54685
|
-
AsnProp({
|
|
55511
|
+
AsnProp({
|
|
55512
|
+
type: IssuerAndSerialNumber,
|
|
55513
|
+
optional: true
|
|
55514
|
+
})
|
|
54686
55515
|
], OriginatorIdentifierOrKey.prototype, "issuerAndSerialNumber", void 0);
|
|
54687
55516
|
OriginatorIdentifierOrKey = __decorate([
|
|
54688
55517
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
54689
55518
|
], OriginatorIdentifierOrKey);
|
|
54690
55519
|
var KeyAgreeRecipientInfo = class {
|
|
55520
|
+
version = CMSVersion.v3;
|
|
55521
|
+
originator = new OriginatorIdentifierOrKey();
|
|
55522
|
+
ukm;
|
|
55523
|
+
keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
|
|
55524
|
+
recipientEncryptedKeys = new RecipientEncryptedKeys();
|
|
54691
55525
|
constructor(params = {}) {
|
|
54692
|
-
this.version = CMSVersion.v3;
|
|
54693
|
-
this.originator = new OriginatorIdentifierOrKey();
|
|
54694
|
-
this.keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
|
|
54695
|
-
this.recipientEncryptedKeys = new RecipientEncryptedKeys();
|
|
54696
55526
|
Object.assign(this, params);
|
|
54697
55527
|
}
|
|
54698
55528
|
};
|
|
@@ -54700,10 +55530,17 @@ __decorate([
|
|
|
54700
55530
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
54701
55531
|
], KeyAgreeRecipientInfo.prototype, "version", void 0);
|
|
54702
55532
|
__decorate([
|
|
54703
|
-
AsnProp({
|
|
55533
|
+
AsnProp({
|
|
55534
|
+
type: OriginatorIdentifierOrKey,
|
|
55535
|
+
context: 0
|
|
55536
|
+
})
|
|
54704
55537
|
], KeyAgreeRecipientInfo.prototype, "originator", void 0);
|
|
54705
55538
|
__decorate([
|
|
54706
|
-
AsnProp({
|
|
55539
|
+
AsnProp({
|
|
55540
|
+
type: OctetString2,
|
|
55541
|
+
context: 1,
|
|
55542
|
+
optional: true
|
|
55543
|
+
})
|
|
54707
55544
|
], KeyAgreeRecipientInfo.prototype, "ukm", void 0);
|
|
54708
55545
|
__decorate([
|
|
54709
55546
|
AsnProp({ type: KeyEncryptionAlgorithmIdentifier })
|
|
@@ -54715,12 +55552,18 @@ __decorate([
|
|
|
54715
55552
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/key_trans_recipient_info.js
|
|
54716
55553
|
init_inject_buffer();
|
|
54717
55554
|
var RecipientIdentifier = class RecipientIdentifier2 {
|
|
55555
|
+
subjectKeyIdentifier;
|
|
55556
|
+
issuerAndSerialNumber;
|
|
54718
55557
|
constructor(params = {}) {
|
|
54719
55558
|
Object.assign(this, params);
|
|
54720
55559
|
}
|
|
54721
55560
|
};
|
|
54722
55561
|
__decorate([
|
|
54723
|
-
AsnProp({
|
|
55562
|
+
AsnProp({
|
|
55563
|
+
type: SubjectKeyIdentifier,
|
|
55564
|
+
context: 0,
|
|
55565
|
+
implicit: true
|
|
55566
|
+
})
|
|
54724
55567
|
], RecipientIdentifier.prototype, "subjectKeyIdentifier", void 0);
|
|
54725
55568
|
__decorate([
|
|
54726
55569
|
AsnProp({ type: IssuerAndSerialNumber })
|
|
@@ -54729,11 +55572,11 @@ RecipientIdentifier = __decorate([
|
|
|
54729
55572
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
54730
55573
|
], RecipientIdentifier);
|
|
54731
55574
|
var KeyTransRecipientInfo = class {
|
|
55575
|
+
version = CMSVersion.v0;
|
|
55576
|
+
rid = new RecipientIdentifier();
|
|
55577
|
+
keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
|
|
55578
|
+
encryptedKey = new OctetString2();
|
|
54732
55579
|
constructor(params = {}) {
|
|
54733
|
-
this.version = CMSVersion.v0;
|
|
54734
|
-
this.rid = new RecipientIdentifier();
|
|
54735
|
-
this.keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
|
|
54736
|
-
this.encryptedKey = new OctetString2();
|
|
54737
55580
|
Object.assign(this, params);
|
|
54738
55581
|
}
|
|
54739
55582
|
};
|
|
@@ -54753,8 +55596,10 @@ __decorate([
|
|
|
54753
55596
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/kek_recipient_info.js
|
|
54754
55597
|
init_inject_buffer();
|
|
54755
55598
|
var KEKIdentifier = class {
|
|
55599
|
+
keyIdentifier = new OctetString2();
|
|
55600
|
+
date;
|
|
55601
|
+
other;
|
|
54756
55602
|
constructor(params = {}) {
|
|
54757
|
-
this.keyIdentifier = new OctetString2();
|
|
54758
55603
|
Object.assign(this, params);
|
|
54759
55604
|
}
|
|
54760
55605
|
};
|
|
@@ -54762,17 +55607,23 @@ __decorate([
|
|
|
54762
55607
|
AsnProp({ type: OctetString2 })
|
|
54763
55608
|
], KEKIdentifier.prototype, "keyIdentifier", void 0);
|
|
54764
55609
|
__decorate([
|
|
54765
|
-
AsnProp({
|
|
55610
|
+
AsnProp({
|
|
55611
|
+
type: AsnPropTypes.GeneralizedTime,
|
|
55612
|
+
optional: true
|
|
55613
|
+
})
|
|
54766
55614
|
], KEKIdentifier.prototype, "date", void 0);
|
|
54767
55615
|
__decorate([
|
|
54768
|
-
AsnProp({
|
|
55616
|
+
AsnProp({
|
|
55617
|
+
type: OtherKeyAttribute,
|
|
55618
|
+
optional: true
|
|
55619
|
+
})
|
|
54769
55620
|
], KEKIdentifier.prototype, "other", void 0);
|
|
54770
55621
|
var KEKRecipientInfo = class {
|
|
55622
|
+
version = CMSVersion.v4;
|
|
55623
|
+
kekid = new KEKIdentifier();
|
|
55624
|
+
keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
|
|
55625
|
+
encryptedKey = new OctetString2();
|
|
54771
55626
|
constructor(params = {}) {
|
|
54772
|
-
this.version = CMSVersion.v4;
|
|
54773
|
-
this.kekid = new KEKIdentifier();
|
|
54774
|
-
this.keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
|
|
54775
|
-
this.encryptedKey = new OctetString2();
|
|
54776
55627
|
Object.assign(this, params);
|
|
54777
55628
|
}
|
|
54778
55629
|
};
|
|
@@ -54792,10 +55643,11 @@ __decorate([
|
|
|
54792
55643
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/password_recipient_info.js
|
|
54793
55644
|
init_inject_buffer();
|
|
54794
55645
|
var PasswordRecipientInfo = class {
|
|
55646
|
+
version = CMSVersion.v0;
|
|
55647
|
+
keyDerivationAlgorithm;
|
|
55648
|
+
keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
|
|
55649
|
+
encryptedKey = new OctetString2();
|
|
54795
55650
|
constructor(params = {}) {
|
|
54796
|
-
this.version = CMSVersion.v0;
|
|
54797
|
-
this.keyEncryptionAlgorithm = new KeyEncryptionAlgorithmIdentifier();
|
|
54798
|
-
this.encryptedKey = new OctetString2();
|
|
54799
55651
|
Object.assign(this, params);
|
|
54800
55652
|
}
|
|
54801
55653
|
};
|
|
@@ -54803,7 +55655,11 @@ __decorate([
|
|
|
54803
55655
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
54804
55656
|
], PasswordRecipientInfo.prototype, "version", void 0);
|
|
54805
55657
|
__decorate([
|
|
54806
|
-
AsnProp({
|
|
55658
|
+
AsnProp({
|
|
55659
|
+
type: KeyDerivationAlgorithmIdentifier,
|
|
55660
|
+
context: 0,
|
|
55661
|
+
optional: true
|
|
55662
|
+
})
|
|
54807
55663
|
], PasswordRecipientInfo.prototype, "keyDerivationAlgorithm", void 0);
|
|
54808
55664
|
__decorate([
|
|
54809
55665
|
AsnProp({ type: KeyEncryptionAlgorithmIdentifier })
|
|
@@ -54814,9 +55670,9 @@ __decorate([
|
|
|
54814
55670
|
|
|
54815
55671
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/recipient_info.js
|
|
54816
55672
|
var OtherRecipientInfo = class {
|
|
55673
|
+
oriType = "";
|
|
55674
|
+
oriValue = new ArrayBuffer(0);
|
|
54817
55675
|
constructor(params = {}) {
|
|
54818
|
-
this.oriType = "";
|
|
54819
|
-
this.oriValue = new ArrayBuffer(0);
|
|
54820
55676
|
Object.assign(this, params);
|
|
54821
55677
|
}
|
|
54822
55678
|
};
|
|
@@ -54827,24 +55683,52 @@ __decorate([
|
|
|
54827
55683
|
AsnProp({ type: AsnPropTypes.Any })
|
|
54828
55684
|
], OtherRecipientInfo.prototype, "oriValue", void 0);
|
|
54829
55685
|
var RecipientInfo = class RecipientInfo2 {
|
|
55686
|
+
ktri;
|
|
55687
|
+
kari;
|
|
55688
|
+
kekri;
|
|
55689
|
+
pwri;
|
|
55690
|
+
ori;
|
|
54830
55691
|
constructor(params = {}) {
|
|
54831
55692
|
Object.assign(this, params);
|
|
54832
55693
|
}
|
|
54833
55694
|
};
|
|
54834
55695
|
__decorate([
|
|
54835
|
-
AsnProp({
|
|
55696
|
+
AsnProp({
|
|
55697
|
+
type: KeyTransRecipientInfo,
|
|
55698
|
+
optional: true
|
|
55699
|
+
})
|
|
54836
55700
|
], RecipientInfo.prototype, "ktri", void 0);
|
|
54837
55701
|
__decorate([
|
|
54838
|
-
AsnProp({
|
|
55702
|
+
AsnProp({
|
|
55703
|
+
type: KeyAgreeRecipientInfo,
|
|
55704
|
+
context: 1,
|
|
55705
|
+
implicit: true,
|
|
55706
|
+
optional: true
|
|
55707
|
+
})
|
|
54839
55708
|
], RecipientInfo.prototype, "kari", void 0);
|
|
54840
55709
|
__decorate([
|
|
54841
|
-
AsnProp({
|
|
55710
|
+
AsnProp({
|
|
55711
|
+
type: KEKRecipientInfo,
|
|
55712
|
+
context: 2,
|
|
55713
|
+
implicit: true,
|
|
55714
|
+
optional: true
|
|
55715
|
+
})
|
|
54842
55716
|
], RecipientInfo.prototype, "kekri", void 0);
|
|
54843
55717
|
__decorate([
|
|
54844
|
-
AsnProp({
|
|
55718
|
+
AsnProp({
|
|
55719
|
+
type: PasswordRecipientInfo,
|
|
55720
|
+
context: 3,
|
|
55721
|
+
implicit: true,
|
|
55722
|
+
optional: true
|
|
55723
|
+
})
|
|
54845
55724
|
], RecipientInfo.prototype, "pwri", void 0);
|
|
54846
55725
|
__decorate([
|
|
54847
|
-
AsnProp({
|
|
55726
|
+
AsnProp({
|
|
55727
|
+
type: OtherRecipientInfo,
|
|
55728
|
+
context: 4,
|
|
55729
|
+
implicit: true,
|
|
55730
|
+
optional: true
|
|
55731
|
+
})
|
|
54848
55732
|
], RecipientInfo.prototype, "ori", void 0);
|
|
54849
55733
|
RecipientInfo = __decorate([
|
|
54850
55734
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
@@ -54859,7 +55743,10 @@ var RecipientInfos = RecipientInfos_1 = class RecipientInfos2 extends AsnArray {
|
|
|
54859
55743
|
}
|
|
54860
55744
|
};
|
|
54861
55745
|
RecipientInfos = RecipientInfos_1 = __decorate([
|
|
54862
|
-
AsnType({
|
|
55746
|
+
AsnType({
|
|
55747
|
+
type: AsnTypeTypes.Set,
|
|
55748
|
+
itemType: RecipientInfo
|
|
55749
|
+
})
|
|
54863
55750
|
], RecipientInfos);
|
|
54864
55751
|
|
|
54865
55752
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/originator_info.js
|
|
@@ -54872,9 +55759,9 @@ var id_ri = `${id_pkix}.16`;
|
|
|
54872
55759
|
var id_ri_ocsp_response = `${id_ri}.2`;
|
|
54873
55760
|
var id_ri_scvp = `${id_ri}.4`;
|
|
54874
55761
|
var OtherRevocationInfoFormat = class {
|
|
55762
|
+
otherRevInfoFormat = "";
|
|
55763
|
+
otherRevInfo = new ArrayBuffer(0);
|
|
54875
55764
|
constructor(params = {}) {
|
|
54876
|
-
this.otherRevInfoFormat = "";
|
|
54877
|
-
this.otherRevInfo = new ArrayBuffer(0);
|
|
54878
55765
|
Object.assign(this, params);
|
|
54879
55766
|
}
|
|
54880
55767
|
};
|
|
@@ -54885,13 +55772,17 @@ __decorate([
|
|
|
54885
55772
|
AsnProp({ type: AsnPropTypes.Any })
|
|
54886
55773
|
], OtherRevocationInfoFormat.prototype, "otherRevInfo", void 0);
|
|
54887
55774
|
var RevocationInfoChoice = class RevocationInfoChoice2 {
|
|
55775
|
+
other = new OtherRevocationInfoFormat();
|
|
54888
55776
|
constructor(params = {}) {
|
|
54889
|
-
this.other = new OtherRevocationInfoFormat();
|
|
54890
55777
|
Object.assign(this, params);
|
|
54891
55778
|
}
|
|
54892
55779
|
};
|
|
54893
55780
|
__decorate([
|
|
54894
|
-
AsnProp({
|
|
55781
|
+
AsnProp({
|
|
55782
|
+
type: OtherRevocationInfoFormat,
|
|
55783
|
+
context: 1,
|
|
55784
|
+
implicit: true
|
|
55785
|
+
})
|
|
54895
55786
|
], RevocationInfoChoice.prototype, "other", void 0);
|
|
54896
55787
|
RevocationInfoChoice = __decorate([
|
|
54897
55788
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
@@ -54903,20 +55794,35 @@ var RevocationInfoChoices = RevocationInfoChoices_1 = class RevocationInfoChoice
|
|
|
54903
55794
|
}
|
|
54904
55795
|
};
|
|
54905
55796
|
RevocationInfoChoices = RevocationInfoChoices_1 = __decorate([
|
|
54906
|
-
AsnType({
|
|
55797
|
+
AsnType({
|
|
55798
|
+
type: AsnTypeTypes.Set,
|
|
55799
|
+
itemType: RevocationInfoChoice
|
|
55800
|
+
})
|
|
54907
55801
|
], RevocationInfoChoices);
|
|
54908
55802
|
|
|
54909
55803
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/originator_info.js
|
|
54910
55804
|
var OriginatorInfo = class {
|
|
55805
|
+
certs;
|
|
55806
|
+
crls;
|
|
54911
55807
|
constructor(params = {}) {
|
|
54912
55808
|
Object.assign(this, params);
|
|
54913
55809
|
}
|
|
54914
55810
|
};
|
|
54915
55811
|
__decorate([
|
|
54916
|
-
AsnProp({
|
|
55812
|
+
AsnProp({
|
|
55813
|
+
type: CertificateSet,
|
|
55814
|
+
context: 0,
|
|
55815
|
+
implicit: true,
|
|
55816
|
+
optional: true
|
|
55817
|
+
})
|
|
54917
55818
|
], OriginatorInfo.prototype, "certs", void 0);
|
|
54918
55819
|
__decorate([
|
|
54919
|
-
AsnProp({
|
|
55820
|
+
AsnProp({
|
|
55821
|
+
type: RevocationInfoChoices,
|
|
55822
|
+
context: 1,
|
|
55823
|
+
implicit: true,
|
|
55824
|
+
optional: true
|
|
55825
|
+
})
|
|
54920
55826
|
], OriginatorInfo.prototype, "crls", void 0);
|
|
54921
55827
|
|
|
54922
55828
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/enveloped_data.js
|
|
@@ -54928,13 +55834,18 @@ var UnprotectedAttributes = UnprotectedAttributes_1 = class UnprotectedAttribute
|
|
|
54928
55834
|
}
|
|
54929
55835
|
};
|
|
54930
55836
|
UnprotectedAttributes = UnprotectedAttributes_1 = __decorate([
|
|
54931
|
-
AsnType({
|
|
55837
|
+
AsnType({
|
|
55838
|
+
type: AsnTypeTypes.Set,
|
|
55839
|
+
itemType: Attribute2
|
|
55840
|
+
})
|
|
54932
55841
|
], UnprotectedAttributes);
|
|
54933
55842
|
var EnvelopedData = class {
|
|
55843
|
+
version = CMSVersion.v0;
|
|
55844
|
+
originatorInfo;
|
|
55845
|
+
recipientInfos = new RecipientInfos();
|
|
55846
|
+
encryptedContentInfo = new EncryptedContentInfo();
|
|
55847
|
+
unprotectedAttrs;
|
|
54934
55848
|
constructor(params = {}) {
|
|
54935
|
-
this.version = CMSVersion.v0;
|
|
54936
|
-
this.recipientInfos = new RecipientInfos();
|
|
54937
|
-
this.encryptedContentInfo = new EncryptedContentInfo();
|
|
54938
55849
|
Object.assign(this, params);
|
|
54939
55850
|
}
|
|
54940
55851
|
};
|
|
@@ -54942,7 +55853,12 @@ __decorate([
|
|
|
54942
55853
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
54943
55854
|
], EnvelopedData.prototype, "version", void 0);
|
|
54944
55855
|
__decorate([
|
|
54945
|
-
AsnProp({
|
|
55856
|
+
AsnProp({
|
|
55857
|
+
type: OriginatorInfo,
|
|
55858
|
+
context: 0,
|
|
55859
|
+
implicit: true,
|
|
55860
|
+
optional: true
|
|
55861
|
+
})
|
|
54946
55862
|
], EnvelopedData.prototype, "originatorInfo", void 0);
|
|
54947
55863
|
__decorate([
|
|
54948
55864
|
AsnProp({ type: RecipientInfos })
|
|
@@ -54951,7 +55867,12 @@ __decorate([
|
|
|
54951
55867
|
AsnProp({ type: EncryptedContentInfo })
|
|
54952
55868
|
], EnvelopedData.prototype, "encryptedContentInfo", void 0);
|
|
54953
55869
|
__decorate([
|
|
54954
|
-
AsnProp({
|
|
55870
|
+
AsnProp({
|
|
55871
|
+
type: UnprotectedAttributes,
|
|
55872
|
+
context: 1,
|
|
55873
|
+
implicit: true,
|
|
55874
|
+
optional: true
|
|
55875
|
+
})
|
|
54955
55876
|
], EnvelopedData.prototype, "unprotectedAttrs", void 0);
|
|
54956
55877
|
|
|
54957
55878
|
// ../../node_modules/@peculiar/asn1-cms/build/es2015/object_identifiers.js
|
|
@@ -54969,14 +55890,19 @@ var DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = class DigestAlgo
|
|
|
54969
55890
|
}
|
|
54970
55891
|
};
|
|
54971
55892
|
DigestAlgorithmIdentifiers = DigestAlgorithmIdentifiers_1 = __decorate([
|
|
54972
|
-
AsnType({
|
|
55893
|
+
AsnType({
|
|
55894
|
+
type: AsnTypeTypes.Set,
|
|
55895
|
+
itemType: DigestAlgorithmIdentifier
|
|
55896
|
+
})
|
|
54973
55897
|
], DigestAlgorithmIdentifiers);
|
|
54974
55898
|
var SignedData = class {
|
|
55899
|
+
version = CMSVersion.v0;
|
|
55900
|
+
digestAlgorithms = new DigestAlgorithmIdentifiers();
|
|
55901
|
+
encapContentInfo = new EncapsulatedContentInfo();
|
|
55902
|
+
certificates;
|
|
55903
|
+
crls;
|
|
55904
|
+
signerInfos = new SignerInfos();
|
|
54975
55905
|
constructor(params = {}) {
|
|
54976
|
-
this.version = CMSVersion.v0;
|
|
54977
|
-
this.digestAlgorithms = new DigestAlgorithmIdentifiers();
|
|
54978
|
-
this.encapContentInfo = new EncapsulatedContentInfo();
|
|
54979
|
-
this.signerInfos = new SignerInfos();
|
|
54980
55906
|
Object.assign(this, params);
|
|
54981
55907
|
}
|
|
54982
55908
|
};
|
|
@@ -54990,10 +55916,20 @@ __decorate([
|
|
|
54990
55916
|
AsnProp({ type: EncapsulatedContentInfo })
|
|
54991
55917
|
], SignedData.prototype, "encapContentInfo", void 0);
|
|
54992
55918
|
__decorate([
|
|
54993
|
-
AsnProp({
|
|
55919
|
+
AsnProp({
|
|
55920
|
+
type: CertificateSet,
|
|
55921
|
+
context: 0,
|
|
55922
|
+
implicit: true,
|
|
55923
|
+
optional: true
|
|
55924
|
+
})
|
|
54994
55925
|
], SignedData.prototype, "certificates", void 0);
|
|
54995
55926
|
__decorate([
|
|
54996
|
-
AsnProp({
|
|
55927
|
+
AsnProp({
|
|
55928
|
+
type: RevocationInfoChoices,
|
|
55929
|
+
context: 1,
|
|
55930
|
+
implicit: true,
|
|
55931
|
+
optional: true
|
|
55932
|
+
})
|
|
54997
55933
|
], SignedData.prototype, "crls", void 0);
|
|
54998
55934
|
__decorate([
|
|
54999
55935
|
AsnProp({ type: SignerInfos })
|
|
@@ -55193,7 +56129,10 @@ var id_mgf1 = `${id_pkcs_1}.8`;
|
|
|
55193
56129
|
// ../../node_modules/@peculiar/asn1-rsa/build/es2015/algorithms.js
|
|
55194
56130
|
init_inject_buffer();
|
|
55195
56131
|
function create2(algorithm) {
|
|
55196
|
-
return new AlgorithmIdentifier({
|
|
56132
|
+
return new AlgorithmIdentifier({
|
|
56133
|
+
algorithm,
|
|
56134
|
+
parameters: null
|
|
56135
|
+
});
|
|
55197
56136
|
}
|
|
55198
56137
|
var md2 = create2(id_md2);
|
|
55199
56138
|
var md4 = create2(id_md5);
|
|
@@ -55210,28 +56149,7 @@ var mgf1SHA1 = new AlgorithmIdentifier({
|
|
|
55210
56149
|
});
|
|
55211
56150
|
var pSpecifiedEmpty = new AlgorithmIdentifier({
|
|
55212
56151
|
algorithm: id_pSpecified,
|
|
55213
|
-
parameters: AsnConvert.serialize(AsnOctetStringConverter.toASN(new Uint8Array([
|
|
55214
|
-
218,
|
|
55215
|
-
57,
|
|
55216
|
-
163,
|
|
55217
|
-
238,
|
|
55218
|
-
94,
|
|
55219
|
-
107,
|
|
55220
|
-
75,
|
|
55221
|
-
13,
|
|
55222
|
-
50,
|
|
55223
|
-
85,
|
|
55224
|
-
191,
|
|
55225
|
-
239,
|
|
55226
|
-
149,
|
|
55227
|
-
96,
|
|
55228
|
-
24,
|
|
55229
|
-
144,
|
|
55230
|
-
175,
|
|
55231
|
-
216,
|
|
55232
|
-
7,
|
|
55233
|
-
9
|
|
55234
|
-
]).buffer))
|
|
56152
|
+
parameters: AsnConvert.serialize(AsnOctetStringConverter.toASN(new Uint8Array([218, 57, 163, 238, 94, 107, 75, 13, 50, 85, 191, 239, 149, 96, 24, 144, 175, 216, 7, 9]).buffer))
|
|
55235
56153
|
});
|
|
55236
56154
|
var rsaEncryption = create2(id_rsaEncryption);
|
|
55237
56155
|
var md2WithRSAEncryption = create2(id_md2WithRSAEncryption);
|
|
@@ -55246,24 +56164,36 @@ var sha512_256WithRSAEncryption = create2(id_sha512_256WithRSAEncryption);
|
|
|
55246
56164
|
|
|
55247
56165
|
// ../../node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsaes_oaep.js
|
|
55248
56166
|
var RsaEsOaepParams = class {
|
|
56167
|
+
hashAlgorithm = new AlgorithmIdentifier(sha1);
|
|
56168
|
+
maskGenAlgorithm = new AlgorithmIdentifier({
|
|
56169
|
+
algorithm: id_mgf1,
|
|
56170
|
+
parameters: AsnConvert.serialize(sha1)
|
|
56171
|
+
});
|
|
56172
|
+
pSourceAlgorithm = new AlgorithmIdentifier(pSpecifiedEmpty);
|
|
55249
56173
|
constructor(params = {}) {
|
|
55250
|
-
this.hashAlgorithm = new AlgorithmIdentifier(sha1);
|
|
55251
|
-
this.maskGenAlgorithm = new AlgorithmIdentifier({
|
|
55252
|
-
algorithm: id_mgf1,
|
|
55253
|
-
parameters: AsnConvert.serialize(sha1)
|
|
55254
|
-
});
|
|
55255
|
-
this.pSourceAlgorithm = new AlgorithmIdentifier(pSpecifiedEmpty);
|
|
55256
56174
|
Object.assign(this, params);
|
|
55257
56175
|
}
|
|
55258
56176
|
};
|
|
55259
56177
|
__decorate([
|
|
55260
|
-
AsnProp({
|
|
56178
|
+
AsnProp({
|
|
56179
|
+
type: AlgorithmIdentifier,
|
|
56180
|
+
context: 0,
|
|
56181
|
+
defaultValue: sha1
|
|
56182
|
+
})
|
|
55261
56183
|
], RsaEsOaepParams.prototype, "hashAlgorithm", void 0);
|
|
55262
56184
|
__decorate([
|
|
55263
|
-
AsnProp({
|
|
56185
|
+
AsnProp({
|
|
56186
|
+
type: AlgorithmIdentifier,
|
|
56187
|
+
context: 1,
|
|
56188
|
+
defaultValue: mgf1SHA1
|
|
56189
|
+
})
|
|
55264
56190
|
], RsaEsOaepParams.prototype, "maskGenAlgorithm", void 0);
|
|
55265
56191
|
__decorate([
|
|
55266
|
-
AsnProp({
|
|
56192
|
+
AsnProp({
|
|
56193
|
+
type: AlgorithmIdentifier,
|
|
56194
|
+
context: 2,
|
|
56195
|
+
defaultValue: pSpecifiedEmpty
|
|
56196
|
+
})
|
|
55267
56197
|
], RsaEsOaepParams.prototype, "pSourceAlgorithm", void 0);
|
|
55268
56198
|
var RSAES_OAEP = new AlgorithmIdentifier({
|
|
55269
56199
|
algorithm: id_RSAES_OAEP,
|
|
@@ -55273,28 +56203,44 @@ var RSAES_OAEP = new AlgorithmIdentifier({
|
|
|
55273
56203
|
// ../../node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pss.js
|
|
55274
56204
|
init_inject_buffer();
|
|
55275
56205
|
var RsaSaPssParams = class {
|
|
56206
|
+
hashAlgorithm = new AlgorithmIdentifier(sha1);
|
|
56207
|
+
maskGenAlgorithm = new AlgorithmIdentifier({
|
|
56208
|
+
algorithm: id_mgf1,
|
|
56209
|
+
parameters: AsnConvert.serialize(sha1)
|
|
56210
|
+
});
|
|
56211
|
+
saltLength = 20;
|
|
56212
|
+
trailerField = 1;
|
|
55276
56213
|
constructor(params = {}) {
|
|
55277
|
-
this.hashAlgorithm = new AlgorithmIdentifier(sha1);
|
|
55278
|
-
this.maskGenAlgorithm = new AlgorithmIdentifier({
|
|
55279
|
-
algorithm: id_mgf1,
|
|
55280
|
-
parameters: AsnConvert.serialize(sha1)
|
|
55281
|
-
});
|
|
55282
|
-
this.saltLength = 20;
|
|
55283
|
-
this.trailerField = 1;
|
|
55284
56214
|
Object.assign(this, params);
|
|
55285
56215
|
}
|
|
55286
56216
|
};
|
|
55287
56217
|
__decorate([
|
|
55288
|
-
AsnProp({
|
|
56218
|
+
AsnProp({
|
|
56219
|
+
type: AlgorithmIdentifier,
|
|
56220
|
+
context: 0,
|
|
56221
|
+
defaultValue: sha1
|
|
56222
|
+
})
|
|
55289
56223
|
], RsaSaPssParams.prototype, "hashAlgorithm", void 0);
|
|
55290
56224
|
__decorate([
|
|
55291
|
-
AsnProp({
|
|
56225
|
+
AsnProp({
|
|
56226
|
+
type: AlgorithmIdentifier,
|
|
56227
|
+
context: 1,
|
|
56228
|
+
defaultValue: mgf1SHA1
|
|
56229
|
+
})
|
|
55292
56230
|
], RsaSaPssParams.prototype, "maskGenAlgorithm", void 0);
|
|
55293
56231
|
__decorate([
|
|
55294
|
-
AsnProp({
|
|
56232
|
+
AsnProp({
|
|
56233
|
+
type: AsnPropTypes.Integer,
|
|
56234
|
+
context: 2,
|
|
56235
|
+
defaultValue: 20
|
|
56236
|
+
})
|
|
55295
56237
|
], RsaSaPssParams.prototype, "saltLength", void 0);
|
|
55296
56238
|
__decorate([
|
|
55297
|
-
AsnProp({
|
|
56239
|
+
AsnProp({
|
|
56240
|
+
type: AsnPropTypes.Integer,
|
|
56241
|
+
context: 3,
|
|
56242
|
+
defaultValue: 1
|
|
56243
|
+
})
|
|
55298
56244
|
], RsaSaPssParams.prototype, "trailerField", void 0);
|
|
55299
56245
|
var RSASSA_PSS = new AlgorithmIdentifier({
|
|
55300
56246
|
algorithm: id_RSASSA_PSS,
|
|
@@ -55304,9 +56250,9 @@ var RSASSA_PSS = new AlgorithmIdentifier({
|
|
|
55304
56250
|
// ../../node_modules/@peculiar/asn1-rsa/build/es2015/parameters/rsassa_pkcs1_v1_5.js
|
|
55305
56251
|
init_inject_buffer();
|
|
55306
56252
|
var DigestInfo = class {
|
|
56253
|
+
digestAlgorithm = new AlgorithmIdentifier();
|
|
56254
|
+
digest = new OctetString2();
|
|
55307
56255
|
constructor(params = {}) {
|
|
55308
|
-
this.digestAlgorithm = new AlgorithmIdentifier();
|
|
55309
|
-
this.digest = new OctetString2();
|
|
55310
56256
|
Object.assign(this, params);
|
|
55311
56257
|
}
|
|
55312
56258
|
};
|
|
@@ -55321,21 +56267,30 @@ __decorate([
|
|
|
55321
56267
|
init_inject_buffer();
|
|
55322
56268
|
var OtherPrimeInfos_1;
|
|
55323
56269
|
var OtherPrimeInfo = class {
|
|
56270
|
+
prime = new ArrayBuffer(0);
|
|
56271
|
+
exponent = new ArrayBuffer(0);
|
|
56272
|
+
coefficient = new ArrayBuffer(0);
|
|
55324
56273
|
constructor(params = {}) {
|
|
55325
|
-
this.prime = new ArrayBuffer(0);
|
|
55326
|
-
this.exponent = new ArrayBuffer(0);
|
|
55327
|
-
this.coefficient = new ArrayBuffer(0);
|
|
55328
56274
|
Object.assign(this, params);
|
|
55329
56275
|
}
|
|
55330
56276
|
};
|
|
55331
56277
|
__decorate([
|
|
55332
|
-
AsnProp({
|
|
56278
|
+
AsnProp({
|
|
56279
|
+
type: AsnPropTypes.Integer,
|
|
56280
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56281
|
+
})
|
|
55333
56282
|
], OtherPrimeInfo.prototype, "prime", void 0);
|
|
55334
56283
|
__decorate([
|
|
55335
|
-
AsnProp({
|
|
56284
|
+
AsnProp({
|
|
56285
|
+
type: AsnPropTypes.Integer,
|
|
56286
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56287
|
+
})
|
|
55336
56288
|
], OtherPrimeInfo.prototype, "exponent", void 0);
|
|
55337
56289
|
__decorate([
|
|
55338
|
-
AsnProp({
|
|
56290
|
+
AsnProp({
|
|
56291
|
+
type: AsnPropTypes.Integer,
|
|
56292
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56293
|
+
})
|
|
55339
56294
|
], OtherPrimeInfo.prototype, "coefficient", void 0);
|
|
55340
56295
|
var OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos2 extends AsnArray {
|
|
55341
56296
|
constructor(items) {
|
|
@@ -55344,22 +56299,26 @@ var OtherPrimeInfos = OtherPrimeInfos_1 = class OtherPrimeInfos2 extends AsnArra
|
|
|
55344
56299
|
}
|
|
55345
56300
|
};
|
|
55346
56301
|
OtherPrimeInfos = OtherPrimeInfos_1 = __decorate([
|
|
55347
|
-
AsnType({
|
|
56302
|
+
AsnType({
|
|
56303
|
+
type: AsnTypeTypes.Sequence,
|
|
56304
|
+
itemType: OtherPrimeInfo
|
|
56305
|
+
})
|
|
55348
56306
|
], OtherPrimeInfos);
|
|
55349
56307
|
|
|
55350
56308
|
// ../../node_modules/@peculiar/asn1-rsa/build/es2015/rsa_private_key.js
|
|
55351
56309
|
init_inject_buffer();
|
|
55352
56310
|
var RSAPrivateKey = class {
|
|
56311
|
+
version = 0;
|
|
56312
|
+
modulus = new ArrayBuffer(0);
|
|
56313
|
+
publicExponent = new ArrayBuffer(0);
|
|
56314
|
+
privateExponent = new ArrayBuffer(0);
|
|
56315
|
+
prime1 = new ArrayBuffer(0);
|
|
56316
|
+
prime2 = new ArrayBuffer(0);
|
|
56317
|
+
exponent1 = new ArrayBuffer(0);
|
|
56318
|
+
exponent2 = new ArrayBuffer(0);
|
|
56319
|
+
coefficient = new ArrayBuffer(0);
|
|
56320
|
+
otherPrimeInfos;
|
|
55353
56321
|
constructor(params = {}) {
|
|
55354
|
-
this.version = 0;
|
|
55355
|
-
this.modulus = new ArrayBuffer(0);
|
|
55356
|
-
this.publicExponent = new ArrayBuffer(0);
|
|
55357
|
-
this.privateExponent = new ArrayBuffer(0);
|
|
55358
|
-
this.prime1 = new ArrayBuffer(0);
|
|
55359
|
-
this.prime2 = new ArrayBuffer(0);
|
|
55360
|
-
this.exponent1 = new ArrayBuffer(0);
|
|
55361
|
-
this.exponent2 = new ArrayBuffer(0);
|
|
55362
|
-
this.coefficient = new ArrayBuffer(0);
|
|
55363
56322
|
Object.assign(this, params);
|
|
55364
56323
|
}
|
|
55365
56324
|
};
|
|
@@ -55367,47 +56326,80 @@ __decorate([
|
|
|
55367
56326
|
AsnProp({ type: AsnPropTypes.Integer })
|
|
55368
56327
|
], RSAPrivateKey.prototype, "version", void 0);
|
|
55369
56328
|
__decorate([
|
|
55370
|
-
AsnProp({
|
|
56329
|
+
AsnProp({
|
|
56330
|
+
type: AsnPropTypes.Integer,
|
|
56331
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56332
|
+
})
|
|
55371
56333
|
], RSAPrivateKey.prototype, "modulus", void 0);
|
|
55372
56334
|
__decorate([
|
|
55373
|
-
AsnProp({
|
|
56335
|
+
AsnProp({
|
|
56336
|
+
type: AsnPropTypes.Integer,
|
|
56337
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56338
|
+
})
|
|
55374
56339
|
], RSAPrivateKey.prototype, "publicExponent", void 0);
|
|
55375
56340
|
__decorate([
|
|
55376
|
-
AsnProp({
|
|
56341
|
+
AsnProp({
|
|
56342
|
+
type: AsnPropTypes.Integer,
|
|
56343
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56344
|
+
})
|
|
55377
56345
|
], RSAPrivateKey.prototype, "privateExponent", void 0);
|
|
55378
56346
|
__decorate([
|
|
55379
|
-
AsnProp({
|
|
56347
|
+
AsnProp({
|
|
56348
|
+
type: AsnPropTypes.Integer,
|
|
56349
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56350
|
+
})
|
|
55380
56351
|
], RSAPrivateKey.prototype, "prime1", void 0);
|
|
55381
56352
|
__decorate([
|
|
55382
|
-
AsnProp({
|
|
56353
|
+
AsnProp({
|
|
56354
|
+
type: AsnPropTypes.Integer,
|
|
56355
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56356
|
+
})
|
|
55383
56357
|
], RSAPrivateKey.prototype, "prime2", void 0);
|
|
55384
56358
|
__decorate([
|
|
55385
|
-
AsnProp({
|
|
56359
|
+
AsnProp({
|
|
56360
|
+
type: AsnPropTypes.Integer,
|
|
56361
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56362
|
+
})
|
|
55386
56363
|
], RSAPrivateKey.prototype, "exponent1", void 0);
|
|
55387
56364
|
__decorate([
|
|
55388
|
-
AsnProp({
|
|
56365
|
+
AsnProp({
|
|
56366
|
+
type: AsnPropTypes.Integer,
|
|
56367
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56368
|
+
})
|
|
55389
56369
|
], RSAPrivateKey.prototype, "exponent2", void 0);
|
|
55390
56370
|
__decorate([
|
|
55391
|
-
AsnProp({
|
|
56371
|
+
AsnProp({
|
|
56372
|
+
type: AsnPropTypes.Integer,
|
|
56373
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56374
|
+
})
|
|
55392
56375
|
], RSAPrivateKey.prototype, "coefficient", void 0);
|
|
55393
56376
|
__decorate([
|
|
55394
|
-
AsnProp({
|
|
56377
|
+
AsnProp({
|
|
56378
|
+
type: OtherPrimeInfos,
|
|
56379
|
+
optional: true
|
|
56380
|
+
})
|
|
55395
56381
|
], RSAPrivateKey.prototype, "otherPrimeInfos", void 0);
|
|
55396
56382
|
|
|
55397
56383
|
// ../../node_modules/@peculiar/asn1-rsa/build/es2015/rsa_public_key.js
|
|
55398
56384
|
init_inject_buffer();
|
|
55399
56385
|
var RSAPublicKey = class {
|
|
56386
|
+
modulus = new ArrayBuffer(0);
|
|
56387
|
+
publicExponent = new ArrayBuffer(0);
|
|
55400
56388
|
constructor(params = {}) {
|
|
55401
|
-
this.modulus = new ArrayBuffer(0);
|
|
55402
|
-
this.publicExponent = new ArrayBuffer(0);
|
|
55403
56389
|
Object.assign(this, params);
|
|
55404
56390
|
}
|
|
55405
56391
|
};
|
|
55406
56392
|
__decorate([
|
|
55407
|
-
AsnProp({
|
|
56393
|
+
AsnProp({
|
|
56394
|
+
type: AsnPropTypes.Integer,
|
|
56395
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56396
|
+
})
|
|
55408
56397
|
], RSAPublicKey.prototype, "modulus", void 0);
|
|
55409
56398
|
__decorate([
|
|
55410
|
-
AsnProp({
|
|
56399
|
+
AsnProp({
|
|
56400
|
+
type: AsnPropTypes.Integer,
|
|
56401
|
+
converter: AsnIntegerArrayBufferConverter
|
|
56402
|
+
})
|
|
55411
56403
|
], RSAPublicKey.prototype, "publicExponent", void 0);
|
|
55412
56404
|
|
|
55413
56405
|
// ../../node_modules/tsyringe/dist/esm5/index.js
|
|
@@ -56281,9 +57273,9 @@ init_inject_buffer();
|
|
|
56281
57273
|
init_inject_buffer();
|
|
56282
57274
|
var PKCS12AttrSet_1;
|
|
56283
57275
|
var PKCS12Attribute = class {
|
|
57276
|
+
attrId = "";
|
|
57277
|
+
attrValues = [];
|
|
56284
57278
|
constructor(params = {}) {
|
|
56285
|
-
this.attrId = "";
|
|
56286
|
-
this.attrValues = [];
|
|
56287
57279
|
Object.assign(params);
|
|
56288
57280
|
}
|
|
56289
57281
|
};
|
|
@@ -56291,7 +57283,10 @@ __decorate([
|
|
|
56291
57283
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
56292
57284
|
], PKCS12Attribute.prototype, "attrId", void 0);
|
|
56293
57285
|
__decorate([
|
|
56294
|
-
AsnProp({
|
|
57286
|
+
AsnProp({
|
|
57287
|
+
type: AsnPropTypes.Any,
|
|
57288
|
+
repeated: "set"
|
|
57289
|
+
})
|
|
56295
57290
|
], PKCS12Attribute.prototype, "attrValues", void 0);
|
|
56296
57291
|
var PKCS12AttrSet = PKCS12AttrSet_1 = class PKCS12AttrSet2 extends AsnArray {
|
|
56297
57292
|
constructor(items) {
|
|
@@ -56300,7 +57295,10 @@ var PKCS12AttrSet = PKCS12AttrSet_1 = class PKCS12AttrSet2 extends AsnArray {
|
|
|
56300
57295
|
}
|
|
56301
57296
|
};
|
|
56302
57297
|
PKCS12AttrSet = PKCS12AttrSet_1 = __decorate([
|
|
56303
|
-
AsnType({
|
|
57298
|
+
AsnType({
|
|
57299
|
+
type: AsnTypeTypes.Sequence,
|
|
57300
|
+
itemType: PKCS12Attribute
|
|
57301
|
+
})
|
|
56304
57302
|
], PKCS12AttrSet);
|
|
56305
57303
|
|
|
56306
57304
|
// ../../node_modules/@peculiar/asn1-pfx/build/es2015/authenticated_safe.js
|
|
@@ -56313,7 +57311,10 @@ var AuthenticatedSafe = AuthenticatedSafe_1 = class AuthenticatedSafe2 extends A
|
|
|
56313
57311
|
}
|
|
56314
57312
|
};
|
|
56315
57313
|
AuthenticatedSafe = AuthenticatedSafe_1 = __decorate([
|
|
56316
|
-
AsnType({
|
|
57314
|
+
AsnType({
|
|
57315
|
+
type: AsnTypeTypes.Sequence,
|
|
57316
|
+
itemType: ContentInfo
|
|
57317
|
+
})
|
|
56317
57318
|
], AuthenticatedSafe);
|
|
56318
57319
|
|
|
56319
57320
|
// ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/index.js
|
|
@@ -56350,9 +57351,9 @@ var id_pkcs_9 = "1.2.840.113549.1.9";
|
|
|
56350
57351
|
|
|
56351
57352
|
// ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/cert_bag.js
|
|
56352
57353
|
var CertBag = class {
|
|
57354
|
+
certId = "";
|
|
57355
|
+
certValue = new ArrayBuffer(0);
|
|
56353
57356
|
constructor(params = {}) {
|
|
56354
|
-
this.certId = "";
|
|
56355
|
-
this.certValue = new ArrayBuffer(0);
|
|
56356
57357
|
Object.assign(this, params);
|
|
56357
57358
|
}
|
|
56358
57359
|
};
|
|
@@ -56360,7 +57361,10 @@ __decorate([
|
|
|
56360
57361
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
56361
57362
|
], CertBag.prototype, "certId", void 0);
|
|
56362
57363
|
__decorate([
|
|
56363
|
-
AsnProp({
|
|
57364
|
+
AsnProp({
|
|
57365
|
+
type: AsnPropTypes.Any,
|
|
57366
|
+
context: 0
|
|
57367
|
+
})
|
|
56364
57368
|
], CertBag.prototype, "certValue", void 0);
|
|
56365
57369
|
var id_certTypes = `${id_pkcs_9}.22`;
|
|
56366
57370
|
var id_x509Certificate = `${id_certTypes}.1`;
|
|
@@ -56369,9 +57373,9 @@ var id_sdsiCertificate = `${id_certTypes}.2`;
|
|
|
56369
57373
|
// ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/crl_bag.js
|
|
56370
57374
|
init_inject_buffer();
|
|
56371
57375
|
var CRLBag = class {
|
|
57376
|
+
crlId = "";
|
|
57377
|
+
crltValue = new ArrayBuffer(0);
|
|
56372
57378
|
constructor(params = {}) {
|
|
56373
|
-
this.crlId = "";
|
|
56374
|
-
this.crltValue = new ArrayBuffer(0);
|
|
56375
57379
|
Object.assign(this, params);
|
|
56376
57380
|
}
|
|
56377
57381
|
};
|
|
@@ -56379,7 +57383,10 @@ __decorate([
|
|
|
56379
57383
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
56380
57384
|
], CRLBag.prototype, "crlId", void 0);
|
|
56381
57385
|
__decorate([
|
|
56382
|
-
AsnProp({
|
|
57386
|
+
AsnProp({
|
|
57387
|
+
type: AsnPropTypes.Any,
|
|
57388
|
+
context: 0
|
|
57389
|
+
})
|
|
56383
57390
|
], CRLBag.prototype, "crltValue", void 0);
|
|
56384
57391
|
var id_crlTypes = `${id_pkcs_9}.23`;
|
|
56385
57392
|
var id_x509CRL = `${id_crlTypes}.1`;
|
|
@@ -56395,9 +57402,9 @@ init_inject_buffer();
|
|
|
56395
57402
|
var EncryptedData = class extends OctetString2 {
|
|
56396
57403
|
};
|
|
56397
57404
|
var EncryptedPrivateKeyInfo = class {
|
|
57405
|
+
encryptionAlgorithm = new AlgorithmIdentifier();
|
|
57406
|
+
encryptedData = new EncryptedData();
|
|
56398
57407
|
constructor(params = {}) {
|
|
56399
|
-
this.encryptionAlgorithm = new AlgorithmIdentifier();
|
|
56400
|
-
this.encryptedData = new EncryptedData();
|
|
56401
57408
|
Object.assign(this, params);
|
|
56402
57409
|
}
|
|
56403
57410
|
};
|
|
@@ -56424,13 +57431,17 @@ var Attributes = Attributes_1 = class Attributes2 extends AsnArray {
|
|
|
56424
57431
|
}
|
|
56425
57432
|
};
|
|
56426
57433
|
Attributes = Attributes_1 = __decorate([
|
|
56427
|
-
AsnType({
|
|
57434
|
+
AsnType({
|
|
57435
|
+
type: AsnTypeTypes.Sequence,
|
|
57436
|
+
itemType: Attribute
|
|
57437
|
+
})
|
|
56428
57438
|
], Attributes);
|
|
56429
57439
|
var PrivateKeyInfo = class {
|
|
57440
|
+
version = Version2.v1;
|
|
57441
|
+
privateKeyAlgorithm = new AlgorithmIdentifier();
|
|
57442
|
+
privateKey = new PrivateKey();
|
|
57443
|
+
attributes;
|
|
56430
57444
|
constructor(params = {}) {
|
|
56431
|
-
this.version = Version2.v1;
|
|
56432
|
-
this.privateKeyAlgorithm = new AlgorithmIdentifier();
|
|
56433
|
-
this.privateKey = new PrivateKey();
|
|
56434
57445
|
Object.assign(this, params);
|
|
56435
57446
|
}
|
|
56436
57447
|
};
|
|
@@ -56444,7 +57455,12 @@ __decorate([
|
|
|
56444
57455
|
AsnProp({ type: PrivateKey })
|
|
56445
57456
|
], PrivateKeyInfo.prototype, "privateKey", void 0);
|
|
56446
57457
|
__decorate([
|
|
56447
|
-
AsnProp({
|
|
57458
|
+
AsnProp({
|
|
57459
|
+
type: Attributes,
|
|
57460
|
+
implicit: true,
|
|
57461
|
+
context: 0,
|
|
57462
|
+
optional: true
|
|
57463
|
+
})
|
|
56448
57464
|
], PrivateKeyInfo.prototype, "attributes", void 0);
|
|
56449
57465
|
|
|
56450
57466
|
// ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/key_bag.js
|
|
@@ -56465,9 +57481,9 @@ PKCS8ShroudedKeyBag = __decorate([
|
|
|
56465
57481
|
// ../../node_modules/@peculiar/asn1-pfx/build/es2015/bags/secret_bag.js
|
|
56466
57482
|
init_inject_buffer();
|
|
56467
57483
|
var SecretBag = class {
|
|
57484
|
+
secretTypeId = "";
|
|
57485
|
+
secretValue = new ArrayBuffer(0);
|
|
56468
57486
|
constructor(params = {}) {
|
|
56469
|
-
this.secretTypeId = "";
|
|
56470
|
-
this.secretValue = new ArrayBuffer(0);
|
|
56471
57487
|
Object.assign(this, params);
|
|
56472
57488
|
}
|
|
56473
57489
|
};
|
|
@@ -56475,16 +57491,19 @@ __decorate([
|
|
|
56475
57491
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
56476
57492
|
], SecretBag.prototype, "secretTypeId", void 0);
|
|
56477
57493
|
__decorate([
|
|
56478
|
-
AsnProp({
|
|
57494
|
+
AsnProp({
|
|
57495
|
+
type: AsnPropTypes.Any,
|
|
57496
|
+
context: 0
|
|
57497
|
+
})
|
|
56479
57498
|
], SecretBag.prototype, "secretValue", void 0);
|
|
56480
57499
|
|
|
56481
57500
|
// ../../node_modules/@peculiar/asn1-pfx/build/es2015/mac_data.js
|
|
56482
57501
|
init_inject_buffer();
|
|
56483
57502
|
var MacData = class {
|
|
57503
|
+
mac = new DigestInfo();
|
|
57504
|
+
macSalt = new OctetString2();
|
|
57505
|
+
iterations = 1;
|
|
56484
57506
|
constructor(params = {}) {
|
|
56485
|
-
this.mac = new DigestInfo();
|
|
56486
|
-
this.macSalt = new OctetString2();
|
|
56487
|
-
this.iterations = 1;
|
|
56488
57507
|
Object.assign(this, params);
|
|
56489
57508
|
}
|
|
56490
57509
|
};
|
|
@@ -56495,16 +57514,19 @@ __decorate([
|
|
|
56495
57514
|
AsnProp({ type: OctetString2 })
|
|
56496
57515
|
], MacData.prototype, "macSalt", void 0);
|
|
56497
57516
|
__decorate([
|
|
56498
|
-
AsnProp({
|
|
57517
|
+
AsnProp({
|
|
57518
|
+
type: AsnPropTypes.Integer,
|
|
57519
|
+
defaultValue: 1
|
|
57520
|
+
})
|
|
56499
57521
|
], MacData.prototype, "iterations", void 0);
|
|
56500
57522
|
|
|
56501
57523
|
// ../../node_modules/@peculiar/asn1-pfx/build/es2015/pfx.js
|
|
56502
57524
|
init_inject_buffer();
|
|
56503
57525
|
var PFX = class {
|
|
57526
|
+
version = 3;
|
|
57527
|
+
authSafe = new ContentInfo();
|
|
57528
|
+
macData = new MacData();
|
|
56504
57529
|
constructor(params = {}) {
|
|
56505
|
-
this.version = 3;
|
|
56506
|
-
this.authSafe = new ContentInfo();
|
|
56507
|
-
this.macData = new MacData();
|
|
56508
57530
|
Object.assign(this, params);
|
|
56509
57531
|
}
|
|
56510
57532
|
};
|
|
@@ -56515,16 +57537,20 @@ __decorate([
|
|
|
56515
57537
|
AsnProp({ type: ContentInfo })
|
|
56516
57538
|
], PFX.prototype, "authSafe", void 0);
|
|
56517
57539
|
__decorate([
|
|
56518
|
-
AsnProp({
|
|
57540
|
+
AsnProp({
|
|
57541
|
+
type: MacData,
|
|
57542
|
+
optional: true
|
|
57543
|
+
})
|
|
56519
57544
|
], PFX.prototype, "macData", void 0);
|
|
56520
57545
|
|
|
56521
57546
|
// ../../node_modules/@peculiar/asn1-pfx/build/es2015/safe_bag.js
|
|
56522
57547
|
init_inject_buffer();
|
|
56523
57548
|
var SafeContents_1;
|
|
56524
57549
|
var SafeBag = class {
|
|
57550
|
+
bagId = "";
|
|
57551
|
+
bagValue = new ArrayBuffer(0);
|
|
57552
|
+
bagAttributes;
|
|
56525
57553
|
constructor(params = {}) {
|
|
56526
|
-
this.bagId = "";
|
|
56527
|
-
this.bagValue = new ArrayBuffer(0);
|
|
56528
57554
|
Object.assign(this, params);
|
|
56529
57555
|
}
|
|
56530
57556
|
};
|
|
@@ -56532,10 +57558,17 @@ __decorate([
|
|
|
56532
57558
|
AsnProp({ type: AsnPropTypes.ObjectIdentifier })
|
|
56533
57559
|
], SafeBag.prototype, "bagId", void 0);
|
|
56534
57560
|
__decorate([
|
|
56535
|
-
AsnProp({
|
|
57561
|
+
AsnProp({
|
|
57562
|
+
type: AsnPropTypes.Any,
|
|
57563
|
+
context: 0
|
|
57564
|
+
})
|
|
56536
57565
|
], SafeBag.prototype, "bagValue", void 0);
|
|
56537
57566
|
__decorate([
|
|
56538
|
-
AsnProp({
|
|
57567
|
+
AsnProp({
|
|
57568
|
+
type: PKCS12Attribute,
|
|
57569
|
+
repeated: "set",
|
|
57570
|
+
optional: true
|
|
57571
|
+
})
|
|
56539
57572
|
], SafeBag.prototype, "bagAttributes", void 0);
|
|
56540
57573
|
var SafeContents = SafeContents_1 = class SafeContents2 extends AsnArray {
|
|
56541
57574
|
constructor(items) {
|
|
@@ -56544,7 +57577,10 @@ var SafeContents = SafeContents_1 = class SafeContents2 extends AsnArray {
|
|
|
56544
57577
|
}
|
|
56545
57578
|
};
|
|
56546
57579
|
SafeContents = SafeContents_1 = __decorate([
|
|
56547
|
-
AsnType({
|
|
57580
|
+
AsnType({
|
|
57581
|
+
type: AsnTypeTypes.Sequence,
|
|
57582
|
+
itemType: SafeBag
|
|
57583
|
+
})
|
|
56548
57584
|
], SafeContents);
|
|
56549
57585
|
|
|
56550
57586
|
// ../../node_modules/@peculiar/asn1-pkcs9/build/es2015/index.js
|
|
@@ -56578,7 +57614,7 @@ var id_pkcs9_at_encryptedPrivateKeyInfo = `${id_pkcs9_at}.2`;
|
|
|
56578
57614
|
var id_pkcs9_at_randomNonce = `${id_pkcs9_at}.3`;
|
|
56579
57615
|
var id_pkcs9_at_sequenceNumber = `${id_pkcs9_at}.4`;
|
|
56580
57616
|
var id_pkcs9_at_pkcs7PDU = `${id_pkcs9_at}.5`;
|
|
56581
|
-
var id_ietf_at =
|
|
57617
|
+
var id_ietf_at = "1.3.6.1.5.5.7.9";
|
|
56582
57618
|
var id_pkcs9_at_dateOfBirth = `${id_ietf_at}.1`;
|
|
56583
57619
|
var id_pkcs9_at_placeOfBirth = `${id_ietf_at}.2`;
|
|
56584
57620
|
var id_pkcs9_at_gender = `${id_ietf_at}.3`;
|
|
@@ -56593,6 +57629,7 @@ var id_certTypes2 = `${id_pkcs9}.22`;
|
|
|
56593
57629
|
var crlTypes = `${id_pkcs9}.23`;
|
|
56594
57630
|
var id_at_pseudonym = `${id_at}.65`;
|
|
56595
57631
|
var PKCS9String = class PKCS9String2 extends DirectoryString {
|
|
57632
|
+
ia5String;
|
|
56596
57633
|
constructor(params = {}) {
|
|
56597
57634
|
super(params);
|
|
56598
57635
|
}
|
|
@@ -56624,6 +57661,7 @@ EncryptedPrivateKeyInfo2 = __decorate([
|
|
|
56624
57661
|
AsnType({ type: AsnTypeTypes.Sequence })
|
|
56625
57662
|
], EncryptedPrivateKeyInfo2);
|
|
56626
57663
|
var EmailAddress = class EmailAddress2 {
|
|
57664
|
+
value;
|
|
56627
57665
|
constructor(value = "") {
|
|
56628
57666
|
this.value = value;
|
|
56629
57667
|
}
|
|
@@ -56648,6 +57686,7 @@ UnstructuredAddress = __decorate([
|
|
|
56648
57686
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
56649
57687
|
], UnstructuredAddress);
|
|
56650
57688
|
var DateOfBirth = class DateOfBirth2 {
|
|
57689
|
+
value;
|
|
56651
57690
|
constructor(value = /* @__PURE__ */ new Date()) {
|
|
56652
57691
|
this.value = value;
|
|
56653
57692
|
}
|
|
@@ -56664,6 +57703,7 @@ PlaceOfBirth = __decorate([
|
|
|
56664
57703
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
56665
57704
|
], PlaceOfBirth);
|
|
56666
57705
|
var Gender = class Gender2 {
|
|
57706
|
+
value;
|
|
56667
57707
|
constructor(value = "M") {
|
|
56668
57708
|
this.value = value;
|
|
56669
57709
|
}
|
|
@@ -56678,6 +57718,7 @@ Gender = __decorate([
|
|
|
56678
57718
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
56679
57719
|
], Gender);
|
|
56680
57720
|
var CountryOfCitizenship = class CountryOfCitizenship2 {
|
|
57721
|
+
value;
|
|
56681
57722
|
constructor(value = "") {
|
|
56682
57723
|
this.value = value;
|
|
56683
57724
|
}
|
|
@@ -56702,6 +57743,7 @@ Pseudonym = __decorate([
|
|
|
56702
57743
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
56703
57744
|
], Pseudonym);
|
|
56704
57745
|
var ContentType = class ContentType2 {
|
|
57746
|
+
value;
|
|
56705
57747
|
constructor(value = "") {
|
|
56706
57748
|
this.value = value;
|
|
56707
57749
|
}
|
|
@@ -56721,6 +57763,7 @@ SigningTime3 = __decorate([
|
|
|
56721
57763
|
AsnType({ type: AsnTypeTypes.Choice })
|
|
56722
57764
|
], SigningTime3);
|
|
56723
57765
|
var SequenceNumber = class SequenceNumber2 {
|
|
57766
|
+
value;
|
|
56724
57767
|
constructor(value = 0) {
|
|
56725
57768
|
this.value = value;
|
|
56726
57769
|
}
|
|
@@ -56760,9 +57803,13 @@ var ExtendedCertificateAttributes = ExtendedCertificateAttributes_1 = class Exte
|
|
|
56760
57803
|
}
|
|
56761
57804
|
};
|
|
56762
57805
|
ExtendedCertificateAttributes = ExtendedCertificateAttributes_1 = __decorate([
|
|
56763
|
-
AsnType({
|
|
57806
|
+
AsnType({
|
|
57807
|
+
type: AsnTypeTypes.Set,
|
|
57808
|
+
itemType: Attribute2
|
|
57809
|
+
})
|
|
56764
57810
|
], ExtendedCertificateAttributes);
|
|
56765
57811
|
var FriendlyName = class FriendlyName2 {
|
|
57812
|
+
value;
|
|
56766
57813
|
constructor(value = "") {
|
|
56767
57814
|
this.value = value;
|
|
56768
57815
|
}
|
|
@@ -56788,7 +57835,10 @@ var SMIMECapabilities = SMIMECapabilities_1 = class SMIMECapabilities2 extends A
|
|
|
56788
57835
|
}
|
|
56789
57836
|
};
|
|
56790
57837
|
SMIMECapabilities = SMIMECapabilities_1 = __decorate([
|
|
56791
|
-
AsnType({
|
|
57838
|
+
AsnType({
|
|
57839
|
+
type: AsnTypeTypes.Sequence,
|
|
57840
|
+
itemType: SMIMECapability
|
|
57841
|
+
})
|
|
56792
57842
|
], SMIMECapabilities);
|
|
56793
57843
|
|
|
56794
57844
|
// ../../node_modules/@peculiar/asn1-csr/build/es2015/index.js
|
|
@@ -57244,7 +58294,7 @@ var TextConverter = class {
|
|
|
57244
58294
|
} else if (value2 instanceof TextObject) {
|
|
57245
58295
|
value2[TextObject.NAME] = key;
|
|
57246
58296
|
res.push(...this.serializeObj(value2, deep));
|
|
57247
|
-
} else if (
|
|
58297
|
+
} else if (import_pvtsutils.BufferSourceConverter.isBufferSource(value2)) {
|
|
57248
58298
|
if (key) {
|
|
57249
58299
|
res.push(`${pad}${keyValue}`);
|
|
57250
58300
|
res.push(...this.serializeBufferSource(value2, deep + 1));
|
|
@@ -57263,7 +58313,7 @@ var TextConverter = class {
|
|
|
57263
58313
|
}
|
|
57264
58314
|
static serializeBufferSource(buffer, deep = 0) {
|
|
57265
58315
|
const pad = this.pad(deep);
|
|
57266
|
-
const view =
|
|
58316
|
+
const view = import_pvtsutils.BufferSourceConverter.toUint8Array(buffer);
|
|
57267
58317
|
const res = [];
|
|
57268
58318
|
for (let i = 0; i < view.length; ) {
|
|
57269
58319
|
const row = [];
|
|
@@ -57271,8 +58321,8 @@ var TextConverter = class {
|
|
|
57271
58321
|
if (j === 8) {
|
|
57272
58322
|
row.push("");
|
|
57273
58323
|
}
|
|
57274
|
-
const
|
|
57275
|
-
row.push(
|
|
58324
|
+
const hex2 = view[i++].toString(16).padStart(2, "0");
|
|
58325
|
+
row.push(hex2);
|
|
57276
58326
|
}
|
|
57277
58327
|
res.push(`${pad}${row.join(" ")}`);
|
|
57278
58328
|
}
|
|
@@ -57294,9 +58344,9 @@ var AsnData = class _AsnData {
|
|
|
57294
58344
|
}
|
|
57295
58345
|
constructor(...args) {
|
|
57296
58346
|
_AsnData_rawData.set(this, void 0);
|
|
57297
|
-
if (
|
|
58347
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
57298
58348
|
this.asn = AsnConvert.parse(args[0], args[1]);
|
|
57299
|
-
__classPrivateFieldSet(this, _AsnData_rawData,
|
|
58349
|
+
__classPrivateFieldSet(this, _AsnData_rawData, import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]), "f");
|
|
57300
58350
|
this.onInit(this.asn);
|
|
57301
58351
|
} else {
|
|
57302
58352
|
this.asn = args[0];
|
|
@@ -57305,22 +58355,22 @@ var AsnData = class _AsnData {
|
|
|
57305
58355
|
}
|
|
57306
58356
|
equal(data) {
|
|
57307
58357
|
if (data instanceof _AsnData) {
|
|
57308
|
-
return (0,
|
|
58358
|
+
return (0, import_pvtsutils.isEqual)(data.rawData, this.rawData);
|
|
57309
58359
|
}
|
|
57310
58360
|
return false;
|
|
57311
58361
|
}
|
|
57312
|
-
toString(
|
|
57313
|
-
switch (
|
|
58362
|
+
toString(format2 = "text") {
|
|
58363
|
+
switch (format2) {
|
|
57314
58364
|
case "asn":
|
|
57315
58365
|
return AsnConvert.toString(this.rawData);
|
|
57316
58366
|
case "text":
|
|
57317
58367
|
return TextConverter.serialize(this.toTextObject());
|
|
57318
58368
|
case "hex":
|
|
57319
|
-
return
|
|
58369
|
+
return import_pvtsutils.Convert.ToHex(this.rawData);
|
|
57320
58370
|
case "base64":
|
|
57321
|
-
return
|
|
58371
|
+
return import_pvtsutils.Convert.ToBase64(this.rawData);
|
|
57322
58372
|
case "base64url":
|
|
57323
|
-
return
|
|
58373
|
+
return import_pvtsutils.Convert.ToBase64Url(this.rawData);
|
|
57324
58374
|
default:
|
|
57325
58375
|
throw TypeError("Argument 'format' is unsupported value");
|
|
57326
58376
|
}
|
|
@@ -57343,13 +58393,13 @@ AsnData.NAME = "ASN";
|
|
|
57343
58393
|
var Extension2 = class _Extension extends AsnData {
|
|
57344
58394
|
constructor(...args) {
|
|
57345
58395
|
let raw;
|
|
57346
|
-
if (
|
|
57347
|
-
raw =
|
|
58396
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58397
|
+
raw = import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]);
|
|
57348
58398
|
} else {
|
|
57349
58399
|
raw = AsnConvert.serialize(new Extension({
|
|
57350
58400
|
extnID: args[0],
|
|
57351
58401
|
critical: args[1],
|
|
57352
|
-
extnValue: new OctetString2(
|
|
58402
|
+
extnValue: new OctetString2(import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[2]))
|
|
57353
58403
|
}));
|
|
57354
58404
|
}
|
|
57355
58405
|
super(raw, Extension);
|
|
@@ -57477,7 +58527,7 @@ names.register("I", "2.5.4.43");
|
|
|
57477
58527
|
names.register("SN", "2.5.4.4");
|
|
57478
58528
|
names.register("T", "2.5.4.12");
|
|
57479
58529
|
function replaceUnknownCharacter(text, char) {
|
|
57480
|
-
return `\\${
|
|
58530
|
+
return `\\${import_pvtsutils.Convert.ToHex(import_pvtsutils.Convert.FromUtf8String(char)).toUpperCase()}`;
|
|
57481
58531
|
}
|
|
57482
58532
|
function escape2(data) {
|
|
57483
58533
|
return data.replace(/([,+"\\<>;])/g, "\\$1").replace(/^([ #])/, "\\$1").replace(/([ ]$)/, "\\$1").replace(/([\r\n\t])/, replaceUnknownCharacter);
|
|
@@ -57508,7 +58558,7 @@ var Name3 = class _Name {
|
|
|
57508
58558
|
this.asn = this.fromString(data);
|
|
57509
58559
|
} else if (data instanceof Name) {
|
|
57510
58560
|
this.asn = data;
|
|
57511
|
-
} else if (
|
|
58561
|
+
} else if (import_pvtsutils.BufferSourceConverter.isBufferSource(data)) {
|
|
57512
58562
|
this.asn = AsnConvert.parse(data, Name);
|
|
57513
58563
|
} else {
|
|
57514
58564
|
this.asn = this.fromJSON(data);
|
|
@@ -57532,7 +58582,7 @@ var Name3 = class _Name {
|
|
|
57532
58582
|
toString() {
|
|
57533
58583
|
return this.asn.map((rdn) => rdn.map((o) => {
|
|
57534
58584
|
const type = this.getName(o.type) || o.type;
|
|
57535
|
-
const value = o.value.anyValue ? `#${
|
|
58585
|
+
const value = o.value.anyValue ? `#${import_pvtsutils.Convert.ToHex(o.value.anyValue)}` : escape2(o.value.toString());
|
|
57536
58586
|
return `${type}=${value}`;
|
|
57537
58587
|
}).join("+")).join(", ");
|
|
57538
58588
|
}
|
|
@@ -57544,7 +58594,7 @@ var Name3 = class _Name {
|
|
|
57544
58594
|
for (const attr of rdn) {
|
|
57545
58595
|
const type = this.getName(attr.type) || attr.type;
|
|
57546
58596
|
(_a3 = jsonItem[type]) !== null && _a3 !== void 0 ? _a3 : jsonItem[type] = [];
|
|
57547
|
-
jsonItem[type].push(attr.value.anyValue ? `#${
|
|
58597
|
+
jsonItem[type].push(attr.value.anyValue ? `#${import_pvtsutils.Convert.ToHex(attr.value.anyValue)}` : attr.value.toString());
|
|
57548
58598
|
}
|
|
57549
58599
|
json.push(jsonItem);
|
|
57550
58600
|
}
|
|
@@ -57622,7 +58672,7 @@ var Name3 = class _Name {
|
|
|
57622
58672
|
}
|
|
57623
58673
|
}
|
|
57624
58674
|
} else if (value[0] === "#") {
|
|
57625
|
-
attr.value.anyValue =
|
|
58675
|
+
attr.value.anyValue = import_pvtsutils.Convert.FromHex(value.slice(1));
|
|
57626
58676
|
} else {
|
|
57627
58677
|
const processedValue = this.processStringValue(value);
|
|
57628
58678
|
if (type === this.getName("E") || type === this.getName("DC")) {
|
|
@@ -57698,16 +58748,16 @@ var GeneralName3 = class extends AsnData {
|
|
|
57698
58748
|
if (!matches) {
|
|
57699
58749
|
throw new Error("Cannot parse GUID value. Value doesn't match to regular expression");
|
|
57700
58750
|
}
|
|
57701
|
-
const
|
|
58751
|
+
const hex2 = matches.slice(1).map((o, i) => {
|
|
57702
58752
|
if (i < 3) {
|
|
57703
|
-
return
|
|
58753
|
+
return import_pvtsutils.Convert.ToHex(new Uint8Array(import_pvtsutils.Convert.FromHex(o)).reverse());
|
|
57704
58754
|
}
|
|
57705
58755
|
return o;
|
|
57706
58756
|
}).join("");
|
|
57707
58757
|
name = new GeneralName({
|
|
57708
58758
|
otherName: new OtherName({
|
|
57709
58759
|
typeId: id_GUID,
|
|
57710
|
-
value: AsnConvert.serialize(new OctetString2(
|
|
58760
|
+
value: AsnConvert.serialize(new OctetString2(import_pvtsutils.Convert.FromHex(hex2)))
|
|
57711
58761
|
})
|
|
57712
58762
|
});
|
|
57713
58763
|
break;
|
|
@@ -57733,7 +58783,7 @@ var GeneralName3 = class extends AsnData {
|
|
|
57733
58783
|
default:
|
|
57734
58784
|
throw new Error("Cannot create GeneralName. Unsupported type of the name");
|
|
57735
58785
|
}
|
|
57736
|
-
} else if (
|
|
58786
|
+
} else if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
57737
58787
|
name = AsnConvert.parse(args[0], GeneralName);
|
|
57738
58788
|
} else {
|
|
57739
58789
|
name = args[0];
|
|
@@ -57763,13 +58813,13 @@ var GeneralName3 = class extends AsnData {
|
|
|
57763
58813
|
if (asn.otherName.typeId === id_GUID) {
|
|
57764
58814
|
this.type = GUID;
|
|
57765
58815
|
const guid = AsnConvert.parse(asn.otherName.value, OctetString2);
|
|
57766
|
-
const matches = new RegExp(GUID_REGEX, "i").exec(
|
|
58816
|
+
const matches = new RegExp(GUID_REGEX, "i").exec(import_pvtsutils.Convert.ToHex(guid));
|
|
57767
58817
|
if (!matches) {
|
|
57768
58818
|
throw new Error(ERR_GUID);
|
|
57769
58819
|
}
|
|
57770
58820
|
this.value = matches.slice(1).map((o, i) => {
|
|
57771
58821
|
if (i < 3) {
|
|
57772
|
-
return
|
|
58822
|
+
return import_pvtsutils.Convert.ToHex(new Uint8Array(import_pvtsutils.Convert.FromHex(o)).reverse());
|
|
57773
58823
|
}
|
|
57774
58824
|
return o;
|
|
57775
58825
|
}).join("-");
|
|
@@ -57830,7 +58880,7 @@ var GeneralNames3 = class extends AsnData {
|
|
|
57830
58880
|
}
|
|
57831
58881
|
}
|
|
57832
58882
|
names2 = new GeneralNames(items);
|
|
57833
|
-
} else if (
|
|
58883
|
+
} else if (import_pvtsutils.BufferSourceConverter.isBufferSource(params)) {
|
|
57834
58884
|
names2 = AsnConvert.parse(params, GeneralNames);
|
|
57835
58885
|
} else {
|
|
57836
58886
|
throw new Error("Cannot initialize GeneralNames. Incorrect incoming arguments");
|
|
@@ -57890,11 +58940,11 @@ var PemConverter = class {
|
|
|
57890
58940
|
const res = [];
|
|
57891
58941
|
let matches = null;
|
|
57892
58942
|
while (matches = pattern.exec(pem)) {
|
|
57893
|
-
const
|
|
58943
|
+
const base642 = matches[3].replace(rEolPattern, "");
|
|
57894
58944
|
const pemStruct = {
|
|
57895
58945
|
type: matches[1],
|
|
57896
58946
|
headers: [],
|
|
57897
|
-
rawData:
|
|
58947
|
+
rawData: import_pvtsutils.Convert.FromBase64(base642)
|
|
57898
58948
|
};
|
|
57899
58949
|
const headersString = matches[2];
|
|
57900
58950
|
if (headersString) {
|
|
@@ -57941,12 +58991,12 @@ var PemConverter = class {
|
|
|
57941
58991
|
const raws = new Array();
|
|
57942
58992
|
if (tag) {
|
|
57943
58993
|
rawData.forEach((element) => {
|
|
57944
|
-
if (!
|
|
58994
|
+
if (!import_pvtsutils.BufferSourceConverter.isBufferSource(element)) {
|
|
57945
58995
|
throw new TypeError("Cannot encode array of BufferSource in PEM format. Not all items of the array are BufferSource");
|
|
57946
58996
|
}
|
|
57947
58997
|
raws.push(this.encodeStruct({
|
|
57948
58998
|
type: tag,
|
|
57949
|
-
rawData:
|
|
58999
|
+
rawData: import_pvtsutils.BufferSourceConverter.toArrayBuffer(element)
|
|
57950
59000
|
}));
|
|
57951
59001
|
});
|
|
57952
59002
|
} else {
|
|
@@ -57964,7 +59014,7 @@ var PemConverter = class {
|
|
|
57964
59014
|
}
|
|
57965
59015
|
return this.encodeStruct({
|
|
57966
59016
|
type: tag,
|
|
57967
|
-
rawData:
|
|
59017
|
+
rawData: import_pvtsutils.BufferSourceConverter.toArrayBuffer(rawData)
|
|
57968
59018
|
});
|
|
57969
59019
|
}
|
|
57970
59020
|
}
|
|
@@ -57979,9 +59029,9 @@ var PemConverter = class {
|
|
|
57979
59029
|
}
|
|
57980
59030
|
res.push("");
|
|
57981
59031
|
}
|
|
57982
|
-
const
|
|
57983
|
-
for (let i = 0; i <
|
|
57984
|
-
res.push(
|
|
59032
|
+
const base642 = import_pvtsutils.Convert.ToBase64(pem.rawData);
|
|
59033
|
+
for (let i = 0; i < base642.length; i += 64) {
|
|
59034
|
+
res.push(base642.substring(i, i + 64));
|
|
57985
59035
|
}
|
|
57986
59036
|
res.push(`-----END ${upperCaseType}-----`);
|
|
57987
59037
|
return res.join("\n");
|
|
@@ -57994,35 +59044,35 @@ PemConverter.PublicKeyTag = "PUBLIC KEY";
|
|
|
57994
59044
|
PemConverter.PrivateKeyTag = "PRIVATE KEY";
|
|
57995
59045
|
var PemData = class _PemData extends AsnData {
|
|
57996
59046
|
static isAsnEncoded(data) {
|
|
57997
|
-
return
|
|
59047
|
+
return import_pvtsutils.BufferSourceConverter.isBufferSource(data) || typeof data === "string";
|
|
57998
59048
|
}
|
|
57999
59049
|
static toArrayBuffer(raw) {
|
|
58000
59050
|
if (typeof raw === "string") {
|
|
58001
59051
|
if (PemConverter.isPem(raw)) {
|
|
58002
59052
|
return PemConverter.decode(raw)[0];
|
|
58003
|
-
} else if (
|
|
58004
|
-
return
|
|
58005
|
-
} else if (
|
|
58006
|
-
return
|
|
58007
|
-
} else if (
|
|
58008
|
-
return
|
|
59053
|
+
} else if (import_pvtsutils.Convert.isHex(raw)) {
|
|
59054
|
+
return import_pvtsutils.Convert.FromHex(raw);
|
|
59055
|
+
} else if (import_pvtsutils.Convert.isBase64(raw)) {
|
|
59056
|
+
return import_pvtsutils.Convert.FromBase64(raw);
|
|
59057
|
+
} else if (import_pvtsutils.Convert.isBase64Url(raw)) {
|
|
59058
|
+
return import_pvtsutils.Convert.FromBase64Url(raw);
|
|
58009
59059
|
} else {
|
|
58010
59060
|
throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
|
|
58011
59061
|
}
|
|
58012
59062
|
} else {
|
|
58013
|
-
const buffer =
|
|
59063
|
+
const buffer = import_pvtsutils.BufferSourceConverter.toUint8Array(raw);
|
|
58014
59064
|
if (buffer.length > 0 && buffer[0] === 48) {
|
|
58015
|
-
return
|
|
59065
|
+
return import_pvtsutils.BufferSourceConverter.toArrayBuffer(raw);
|
|
58016
59066
|
}
|
|
58017
|
-
const stringRaw =
|
|
59067
|
+
const stringRaw = import_pvtsutils.Convert.ToBinary(raw);
|
|
58018
59068
|
if (PemConverter.isPem(stringRaw)) {
|
|
58019
59069
|
return PemConverter.decode(stringRaw)[0];
|
|
58020
|
-
} else if (
|
|
58021
|
-
return
|
|
58022
|
-
} else if (
|
|
58023
|
-
return
|
|
58024
|
-
} else if (
|
|
58025
|
-
return
|
|
59070
|
+
} else if (import_pvtsutils.Convert.isHex(stringRaw)) {
|
|
59071
|
+
return import_pvtsutils.Convert.FromHex(stringRaw);
|
|
59072
|
+
} else if (import_pvtsutils.Convert.isBase64(stringRaw)) {
|
|
59073
|
+
return import_pvtsutils.Convert.FromBase64(stringRaw);
|
|
59074
|
+
} else if (import_pvtsutils.Convert.isBase64Url(stringRaw)) {
|
|
59075
|
+
return import_pvtsutils.Convert.FromBase64Url(stringRaw);
|
|
58026
59076
|
}
|
|
58027
59077
|
throw new TypeError("Unsupported format of 'raw' argument. Must be one of DER, PEM, HEX, Base64, or Base4Url");
|
|
58028
59078
|
}
|
|
@@ -58034,12 +59084,12 @@ var PemData = class _PemData extends AsnData {
|
|
|
58034
59084
|
super(args[0]);
|
|
58035
59085
|
}
|
|
58036
59086
|
}
|
|
58037
|
-
toString(
|
|
58038
|
-
switch (
|
|
59087
|
+
toString(format2 = "pem") {
|
|
59088
|
+
switch (format2) {
|
|
58039
59089
|
case "pem":
|
|
58040
59090
|
return PemConverter.encode(this.rawData, this.tag);
|
|
58041
59091
|
default:
|
|
58042
|
-
return super.toString(
|
|
59092
|
+
return super.toString(format2);
|
|
58043
59093
|
}
|
|
58044
59094
|
}
|
|
58045
59095
|
};
|
|
@@ -58055,7 +59105,7 @@ var PublicKey = class _PublicKey extends PemData {
|
|
|
58055
59105
|
return new _PublicKey(spki);
|
|
58056
59106
|
} else if (data.publicKey) {
|
|
58057
59107
|
return data.publicKey;
|
|
58058
|
-
} else if (
|
|
59108
|
+
} else if (import_pvtsutils.BufferSourceConverter.isBufferSource(data)) {
|
|
58059
59109
|
return new _PublicKey(data);
|
|
58060
59110
|
} else {
|
|
58061
59111
|
throw new TypeError("Unsupported PublicKeyType");
|
|
@@ -58097,8 +59147,8 @@ var PublicKey = class _PublicKey extends PemData {
|
|
|
58097
59147
|
switch (asn.algorithm.algorithm) {
|
|
58098
59148
|
case id_rsaEncryption: {
|
|
58099
59149
|
const rsaPublicKey = AsnConvert.parse(asn.subjectPublicKey, RSAPublicKey);
|
|
58100
|
-
const modulus =
|
|
58101
|
-
algorithm.publicExponent =
|
|
59150
|
+
const modulus = import_pvtsutils.BufferSourceConverter.toUint8Array(rsaPublicKey.modulus);
|
|
59151
|
+
algorithm.publicExponent = import_pvtsutils.BufferSourceConverter.toUint8Array(rsaPublicKey.publicExponent);
|
|
58102
59152
|
algorithm.modulusLength = (!modulus[0] ? modulus.slice(1) : modulus).byteLength << 3;
|
|
58103
59153
|
break;
|
|
58104
59154
|
}
|
|
@@ -58163,20 +59213,20 @@ var AuthorityKeyIdentifierExtension = class _AuthorityKeyIdentifierExtension ext
|
|
|
58163
59213
|
}
|
|
58164
59214
|
const key = await PublicKey.create(param, crypto4);
|
|
58165
59215
|
const id = await key.getKeyIdentifier(crypto4);
|
|
58166
|
-
return new _AuthorityKeyIdentifierExtension(
|
|
59216
|
+
return new _AuthorityKeyIdentifierExtension(import_pvtsutils.Convert.ToHex(id), critical);
|
|
58167
59217
|
}
|
|
58168
59218
|
constructor(...args) {
|
|
58169
|
-
if (
|
|
59219
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58170
59220
|
super(args[0]);
|
|
58171
59221
|
} else if (typeof args[0] === "string") {
|
|
58172
|
-
const value = new AuthorityKeyIdentifier({ keyIdentifier: new KeyIdentifier(
|
|
59222
|
+
const value = new AuthorityKeyIdentifier({ keyIdentifier: new KeyIdentifier(import_pvtsutils.Convert.FromHex(args[0])) });
|
|
58173
59223
|
super(id_ce_authorityKeyIdentifier, args[1], AsnConvert.serialize(value));
|
|
58174
59224
|
} else {
|
|
58175
59225
|
const certId = args[0];
|
|
58176
59226
|
const certIdName = certId.name instanceof GeneralNames3 ? AsnConvert.parse(certId.name.rawData, GeneralNames) : certId.name;
|
|
58177
59227
|
const value = new AuthorityKeyIdentifier({
|
|
58178
59228
|
authorityCertIssuer: certIdName,
|
|
58179
|
-
authorityCertSerialNumber:
|
|
59229
|
+
authorityCertSerialNumber: import_pvtsutils.Convert.FromHex(certId.serialNumber)
|
|
58180
59230
|
});
|
|
58181
59231
|
super(id_ce_authorityKeyIdentifier, args[1], AsnConvert.serialize(value));
|
|
58182
59232
|
}
|
|
@@ -58185,12 +59235,12 @@ var AuthorityKeyIdentifierExtension = class _AuthorityKeyIdentifierExtension ext
|
|
|
58185
59235
|
super.onInit(asn);
|
|
58186
59236
|
const aki = AsnConvert.parse(asn.extnValue, AuthorityKeyIdentifier);
|
|
58187
59237
|
if (aki.keyIdentifier) {
|
|
58188
|
-
this.keyId =
|
|
59238
|
+
this.keyId = import_pvtsutils.Convert.ToHex(aki.keyIdentifier);
|
|
58189
59239
|
}
|
|
58190
59240
|
if (aki.authorityCertIssuer || aki.authorityCertSerialNumber) {
|
|
58191
59241
|
this.certId = {
|
|
58192
59242
|
name: aki.authorityCertIssuer || [],
|
|
58193
|
-
serialNumber: aki.authorityCertSerialNumber ?
|
|
59243
|
+
serialNumber: aki.authorityCertSerialNumber ? import_pvtsutils.Convert.ToHex(aki.authorityCertSerialNumber) : ""
|
|
58194
59244
|
};
|
|
58195
59245
|
}
|
|
58196
59246
|
}
|
|
@@ -58212,7 +59262,7 @@ var AuthorityKeyIdentifierExtension = class _AuthorityKeyIdentifierExtension ext
|
|
|
58212
59262
|
AuthorityKeyIdentifierExtension.NAME = "Authority Key Identifier";
|
|
58213
59263
|
var BasicConstraintsExtension = class extends Extension2 {
|
|
58214
59264
|
constructor(...args) {
|
|
58215
|
-
if (
|
|
59265
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58216
59266
|
super(args[0]);
|
|
58217
59267
|
const value = AsnConvert.parse(this.value, BasicConstraints);
|
|
58218
59268
|
this.ca = value.cA;
|
|
@@ -58250,7 +59300,7 @@ var ExtendedKeyUsage3;
|
|
|
58250
59300
|
})(ExtendedKeyUsage3 || (ExtendedKeyUsage3 = {}));
|
|
58251
59301
|
var ExtendedKeyUsageExtension = class extends Extension2 {
|
|
58252
59302
|
constructor(...args) {
|
|
58253
|
-
if (
|
|
59303
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58254
59304
|
super(args[0]);
|
|
58255
59305
|
const value = AsnConvert.parse(this.value, ExtendedKeyUsage);
|
|
58256
59306
|
this.usages = value.map((o) => o);
|
|
@@ -58281,7 +59331,7 @@ var KeyUsageFlags2;
|
|
|
58281
59331
|
})(KeyUsageFlags2 || (KeyUsageFlags2 = {}));
|
|
58282
59332
|
var KeyUsagesExtension = class extends Extension2 {
|
|
58283
59333
|
constructor(...args) {
|
|
58284
|
-
if (
|
|
59334
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58285
59335
|
super(args[0]);
|
|
58286
59336
|
const value = AsnConvert.parse(this.value, KeyUsage);
|
|
58287
59337
|
this.usages = value.toNumber();
|
|
@@ -58303,18 +59353,18 @@ var SubjectKeyIdentifierExtension = class _SubjectKeyIdentifierExtension extends
|
|
|
58303
59353
|
static async create(publicKey, critical = false, crypto4 = cryptoProvider.get()) {
|
|
58304
59354
|
const key = await PublicKey.create(publicKey, crypto4);
|
|
58305
59355
|
const id = await key.getKeyIdentifier(crypto4);
|
|
58306
|
-
return new _SubjectKeyIdentifierExtension(
|
|
59356
|
+
return new _SubjectKeyIdentifierExtension(import_pvtsutils.Convert.ToHex(id), critical);
|
|
58307
59357
|
}
|
|
58308
59358
|
constructor(...args) {
|
|
58309
|
-
if (
|
|
59359
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58310
59360
|
super(args[0]);
|
|
58311
59361
|
const value = AsnConvert.parse(this.value, SubjectKeyIdentifier);
|
|
58312
|
-
this.keyId =
|
|
59362
|
+
this.keyId = import_pvtsutils.Convert.ToHex(value);
|
|
58313
59363
|
} else {
|
|
58314
|
-
const identifier = typeof args[0] === "string" ?
|
|
59364
|
+
const identifier = typeof args[0] === "string" ? import_pvtsutils.Convert.FromHex(args[0]) : args[0];
|
|
58315
59365
|
const value = new SubjectKeyIdentifier(identifier);
|
|
58316
59366
|
super(id_ce_subjectKeyIdentifier, args[1], AsnConvert.serialize(value));
|
|
58317
|
-
this.keyId =
|
|
59367
|
+
this.keyId = import_pvtsutils.Convert.ToHex(identifier);
|
|
58318
59368
|
}
|
|
58319
59369
|
}
|
|
58320
59370
|
toTextObject() {
|
|
@@ -58327,7 +59377,7 @@ var SubjectKeyIdentifierExtension = class _SubjectKeyIdentifierExtension extends
|
|
|
58327
59377
|
SubjectKeyIdentifierExtension.NAME = "Subject Key Identifier";
|
|
58328
59378
|
var SubjectAlternativeNameExtension = class extends Extension2 {
|
|
58329
59379
|
constructor(...args) {
|
|
58330
|
-
if (
|
|
59380
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58331
59381
|
super(args[0]);
|
|
58332
59382
|
} else {
|
|
58333
59383
|
super(id_ce_subjectAltName, args[1], new GeneralNames3(args[0] || []).rawData);
|
|
@@ -58365,7 +59415,7 @@ ExtensionFactory.items = /* @__PURE__ */ new Map();
|
|
|
58365
59415
|
var CertificatePolicyExtension = class extends Extension2 {
|
|
58366
59416
|
constructor(...args) {
|
|
58367
59417
|
var _a3;
|
|
58368
|
-
if (
|
|
59418
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58369
59419
|
super(args[0]);
|
|
58370
59420
|
const asnPolicies = AsnConvert.parse(this.value, CertificatePolicies);
|
|
58371
59421
|
this.policies = asnPolicies.map((o) => o.policyIdentifier);
|
|
@@ -58388,7 +59438,7 @@ ExtensionFactory.register(id_ce_certificatePolicies, CertificatePolicyExtension)
|
|
|
58388
59438
|
var CRLDistributionPointsExtension = class extends Extension2 {
|
|
58389
59439
|
constructor(...args) {
|
|
58390
59440
|
var _a3;
|
|
58391
|
-
if (
|
|
59441
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58392
59442
|
super(args[0]);
|
|
58393
59443
|
} else if (Array.isArray(args[0]) && typeof args[0][0] === "string") {
|
|
58394
59444
|
const urls = args[0];
|
|
@@ -58433,7 +59483,7 @@ CRLDistributionPointsExtension.NAME = "CRL Distribution Points";
|
|
|
58433
59483
|
var AuthorityInfoAccessExtension = class extends Extension2 {
|
|
58434
59484
|
constructor(...args) {
|
|
58435
59485
|
var _a3, _b, _c, _d;
|
|
58436
|
-
if (
|
|
59486
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58437
59487
|
super(args[0]);
|
|
58438
59488
|
} else if (args[0] instanceof AuthorityInfoAccessSyntax) {
|
|
58439
59489
|
const value = new AuthorityInfoAccessSyntax(args[0]);
|
|
@@ -58529,7 +59579,7 @@ function addAccessDescriptions(value, params, method, key) {
|
|
|
58529
59579
|
}
|
|
58530
59580
|
var IssuerAlternativeNameExtension = class extends Extension2 {
|
|
58531
59581
|
constructor(...args) {
|
|
58532
|
-
if (
|
|
59582
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58533
59583
|
super(args[0]);
|
|
58534
59584
|
} else {
|
|
58535
59585
|
super(id_ce_issuerAltName, args[1], new GeneralNames3(args[0] || []).rawData);
|
|
@@ -58553,11 +59603,11 @@ IssuerAlternativeNameExtension.NAME = "Issuer Alternative Name";
|
|
|
58553
59603
|
var Attribute3 = class _Attribute extends AsnData {
|
|
58554
59604
|
constructor(...args) {
|
|
58555
59605
|
let raw;
|
|
58556
|
-
if (
|
|
58557
|
-
raw =
|
|
59606
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
59607
|
+
raw = import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]);
|
|
58558
59608
|
} else {
|
|
58559
59609
|
const type = args[0];
|
|
58560
|
-
const values = Array.isArray(args[1]) ? args[1].map((o) =>
|
|
59610
|
+
const values = Array.isArray(args[1]) ? args[1].map((o) => import_pvtsutils.BufferSourceConverter.toArrayBuffer(o)) : [];
|
|
58561
59611
|
raw = AsnConvert.serialize(new Attribute({
|
|
58562
59612
|
type,
|
|
58563
59613
|
values
|
|
@@ -58586,7 +59636,7 @@ Attribute3.NAME = "Attribute";
|
|
|
58586
59636
|
var ChallengePasswordAttribute = class extends Attribute3 {
|
|
58587
59637
|
constructor(...args) {
|
|
58588
59638
|
var _a3;
|
|
58589
|
-
if (
|
|
59639
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58590
59640
|
super(args[0]);
|
|
58591
59641
|
} else {
|
|
58592
59642
|
const value = new ChallengePassword({ printableString: args[0] });
|
|
@@ -58611,7 +59661,7 @@ ChallengePasswordAttribute.NAME = "Challenge Password";
|
|
|
58611
59661
|
var ExtensionsAttribute = class extends Attribute3 {
|
|
58612
59662
|
constructor(...args) {
|
|
58613
59663
|
var _a3;
|
|
58614
|
-
if (
|
|
59664
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
58615
59665
|
super(args[0]);
|
|
58616
59666
|
} else {
|
|
58617
59667
|
const extensions = args[0];
|
|
@@ -58657,10 +59707,10 @@ AttributeFactory.items = /* @__PURE__ */ new Map();
|
|
|
58657
59707
|
var diAsnSignatureFormatter = "crypto.signatureFormatter";
|
|
58658
59708
|
var AsnDefaultSignatureFormatter = class {
|
|
58659
59709
|
toAsnSignature(algorithm, signature) {
|
|
58660
|
-
return
|
|
59710
|
+
return import_pvtsutils.BufferSourceConverter.toArrayBuffer(signature);
|
|
58661
59711
|
}
|
|
58662
59712
|
toWebSignature(algorithm, signature) {
|
|
58663
|
-
return
|
|
59713
|
+
return import_pvtsutils.BufferSourceConverter.toArrayBuffer(signature);
|
|
58664
59714
|
}
|
|
58665
59715
|
};
|
|
58666
59716
|
var RsaAlgorithm_1;
|
|
@@ -58831,13 +59881,13 @@ ShaAlgorithm = __decorate([
|
|
|
58831
59881
|
instance.registerSingleton(diAlgorithm, ShaAlgorithm);
|
|
58832
59882
|
var AsnEcSignatureFormatter = class _AsnEcSignatureFormatter {
|
|
58833
59883
|
addPadding(pointSize, data) {
|
|
58834
|
-
const bytes =
|
|
59884
|
+
const bytes = import_pvtsutils.BufferSourceConverter.toUint8Array(data);
|
|
58835
59885
|
const res = new Uint8Array(pointSize);
|
|
58836
59886
|
res.set(bytes, pointSize - bytes.length);
|
|
58837
59887
|
return res.buffer;
|
|
58838
59888
|
}
|
|
58839
59889
|
removePadding(data, positive = false) {
|
|
58840
|
-
let bytes =
|
|
59890
|
+
let bytes = import_pvtsutils.BufferSourceConverter.toUint8Array(data);
|
|
58841
59891
|
for (let i = 0; i < bytes.length; i++) {
|
|
58842
59892
|
if (!bytes[i]) {
|
|
58843
59893
|
continue;
|
|
@@ -58857,7 +59907,7 @@ var AsnEcSignatureFormatter = class _AsnEcSignatureFormatter {
|
|
|
58857
59907
|
const namedCurve = algorithm.namedCurve;
|
|
58858
59908
|
const pointSize = _AsnEcSignatureFormatter.namedCurveSize.get(namedCurve) || _AsnEcSignatureFormatter.defaultNamedCurveSize;
|
|
58859
59909
|
const ecSignature = new ECDSASigValue();
|
|
58860
|
-
const uint8Signature =
|
|
59910
|
+
const uint8Signature = import_pvtsutils.BufferSourceConverter.toUint8Array(signature);
|
|
58861
59911
|
ecSignature.r = this.removePadding(uint8Signature.slice(0, pointSize), true);
|
|
58862
59912
|
ecSignature.s = this.removePadding(uint8Signature.slice(pointSize, pointSize + pointSize), true);
|
|
58863
59913
|
return AsnConvert.serialize(ecSignature);
|
|
@@ -58871,7 +59921,7 @@ var AsnEcSignatureFormatter = class _AsnEcSignatureFormatter {
|
|
|
58871
59921
|
const pointSize = _AsnEcSignatureFormatter.namedCurveSize.get(namedCurve) || _AsnEcSignatureFormatter.defaultNamedCurveSize;
|
|
58872
59922
|
const r = this.addPadding(pointSize, this.removePadding(ecSigValue.r));
|
|
58873
59923
|
const s = this.addPadding(pointSize, this.removePadding(ecSigValue.s));
|
|
58874
|
-
return (0,
|
|
59924
|
+
return (0, import_pvtsutils.combine)(r, s);
|
|
58875
59925
|
}
|
|
58876
59926
|
return null;
|
|
58877
59927
|
}
|
|
@@ -59166,7 +60216,7 @@ var X509Certificate = class extends PemData {
|
|
|
59166
60216
|
if (serialNumberBytes.length > 1 && serialNumberBytes[0] === 0 && serialNumberBytes[1] > 127) {
|
|
59167
60217
|
serialNumberBytes = serialNumberBytes.slice(1);
|
|
59168
60218
|
}
|
|
59169
|
-
__classPrivateFieldSet(this, _X509Certificate_serialNumber,
|
|
60219
|
+
__classPrivateFieldSet(this, _X509Certificate_serialNumber, import_pvtsutils.Convert.ToHex(serialNumberBytes), "f");
|
|
59170
60220
|
}
|
|
59171
60221
|
return __classPrivateFieldGet(this, _X509Certificate_serialNumber, "f");
|
|
59172
60222
|
}
|
|
@@ -59307,7 +60357,7 @@ var X509Certificate = class extends PemData {
|
|
|
59307
60357
|
...this.signatureAlgorithm
|
|
59308
60358
|
};
|
|
59309
60359
|
publicKey = await paramsKey.export(keyAlgorithm, ["verify"], crypto4);
|
|
59310
|
-
} else if (
|
|
60360
|
+
} else if (import_pvtsutils.BufferSourceConverter.isBufferSource(paramsKey)) {
|
|
59311
60361
|
const key = new PublicKey(paramsKey);
|
|
59312
60362
|
keyAlgorithm = {
|
|
59313
60363
|
...key.algorithm,
|
|
@@ -59414,7 +60464,7 @@ var X509Certificates = class extends Array {
|
|
|
59414
60464
|
}
|
|
59415
60465
|
}
|
|
59416
60466
|
}
|
|
59417
|
-
export(
|
|
60467
|
+
export(format2) {
|
|
59418
60468
|
const signedData = new SignedData();
|
|
59419
60469
|
signedData.version = 1;
|
|
59420
60470
|
signedData.encapContentInfo.eContentType = id_data;
|
|
@@ -59425,10 +60475,10 @@ var X509Certificates = class extends Array {
|
|
|
59425
60475
|
content: AsnConvert.serialize(signedData)
|
|
59426
60476
|
});
|
|
59427
60477
|
const raw = AsnConvert.serialize(cms);
|
|
59428
|
-
if (
|
|
60478
|
+
if (format2 === "raw") {
|
|
59429
60479
|
return raw;
|
|
59430
60480
|
}
|
|
59431
|
-
return this.toString(
|
|
60481
|
+
return this.toString(format2);
|
|
59432
60482
|
}
|
|
59433
60483
|
import(data) {
|
|
59434
60484
|
const raw = PemData.toArrayBuffer(data);
|
|
@@ -59448,9 +60498,9 @@ var X509Certificates = class extends Array {
|
|
|
59448
60498
|
while (this.pop()) {
|
|
59449
60499
|
}
|
|
59450
60500
|
}
|
|
59451
|
-
toString(
|
|
60501
|
+
toString(format2 = "pem") {
|
|
59452
60502
|
const raw = this.export("raw");
|
|
59453
|
-
switch (
|
|
60503
|
+
switch (format2) {
|
|
59454
60504
|
case "pem":
|
|
59455
60505
|
return PemConverter.encode(raw, "CMS");
|
|
59456
60506
|
case "pem-chain":
|
|
@@ -59458,11 +60508,11 @@ var X509Certificates = class extends Array {
|
|
|
59458
60508
|
case "asn":
|
|
59459
60509
|
return AsnConvert.toString(raw);
|
|
59460
60510
|
case "hex":
|
|
59461
|
-
return
|
|
60511
|
+
return import_pvtsutils.Convert.ToHex(raw);
|
|
59462
60512
|
case "base64":
|
|
59463
|
-
return
|
|
60513
|
+
return import_pvtsutils.Convert.ToBase64(raw);
|
|
59464
60514
|
case "base64url":
|
|
59465
|
-
return
|
|
60515
|
+
return import_pvtsutils.Convert.ToBase64Url(raw);
|
|
59466
60516
|
case "text":
|
|
59467
60517
|
return TextConverter.serialize(this.toTextObject());
|
|
59468
60518
|
default:
|
|
@@ -59496,7 +60546,7 @@ var X509ChainBuilder = class {
|
|
|
59496
60546
|
const thumbprint = await current.getThumbprint(crypto4);
|
|
59497
60547
|
for (const item of chain) {
|
|
59498
60548
|
const thumbprint2 = await item.getThumbprint(crypto4);
|
|
59499
|
-
if ((0,
|
|
60549
|
+
if ((0, import_pvtsutils.isEqual)(thumbprint, thumbprint2)) {
|
|
59500
60550
|
throw new Error("Cannot build a certificate chain. Circular dependency.");
|
|
59501
60551
|
}
|
|
59502
60552
|
}
|
|
@@ -59519,7 +60569,7 @@ var X509ChainBuilder = class {
|
|
|
59519
60569
|
}
|
|
59520
60570
|
} else if (akiExt.certId) {
|
|
59521
60571
|
const sanExt = item.getExtension(id_ce_subjectAltName);
|
|
59522
|
-
if (sanExt && !(akiExt.certId.serialNumber === item.serialNumber && (0,
|
|
60572
|
+
if (sanExt && !(akiExt.certId.serialNumber === item.serialNumber && (0, import_pvtsutils.isEqual)(AsnConvert.serialize(akiExt.certId.name), AsnConvert.serialize(sanExt)))) {
|
|
59523
60573
|
continue;
|
|
59524
60574
|
}
|
|
59525
60575
|
}
|
|
@@ -59547,7 +60597,7 @@ var X509ChainBuilder = class {
|
|
|
59547
60597
|
}
|
|
59548
60598
|
};
|
|
59549
60599
|
function generateCertificateSerialNumber(input, crypto4 = cryptoProvider.get()) {
|
|
59550
|
-
const inputView =
|
|
60600
|
+
const inputView = import_pvtsutils.BufferSourceConverter.toUint8Array(import_pvtsutils.Convert.FromHex(input || ""));
|
|
59551
60601
|
let serialNumber = inputView && inputView.length && inputView.some((o) => o > 0) ? new Uint8Array(inputView) : void 0;
|
|
59552
60602
|
if (!serialNumber) {
|
|
59553
60603
|
serialNumber = crypto4.getRandomValues(new Uint8Array(16));
|
|
@@ -59592,7 +60642,7 @@ var X509CertificateGenerator = class {
|
|
|
59592
60642
|
spki = params.publicKey.rawData;
|
|
59593
60643
|
} else if ("publicKey" in params.publicKey) {
|
|
59594
60644
|
spki = params.publicKey.publicKey.rawData;
|
|
59595
|
-
} else if (
|
|
60645
|
+
} else if (import_pvtsutils.BufferSourceConverter.isBufferSource(params.publicKey)) {
|
|
59596
60646
|
spki = params.publicKey;
|
|
59597
60647
|
} else {
|
|
59598
60648
|
spki = await crypto4.subtle.exportKey("spki", params.publicKey);
|
|
@@ -59669,7 +60719,7 @@ var X509CrlReason;
|
|
|
59669
60719
|
var X509CrlEntry = class extends AsnData {
|
|
59670
60720
|
get serialNumber() {
|
|
59671
60721
|
if (!__classPrivateFieldGet(this, _X509CrlEntry_serialNumber, "f")) {
|
|
59672
|
-
__classPrivateFieldSet(this, _X509CrlEntry_serialNumber,
|
|
60722
|
+
__classPrivateFieldSet(this, _X509CrlEntry_serialNumber, import_pvtsutils.Convert.ToHex(this.asn.userCertificate), "f");
|
|
59673
60723
|
}
|
|
59674
60724
|
return __classPrivateFieldGet(this, _X509CrlEntry_serialNumber, "f");
|
|
59675
60725
|
}
|
|
@@ -59717,8 +60767,8 @@ var X509CrlEntry = class extends AsnData {
|
|
|
59717
60767
|
}
|
|
59718
60768
|
constructor(...args) {
|
|
59719
60769
|
let raw;
|
|
59720
|
-
if (
|
|
59721
|
-
raw =
|
|
60770
|
+
if (import_pvtsutils.BufferSourceConverter.isBufferSource(args[0])) {
|
|
60771
|
+
raw = import_pvtsutils.BufferSourceConverter.toArrayBuffer(args[0]);
|
|
59722
60772
|
} else if (typeof args[0] === "string") {
|
|
59723
60773
|
raw = AsnConvert.serialize(new RevokedCertificate({
|
|
59724
60774
|
userCertificate: generateCertificateSerialNumber(args[0]),
|
|
@@ -59914,7 +60964,7 @@ var X509Crl = class extends PemData {
|
|
|
59914
60964
|
const serialNumber = typeof certOrSerialNumber === "string" ? certOrSerialNumber : certOrSerialNumber.serialNumber;
|
|
59915
60965
|
const serialBuffer = generateCertificateSerialNumber(serialNumber);
|
|
59916
60966
|
for (const revoked of this.asn.tbsCertList.revokedCertificates || []) {
|
|
59917
|
-
if (
|
|
60967
|
+
if (import_pvtsutils.BufferSourceConverter.isEqual(revoked.userCertificate, serialBuffer)) {
|
|
59918
60968
|
return new X509CrlEntry(AsnConvert.serialize(revoked));
|
|
59919
60969
|
}
|
|
59920
60970
|
}
|
|
@@ -59943,7 +60993,7 @@ var X509CrlGenerator = class {
|
|
|
59943
60993
|
asnX509Crl.tbsCertList.revokedCertificates = [];
|
|
59944
60994
|
for (const entry of params.entries) {
|
|
59945
60995
|
const userCertificate = PemData.toArrayBuffer(entry.serialNumber);
|
|
59946
|
-
const index = asnX509Crl.tbsCertList.revokedCertificates.findIndex((cert) => (0,
|
|
60996
|
+
const index = asnX509Crl.tbsCertList.revokedCertificates.findIndex((cert) => (0, import_pvtsutils.isEqual)(cert.userCertificate, userCertificate));
|
|
59947
60997
|
if (index > -1) {
|
|
59948
60998
|
throw new Error(`Certificate serial number ${entry.serialNumber} already exists in tbsCertList`);
|
|
59949
60999
|
}
|
|
@@ -60048,6 +61098,7 @@ function getCrypto() {
|
|
|
60048
61098
|
|
|
60049
61099
|
// ../node-opcua-crypto/source/x509/create_key_pair.ts
|
|
60050
61100
|
init_inject_buffer();
|
|
61101
|
+
var ENCRYPTED_PEM_HEADER = "-----BEGIN ENCRYPTED PRIVATE KEY-----";
|
|
60051
61102
|
async function generateKeyPair(modulusLength = 2048) {
|
|
60052
61103
|
const crypto4 = getCrypto();
|
|
60053
61104
|
const alg = {
|
|
@@ -60092,6 +61143,11 @@ async function derToPrivateKey(privDer) {
|
|
|
60092
61143
|
return importedKey;
|
|
60093
61144
|
}
|
|
60094
61145
|
async function pemToPrivateKey(pem) {
|
|
61146
|
+
if (pem.includes(ENCRYPTED_PEM_HEADER)) {
|
|
61147
|
+
throw new Error(
|
|
61148
|
+
"This private key is encrypted (PKCS#8 ENCRYPTED PRIVATE KEY). Encrypted private keys are not supported by the WebCrypto-based browser build; use the Node.js build's readPrivateKey()/readPrivateKeyAsync() with a passphrase instead."
|
|
61149
|
+
);
|
|
61150
|
+
}
|
|
60095
61151
|
const privDer = x509_es_exports.PemConverter.decode(pem);
|
|
60096
61152
|
return derToPrivateKey(privDer[0]);
|
|
60097
61153
|
}
|
|
@@ -60099,9 +61155,13 @@ async function pemToPrivateKey(pem) {
|
|
|
60099
61155
|
// ../node-opcua-crypto/source/x509/coerce_private_key.ts
|
|
60100
61156
|
var crypto3 = getCrypto();
|
|
60101
61157
|
var doDebug4 = false;
|
|
60102
|
-
|
|
61158
|
+
var ENCRYPTED_PEM_HEADER2 = "-----BEGIN ENCRYPTED PRIVATE KEY-----";
|
|
61159
|
+
function coercePEMorDerToPrivateKey(privateKeyInDerOrPem, passphrase) {
|
|
60103
61160
|
if (typeof privateKeyInDerOrPem === "string") {
|
|
60104
|
-
|
|
61161
|
+
if (privateKeyInDerOrPem.includes(ENCRYPTED_PEM_HEADER2) && passphrase === void 0) {
|
|
61162
|
+
throw new PrivateKeyPassphraseRequiredError();
|
|
61163
|
+
}
|
|
61164
|
+
const hidden = passphrase !== void 0 ? createPrivateKeyFromNodeJSCrypto({ key: privateKeyInDerOrPem, format: "pem", passphrase }) : createPrivateKeyFromNodeJSCrypto(privateKeyInDerOrPem);
|
|
60105
61165
|
return { hidden };
|
|
60106
61166
|
}
|
|
60107
61167
|
throw new Error("not implemented");
|
|
@@ -60524,6 +61584,10 @@ var asn1 = { readDirectoryName, readTag, readStruct, readAlgorithmIdentifier, re
|
|
|
60524
61584
|
export {
|
|
60525
61585
|
CertificatePurpose,
|
|
60526
61586
|
PaddingAlgorithm,
|
|
61587
|
+
PfxIntegrityError,
|
|
61588
|
+
PfxMalformedError,
|
|
61589
|
+
Pkcs12UnsupportedAlgorithmError,
|
|
61590
|
+
PrivateKeyPassphraseRequiredError,
|
|
60527
61591
|
RSA_PKCS1_OAEP_PADDING,
|
|
60528
61592
|
RSA_PKCS1_PADDING,
|
|
60529
61593
|
Subject,
|