node-opcua-crypto-web 6.2.2 → 6.2.3

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.
Files changed (2) hide show
  1. package/dist/index_web.js +294 -143
  2. package/package.json +3 -3
package/dist/index_web.js CHANGED
@@ -4401,11 +4401,11 @@ var require_util = __commonJS({
4401
4401
  return str;
4402
4402
  }
4403
4403
  function arrayToHash(array) {
4404
- var hash = {};
4404
+ var hash2 = {};
4405
4405
  array.forEach(function(val, idx) {
4406
- hash[val] = true;
4406
+ hash2[val] = true;
4407
4407
  });
4408
- return hash;
4408
+ return hash2;
4409
4409
  }
4410
4410
  function formatValue(ctx, value, recurseTimes) {
4411
4411
  if (ctx.customInspect && value && isFunction(value.inspect) && // Filter out the util module, it's inspect function is special
@@ -4838,8 +4838,8 @@ var require_buffer_list = __commonJS({
4838
4838
  }
4839
4839
  return obj;
4840
4840
  }
4841
- function _classCallCheck(instance2, Constructor) {
4842
- if (!(instance2 instanceof Constructor)) {
4841
+ function _classCallCheck(instance3, Constructor) {
4842
+ if (!(instance3 instanceof Constructor)) {
4843
4843
  throw new TypeError("Cannot call a class as a function");
4844
4844
  }
4845
4845
  }
@@ -7890,8 +7890,8 @@ var require_BufferList = __commonJS({
7890
7890
  "../../node_modules/readable-stream/lib/internal/streams/BufferList.js"(exports2, module2) {
7891
7891
  "use strict";
7892
7892
  init_inject_buffer();
7893
- function _classCallCheck(instance2, Constructor) {
7894
- if (!(instance2 instanceof Constructor)) {
7893
+ function _classCallCheck(instance3, Constructor) {
7894
+ if (!(instance3 instanceof Constructor)) {
7895
7895
  throw new TypeError("Cannot call a class as a function");
7896
7896
  }
7897
7897
  }
@@ -9961,8 +9961,8 @@ var require_hash = __commonJS({
9961
9961
  this._block.writeUInt32BE(lowBits, this._blockSize - 4);
9962
9962
  }
9963
9963
  this._update(this._block);
9964
- var hash = this._hash();
9965
- return enc ? hash.toString(enc) : hash;
9964
+ var hash2 = this._hash();
9965
+ return enc ? hash2.toString(enc) : hash2;
9966
9966
  };
9967
9967
  Hash.prototype._update = function() {
9968
9968
  throw new Error("_update must be implemented by subclass");
@@ -10874,9 +10874,9 @@ var require_browser4 = __commonJS({
10874
10874
  var RIPEMD160 = require_ripemd160();
10875
10875
  var sha = require_sha2();
10876
10876
  var Base = require_cipher_base();
10877
- function Hash(hash) {
10877
+ function Hash(hash2) {
10878
10878
  Base.call(this, "digest");
10879
- this._hash = hash;
10879
+ this._hash = hash2;
10880
10880
  }
10881
10881
  inherits(Hash, Base);
10882
10882
  Hash.prototype._update = function(data) {
@@ -10969,8 +10969,8 @@ var require_browser5 = __commonJS({
10969
10969
  this._alg = alg;
10970
10970
  this._key = key;
10971
10971
  if (key.length > blocksize) {
10972
- var hash = alg === "rmd160" ? new RIPEMD160() : sha(alg);
10973
- key = hash.update(key).digest();
10972
+ var hash2 = alg === "rmd160" ? new RIPEMD160() : sha(alg);
10973
+ key = hash2.update(key).digest();
10974
10974
  } else if (key.length < blocksize) {
10975
10975
  key = Buffer2.concat([key, ZEROS], blocksize);
10976
10976
  }
@@ -10989,8 +10989,8 @@ var require_browser5 = __commonJS({
10989
10989
  };
10990
10990
  Hmac.prototype._final = function() {
10991
10991
  var h = this._hash.digest();
10992
- var hash = this._alg === "rmd160" ? new RIPEMD160() : sha(this._alg);
10993
- return hash.update(this._opad).update(h).digest();
10992
+ var hash2 = this._alg === "rmd160" ? new RIPEMD160() : sha(this._alg);
10993
+ return hash2.update(this._opad).update(h).digest();
10994
10994
  };
10995
10995
  module2.exports = function createHmac2(alg, key) {
10996
10996
  alg = alg.toLowerCase();
@@ -11284,10 +11284,10 @@ var require_sync_browser = __commonJS({
11284
11284
  return shaFunc;
11285
11285
  }
11286
11286
  function Hmac(alg, key, saltLen) {
11287
- var hash = getDigest(alg);
11287
+ var hash2 = getDigest(alg);
11288
11288
  var blocksize = alg === "sha512" || alg === "sha384" ? 128 : 64;
11289
11289
  if (key.length > blocksize) {
11290
- key = hash(key);
11290
+ key = hash2(key);
11291
11291
  } else if (key.length < blocksize) {
11292
11292
  key = Buffer2.concat([key, ZEROS], blocksize);
11293
11293
  }
@@ -11304,7 +11304,7 @@ var require_sync_browser = __commonJS({
11304
11304
  this.opad = opad;
11305
11305
  this.alg = alg;
11306
11306
  this.blocksize = blocksize;
11307
- this.hash = hash;
11307
+ this.hash = hash2;
11308
11308
  this.size = sizes[alg];
11309
11309
  }
11310
11310
  Hmac.prototype.run = function(data, ipad) {
@@ -13524,11 +13524,11 @@ var require_evp_bytestokey = __commonJS({
13524
13524
  var iv = Buffer2.alloc(ivLen || 0);
13525
13525
  var tmp = Buffer2.alloc(0);
13526
13526
  while (keyLen > 0 || ivLen > 0) {
13527
- var hash = new MD5();
13528
- hash.update(tmp);
13529
- hash.update(password);
13530
- if (salt) hash.update(salt);
13531
- tmp = hash.digest();
13527
+ var hash2 = new MD5();
13528
+ hash2.update(tmp);
13529
+ hash2.update(password);
13530
+ if (salt) hash2.update(salt);
13531
+ tmp = hash2.digest();
13532
13532
  var used = 0;
13533
13533
  if (keyLen > 0) {
13534
13534
  var keyStart = key.length - keyLen;
@@ -28988,12 +28988,12 @@ var require_hmac = __commonJS({
28988
28988
  init_inject_buffer();
28989
28989
  var utils = require_utils4();
28990
28990
  var assert8 = require_minimalistic_assert();
28991
- function Hmac(hash, key, enc) {
28991
+ function Hmac(hash2, key, enc) {
28992
28992
  if (!(this instanceof Hmac))
28993
- return new Hmac(hash, key, enc);
28994
- this.Hash = hash;
28995
- this.blockSize = hash.blockSize / 8;
28996
- this.outSize = hash.outSize / 8;
28993
+ return new Hmac(hash2, key, enc);
28994
+ this.Hash = hash2;
28995
+ this.blockSize = hash2.blockSize / 8;
28996
+ this.outSize = hash2.outSize / 8;
28997
28997
  this.inner = null;
28998
28998
  this.outer = null;
28999
28999
  this._init(utils.toArray(key, enc));
@@ -29027,18 +29027,18 @@ var require_hmac = __commonJS({
29027
29027
  var require_hash2 = __commonJS({
29028
29028
  "../../node_modules/hash.js/lib/hash.js"(exports2) {
29029
29029
  init_inject_buffer();
29030
- var hash = exports2;
29031
- hash.utils = require_utils4();
29032
- hash.common = require_common();
29033
- hash.sha = require_sha3();
29034
- hash.ripemd = require_ripemd();
29035
- hash.hmac = require_hmac();
29036
- hash.sha1 = hash.sha.sha1;
29037
- hash.sha256 = hash.sha.sha256;
29038
- hash.sha224 = hash.sha.sha224;
29039
- hash.sha384 = hash.sha.sha384;
29040
- hash.sha512 = hash.sha.sha512;
29041
- hash.ripemd160 = hash.ripemd.ripemd160;
29030
+ var hash2 = exports2;
29031
+ hash2.utils = require_utils4();
29032
+ hash2.common = require_common();
29033
+ hash2.sha = require_sha3();
29034
+ hash2.ripemd = require_ripemd();
29035
+ hash2.hmac = require_hmac();
29036
+ hash2.sha1 = hash2.sha.sha1;
29037
+ hash2.sha256 = hash2.sha.sha256;
29038
+ hash2.sha224 = hash2.sha.sha224;
29039
+ hash2.sha384 = hash2.sha.sha384;
29040
+ hash2.sha512 = hash2.sha.sha512;
29041
+ hash2.ripemd160 = hash2.ripemd.ripemd160;
29042
29042
  }
29043
29043
  });
29044
29044
 
@@ -29835,7 +29835,7 @@ var require_curves = __commonJS({
29835
29835
  "use strict";
29836
29836
  init_inject_buffer();
29837
29837
  var curves = exports2;
29838
- var hash = require_hash2();
29838
+ var hash2 = require_hash2();
29839
29839
  var curve = require_curve();
29840
29840
  var utils = require_utils3();
29841
29841
  var assert8 = utils.assert;
@@ -29875,7 +29875,7 @@ var require_curves = __commonJS({
29875
29875
  a: "ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",
29876
29876
  b: "64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",
29877
29877
  n: "ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",
29878
- hash: hash.sha256,
29878
+ hash: hash2.sha256,
29879
29879
  gRed: false,
29880
29880
  g: [
29881
29881
  "188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012",
@@ -29889,7 +29889,7 @@ var require_curves = __commonJS({
29889
29889
  a: "ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",
29890
29890
  b: "b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",
29891
29891
  n: "ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",
29892
- hash: hash.sha256,
29892
+ hash: hash2.sha256,
29893
29893
  gRed: false,
29894
29894
  g: [
29895
29895
  "b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21",
@@ -29903,7 +29903,7 @@ var require_curves = __commonJS({
29903
29903
  a: "ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",
29904
29904
  b: "5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",
29905
29905
  n: "ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",
29906
- hash: hash.sha256,
29906
+ hash: hash2.sha256,
29907
29907
  gRed: false,
29908
29908
  g: [
29909
29909
  "6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296",
@@ -29917,7 +29917,7 @@ var require_curves = __commonJS({
29917
29917
  a: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",
29918
29918
  b: "b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",
29919
29919
  n: "ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",
29920
- hash: hash.sha384,
29920
+ hash: hash2.sha384,
29921
29921
  gRed: false,
29922
29922
  g: [
29923
29923
  "aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7",
@@ -29931,7 +29931,7 @@ var require_curves = __commonJS({
29931
29931
  a: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",
29932
29932
  b: "00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",
29933
29933
  n: "000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",
29934
- hash: hash.sha512,
29934
+ hash: hash2.sha512,
29935
29935
  gRed: false,
29936
29936
  g: [
29937
29937
  "000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66",
@@ -29945,7 +29945,7 @@ var require_curves = __commonJS({
29945
29945
  a: "76d06",
29946
29946
  b: "1",
29947
29947
  n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",
29948
- hash: hash.sha256,
29948
+ hash: hash2.sha256,
29949
29949
  gRed: false,
29950
29950
  g: [
29951
29951
  "9"
@@ -29960,7 +29960,7 @@ var require_curves = __commonJS({
29960
29960
  // -121665 * (121666^(-1)) (mod P)
29961
29961
  d: "52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",
29962
29962
  n: "1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",
29963
- hash: hash.sha256,
29963
+ hash: hash2.sha256,
29964
29964
  gRed: false,
29965
29965
  g: [
29966
29966
  "216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a",
@@ -29982,7 +29982,7 @@ var require_curves = __commonJS({
29982
29982
  b: "7",
29983
29983
  n: "ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",
29984
29984
  h: "1",
29985
- hash: hash.sha256,
29985
+ hash: hash2.sha256,
29986
29986
  // Precomputed endomorphism
29987
29987
  beta: "7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",
29988
29988
  lambda: "5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",
@@ -30011,7 +30011,7 @@ var require_hmac_drbg = __commonJS({
30011
30011
  "../../node_modules/hmac-drbg/lib/hmac-drbg.js"(exports2, module2) {
30012
30012
  "use strict";
30013
30013
  init_inject_buffer();
30014
- var hash = require_hash2();
30014
+ var hash2 = require_hash2();
30015
30015
  var utils = require_utils2();
30016
30016
  var assert8 = require_minimalistic_assert();
30017
30017
  function HmacDRBG(options) {
@@ -30048,7 +30048,7 @@ var require_hmac_drbg = __commonJS({
30048
30048
  this.reseedInterval = 281474976710656;
30049
30049
  };
30050
30050
  HmacDRBG.prototype._hmac = function hmac() {
30051
- return new hash.hmac(this.hash, this.K);
30051
+ return new hash2.hmac(this.hash, this.K);
30052
30052
  };
30053
30053
  HmacDRBG.prototype._update = function update(seed) {
30054
30054
  var kmac = this._hmac().update(this.V).update([0]);
@@ -30600,9 +30600,9 @@ var require_key2 = __commonJS({
30600
30600
  });
30601
30601
  cachedProperty(KeyPair, "privBytes", function privBytes() {
30602
30602
  var eddsa = this.eddsa;
30603
- var hash = this.hash();
30603
+ var hash2 = this.hash();
30604
30604
  var lastIx = eddsa.encodingLength - 1;
30605
- var a = hash.slice(0, eddsa.encodingLength);
30605
+ var a = hash2.slice(0, eddsa.encodingLength);
30606
30606
  a[0] &= 248;
30607
30607
  a[lastIx] &= 127;
30608
30608
  a[lastIx] |= 64;
@@ -30611,7 +30611,7 @@ var require_key2 = __commonJS({
30611
30611
  cachedProperty(KeyPair, "priv", function priv() {
30612
30612
  return this.eddsa.decodeInt(this.privBytes());
30613
30613
  });
30614
- cachedProperty(KeyPair, "hash", function hash() {
30614
+ cachedProperty(KeyPair, "hash", function hash2() {
30615
30615
  return this.eddsa.hash().update(this.secret()).digest();
30616
30616
  });
30617
30617
  cachedProperty(KeyPair, "messagePrefix", function messagePrefix() {
@@ -30691,7 +30691,7 @@ var require_eddsa = __commonJS({
30691
30691
  "../../node_modules/elliptic/lib/elliptic/eddsa/index.js"(exports2, module2) {
30692
30692
  "use strict";
30693
30693
  init_inject_buffer();
30694
- var hash = require_hash2();
30694
+ var hash2 = require_hash2();
30695
30695
  var curves = require_curves();
30696
30696
  var utils = require_utils3();
30697
30697
  var assert8 = utils.assert;
@@ -30708,7 +30708,7 @@ var require_eddsa = __commonJS({
30708
30708
  this.g.precompute(curve.n.bitLength() + 1);
30709
30709
  this.pointClass = curve.point().constructor;
30710
30710
  this.encodingLength = Math.ceil(curve.n.bitLength() / 8);
30711
- this.hash = hash.sha512;
30711
+ this.hash = hash2.sha512;
30712
30712
  }
30713
30713
  module2.exports = EDDSA;
30714
30714
  EDDSA.prototype.sign = function sign(message, secret) {
@@ -30734,10 +30734,10 @@ var require_eddsa = __commonJS({
30734
30734
  return RplusAh.eq(SG);
30735
30735
  };
30736
30736
  EDDSA.prototype.hashInt = function hashInt() {
30737
- var hash2 = this.hash();
30737
+ var hash3 = this.hash();
30738
30738
  for (var i = 0; i < arguments.length; i++)
30739
- hash2.update(arguments[i]);
30740
- return utils.intFromLE(hash2.digest()).umod(this.curve.n);
30739
+ hash3.update(arguments[i]);
30740
+ return utils.intFromLE(hash3.digest()).umod(this.curve.n);
30741
30741
  };
30742
30742
  EDDSA.prototype.keyFromPublic = function keyFromPublic(pub) {
30743
30743
  return KeyPair.fromPublic(this, pub);
@@ -35623,18 +35623,18 @@ var require_sign2 = __commonJS({
35623
35623
  var parseKeys = require_parse_asn1();
35624
35624
  var curves = require_curves2();
35625
35625
  var RSA_PKCS1_PADDING2 = 1;
35626
- function sign(hash, key, hashType, signType, tag) {
35626
+ function sign(hash2, key, hashType, signType, tag) {
35627
35627
  var priv = parseKeys(key);
35628
35628
  if (priv.curve) {
35629
35629
  if (signType !== "ecdsa" && signType !== "ecdsa/rsa") {
35630
35630
  throw new Error("wrong private key type");
35631
35631
  }
35632
- return ecSign(hash, priv);
35632
+ return ecSign(hash2, priv);
35633
35633
  } else if (priv.type === "dsa") {
35634
35634
  if (signType !== "dsa") {
35635
35635
  throw new Error("wrong private key type");
35636
35636
  }
35637
- return dsaSign(hash, priv, hashType);
35637
+ return dsaSign(hash2, priv, hashType);
35638
35638
  }
35639
35639
  if (signType !== "rsa" && signType !== "ecdsa/rsa") {
35640
35640
  throw new Error("wrong private key type");
@@ -35642,40 +35642,40 @@ var require_sign2 = __commonJS({
35642
35642
  if (key.padding !== void 0 && key.padding !== RSA_PKCS1_PADDING2) {
35643
35643
  throw new Error("illegal or unsupported padding mode");
35644
35644
  }
35645
- hash = Buffer2.concat([tag, hash]);
35645
+ hash2 = Buffer2.concat([tag, hash2]);
35646
35646
  var len = priv.modulus.byteLength();
35647
35647
  var pad2 = [0, 1];
35648
- while (hash.length + pad2.length + 1 < len) {
35648
+ while (hash2.length + pad2.length + 1 < len) {
35649
35649
  pad2.push(255);
35650
35650
  }
35651
35651
  pad2.push(0);
35652
35652
  var i = -1;
35653
- while (++i < hash.length) {
35654
- pad2.push(hash[i]);
35653
+ while (++i < hash2.length) {
35654
+ pad2.push(hash2[i]);
35655
35655
  }
35656
35656
  var out = crt(pad2, priv);
35657
35657
  return out;
35658
35658
  }
35659
- function ecSign(hash, priv) {
35659
+ function ecSign(hash2, priv) {
35660
35660
  var curveId = curves[priv.curve.join(".")];
35661
35661
  if (!curveId) {
35662
35662
  throw new Error("unknown curve " + priv.curve.join("."));
35663
35663
  }
35664
35664
  var curve = new EC(curveId);
35665
35665
  var key = curve.keyFromPrivate(priv.privateKey);
35666
- var out = key.sign(hash);
35666
+ var out = key.sign(hash2);
35667
35667
  return Buffer2.from(out.toDER());
35668
35668
  }
35669
- function dsaSign(hash, priv, algo) {
35669
+ function dsaSign(hash2, priv, algo) {
35670
35670
  var x = priv.params.priv_key;
35671
35671
  var p = priv.params.p;
35672
35672
  var q = priv.params.q;
35673
35673
  var g = priv.params.g;
35674
35674
  var r = new BN(0);
35675
35675
  var k;
35676
- var H2 = bits2int(hash, q).mod(q);
35676
+ var H2 = bits2int(hash2, q).mod(q);
35677
35677
  var s = false;
35678
- var kv = getKey(x, q, hash, algo);
35678
+ var kv = getKey(x, q, hash2, algo);
35679
35679
  while (s === false) {
35680
35680
  k = makeKey(q, kv, algo);
35681
35681
  r = makeR(g, k, p, q);
@@ -35706,14 +35706,14 @@ var require_sign2 = __commonJS({
35706
35706
  res = res.concat(r, [2, s.length], s);
35707
35707
  return Buffer2.from(res);
35708
35708
  }
35709
- function getKey(x, q, hash, algo) {
35709
+ function getKey(x, q, hash2, algo) {
35710
35710
  x = Buffer2.from(x.toArray());
35711
35711
  if (x.length < q.byteLength()) {
35712
35712
  var zeros = Buffer2.alloc(q.byteLength() - x.length);
35713
35713
  x = Buffer2.concat([zeros, x]);
35714
35714
  }
35715
- var hlen = hash.length;
35716
- var hbits = bits2octets(hash, q);
35715
+ var hlen = hash2.length;
35716
+ var hbits = bits2octets(hash2, q);
35717
35717
  var v = Buffer2.alloc(hlen);
35718
35718
  v.fill(1);
35719
35719
  var k = Buffer2.alloc(hlen);
@@ -35775,34 +35775,34 @@ var require_verify = __commonJS({
35775
35775
  var EC = require_elliptic().ec;
35776
35776
  var parseKeys = require_parse_asn1();
35777
35777
  var curves = require_curves2();
35778
- function verify(sig, hash, key, signType, tag) {
35778
+ function verify(sig, hash2, key, signType, tag) {
35779
35779
  var pub = parseKeys(key);
35780
35780
  if (pub.type === "ec") {
35781
35781
  if (signType !== "ecdsa" && signType !== "ecdsa/rsa") {
35782
35782
  throw new Error("wrong public key type");
35783
35783
  }
35784
- return ecVerify(sig, hash, pub);
35784
+ return ecVerify(sig, hash2, pub);
35785
35785
  } else if (pub.type === "dsa") {
35786
35786
  if (signType !== "dsa") {
35787
35787
  throw new Error("wrong public key type");
35788
35788
  }
35789
- return dsaVerify(sig, hash, pub);
35789
+ return dsaVerify(sig, hash2, pub);
35790
35790
  }
35791
35791
  if (signType !== "rsa" && signType !== "ecdsa/rsa") {
35792
35792
  throw new Error("wrong public key type");
35793
35793
  }
35794
- hash = Buffer2.concat([tag, hash]);
35794
+ hash2 = Buffer2.concat([tag, hash2]);
35795
35795
  var len = pub.modulus.byteLength();
35796
35796
  var pad2 = [1];
35797
35797
  var padNum = 0;
35798
- while (hash.length + pad2.length + 2 < len) {
35798
+ while (hash2.length + pad2.length + 2 < len) {
35799
35799
  pad2.push(255);
35800
35800
  padNum += 1;
35801
35801
  }
35802
35802
  pad2.push(0);
35803
35803
  var i = -1;
35804
- while (++i < hash.length) {
35805
- pad2.push(hash[i]);
35804
+ while (++i < hash2.length) {
35805
+ pad2.push(hash2[i]);
35806
35806
  }
35807
35807
  pad2 = Buffer2.from(pad2);
35808
35808
  var red = BN.mont(pub.modulus);
@@ -35820,16 +35820,16 @@ var require_verify = __commonJS({
35820
35820
  }
35821
35821
  return out === 0;
35822
35822
  }
35823
- function ecVerify(sig, hash, pub) {
35823
+ function ecVerify(sig, hash2, pub) {
35824
35824
  var curveId = curves[pub.data.algorithm.curve.join(".")];
35825
35825
  if (!curveId) {
35826
35826
  throw new Error("unknown curve " + pub.data.algorithm.curve.join("."));
35827
35827
  }
35828
35828
  var curve = new EC(curveId);
35829
35829
  var pubkey = pub.data.subjectPrivateKey.data;
35830
- return curve.verify(hash, sig, pubkey);
35830
+ return curve.verify(hash2, sig, pubkey);
35831
35831
  }
35832
- function dsaVerify(sig, hash, pub) {
35832
+ function dsaVerify(sig, hash2, pub) {
35833
35833
  var p = pub.data.p;
35834
35834
  var q = pub.data.q;
35835
35835
  var g = pub.data.g;
@@ -35841,7 +35841,7 @@ var require_verify = __commonJS({
35841
35841
  checkValue(r, q);
35842
35842
  var montp = BN.mont(p);
35843
35843
  var w = s.invm(q);
35844
- var v = g.toRed(montp).redPow(new BN(hash).mul(w).mod(q)).fromRed().mul(y.toRed(montp).redPow(r.mul(w).mod(q)).fromRed()).mod(p).mod(q);
35844
+ var v = g.toRed(montp).redPow(new BN(hash2).mul(w).mod(q)).fromRed().mul(y.toRed(montp).redPow(r.mul(w).mod(q)).fromRed()).mod(p).mod(q);
35845
35845
  return v.cmp(r) === 0;
35846
35846
  }
35847
35847
  function checkValue(b, q) {
@@ -35894,8 +35894,8 @@ var require_browser10 = __commonJS({
35894
35894
  };
35895
35895
  Sign.prototype.sign = function signMethod(key, enc) {
35896
35896
  this.end();
35897
- var hash = this._hash.digest();
35898
- var sig = sign(hash, key, this._hashType, this._signType, this._tag);
35897
+ var hash2 = this._hash.digest();
35898
+ var sig = sign(hash2, key, this._hashType, this._signType, this._tag);
35899
35899
  return enc ? sig.toString(enc) : sig;
35900
35900
  };
35901
35901
  function Verify(algorithm) {
@@ -35920,8 +35920,8 @@ var require_browser10 = __commonJS({
35920
35920
  Verify.prototype.verify = function verifyMethod(key, sig, enc) {
35921
35921
  var sigBuffer = typeof sig === "string" ? Buffer2.from(sig, enc) : sig;
35922
35922
  this.end();
35923
- var hash = this._hash.digest();
35924
- return verify(sigBuffer, hash, key, this._signType, this._tag);
35923
+ var hash2 = this._hash.digest();
35924
+ return verify(sigBuffer, hash2, key, this._signType, this._tag);
35925
35925
  };
35926
35926
  function createSign2(algorithm) {
35927
35927
  return new Sign(algorithm);
@@ -42372,8 +42372,8 @@ var require_errors = __commonJS({
42372
42372
  }
42373
42373
  return (hint === "string" ? String : Number)(input);
42374
42374
  }
42375
- function _classCallCheck(instance2, Constructor) {
42376
- if (!(instance2 instanceof Constructor)) {
42375
+ function _classCallCheck(instance3, Constructor) {
42376
+ if (!(instance3 instanceof Constructor)) {
42377
42377
  throw new TypeError("Cannot call a class as a function");
42378
42378
  }
42379
42379
  }
@@ -42604,8 +42604,8 @@ var require_assertion_error = __commonJS({
42604
42604
  }
42605
42605
  return obj;
42606
42606
  }
42607
- function _classCallCheck(instance2, Constructor) {
42608
- if (!(instance2 instanceof Constructor)) {
42607
+ function _classCallCheck(instance3, Constructor) {
42608
+ if (!(instance3 instanceof Constructor)) {
42609
42609
  throw new TypeError("Cannot call a class as a function");
42610
42610
  }
42611
42611
  }
@@ -42700,9 +42700,9 @@ var require_assertion_error = __commonJS({
42700
42700
  var a = [null];
42701
42701
  a.push.apply(a, args2);
42702
42702
  var Constructor = Function.bind.apply(Parent2, a);
42703
- var instance2 = new Constructor();
42704
- if (Class2) _setPrototypeOf(instance2, Class2.prototype);
42705
- return instance2;
42703
+ var instance3 = new Constructor();
42704
+ if (Class2) _setPrototypeOf(instance3, Class2.prototype);
42705
+ return instance3;
42706
42706
  };
42707
42707
  }
42708
42708
  return _construct.apply(null, arguments);
@@ -44119,8 +44119,8 @@ var require_assert = __commonJS({
44119
44119
  }
44120
44120
  return (hint === "string" ? String : Number)(input);
44121
44121
  }
44122
- function _classCallCheck(instance2, Constructor) {
44123
- if (!(instance2 instanceof Constructor)) {
44122
+ function _classCallCheck(instance3, Constructor) {
44123
+ if (!(instance3 instanceof Constructor)) {
44124
44124
  throw new TypeError("Cannot call a class as a function");
44125
44125
  }
44126
44126
  }
@@ -48069,7 +48069,7 @@ function identifyDERContent(buffer) {
48069
48069
 
48070
48070
  // ../node-opcua-crypto/source/key_operations/ca_signer_adapter.ts
48071
48071
  init_inject_buffer();
48072
- function caSignerFromKeyOperations(ops, hash = "SHA-256") {
48072
+ function caSignerFromKeyOperations(ops, hash2 = "SHA-256") {
48073
48073
  const getPublicKey = ops.getPublicKey;
48074
48074
  if (typeof getPublicKey !== "function") {
48075
48075
  throw new Error(
@@ -48077,10 +48077,10 @@ function caSignerFromKeyOperations(ops, hash = "SHA-256") {
48077
48077
  );
48078
48078
  }
48079
48079
  return {
48080
- algorithm: { name: "RSASSA-PKCS1-v1_5", hash: { name: hash } },
48080
+ algorithm: { name: "RSASSA-PKCS1-v1_5", hash: { name: hash2 } },
48081
48081
  getPublicKey: () => getPublicKey.call(ops),
48082
48082
  async sign(tbs) {
48083
- const signature = await ops.sign(tbs, { padding: "RSA-PKCS1-v1_5", hash });
48083
+ const signature = await ops.sign(tbs, { padding: "RSA-PKCS1-v1_5", hash: hash2 });
48084
48084
  const copy2 = new Uint8Array(signature.byteLength);
48085
48085
  copy2.set(signature);
48086
48086
  return copy2.buffer;
@@ -52859,8 +52859,8 @@ var AsnSchemaStorage = class {
52859
52859
  }
52860
52860
  asn1Item = new Asn1Type({ name });
52861
52861
  } else if (isConvertible(item.type)) {
52862
- const instance2 = new item.type();
52863
- asn1Item = instance2.toSchema(name);
52862
+ const instance3 = new item.type();
52863
+ asn1Item = instance3.toSchema(name);
52864
52864
  } else if (item.optional) {
52865
52865
  const itemSchema = this.get(item.type);
52866
52866
  if (itemSchema.type === AsnTypeTypes.Choice) {
@@ -57655,10 +57655,10 @@ var InternalDependencyContainer = (function() {
57655
57655
  useClass: to
57656
57656
  });
57657
57657
  };
57658
- InternalDependencyContainer2.prototype.registerInstance = function(token, instance2) {
57658
+ InternalDependencyContainer2.prototype.registerInstance = function(token, instance3) {
57659
57659
  this.ensureNotDisposed();
57660
57660
  return this.register(token, {
57661
- useValue: instance2
57661
+ useValue: instance3
57662
57662
  });
57663
57663
  };
57664
57664
  InternalDependencyContainer2.prototype.registerSingleton = function(from, to) {
@@ -57946,7 +57946,7 @@ var InternalDependencyContainer = (function() {
57946
57946
  return _this.resolve(target, context);
57947
57947
  });
57948
57948
  }
57949
- var instance2 = (function() {
57949
+ var instance3 = (function() {
57950
57950
  var paramInfo = typeInfo.get(ctor);
57951
57951
  if (!paramInfo || paramInfo.length === 0) {
57952
57952
  if (ctor.length === 0) {
@@ -57958,10 +57958,10 @@ var InternalDependencyContainer = (function() {
57958
57958
  var params = paramInfo.map(_this.resolveParams(context, ctor));
57959
57959
  return new (ctor.bind.apply(ctor, __spread([void 0], params)))();
57960
57960
  })();
57961
- if (isDisposable(instance2)) {
57962
- this.disposables.add(instance2);
57961
+ if (isDisposable(instance3)) {
57962
+ this.disposables.add(instance3);
57963
57963
  }
57964
- return instance2;
57964
+ return instance3;
57965
57965
  };
57966
57966
  InternalDependencyContainer2.prototype.resolveParams = function(context, ctor) {
57967
57967
  var _this = this;
@@ -58932,8 +58932,8 @@ var EcAlgorithm = EcAlgorithm_1 = class EcAlgorithm2 {
58932
58932
  switch (alg.name.toLowerCase()) {
58933
58933
  case ECDSA.toLowerCase():
58934
58934
  if ("hash" in alg) {
58935
- const hash = typeof alg.hash === "string" ? alg.hash : alg.hash.name;
58936
- switch (hash.toLowerCase()) {
58935
+ const hash2 = typeof alg.hash === "string" ? alg.hash : alg.hash.name;
58936
+ switch (hash2.toLowerCase()) {
58937
58937
  case "sha-1":
58938
58938
  return ecdsaWithSHA1;
58939
58939
  case "sha-256":
@@ -60680,8 +60680,8 @@ var AsnDefaultSignatureFormatter = class {
60680
60680
  };
60681
60681
  var RsaAlgorithm_1;
60682
60682
  var RsaAlgorithm = RsaAlgorithm_1 = class RsaAlgorithm2 {
60683
- static createPssParams(hash, saltLength) {
60684
- const hashAlgorithm = RsaAlgorithm_1.getHashAlgorithm(hash);
60683
+ static createPssParams(hash2, saltLength) {
60684
+ const hashAlgorithm = RsaAlgorithm_1.getHashAlgorithm(hash2);
60685
60685
  if (!hashAlgorithm) {
60686
60686
  return null;
60687
60687
  }
@@ -60708,15 +60708,15 @@ var RsaAlgorithm = RsaAlgorithm_1 = class RsaAlgorithm2 {
60708
60708
  switch (alg.name.toLowerCase()) {
60709
60709
  case "rsassa-pkcs1-v1_5":
60710
60710
  if ("hash" in alg) {
60711
- let hash;
60711
+ let hash2;
60712
60712
  if (typeof alg.hash === "string") {
60713
- hash = alg.hash;
60713
+ hash2 = alg.hash;
60714
60714
  } else if (alg.hash && typeof alg.hash === "object" && "name" in alg.hash && typeof alg.hash.name === "string") {
60715
- hash = alg.hash.name.toUpperCase();
60715
+ hash2 = alg.hash.name.toUpperCase();
60716
60716
  } else {
60717
60717
  throw new Error("Cannot get hash algorithm name");
60718
60718
  }
60719
- switch (hash.toLowerCase()) {
60719
+ switch (hash2.toLowerCase()) {
60720
60720
  case "sha-1":
60721
60721
  return new AlgorithmIdentifier({
60722
60722
  algorithm: id_sha1WithRSAEncryption,
@@ -62839,10 +62839,11 @@ function rsaLengthRsaPublicKey(key) {
62839
62839
  init_inject_buffer();
62840
62840
  var import_node_assert7 = __toESM(require_assert(), 1);
62841
62841
  init_node_crypto_shim();
62842
+ init_node_crypto_shim();
62842
62843
 
62843
62844
  // ../node-opcua-crypto/source/hmac_sha256.ts
62844
62845
  init_inject_buffer();
62845
- var K = new Uint32Array([
62846
+ var K = new Int32Array([
62846
62847
  1116352408,
62847
62848
  1899447441,
62848
62849
  3049323471,
@@ -62908,7 +62909,7 @@ var K = new Uint32Array([
62908
62909
  3204031479,
62909
62910
  3329325298
62910
62911
  ]);
62911
- var INITIAL_STATE = new Uint32Array([
62912
+ var INITIAL_STATE = new Int32Array([
62912
62913
  1779033703,
62913
62914
  3144134277,
62914
62915
  1013904242,
@@ -62919,8 +62920,8 @@ var INITIAL_STATE = new Uint32Array([
62919
62920
  1541459225
62920
62921
  ]);
62921
62922
  var BLOCK_SIZE = 64;
62922
- var W = new Uint32Array(64);
62923
- var H = new Uint32Array(8);
62923
+ var W = new Int32Array(64);
62924
+ var H = new Int32Array(8);
62924
62925
  var tail2 = new Uint8Array(2 * BLOCK_SIZE);
62925
62926
  var innerDigest = new Uint8Array(32);
62926
62927
  function compress(state, bytes, offset) {
@@ -62942,19 +62943,32 @@ function compress(state, bytes, offset) {
62942
62943
  let f2 = state[5];
62943
62944
  let g = state[6];
62944
62945
  let h = state[7];
62945
- for (let i = 0; i < 64; i++) {
62946
- const S1 = (e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7);
62947
- const t1 = h + S1 + (e & f2 ^ ~e & g) + K[i] + W[i] | 0;
62948
- const S0 = (a >>> 2 | a << 30) ^ (a >>> 13 | a << 19) ^ (a >>> 22 | a << 10);
62949
- const t2 = S0 + (a & b ^ a & c ^ b & c) | 0;
62950
- h = g;
62951
- g = f2;
62952
- f2 = e;
62953
- e = d + t1 | 0;
62954
- d = c;
62955
- c = b;
62956
- b = a;
62957
- a = t1 + t2 | 0;
62946
+ let t1 = 0;
62947
+ for (let i = 0; i < 64; i += 8) {
62948
+ t1 = h + ((e >>> 6 | e << 26) ^ (e >>> 11 | e << 21) ^ (e >>> 25 | e << 7)) + (e & f2 ^ ~e & g) + K[i + 0] + W[i + 0] | 0;
62949
+ d = d + t1 | 0;
62950
+ h = t1 + ((a >>> 2 | a << 30) ^ (a >>> 13 | a << 19) ^ (a >>> 22 | a << 10)) + (a & b ^ a & c ^ b & c) | 0;
62951
+ t1 = g + ((d >>> 6 | d << 26) ^ (d >>> 11 | d << 21) ^ (d >>> 25 | d << 7)) + (d & e ^ ~d & f2) + K[i + 1] + W[i + 1] | 0;
62952
+ c = c + t1 | 0;
62953
+ g = t1 + ((h >>> 2 | h << 30) ^ (h >>> 13 | h << 19) ^ (h >>> 22 | h << 10)) + (h & a ^ h & b ^ a & b) | 0;
62954
+ t1 = f2 + ((c >>> 6 | c << 26) ^ (c >>> 11 | c << 21) ^ (c >>> 25 | c << 7)) + (c & d ^ ~c & e) + K[i + 2] + W[i + 2] | 0;
62955
+ b = b + t1 | 0;
62956
+ f2 = t1 + ((g >>> 2 | g << 30) ^ (g >>> 13 | g << 19) ^ (g >>> 22 | g << 10)) + (g & h ^ g & a ^ h & a) | 0;
62957
+ t1 = e + ((b >>> 6 | b << 26) ^ (b >>> 11 | b << 21) ^ (b >>> 25 | b << 7)) + (b & c ^ ~b & d) + K[i + 3] + W[i + 3] | 0;
62958
+ a = a + t1 | 0;
62959
+ e = t1 + ((f2 >>> 2 | f2 << 30) ^ (f2 >>> 13 | f2 << 19) ^ (f2 >>> 22 | f2 << 10)) + (f2 & g ^ f2 & h ^ g & h) | 0;
62960
+ t1 = d + ((a >>> 6 | a << 26) ^ (a >>> 11 | a << 21) ^ (a >>> 25 | a << 7)) + (a & b ^ ~a & c) + K[i + 4] + W[i + 4] | 0;
62961
+ h = h + t1 | 0;
62962
+ d = t1 + ((e >>> 2 | e << 30) ^ (e >>> 13 | e << 19) ^ (e >>> 22 | e << 10)) + (e & f2 ^ e & g ^ f2 & g) | 0;
62963
+ t1 = c + ((h >>> 6 | h << 26) ^ (h >>> 11 | h << 21) ^ (h >>> 25 | h << 7)) + (h & a ^ ~h & b) + K[i + 5] + W[i + 5] | 0;
62964
+ g = g + t1 | 0;
62965
+ c = t1 + ((d >>> 2 | d << 30) ^ (d >>> 13 | d << 19) ^ (d >>> 22 | d << 10)) + (d & e ^ d & f2 ^ e & f2) | 0;
62966
+ t1 = b + ((g >>> 6 | g << 26) ^ (g >>> 11 | g << 21) ^ (g >>> 25 | g << 7)) + (g & h ^ ~g & a) + K[i + 6] + W[i + 6] | 0;
62967
+ f2 = f2 + t1 | 0;
62968
+ b = t1 + ((c >>> 2 | c << 30) ^ (c >>> 13 | c << 19) ^ (c >>> 22 | c << 10)) + (c & d ^ c & e ^ d & e) | 0;
62969
+ t1 = a + ((f2 >>> 6 | f2 << 26) ^ (f2 >>> 11 | f2 << 21) ^ (f2 >>> 25 | f2 << 7)) + (f2 & g ^ ~f2 & h) + K[i + 7] + W[i + 7] | 0;
62970
+ e = e + t1 | 0;
62971
+ a = t1 + ((b >>> 2 | b << 30) ^ (b >>> 13 | b << 19) ^ (b >>> 22 | b << 10)) + (b & c ^ b & d ^ c & d) | 0;
62958
62972
  }
62959
62973
  state[0] = state[0] + a | 0;
62960
62974
  state[1] = state[1] + b | 0;
@@ -62972,8 +62986,10 @@ function finish(state, data, out) {
62972
62986
  compress(state, data, offset);
62973
62987
  }
62974
62988
  const rest = length - offset;
62975
- tail2.fill(0);
62976
- tail2.set(data.subarray(offset), 0);
62989
+ for (let i = 0; i < rest; i++) {
62990
+ tail2[i] = data[offset + i];
62991
+ }
62992
+ tail2.fill(0, rest);
62977
62993
  tail2[rest] = 128;
62978
62994
  const end = rest + 9 > BLOCK_SIZE ? 2 * BLOCK_SIZE : BLOCK_SIZE;
62979
62995
  const bits = (BLOCK_SIZE + length) * 8;
@@ -62995,8 +63011,8 @@ function finish(state, data, out) {
62995
63011
  }
62996
63012
  }
62997
63013
  var KeyedHmacSha256 = class {
62998
- #inner = new Uint32Array(8);
62999
- #outer = new Uint32Array(8);
63014
+ #inner = new Int32Array(8);
63015
+ #outer = new Int32Array(8);
63000
63016
  /** @param key at most 64 bytes, as every derived signing key of the OPC UA security policies */
63001
63017
  constructor(key) {
63002
63018
  if (key.length > BLOCK_SIZE) {
@@ -63022,6 +63038,97 @@ var KeyedHmacSha256 = class {
63022
63038
  }
63023
63039
  };
63024
63040
 
63041
+ // ../node-opcua-crypto/source/hmac_sha256_wasm.ts
63042
+ init_inject_buffer();
63043
+
63044
+ // ../node-opcua-crypto/source/sha256_wasm_module.ts
63045
+ init_inject_buffer();
63046
+ var sha256WasmModuleBase64 = "AGFzbQEAAAABDQJgAn9/AGAEf39/fwADAwIAAQUDAQACBxwDBm1lbW9yeQIACGNvbXByZXNzAAAEaG1hYwABCr1HArNBAUl/IAEoAgAhAiACQQh3Qf+B/AdxIAJBCHhBgP6DeHFyIQIgASgCBCEDIANBCHdB/4H8B3EgA0EIeEGA/oN4cXIhAyABKAIIIQQgBEEId0H/gfwHcSAEQQh4QYD+g3hxciEEIAEoAgwhBSAFQQh3Qf+B/AdxIAVBCHhBgP6DeHFyIQUgASgCECEGIAZBCHdB/4H8B3EgBkEIeEGA/oN4cXIhBiABKAIUIQcgB0EId0H/gfwHcSAHQQh4QYD+g3hxciEHIAEoAhghCCAIQQh3Qf+B/AdxIAhBCHhBgP6DeHFyIQggASgCHCEJIAlBCHdB/4H8B3EgCUEIeEGA/oN4cXIhCSABKAIgIQogCkEId0H/gfwHcSAKQQh4QYD+g3hxciEKIAEoAiQhCyALQQh3Qf+B/AdxIAtBCHhBgP6DeHFyIQsgASgCKCEMIAxBCHdB/4H8B3EgDEEIeEGA/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s=";
63047
+
63048
+ // ../node-opcua-crypto/source/hmac_sha256_wasm.ts
63049
+ var STATE = 0;
63050
+ var OUTER = 64;
63051
+ var OUT = 128;
63052
+ var KEY = 256;
63053
+ var MESSAGE = 1024;
63054
+ var IV = [1779033703, 3144134277, 1013904242, 2773480762, 1359893119, 2600822924, 528734635, 1541459225];
63055
+ var instance2;
63056
+ function sha256Wasm() {
63057
+ if (instance2 !== void 0) {
63058
+ return instance2;
63059
+ }
63060
+ try {
63061
+ const module2 = new WebAssembly.Module(import_buffer.Buffer.from(sha256WasmModuleBase64, "base64"));
63062
+ const exports2 = new WebAssembly.Instance(module2, {}).exports;
63063
+ const memory = exports2.memory;
63064
+ instance2 = { ...exports2, bytes: new Uint8Array(memory.buffer), words: new Int32Array(memory.buffer) };
63065
+ instance2.bytes.fill(0, OUTER + 32, OUTER + 64);
63066
+ instance2.bytes[OUTER + 32] = 128;
63067
+ instance2.bytes[OUTER + 62] = 3;
63068
+ } catch {
63069
+ instance2 = null;
63070
+ }
63071
+ return instance2;
63072
+ }
63073
+ function ensureCapacity(wasm, size) {
63074
+ const needed = MESSAGE + size;
63075
+ if (needed > wasm.memory.buffer.byteLength) {
63076
+ wasm.memory.grow(Math.ceil((needed - wasm.memory.buffer.byteLength) / 65536));
63077
+ wasm.bytes = new Uint8Array(wasm.memory.buffer);
63078
+ wasm.words = new Int32Array(wasm.memory.buffer);
63079
+ }
63080
+ }
63081
+ var WasmHmacSha256 = class _WasmHmacSha256 {
63082
+ #midstates = new Int32Array(16);
63083
+ /** whether WebAssembly compiles here (compiling the module on the first call) */
63084
+ static available() {
63085
+ return sha256Wasm() !== null;
63086
+ }
63087
+ /** null when WebAssembly is not available: use KeyedHmacSha256 */
63088
+ static create(key) {
63089
+ const wasm = sha256Wasm();
63090
+ return wasm ? new _WasmHmacSha256(wasm, key) : null;
63091
+ }
63092
+ constructor(wasm, key) {
63093
+ if (key.length > 64) {
63094
+ throw new Error("WasmHmacSha256: keys longer than 64 bytes are not supported");
63095
+ }
63096
+ for (const [pad2, at] of [
63097
+ [54, 0],
63098
+ [92, 8]
63099
+ ]) {
63100
+ for (let i = 0; i < 64; i++) {
63101
+ wasm.bytes[MESSAGE + i] = (i < key.length ? key[i] : 0) ^ pad2;
63102
+ }
63103
+ wasm.words.set(IV, STATE >> 2);
63104
+ wasm.compress(STATE, MESSAGE);
63105
+ this.#midstates.set(wasm.words.subarray(STATE >> 2, (STATE >> 2) + 8), at);
63106
+ }
63107
+ }
63108
+ digest(message) {
63109
+ const wasm = instance2;
63110
+ const length = message.length;
63111
+ const blocks = Math.floor((length + 9 + 63) / 64);
63112
+ ensureCapacity(wasm, blocks * 64);
63113
+ const bytes = wasm.bytes;
63114
+ wasm.words.set(this.#midstates, KEY >> 2);
63115
+ bytes.set(message, MESSAGE);
63116
+ const end = MESSAGE + blocks * 64;
63117
+ bytes[MESSAGE + length] = 128;
63118
+ bytes.fill(0, MESSAGE + length + 1, end - 5);
63119
+ const bits = (64 + length) * 8;
63120
+ bytes[end - 5] = Math.floor(bits / 4294967296);
63121
+ bytes[end - 4] = bits >>> 24;
63122
+ bytes[end - 3] = bits >>> 16;
63123
+ bytes[end - 2] = bits >>> 8;
63124
+ bytes[end - 1] = bits;
63125
+ wasm.hmac(KEY, MESSAGE, blocks, OUT);
63126
+ const signature = import_buffer.Buffer.allocUnsafe(32);
63127
+ signature.set(bytes.subarray(OUT, OUT + 32));
63128
+ return signature;
63129
+ }
63130
+ };
63131
+
63025
63132
  // ../node-opcua-crypto/source/derived_keys.ts
63026
63133
  function HMAC_HASH(sha1or256, secret, message) {
63027
63134
  return createHmac(sha1or256, secret).update(message).digest();
@@ -63180,22 +63287,66 @@ function decryptBufferWithDerivedKeys(buffer, derivedKeys) {
63180
63287
  return tail3.length === 0 ? decrypted : import_buffer.Buffer.concat([decrypted, tail3]);
63181
63288
  }
63182
63289
  var KEYED_HMAC_MAX_MESSAGE = 256;
63290
+ var WASM_HMAC_MAX_MESSAGE = 512;
63183
63291
  var keyedHmacs = /* @__PURE__ */ new WeakMap();
63292
+ var oneShotHash = void 0;
63293
+ var HMAC_BLOCK_SIZE = 64;
63294
+ var hmacPads = /* @__PURE__ */ new WeakMap();
63295
+ var innerScratch = import_buffer.Buffer.alloc(0);
63296
+ function hmacPadsOf(signingKey, digestLength) {
63297
+ let pads = hmacPads.get(signingKey);
63298
+ if (!pads) {
63299
+ const innerPad = import_buffer.Buffer.alloc(HMAC_BLOCK_SIZE, 54);
63300
+ const outer = import_buffer.Buffer.alloc(HMAC_BLOCK_SIZE + digestLength, 0);
63301
+ outer.fill(92, 0, HMAC_BLOCK_SIZE);
63302
+ for (let i = 0; i < signingKey.length; i++) {
63303
+ innerPad[i] ^= signingKey[i];
63304
+ outer[i] ^= signingKey[i];
63305
+ }
63306
+ pads = { innerPad, outer };
63307
+ hmacPads.set(signingKey, pads);
63308
+ }
63309
+ return pads;
63310
+ }
63311
+ function hmacWithOneShotHash(hash2, algorithm, signingKey, message, digestLength) {
63312
+ const pads = hmacPadsOf(signingKey, digestLength);
63313
+ const length = HMAC_BLOCK_SIZE + message.length;
63314
+ if (innerScratch.length < length) {
63315
+ innerScratch = import_buffer.Buffer.alloc(Math.max(length, 2 * innerScratch.length));
63316
+ }
63317
+ pads.innerPad.copy(innerScratch, 0);
63318
+ message.copy(innerScratch, HMAC_BLOCK_SIZE);
63319
+ hash2(algorithm, innerScratch.subarray(0, length), "buffer").copy(pads.outer, HMAC_BLOCK_SIZE);
63320
+ return hash2(algorithm, pads.outer, "buffer");
63321
+ }
63184
63322
  function keyedHmacOf(signingKey) {
63185
63323
  let hmac = keyedHmacs.get(signingKey);
63186
63324
  if (!hmac) {
63187
- hmac = new KeyedHmacSha256(signingKey);
63325
+ hmac = (canKeepCiphers ? WasmHmacSha256.create(signingKey) : null) ?? new KeyedHmacSha256(signingKey);
63188
63326
  keyedHmacs.set(signingKey, hmac);
63189
63327
  }
63190
63328
  return hmac;
63191
63329
  }
63330
+ function keyedHmacMaxMessage() {
63331
+ return canKeepCiphers && WasmHmacSha256.available() ? WASM_HMAC_MAX_MESSAGE : KEYED_HMAC_MAX_MESSAGE;
63332
+ }
63192
63333
  function makeMessageChunkSignatureWithDerivedKeys(message, derivedKeys) {
63193
63334
  (0, import_node_assert7.default)(import_buffer.Buffer.isBuffer(message));
63194
63335
  (0, import_node_assert7.default)(import_buffer.Buffer.isBuffer(derivedKeys.signingKey));
63195
63336
  (0, import_node_assert7.default)(typeof derivedKeys.sha1or256 === "string");
63196
63337
  (0, import_node_assert7.default)(derivedKeys.sha1or256 === "SHA1" || derivedKeys.sha1or256 === "SHA256");
63197
- const useKeyedHmac = derivedKeys.sha1or256 === "SHA256" && message.length <= KEYED_HMAC_MAX_MESSAGE && derivedKeys.signingKey.length <= 64;
63198
- const signature = useKeyedHmac ? keyedHmacOf(derivedKeys.signingKey).digest(message) : createHmac(derivedKeys.sha1or256, keyObjectOf(derivedKeys.signingKey)).update(message).digest();
63338
+ const signingKey = derivedKeys.signingKey;
63339
+ const sha2562 = derivedKeys.sha1or256 === "SHA256";
63340
+ let signature;
63341
+ if (signingKey.length > HMAC_BLOCK_SIZE) {
63342
+ signature = createHmac(derivedKeys.sha1or256, keyObjectOf(signingKey)).update(message).digest();
63343
+ } else if (sha2562 && message.length <= keyedHmacMaxMessage()) {
63344
+ signature = keyedHmacOf(signingKey).digest(message);
63345
+ } else if (oneShotHash) {
63346
+ signature = hmacWithOneShotHash(oneShotHash, sha2562 ? "sha256" : "sha1", signingKey, message, sha2562 ? 32 : 20);
63347
+ } else {
63348
+ signature = createHmac(derivedKeys.sha1or256, keyObjectOf(signingKey)).update(message).digest();
63349
+ }
63199
63350
  (0, import_node_assert7.default)(signature.length === derivedKeys.signatureLength);
63200
63351
  return signature;
63201
63352
  }
@@ -63216,8 +63367,8 @@ function verifyChunkSignatureWithDerivedKeys(chunk, derivedKeys) {
63216
63367
  // ../node-opcua-crypto/source/key_operations/local_key_operations.ts
63217
63368
  init_inject_buffer();
63218
63369
  init_node_crypto_shim();
63219
- function toNodeHash(hash) {
63220
- return hash === "SHA-1" ? "RSA-SHA1" : "RSA-SHA256";
63370
+ function toNodeHash(hash2) {
63371
+ return hash2 === "SHA-1" ? "RSA-SHA1" : "RSA-SHA256";
63221
63372
  }
63222
63373
  var LocalKeyOperations = class {
63223
63374
  #key;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-opcua-crypto-web",
3
- "version": "6.2.2",
3
+ "version": "6.2.3",
4
4
  "type": "module",
5
5
  "description": "Pre-bundled, zero-config browser build of node-opcua-crypto",
6
6
  "//why": "This package exists so node-opcua-crypto can stay lean for Node. The pre-bundled browser build inlines its polyfills (crypto-browserify, stream-browserify, ...) and weighs ~344 KB gzip - more than the entire node-opcua-crypto tarball. Shipping it there would make every Node consumer download a browser bundle they never import. Browser consumers install this package explicitly, or let node-opcua-crypto's \"browser\" export condition redirect to it (see node-opcua-crypto/browser/index.js).",
@@ -44,7 +44,7 @@
44
44
  "crypto-browserify": "^3.12.1",
45
45
  "esbuild": "^0.28.2",
46
46
  "events": "^3.3.0",
47
- "node-opcua-crypto": "^6.2.2",
47
+ "node-opcua-crypto": "^6.2.3",
48
48
  "path-browserify": "^1.0.1",
49
49
  "process": "^0.11.10",
50
50
  "stream-browserify": "^3.0.0",
@@ -67,5 +67,5 @@
67
67
  "LICENSE",
68
68
  "README.md"
69
69
  ],
70
- "gitHead": "969a5bd036f35582e564872954054fe0307b9040"
70
+ "gitHead": "5cdfb5092ff52241b75542094458a4975e75e8e4"
71
71
  }