@parcel/utils 2.4.1 → 2.5.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/lib/index.js +1638 -1636
- package/lib/index.js.map +1 -1
- package/package.json +7 -8
- package/src/schema.js +2 -2
package/lib/index.js
CHANGED
|
@@ -1891,54 +1891,54 @@ var $9dYMx = parcelRequire("9dYMx");
|
|
|
1891
1891
|
var $gbrcb = parcelRequire("gbrcb");
|
|
1892
1892
|
|
|
1893
1893
|
var $636jz = parcelRequire("636jz");
|
|
1894
|
-
const CTRL_I =
|
|
1895
|
-
const CTRL_J =
|
|
1896
|
-
const CTRL_M =
|
|
1897
|
-
const CTRL_CHAR_BOUNDARY =
|
|
1894
|
+
const CTRL_I = 0x09;
|
|
1895
|
+
const CTRL_J = 0x0A;
|
|
1896
|
+
const CTRL_M = 0x0D;
|
|
1897
|
+
const CTRL_CHAR_BOUNDARY = 0x1F // the last non-character in the latin1 region of unicode, except DEL
|
|
1898
1898
|
;
|
|
1899
|
-
const CHAR_SP =
|
|
1900
|
-
const CHAR_QUOT =
|
|
1901
|
-
const CHAR_NUM =
|
|
1902
|
-
const CHAR_APOS =
|
|
1903
|
-
const CHAR_PLUS =
|
|
1904
|
-
const CHAR_COMMA =
|
|
1905
|
-
const CHAR_HYPHEN =
|
|
1906
|
-
const CHAR_PERIOD =
|
|
1907
|
-
const CHAR_0 =
|
|
1908
|
-
const CHAR_1 =
|
|
1909
|
-
const CHAR_7 =
|
|
1910
|
-
const CHAR_9 =
|
|
1911
|
-
const CHAR_COLON =
|
|
1912
|
-
const CHAR_EQUALS =
|
|
1913
|
-
const CHAR_A =
|
|
1914
|
-
const CHAR_E =
|
|
1915
|
-
const CHAR_F =
|
|
1916
|
-
const CHAR_T =
|
|
1917
|
-
const CHAR_U =
|
|
1918
|
-
const CHAR_Z =
|
|
1919
|
-
const CHAR_LOWBAR =
|
|
1920
|
-
const CHAR_a =
|
|
1921
|
-
const CHAR_b =
|
|
1922
|
-
const CHAR_e =
|
|
1923
|
-
const CHAR_f =
|
|
1924
|
-
const CHAR_i =
|
|
1925
|
-
const CHAR_l =
|
|
1926
|
-
const CHAR_n =
|
|
1927
|
-
const CHAR_o =
|
|
1928
|
-
const CHAR_r =
|
|
1929
|
-
const CHAR_s =
|
|
1930
|
-
const CHAR_t =
|
|
1931
|
-
const CHAR_u =
|
|
1932
|
-
const CHAR_x =
|
|
1933
|
-
const CHAR_z =
|
|
1934
|
-
const CHAR_LCUB =
|
|
1935
|
-
const CHAR_RCUB =
|
|
1936
|
-
const CHAR_LSQB =
|
|
1937
|
-
const CHAR_BSOL =
|
|
1938
|
-
const CHAR_RSQB =
|
|
1939
|
-
const CHAR_DEL =
|
|
1940
|
-
const SURROGATE_FIRST =
|
|
1941
|
-
const SURROGATE_LAST =
|
|
1899
|
+
const CHAR_SP = 0x20;
|
|
1900
|
+
const CHAR_QUOT = 0x22;
|
|
1901
|
+
const CHAR_NUM = 0x23;
|
|
1902
|
+
const CHAR_APOS = 0x27;
|
|
1903
|
+
const CHAR_PLUS = 0x2B;
|
|
1904
|
+
const CHAR_COMMA = 0x2C;
|
|
1905
|
+
const CHAR_HYPHEN = 0x2D;
|
|
1906
|
+
const CHAR_PERIOD = 0x2E;
|
|
1907
|
+
const CHAR_0 = 0x30;
|
|
1908
|
+
const CHAR_1 = 0x31;
|
|
1909
|
+
const CHAR_7 = 0x37;
|
|
1910
|
+
const CHAR_9 = 0x39;
|
|
1911
|
+
const CHAR_COLON = 0x3A;
|
|
1912
|
+
const CHAR_EQUALS = 0x3D;
|
|
1913
|
+
const CHAR_A = 0x41;
|
|
1914
|
+
const CHAR_E = 0x45;
|
|
1915
|
+
const CHAR_F = 0x46;
|
|
1916
|
+
const CHAR_T = 0x54;
|
|
1917
|
+
const CHAR_U = 0x55;
|
|
1918
|
+
const CHAR_Z = 0x5A;
|
|
1919
|
+
const CHAR_LOWBAR = 0x5F;
|
|
1920
|
+
const CHAR_a = 0x61;
|
|
1921
|
+
const CHAR_b = 0x62;
|
|
1922
|
+
const CHAR_e = 0x65;
|
|
1923
|
+
const CHAR_f = 0x66;
|
|
1924
|
+
const CHAR_i = 0x69;
|
|
1925
|
+
const CHAR_l = 0x6C;
|
|
1926
|
+
const CHAR_n = 0x6E;
|
|
1927
|
+
const CHAR_o = 0x6F;
|
|
1928
|
+
const CHAR_r = 0x72;
|
|
1929
|
+
const CHAR_s = 0x73;
|
|
1930
|
+
const CHAR_t = 0x74;
|
|
1931
|
+
const CHAR_u = 0x75;
|
|
1932
|
+
const CHAR_x = 0x78;
|
|
1933
|
+
const CHAR_z = 0x7A;
|
|
1934
|
+
const CHAR_LCUB = 0x7B;
|
|
1935
|
+
const CHAR_RCUB = 0x7D;
|
|
1936
|
+
const CHAR_LSQB = 0x5B;
|
|
1937
|
+
const CHAR_BSOL = 0x5C;
|
|
1938
|
+
const CHAR_RSQB = 0x5D;
|
|
1939
|
+
const CHAR_DEL = 0x7F;
|
|
1940
|
+
const SURROGATE_FIRST = 0xD800;
|
|
1941
|
+
const SURROGATE_LAST = 0xDFFF;
|
|
1942
1942
|
const escapes = {
|
|
1943
1943
|
[CHAR_b]: '\u0008',
|
|
1944
1944
|
[CHAR_t]: '\u0009',
|
|
@@ -2846,7 +2846,7 @@ function makeParserClass(Parser) {
|
|
|
2846
2846
|
});
|
|
2847
2847
|
parcelRequire.register("8E52p", function(module, exports) {
|
|
2848
2848
|
'use strict';
|
|
2849
|
-
const $64b5f7964fcf57fb$var$ParserEND =
|
|
2849
|
+
const $64b5f7964fcf57fb$var$ParserEND = 0x110000;
|
|
2850
2850
|
class $64b5f7964fcf57fb$var$ParserError extends Error {
|
|
2851
2851
|
/* istanbul ignore next */ constructor(msg, filename, linenumber){
|
|
2852
2852
|
super('[ParserError] ' + msg, filename, linenumber);
|
|
@@ -2888,7 +2888,7 @@ class $64b5f7964fcf57fb$var$Parser {
|
|
|
2888
2888
|
this._buf = null;
|
|
2889
2889
|
}
|
|
2890
2890
|
nextChar() {
|
|
2891
|
-
if (this.char ===
|
|
2891
|
+
if (this.char === 0x0A) {
|
|
2892
2892
|
++this.line;
|
|
2893
2893
|
this.col = -1;
|
|
2894
2894
|
}
|
|
@@ -3729,11 +3729,11 @@ var $53abc20733f4b0dc$var$_reverseAlphabets = {};
|
|
|
3729
3729
|
if (value === undefined) return;
|
|
3730
3730
|
for(var j = 0, carry = value; j < bytes.length; ++j){
|
|
3731
3731
|
carry += bytes[j] * base;
|
|
3732
|
-
bytes[j] = carry &
|
|
3732
|
+
bytes[j] = carry & 0xff;
|
|
3733
3733
|
carry >>= 8;
|
|
3734
3734
|
}
|
|
3735
3735
|
while(carry > 0){
|
|
3736
|
-
bytes.push(carry &
|
|
3736
|
+
bytes.push(carry & 0xff);
|
|
3737
3737
|
carry >>= 8;
|
|
3738
3738
|
}
|
|
3739
3739
|
}
|
|
@@ -4008,7 +4008,7 @@ $4143f576ffbec226$var$util.ByteStringBuffer.prototype._optimizeConstructedString
|
|
|
4008
4008
|
*
|
|
4009
4009
|
* @return this buffer.
|
|
4010
4010
|
*/ $4143f576ffbec226$var$util.ByteStringBuffer.prototype.putInt16 = function(i) {
|
|
4011
|
-
return this.putBytes(String.fromCharCode(i >> 8 &
|
|
4011
|
+
return this.putBytes(String.fromCharCode(i >> 8 & 0xFF) + String.fromCharCode(i & 0xFF));
|
|
4012
4012
|
};
|
|
4013
4013
|
/**
|
|
4014
4014
|
* Puts a 24-bit integer in this buffer in big-endian order.
|
|
@@ -4017,7 +4017,7 @@ $4143f576ffbec226$var$util.ByteStringBuffer.prototype._optimizeConstructedString
|
|
|
4017
4017
|
*
|
|
4018
4018
|
* @return this buffer.
|
|
4019
4019
|
*/ $4143f576ffbec226$var$util.ByteStringBuffer.prototype.putInt24 = function(i) {
|
|
4020
|
-
return this.putBytes(String.fromCharCode(i >> 16 &
|
|
4020
|
+
return this.putBytes(String.fromCharCode(i >> 16 & 0xFF) + String.fromCharCode(i >> 8 & 0xFF) + String.fromCharCode(i & 0xFF));
|
|
4021
4021
|
};
|
|
4022
4022
|
/**
|
|
4023
4023
|
* Puts a 32-bit integer in this buffer in big-endian order.
|
|
@@ -4026,7 +4026,7 @@ $4143f576ffbec226$var$util.ByteStringBuffer.prototype._optimizeConstructedString
|
|
|
4026
4026
|
*
|
|
4027
4027
|
* @return this buffer.
|
|
4028
4028
|
*/ $4143f576ffbec226$var$util.ByteStringBuffer.prototype.putInt32 = function(i) {
|
|
4029
|
-
return this.putBytes(String.fromCharCode(i >> 24 &
|
|
4029
|
+
return this.putBytes(String.fromCharCode(i >> 24 & 0xFF) + String.fromCharCode(i >> 16 & 0xFF) + String.fromCharCode(i >> 8 & 0xFF) + String.fromCharCode(i & 0xFF));
|
|
4030
4030
|
};
|
|
4031
4031
|
/**
|
|
4032
4032
|
* Puts a 16-bit integer in this buffer in little-endian order.
|
|
@@ -4035,7 +4035,7 @@ $4143f576ffbec226$var$util.ByteStringBuffer.prototype._optimizeConstructedString
|
|
|
4035
4035
|
*
|
|
4036
4036
|
* @return this buffer.
|
|
4037
4037
|
*/ $4143f576ffbec226$var$util.ByteStringBuffer.prototype.putInt16Le = function(i) {
|
|
4038
|
-
return this.putBytes(String.fromCharCode(i &
|
|
4038
|
+
return this.putBytes(String.fromCharCode(i & 0xFF) + String.fromCharCode(i >> 8 & 0xFF));
|
|
4039
4039
|
};
|
|
4040
4040
|
/**
|
|
4041
4041
|
* Puts a 24-bit integer in this buffer in little-endian order.
|
|
@@ -4044,7 +4044,7 @@ $4143f576ffbec226$var$util.ByteStringBuffer.prototype._optimizeConstructedString
|
|
|
4044
4044
|
*
|
|
4045
4045
|
* @return this buffer.
|
|
4046
4046
|
*/ $4143f576ffbec226$var$util.ByteStringBuffer.prototype.putInt24Le = function(i) {
|
|
4047
|
-
return this.putBytes(String.fromCharCode(i &
|
|
4047
|
+
return this.putBytes(String.fromCharCode(i & 0xFF) + String.fromCharCode(i >> 8 & 0xFF) + String.fromCharCode(i >> 16 & 0xFF));
|
|
4048
4048
|
};
|
|
4049
4049
|
/**
|
|
4050
4050
|
* Puts a 32-bit integer in this buffer in little-endian order.
|
|
@@ -4053,7 +4053,7 @@ $4143f576ffbec226$var$util.ByteStringBuffer.prototype._optimizeConstructedString
|
|
|
4053
4053
|
*
|
|
4054
4054
|
* @return this buffer.
|
|
4055
4055
|
*/ $4143f576ffbec226$var$util.ByteStringBuffer.prototype.putInt32Le = function(i) {
|
|
4056
|
-
return this.putBytes(String.fromCharCode(i &
|
|
4056
|
+
return this.putBytes(String.fromCharCode(i & 0xFF) + String.fromCharCode(i >> 8 & 0xFF) + String.fromCharCode(i >> 16 & 0xFF) + String.fromCharCode(i >> 24 & 0xFF));
|
|
4057
4057
|
};
|
|
4058
4058
|
/**
|
|
4059
4059
|
* Puts an n-bit integer in this buffer in big-endian order.
|
|
@@ -4067,7 +4067,7 @@ $4143f576ffbec226$var$util.ByteStringBuffer.prototype._optimizeConstructedString
|
|
|
4067
4067
|
var bytes = '';
|
|
4068
4068
|
do {
|
|
4069
4069
|
n -= 8;
|
|
4070
|
-
bytes += String.fromCharCode(i >> n &
|
|
4070
|
+
bytes += String.fromCharCode(i >> n & 0xFF);
|
|
4071
4071
|
}while (n > 0)
|
|
4072
4072
|
return this.putBytes(bytes);
|
|
4073
4073
|
};
|
|
@@ -4546,8 +4546,8 @@ $4143f576ffbec226$var$util.DataBuffer = $4143f576ffbec226$var$DataBuffer;
|
|
|
4546
4546
|
* @return this buffer.
|
|
4547
4547
|
*/ $4143f576ffbec226$var$util.DataBuffer.prototype.putInt24 = function(i) {
|
|
4548
4548
|
this.accommodate(3);
|
|
4549
|
-
this.data.setInt16(this.write, i >> 8 &
|
|
4550
|
-
this.data.setInt8(this.write, i >> 16 &
|
|
4549
|
+
this.data.setInt16(this.write, i >> 8 & 0xFFFF);
|
|
4550
|
+
this.data.setInt8(this.write, i >> 16 & 0xFF);
|
|
4551
4551
|
this.write += 3;
|
|
4552
4552
|
return this;
|
|
4553
4553
|
};
|
|
@@ -4583,8 +4583,8 @@ $4143f576ffbec226$var$util.DataBuffer = $4143f576ffbec226$var$DataBuffer;
|
|
|
4583
4583
|
* @return this buffer.
|
|
4584
4584
|
*/ $4143f576ffbec226$var$util.DataBuffer.prototype.putInt24Le = function(i) {
|
|
4585
4585
|
this.accommodate(3);
|
|
4586
|
-
this.data.setInt8(this.write, i >> 16 &
|
|
4587
|
-
this.data.setInt16(this.write, i >> 8 &
|
|
4586
|
+
this.data.setInt8(this.write, i >> 16 & 0xFF);
|
|
4587
|
+
this.data.setInt16(this.write, i >> 8 & 0xFFFF, true);
|
|
4588
4588
|
this.write += 3;
|
|
4589
4589
|
return this;
|
|
4590
4590
|
};
|
|
@@ -4612,7 +4612,7 @@ $4143f576ffbec226$var$util.DataBuffer = $4143f576ffbec226$var$DataBuffer;
|
|
|
4612
4612
|
this.accommodate(n / 8);
|
|
4613
4613
|
do {
|
|
4614
4614
|
n -= 8;
|
|
4615
|
-
this.data.setInt8(this.write++, i >> n &
|
|
4615
|
+
this.data.setInt8(this.write++, i >> n & 0xFF);
|
|
4616
4616
|
}while (n > 0)
|
|
4617
4617
|
return this;
|
|
4618
4618
|
};
|
|
@@ -4963,7 +4963,7 @@ $4143f576ffbec226$var$util.DataBuffer = $4143f576ffbec226$var$DataBuffer;
|
|
|
4963
4963
|
*
|
|
4964
4964
|
* @return the byte string.
|
|
4965
4965
|
*/ $4143f576ffbec226$var$util.int32ToBytes = function(i) {
|
|
4966
|
-
return String.fromCharCode(i >> 24 &
|
|
4966
|
+
return String.fromCharCode(i >> 24 & 0xFF) + String.fromCharCode(i >> 16 & 0xFF) + String.fromCharCode(i >> 8 & 0xFF) + String.fromCharCode(i & 0xFF);
|
|
4967
4967
|
};
|
|
4968
4968
|
// base64 characters, reverse mapping
|
|
4969
4969
|
var $4143f576ffbec226$var$_base64 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
|
|
@@ -5362,7 +5362,7 @@ $4143f576ffbec226$var$util.text = {
|
|
|
5362
5362
|
// its 5th bit is set
|
|
5363
5363
|
var start = 2;
|
|
5364
5364
|
var flg = bytes.charCodeAt(1);
|
|
5365
|
-
if (flg &
|
|
5365
|
+
if (flg & 0x20) start = 6;
|
|
5366
5366
|
// zlib trailer is 4 bytes of adler-32
|
|
5367
5367
|
bytes = bytes.substring(start, bytes.length - 4);
|
|
5368
5368
|
}
|
|
@@ -6433,7 +6433,7 @@ $8e7d87db09a5396f$var$modes.ctr.prototype.decrypt = $8e7d87db09a5396f$var$modes.
|
|
|
6433
6433
|
// R is actually this value concatenated with 120 more zero bits, but
|
|
6434
6434
|
// we only XOR against R so the other zeros have no effect -- we just
|
|
6435
6435
|
// apply this value to the first integer in a block
|
|
6436
|
-
this._R =
|
|
6436
|
+
this._R = 0xE1000000;
|
|
6437
6437
|
};
|
|
6438
6438
|
$8e7d87db09a5396f$var$modes.gcm.prototype.start = function(options) {
|
|
6439
6439
|
if (!('iv' in options)) throw new Error('Invalid IV parameter.');
|
|
@@ -6693,7 +6693,7 @@ $8e7d87db09a5396f$var$modes.gcm.prototype.tableMultiply = function(x) {
|
|
|
6693
6693
|
];
|
|
6694
6694
|
for(var i = 0; i < 32; ++i){
|
|
6695
6695
|
var idx = i / 8 | 0;
|
|
6696
|
-
var x_i = x[idx] >>> (7 - i % 8) * 4 &
|
|
6696
|
+
var x_i = x[idx] >>> (7 - i % 8) * 4 & 0xF;
|
|
6697
6697
|
var ah = this._m[i][x_i];
|
|
6698
6698
|
z[0] ^= ah[0];
|
|
6699
6699
|
z[1] ^= ah[1];
|
|
@@ -6829,13 +6829,13 @@ $8e7d87db09a5396f$var$modes.gcm.prototype.tableMultiply = function(x) {
|
|
|
6829
6829
|
}
|
|
6830
6830
|
function $8e7d87db09a5396f$var$inc32(block) {
|
|
6831
6831
|
// increment last 32 bits of block only
|
|
6832
|
-
block[block.length - 1] = block[block.length - 1] + 1 &
|
|
6832
|
+
block[block.length - 1] = block[block.length - 1] + 1 & 0xFFFFFFFF;
|
|
6833
6833
|
}
|
|
6834
6834
|
function $8e7d87db09a5396f$var$from64To32(num) {
|
|
6835
6835
|
// convert 64-bit number to two BE Int32s
|
|
6836
6836
|
return [
|
|
6837
|
-
num /
|
|
6838
|
-
num &
|
|
6837
|
+
num / 0x100000000 | 0,
|
|
6838
|
+
num & 0xFFFFFFFF
|
|
6839
6839
|
];
|
|
6840
6840
|
}
|
|
6841
6841
|
|
|
@@ -7228,23 +7228,23 @@ var $ca9d5cba0afae339$var$imix; // inverse mix-columns table
|
|
|
7228
7228
|
|
|
7229
7229
|
We only store the first byte because it is the only one used.
|
|
7230
7230
|
*/ $ca9d5cba0afae339$var$rcon = [
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7231
|
+
0x00,
|
|
7232
|
+
0x01,
|
|
7233
|
+
0x02,
|
|
7234
|
+
0x04,
|
|
7235
|
+
0x08,
|
|
7236
|
+
0x10,
|
|
7237
|
+
0x20,
|
|
7238
|
+
0x40,
|
|
7239
|
+
0x80,
|
|
7240
|
+
0x1B,
|
|
7241
|
+
0x36
|
|
7242
7242
|
];
|
|
7243
7243
|
// compute xtime table which maps i onto GF(i, 0x02)
|
|
7244
7244
|
var xtime = new Array(256);
|
|
7245
7245
|
for(var i = 0; i < 128; ++i){
|
|
7246
7246
|
xtime[i] = i << 1;
|
|
7247
|
-
xtime[i + 128] = i + 128 << 1 ^
|
|
7247
|
+
xtime[i + 128] = i + 128 << 1 ^ 0x11B;
|
|
7248
7248
|
}
|
|
7249
7249
|
// compute all other tables
|
|
7250
7250
|
$ca9d5cba0afae339$var$sbox = new Array(256);
|
|
@@ -7316,7 +7316,7 @@ var $ca9d5cba0afae339$var$imix; // inverse mix-columns table
|
|
|
7316
7316
|
the multiplication we'll need to do to do MixColumns() later.
|
|
7317
7317
|
*/ // apply affine transformation
|
|
7318
7318
|
sx = ei ^ ei << 1 ^ ei << 2 ^ ei << 3 ^ ei << 4;
|
|
7319
|
-
sx = sx >> 8 ^ sx & 255 ^
|
|
7319
|
+
sx = sx >> 8 ^ sx & 255 ^ 0x63;
|
|
7320
7320
|
// update tables
|
|
7321
7321
|
$ca9d5cba0afae339$var$sbox[e] = sx;
|
|
7322
7322
|
$ca9d5cba0afae339$var$isbox[sx] = e;
|
|
@@ -7955,10 +7955,10 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
7955
7955
|
/**
|
|
7956
7956
|
* ASN.1 classes.
|
|
7957
7957
|
*/ $579f29a8775d6845$var$asn1.Class = {
|
|
7958
|
-
UNIVERSAL:
|
|
7959
|
-
APPLICATION:
|
|
7960
|
-
CONTEXT_SPECIFIC:
|
|
7961
|
-
PRIVATE:
|
|
7958
|
+
UNIVERSAL: 0x00,
|
|
7959
|
+
APPLICATION: 0x40,
|
|
7960
|
+
CONTEXT_SPECIFIC: 0x80,
|
|
7961
|
+
PRIVATE: 0xC0
|
|
7962
7962
|
};
|
|
7963
7963
|
/**
|
|
7964
7964
|
* ASN.1 types. Not all types are supported by this implementation, only
|
|
@@ -8092,15 +8092,15 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8092
8092
|
// TODO: move this function and related DER/BER functions to a der.js
|
|
8093
8093
|
// file; better abstract ASN.1 away from der/ber.
|
|
8094
8094
|
var b2 = b.getByte();
|
|
8095
|
-
if (b2 ===
|
|
8095
|
+
if (b2 === 0x80) return undefined;
|
|
8096
8096
|
// see if the length is "short form" or "long form" (bit 8 set)
|
|
8097
8097
|
var length;
|
|
8098
|
-
var longForm = b2 &
|
|
8098
|
+
var longForm = b2 & 0x80;
|
|
8099
8099
|
if (!longForm) // length is just the first byte
|
|
8100
8100
|
length = b2;
|
|
8101
8101
|
else // the number of bytes the length is specified in bits 7 through 1
|
|
8102
8102
|
// and each length byte is in big-endian base-256
|
|
8103
|
-
length = b.getInt((b2 &
|
|
8103
|
+
length = b.getInt((b2 & 0x7F) << 3);
|
|
8104
8104
|
return length;
|
|
8105
8105
|
};
|
|
8106
8106
|
/**
|
|
@@ -8133,16 +8133,16 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8133
8133
|
// fromDer already checked that this byte exists
|
|
8134
8134
|
var b2 = bytes.getByte();
|
|
8135
8135
|
remaining--;
|
|
8136
|
-
if (b2 ===
|
|
8136
|
+
if (b2 === 0x80) return undefined;
|
|
8137
8137
|
// see if the length is "short form" or "long form" (bit 8 set)
|
|
8138
8138
|
var length;
|
|
8139
|
-
var longForm = b2 &
|
|
8139
|
+
var longForm = b2 & 0x80;
|
|
8140
8140
|
if (!longForm) // length is just the first byte
|
|
8141
8141
|
length = b2;
|
|
8142
8142
|
else {
|
|
8143
8143
|
// the number of bytes the length is specified in bits 7 through 1
|
|
8144
8144
|
// and each length byte is in big-endian base-256
|
|
8145
|
-
var longFormBytes = b2 &
|
|
8145
|
+
var longFormBytes = b2 & 0x7F;
|
|
8146
8146
|
$579f29a8775d6845$var$_checkBufferLength(bytes, remaining, longFormBytes);
|
|
8147
8147
|
length = bytes.getInt(longFormBytes << 3);
|
|
8148
8148
|
}
|
|
@@ -8201,9 +8201,9 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8201
8201
|
// consumed one byte
|
|
8202
8202
|
remaining--;
|
|
8203
8203
|
// get the tag class
|
|
8204
|
-
var tagClass = b1 &
|
|
8204
|
+
var tagClass = b1 & 0xC0;
|
|
8205
8205
|
// get the type (bits 1-5)
|
|
8206
|
-
var type = b1 &
|
|
8206
|
+
var type = b1 & 0x1F;
|
|
8207
8207
|
// get the variable value length and adjust remaining bytes
|
|
8208
8208
|
start = bytes.length();
|
|
8209
8209
|
var length = $579f29a8775d6845$var$_getValueLength(bytes, remaining);
|
|
@@ -8225,7 +8225,7 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8225
8225
|
// possible BIT STRING contents storage
|
|
8226
8226
|
var bitStringContents;
|
|
8227
8227
|
// constructed flag is bit 6 (32 = 0x20) of the first byte
|
|
8228
|
-
var constructed = (b1 &
|
|
8228
|
+
var constructed = (b1 & 0x20) === 0x20;
|
|
8229
8229
|
if (constructed) {
|
|
8230
8230
|
// parse child asn1 objects from the value
|
|
8231
8231
|
value = [];
|
|
@@ -8344,9 +8344,9 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8344
8344
|
// if composed, use each child asn1 object's DER bytes as value
|
|
8345
8345
|
// turn on 6th bit (0x20 = 32) to indicate asn1 is constructed
|
|
8346
8346
|
// from other asn1 objects
|
|
8347
|
-
if (obj.constructed) b1 |=
|
|
8347
|
+
if (obj.constructed) b1 |= 0x20;
|
|
8348
8348
|
else // type is a bit string, add unused bits of 0x00
|
|
8349
|
-
value.putByte(
|
|
8349
|
+
value.putByte(0x00);
|
|
8350
8350
|
// add all of the child DER bytes together
|
|
8351
8351
|
for(var i = 0; i < obj.value.length; ++i)if (obj.value[i] !== undefined) value.putBuffer($579f29a8775d6845$var$asn1.toDer(obj.value[i]));
|
|
8352
8352
|
} else {
|
|
@@ -8355,7 +8355,7 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8355
8355
|
else // ensure integer is minimally-encoded
|
|
8356
8356
|
// TODO: should all leading bytes be stripped vs just one?
|
|
8357
8357
|
// .. ex '00 00 01' => '01'?
|
|
8358
|
-
if (obj.type === $579f29a8775d6845$var$asn1.Type.INTEGER && obj.value.length > 1 && (obj.value.charCodeAt(0) === 0 && (obj.value.charCodeAt(1) &
|
|
8358
|
+
if (obj.type === $579f29a8775d6845$var$asn1.Type.INTEGER && obj.value.length > 1 && (obj.value.charCodeAt(0) === 0 && (obj.value.charCodeAt(1) & 0x80) === 0 || obj.value.charCodeAt(0) === 0xFF && (obj.value.charCodeAt(1) & 0x80) === 0x80)) value.putBytes(obj.value.substr(1));
|
|
8359
8359
|
else value.putBytes(obj.value);
|
|
8360
8360
|
}
|
|
8361
8361
|
// add tag byte
|
|
@@ -8363,7 +8363,7 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8363
8363
|
// use "short form" encoding
|
|
8364
8364
|
if (value.length() <= 127) // one byte describes the length
|
|
8365
8365
|
// bit 8 = 0 and bits 7-1 = length
|
|
8366
|
-
bytes.putByte(value.length() &
|
|
8366
|
+
bytes.putByte(value.length() & 0x7F);
|
|
8367
8367
|
else {
|
|
8368
8368
|
// use "long form" encoding
|
|
8369
8369
|
// 2 to 127 bytes describe the length
|
|
@@ -8372,12 +8372,12 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8372
8372
|
var len = value.length();
|
|
8373
8373
|
var lenBytes = '';
|
|
8374
8374
|
do {
|
|
8375
|
-
lenBytes += String.fromCharCode(len &
|
|
8375
|
+
lenBytes += String.fromCharCode(len & 0xFF);
|
|
8376
8376
|
len = len >>> 8;
|
|
8377
8377
|
}while (len > 0)
|
|
8378
8378
|
// set first byte to # bytes used to store the length and turn on
|
|
8379
8379
|
// bit 8 to indicate long-form length is used
|
|
8380
|
-
bytes.putByte(lenBytes.length |
|
|
8380
|
+
bytes.putByte(lenBytes.length | 0x80);
|
|
8381
8381
|
// concatenate length bytes in reverse since they were generated
|
|
8382
8382
|
// little endian and we need big endian
|
|
8383
8383
|
for(var i = lenBytes.length - 1; i >= 0; --i)bytes.putByte(lenBytes.charCodeAt(i));
|
|
@@ -8409,10 +8409,10 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8409
8409
|
valueBytes = [];
|
|
8410
8410
|
value = parseInt(values[i], 10);
|
|
8411
8411
|
do {
|
|
8412
|
-
b = value &
|
|
8412
|
+
b = value & 0x7F;
|
|
8413
8413
|
value = value >>> 7;
|
|
8414
8414
|
// if value is not last, then turn on 8th bit
|
|
8415
|
-
if (!last) b |=
|
|
8415
|
+
if (!last) b |= 0x80;
|
|
8416
8416
|
valueBytes.push(b);
|
|
8417
8417
|
last = false;
|
|
8418
8418
|
}while (value > 0)
|
|
@@ -8443,7 +8443,7 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8443
8443
|
b = bytes.getByte();
|
|
8444
8444
|
value = value << 7;
|
|
8445
8445
|
// not the last byte for the value
|
|
8446
|
-
if (b &
|
|
8446
|
+
if (b & 0x80) value += b & 0x7F;
|
|
8447
8447
|
else {
|
|
8448
8448
|
// last byte
|
|
8449
8449
|
oid += '.' + (value + b);
|
|
@@ -8654,10 +8654,10 @@ $10862ec0f65326f9$var$_IN('1.3.6.1.5.5.7.3.8', 'timeStamping');
|
|
|
8654
8654
|
* @return the byte buffer.
|
|
8655
8655
|
*/ $579f29a8775d6845$var$asn1.integerToDer = function(x) {
|
|
8656
8656
|
var rval = $iGlOy.util.createBuffer();
|
|
8657
|
-
if (x >= -128 && x <
|
|
8658
|
-
if (x >= -32768 && x <
|
|
8659
|
-
if (x >= -8388608 && x <
|
|
8660
|
-
if (x >= -2147483648 && x <
|
|
8657
|
+
if (x >= -128 && x < 0x80) return rval.putSignedInt(x, 8);
|
|
8658
|
+
if (x >= -32768 && x < 0x8000) return rval.putSignedInt(x, 16);
|
|
8659
|
+
if (x >= -8388608 && x < 0x800000) return rval.putSignedInt(x, 24);
|
|
8660
|
+
if (x >= -2147483648 && x < 0x80000000) return rval.putSignedInt(x, 32);
|
|
8661
8661
|
var error = new Error('Integer too large; max is 32-bits.');
|
|
8662
8662
|
error.integer = x;
|
|
8663
8663
|
throw error;
|
|
@@ -8958,15 +8958,15 @@ parcelRequire("ai0Z9");
|
|
|
8958
8958
|
keylen = key.length();
|
|
8959
8959
|
for(var i = 0; i < keylen; ++i){
|
|
8960
8960
|
var tmp = key.at(i);
|
|
8961
|
-
_ipadding.putByte(
|
|
8962
|
-
_opadding.putByte(
|
|
8961
|
+
_ipadding.putByte(0x36 ^ tmp);
|
|
8962
|
+
_opadding.putByte(0x5C ^ tmp);
|
|
8963
8963
|
}
|
|
8964
8964
|
// if key is shorter than blocksize, add additional padding
|
|
8965
8965
|
if (keylen < _md.blockLength) {
|
|
8966
8966
|
var tmp = _md.blockLength - keylen;
|
|
8967
8967
|
for(var i = 0; i < tmp; ++i){
|
|
8968
|
-
_ipadding.putByte(
|
|
8969
|
-
_opadding.putByte(
|
|
8968
|
+
_ipadding.putByte(0x36);
|
|
8969
|
+
_opadding.putByte(0x5C);
|
|
8970
8970
|
}
|
|
8971
8971
|
}
|
|
8972
8972
|
_key = key;
|
|
@@ -9050,10 +9050,10 @@ $iGlOy.md.md5 = $iGlOy.md.algorithms.md5 = $a933e3938fe5f3ff$var$md5;
|
|
|
9050
9050
|
for(var i = 0; i < int32s; ++i)md.fullMessageLength.push(0);
|
|
9051
9051
|
_input = $iGlOy.util.createBuffer();
|
|
9052
9052
|
_state = {
|
|
9053
|
-
h0:
|
|
9054
|
-
h1:
|
|
9055
|
-
h2:
|
|
9056
|
-
h3:
|
|
9053
|
+
h0: 0x67452301,
|
|
9054
|
+
h1: 0xEFCDAB89,
|
|
9055
|
+
h2: 0x98BADCFE,
|
|
9056
|
+
h3: 0x10325476
|
|
9057
9057
|
};
|
|
9058
9058
|
return md;
|
|
9059
9059
|
};
|
|
@@ -9074,14 +9074,14 @@ $iGlOy.md.md5 = $iGlOy.md.algorithms.md5 = $a933e3938fe5f3ff$var$md5;
|
|
|
9074
9074
|
var len = msg.length;
|
|
9075
9075
|
md.messageLength += len;
|
|
9076
9076
|
len = [
|
|
9077
|
-
len /
|
|
9077
|
+
len / 0x100000000 >>> 0,
|
|
9078
9078
|
len >>> 0
|
|
9079
9079
|
];
|
|
9080
9080
|
for(var i = md.fullMessageLength.length - 1; i >= 0; --i){
|
|
9081
9081
|
md.fullMessageLength[i] += len[1];
|
|
9082
|
-
len[1] = len[0] + (md.fullMessageLength[i] /
|
|
9082
|
+
len[1] = len[0] + (md.fullMessageLength[i] / 0x100000000 >>> 0);
|
|
9083
9083
|
md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0;
|
|
9084
|
-
len[0] = len[1] /
|
|
9084
|
+
len[0] = len[1] / 0x100000000 >>> 0;
|
|
9085
9085
|
}
|
|
9086
9086
|
// add bytes to input buffer
|
|
9087
9087
|
_input.putBytes(msg);
|
|
@@ -9126,7 +9126,7 @@ $iGlOy.md.md5 = $iGlOy.md.algorithms.md5 = $a933e3938fe5f3ff$var$md5;
|
|
|
9126
9126
|
var bits, carry = 0;
|
|
9127
9127
|
for(var i = md.fullMessageLength.length - 1; i >= 0; --i){
|
|
9128
9128
|
bits = md.fullMessageLength[i] * 8 + carry;
|
|
9129
|
-
carry = bits /
|
|
9129
|
+
carry = bits / 0x100000000 >>> 0;
|
|
9130
9130
|
finalBlock.putInt32Le(bits >>> 0);
|
|
9131
9131
|
}
|
|
9132
9132
|
var s2 = {
|
|
@@ -9156,7 +9156,7 @@ var $a933e3938fe5f3ff$var$_initialized = false;
|
|
|
9156
9156
|
*/ function $a933e3938fe5f3ff$var$_init() {
|
|
9157
9157
|
// create padding
|
|
9158
9158
|
$a933e3938fe5f3ff$var$_padding = String.fromCharCode(128);
|
|
9159
|
-
$a933e3938fe5f3ff$var$_padding += $iGlOy.util.fillString(String.fromCharCode(
|
|
9159
|
+
$a933e3938fe5f3ff$var$_padding += $iGlOy.util.fillString(String.fromCharCode(0x00), 64);
|
|
9160
9160
|
// g values
|
|
9161
9161
|
$a933e3938fe5f3ff$var$_g = [
|
|
9162
9162
|
0,
|
|
@@ -9293,7 +9293,7 @@ var $a933e3938fe5f3ff$var$_initialized = false;
|
|
|
9293
9293
|
];
|
|
9294
9294
|
// get the result of abs(sin(i + 1)) as a 32-bit integer
|
|
9295
9295
|
$a933e3938fe5f3ff$var$_k = new Array(64);
|
|
9296
|
-
for(var i = 0; i < 64; ++i)$a933e3938fe5f3ff$var$_k[i] = Math.floor(Math.abs(Math.sin(i + 1)) *
|
|
9296
|
+
for(var i = 0; i < 64; ++i)$a933e3938fe5f3ff$var$_k[i] = Math.floor(Math.abs(Math.sin(i + 1)) * 0x100000000);
|
|
9297
9297
|
// now initialized
|
|
9298
9298
|
$a933e3938fe5f3ff$var$_initialized = true;
|
|
9299
9299
|
}
|
|
@@ -9705,78 +9705,78 @@ function $ff4c3bd9116e15cc$var$registerAlgorithm(name, mode) {
|
|
|
9705
9705
|
$iGlOy.cipher.registerAlgorithm(name, factory);
|
|
9706
9706
|
}
|
|
9707
9707
|
/** DES implementation **/ var $ff4c3bd9116e15cc$var$spfunction1 = [
|
|
9708
|
-
|
|
9708
|
+
0x1010400,
|
|
9709
9709
|
0,
|
|
9710
|
-
|
|
9711
|
-
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9717
|
-
|
|
9718
|
-
|
|
9719
|
-
|
|
9720
|
-
|
|
9721
|
-
|
|
9722
|
-
|
|
9723
|
-
|
|
9724
|
-
|
|
9725
|
-
|
|
9726
|
-
|
|
9727
|
-
|
|
9728
|
-
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9710
|
+
0x10000,
|
|
9711
|
+
0x1010404,
|
|
9712
|
+
0x1010004,
|
|
9713
|
+
0x10404,
|
|
9714
|
+
0x4,
|
|
9715
|
+
0x10000,
|
|
9716
|
+
0x400,
|
|
9717
|
+
0x1010400,
|
|
9718
|
+
0x1010404,
|
|
9719
|
+
0x400,
|
|
9720
|
+
0x1000404,
|
|
9721
|
+
0x1010004,
|
|
9722
|
+
0x1000000,
|
|
9723
|
+
0x4,
|
|
9724
|
+
0x404,
|
|
9725
|
+
0x1000400,
|
|
9726
|
+
0x1000400,
|
|
9727
|
+
0x10400,
|
|
9728
|
+
0x10400,
|
|
9729
|
+
0x1010000,
|
|
9730
|
+
0x1010000,
|
|
9731
|
+
0x1000404,
|
|
9732
|
+
0x10004,
|
|
9733
|
+
0x1000004,
|
|
9734
|
+
0x1000004,
|
|
9735
|
+
0x10004,
|
|
9736
9736
|
0,
|
|
9737
|
-
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9737
|
+
0x404,
|
|
9738
|
+
0x10404,
|
|
9739
|
+
0x1000000,
|
|
9740
|
+
0x10000,
|
|
9741
|
+
0x1010404,
|
|
9742
|
+
0x4,
|
|
9743
|
+
0x1010000,
|
|
9744
|
+
0x1010400,
|
|
9745
|
+
0x1000000,
|
|
9746
|
+
0x1000000,
|
|
9747
|
+
0x400,
|
|
9748
|
+
0x1010004,
|
|
9749
|
+
0x10000,
|
|
9750
|
+
0x10400,
|
|
9751
|
+
0x1000004,
|
|
9752
|
+
0x400,
|
|
9753
|
+
0x4,
|
|
9754
|
+
0x1000404,
|
|
9755
|
+
0x10404,
|
|
9756
|
+
0x1010404,
|
|
9757
|
+
0x10004,
|
|
9758
|
+
0x1010000,
|
|
9759
|
+
0x1000404,
|
|
9760
|
+
0x1000004,
|
|
9761
|
+
0x404,
|
|
9762
|
+
0x10404,
|
|
9763
|
+
0x1010400,
|
|
9764
|
+
0x404,
|
|
9765
|
+
0x1000400,
|
|
9766
|
+
0x1000400,
|
|
9767
9767
|
0,
|
|
9768
|
-
|
|
9769
|
-
|
|
9768
|
+
0x10004,
|
|
9769
|
+
0x10400,
|
|
9770
9770
|
0,
|
|
9771
|
-
|
|
9771
|
+
0x1010004
|
|
9772
9772
|
];
|
|
9773
9773
|
var $ff4c3bd9116e15cc$var$spfunction2 = [
|
|
9774
9774
|
-2146402272,
|
|
9775
9775
|
-2147450880,
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9776
|
+
0x8000,
|
|
9777
|
+
0x108020,
|
|
9778
|
+
0x100000,
|
|
9779
|
+
0x20,
|
|
9780
9780
|
-2146435040,
|
|
9781
9781
|
-2147450848,
|
|
9782
9782
|
-2147483616,
|
|
@@ -9784,453 +9784,453 @@ var $ff4c3bd9116e15cc$var$spfunction2 = [
|
|
|
9784
9784
|
-2146402304,
|
|
9785
9785
|
-2147483648,
|
|
9786
9786
|
-2147450880,
|
|
9787
|
-
|
|
9788
|
-
|
|
9787
|
+
0x100000,
|
|
9788
|
+
0x20,
|
|
9789
9789
|
-2146435040,
|
|
9790
|
-
|
|
9791
|
-
|
|
9790
|
+
0x108000,
|
|
9791
|
+
0x100020,
|
|
9792
9792
|
-2147450848,
|
|
9793
9793
|
0,
|
|
9794
9794
|
-2147483648,
|
|
9795
|
-
|
|
9796
|
-
|
|
9795
|
+
0x8000,
|
|
9796
|
+
0x108020,
|
|
9797
9797
|
-2146435072,
|
|
9798
|
-
|
|
9798
|
+
0x100020,
|
|
9799
9799
|
-2147483616,
|
|
9800
9800
|
0,
|
|
9801
|
-
|
|
9802
|
-
|
|
9801
|
+
0x108000,
|
|
9802
|
+
0x8020,
|
|
9803
9803
|
-2146402304,
|
|
9804
9804
|
-2146435072,
|
|
9805
|
-
|
|
9805
|
+
0x8020,
|
|
9806
9806
|
0,
|
|
9807
|
-
|
|
9807
|
+
0x108020,
|
|
9808
9808
|
-2146435040,
|
|
9809
|
-
|
|
9809
|
+
0x100000,
|
|
9810
9810
|
-2147450848,
|
|
9811
9811
|
-2146435072,
|
|
9812
9812
|
-2146402304,
|
|
9813
|
-
|
|
9813
|
+
0x8000,
|
|
9814
9814
|
-2146435072,
|
|
9815
9815
|
-2147450880,
|
|
9816
|
-
|
|
9816
|
+
0x20,
|
|
9817
9817
|
-2146402272,
|
|
9818
|
-
|
|
9819
|
-
|
|
9820
|
-
|
|
9818
|
+
0x108020,
|
|
9819
|
+
0x20,
|
|
9820
|
+
0x8000,
|
|
9821
9821
|
-2147483648,
|
|
9822
|
-
|
|
9822
|
+
0x8020,
|
|
9823
9823
|
-2146402304,
|
|
9824
|
-
|
|
9824
|
+
0x100000,
|
|
9825
9825
|
-2147483616,
|
|
9826
|
-
|
|
9826
|
+
0x100020,
|
|
9827
9827
|
-2147450848,
|
|
9828
9828
|
-2147483616,
|
|
9829
|
-
|
|
9830
|
-
|
|
9829
|
+
0x100020,
|
|
9830
|
+
0x108000,
|
|
9831
9831
|
0,
|
|
9832
9832
|
-2147450880,
|
|
9833
|
-
|
|
9833
|
+
0x8020,
|
|
9834
9834
|
-2147483648,
|
|
9835
9835
|
-2146435040,
|
|
9836
9836
|
-2146402272,
|
|
9837
|
-
|
|
9837
|
+
0x108000
|
|
9838
9838
|
];
|
|
9839
9839
|
var $ff4c3bd9116e15cc$var$spfunction3 = [
|
|
9840
|
-
|
|
9841
|
-
|
|
9840
|
+
0x208,
|
|
9841
|
+
0x8020200,
|
|
9842
9842
|
0,
|
|
9843
|
-
|
|
9844
|
-
|
|
9843
|
+
0x8020008,
|
|
9844
|
+
0x8000200,
|
|
9845
9845
|
0,
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9850
|
-
|
|
9851
|
-
|
|
9852
|
-
|
|
9853
|
-
|
|
9854
|
-
|
|
9855
|
-
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9866
|
-
|
|
9867
|
-
|
|
9868
|
-
|
|
9869
|
-
|
|
9870
|
-
|
|
9871
|
-
|
|
9872
|
-
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9846
|
+
0x20208,
|
|
9847
|
+
0x8000200,
|
|
9848
|
+
0x20008,
|
|
9849
|
+
0x8000008,
|
|
9850
|
+
0x8000008,
|
|
9851
|
+
0x20000,
|
|
9852
|
+
0x8020208,
|
|
9853
|
+
0x20008,
|
|
9854
|
+
0x8020000,
|
|
9855
|
+
0x208,
|
|
9856
|
+
0x8000000,
|
|
9857
|
+
0x8,
|
|
9858
|
+
0x8020200,
|
|
9859
|
+
0x200,
|
|
9860
|
+
0x20200,
|
|
9861
|
+
0x8020000,
|
|
9862
|
+
0x8020008,
|
|
9863
|
+
0x20208,
|
|
9864
|
+
0x8000208,
|
|
9865
|
+
0x20200,
|
|
9866
|
+
0x20000,
|
|
9867
|
+
0x8000208,
|
|
9868
|
+
0x8,
|
|
9869
|
+
0x8020208,
|
|
9870
|
+
0x200,
|
|
9871
|
+
0x8000000,
|
|
9872
|
+
0x8020200,
|
|
9873
|
+
0x8000000,
|
|
9874
|
+
0x20008,
|
|
9875
|
+
0x208,
|
|
9876
|
+
0x20000,
|
|
9877
|
+
0x8020200,
|
|
9878
|
+
0x8000200,
|
|
9879
9879
|
0,
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
|
|
9880
|
+
0x200,
|
|
9881
|
+
0x20008,
|
|
9882
|
+
0x8020208,
|
|
9883
|
+
0x8000200,
|
|
9884
|
+
0x8000008,
|
|
9885
|
+
0x200,
|
|
9886
9886
|
0,
|
|
9887
|
-
|
|
9888
|
-
|
|
9889
|
-
|
|
9890
|
-
|
|
9891
|
-
|
|
9892
|
-
|
|
9893
|
-
|
|
9894
|
-
|
|
9895
|
-
|
|
9896
|
-
|
|
9897
|
-
|
|
9898
|
-
|
|
9899
|
-
|
|
9900
|
-
|
|
9901
|
-
|
|
9902
|
-
|
|
9903
|
-
|
|
9887
|
+
0x8020008,
|
|
9888
|
+
0x8000208,
|
|
9889
|
+
0x20000,
|
|
9890
|
+
0x8000000,
|
|
9891
|
+
0x8020208,
|
|
9892
|
+
0x8,
|
|
9893
|
+
0x20208,
|
|
9894
|
+
0x20200,
|
|
9895
|
+
0x8000008,
|
|
9896
|
+
0x8020000,
|
|
9897
|
+
0x8000208,
|
|
9898
|
+
0x208,
|
|
9899
|
+
0x8020000,
|
|
9900
|
+
0x20208,
|
|
9901
|
+
0x8,
|
|
9902
|
+
0x8020008,
|
|
9903
|
+
0x20200
|
|
9904
9904
|
];
|
|
9905
9905
|
var $ff4c3bd9116e15cc$var$spfunction4 = [
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9909
|
-
|
|
9910
|
-
|
|
9911
|
-
|
|
9912
|
-
|
|
9913
|
-
|
|
9906
|
+
0x802001,
|
|
9907
|
+
0x2081,
|
|
9908
|
+
0x2081,
|
|
9909
|
+
0x80,
|
|
9910
|
+
0x802080,
|
|
9911
|
+
0x800081,
|
|
9912
|
+
0x800001,
|
|
9913
|
+
0x2001,
|
|
9914
9914
|
0,
|
|
9915
|
-
|
|
9916
|
-
|
|
9917
|
-
|
|
9918
|
-
|
|
9915
|
+
0x802000,
|
|
9916
|
+
0x802000,
|
|
9917
|
+
0x802081,
|
|
9918
|
+
0x81,
|
|
9919
9919
|
0,
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9920
|
+
0x800080,
|
|
9921
|
+
0x800001,
|
|
9922
|
+
0x1,
|
|
9923
|
+
0x2000,
|
|
9924
|
+
0x800000,
|
|
9925
|
+
0x802001,
|
|
9926
|
+
0x80,
|
|
9927
|
+
0x800000,
|
|
9928
|
+
0x2001,
|
|
9929
|
+
0x2080,
|
|
9930
|
+
0x800081,
|
|
9931
|
+
0x1,
|
|
9932
|
+
0x2080,
|
|
9933
|
+
0x800080,
|
|
9934
|
+
0x2000,
|
|
9935
|
+
0x802080,
|
|
9936
|
+
0x802081,
|
|
9937
|
+
0x81,
|
|
9938
|
+
0x800080,
|
|
9939
|
+
0x800001,
|
|
9940
|
+
0x802000,
|
|
9941
|
+
0x802081,
|
|
9942
|
+
0x81,
|
|
9943
9943
|
0,
|
|
9944
9944
|
0,
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9945
|
+
0x802000,
|
|
9946
|
+
0x2080,
|
|
9947
|
+
0x800080,
|
|
9948
|
+
0x800081,
|
|
9949
|
+
0x1,
|
|
9950
|
+
0x802001,
|
|
9951
|
+
0x2081,
|
|
9952
|
+
0x2081,
|
|
9953
|
+
0x80,
|
|
9954
|
+
0x802081,
|
|
9955
|
+
0x81,
|
|
9956
|
+
0x1,
|
|
9957
|
+
0x2000,
|
|
9958
|
+
0x800001,
|
|
9959
|
+
0x2001,
|
|
9960
|
+
0x802080,
|
|
9961
|
+
0x800081,
|
|
9962
|
+
0x2001,
|
|
9963
|
+
0x2080,
|
|
9964
|
+
0x800000,
|
|
9965
|
+
0x802001,
|
|
9966
|
+
0x80,
|
|
9967
|
+
0x800000,
|
|
9968
|
+
0x2000,
|
|
9969
|
+
0x802080
|
|
9970
9970
|
];
|
|
9971
9971
|
var $ff4c3bd9116e15cc$var$spfunction5 = [
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9972
|
+
0x100,
|
|
9973
|
+
0x2080100,
|
|
9974
|
+
0x2080000,
|
|
9975
|
+
0x42000100,
|
|
9976
|
+
0x80000,
|
|
9977
|
+
0x100,
|
|
9978
|
+
0x40000000,
|
|
9979
|
+
0x2080000,
|
|
9980
|
+
0x40080100,
|
|
9981
|
+
0x80000,
|
|
9982
|
+
0x2000100,
|
|
9983
|
+
0x40080100,
|
|
9984
|
+
0x42000100,
|
|
9985
|
+
0x42080000,
|
|
9986
|
+
0x80100,
|
|
9987
|
+
0x40000000,
|
|
9988
|
+
0x2000000,
|
|
9989
|
+
0x40080000,
|
|
9990
|
+
0x40080000,
|
|
9991
9991
|
0,
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9992
|
+
0x40000100,
|
|
9993
|
+
0x42080100,
|
|
9994
|
+
0x42080100,
|
|
9995
|
+
0x2000100,
|
|
9996
|
+
0x42080000,
|
|
9997
|
+
0x40000100,
|
|
9998
9998
|
0,
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
9999
|
+
0x42000000,
|
|
10000
|
+
0x2080100,
|
|
10001
|
+
0x2000000,
|
|
10002
|
+
0x42000000,
|
|
10003
|
+
0x80100,
|
|
10004
|
+
0x80000,
|
|
10005
|
+
0x42000100,
|
|
10006
|
+
0x100,
|
|
10007
|
+
0x2000000,
|
|
10008
|
+
0x40000000,
|
|
10009
|
+
0x2080000,
|
|
10010
|
+
0x42000100,
|
|
10011
|
+
0x40080100,
|
|
10012
|
+
0x2000100,
|
|
10013
|
+
0x40000000,
|
|
10014
|
+
0x42080000,
|
|
10015
|
+
0x2080100,
|
|
10016
|
+
0x40080100,
|
|
10017
|
+
0x100,
|
|
10018
|
+
0x2000000,
|
|
10019
|
+
0x42080000,
|
|
10020
|
+
0x42080100,
|
|
10021
|
+
0x80100,
|
|
10022
|
+
0x42000000,
|
|
10023
|
+
0x42080100,
|
|
10024
|
+
0x2080000,
|
|
10025
10025
|
0,
|
|
10026
|
-
|
|
10027
|
-
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10026
|
+
0x40080000,
|
|
10027
|
+
0x42000000,
|
|
10028
|
+
0x80100,
|
|
10029
|
+
0x2000100,
|
|
10030
|
+
0x40000100,
|
|
10031
|
+
0x80000,
|
|
10032
10032
|
0,
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10033
|
+
0x40080000,
|
|
10034
|
+
0x2080100,
|
|
10035
|
+
0x40000100
|
|
10036
10036
|
];
|
|
10037
10037
|
var $ff4c3bd9116e15cc$var$spfunction6 = [
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10038
|
+
0x20000010,
|
|
10039
|
+
0x20400000,
|
|
10040
|
+
0x4000,
|
|
10041
|
+
0x20404010,
|
|
10042
|
+
0x20400000,
|
|
10043
|
+
0x10,
|
|
10044
|
+
0x20404010,
|
|
10045
|
+
0x400000,
|
|
10046
|
+
0x20004000,
|
|
10047
|
+
0x404010,
|
|
10048
|
+
0x400000,
|
|
10049
|
+
0x20000010,
|
|
10050
|
+
0x400010,
|
|
10051
|
+
0x20004000,
|
|
10052
|
+
0x20000000,
|
|
10053
|
+
0x4010,
|
|
10054
10054
|
0,
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10055
|
+
0x400010,
|
|
10056
|
+
0x20004010,
|
|
10057
|
+
0x4000,
|
|
10058
|
+
0x404000,
|
|
10059
|
+
0x20004010,
|
|
10060
|
+
0x10,
|
|
10061
|
+
0x20400010,
|
|
10062
|
+
0x20400010,
|
|
10063
10063
|
0,
|
|
10064
|
-
|
|
10065
|
-
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10082
|
-
|
|
10083
|
-
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
|
|
10087
|
-
|
|
10064
|
+
0x404010,
|
|
10065
|
+
0x20404000,
|
|
10066
|
+
0x4010,
|
|
10067
|
+
0x404000,
|
|
10068
|
+
0x20404000,
|
|
10069
|
+
0x20000000,
|
|
10070
|
+
0x20004000,
|
|
10071
|
+
0x10,
|
|
10072
|
+
0x20400010,
|
|
10073
|
+
0x404000,
|
|
10074
|
+
0x20404010,
|
|
10075
|
+
0x400000,
|
|
10076
|
+
0x4010,
|
|
10077
|
+
0x20000010,
|
|
10078
|
+
0x400000,
|
|
10079
|
+
0x20004000,
|
|
10080
|
+
0x20000000,
|
|
10081
|
+
0x4010,
|
|
10082
|
+
0x20000010,
|
|
10083
|
+
0x20404010,
|
|
10084
|
+
0x404000,
|
|
10085
|
+
0x20400000,
|
|
10086
|
+
0x404010,
|
|
10087
|
+
0x20404000,
|
|
10088
10088
|
0,
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10089
|
+
0x20400010,
|
|
10090
|
+
0x10,
|
|
10091
|
+
0x4000,
|
|
10092
|
+
0x20400000,
|
|
10093
|
+
0x404010,
|
|
10094
|
+
0x4000,
|
|
10095
|
+
0x400010,
|
|
10096
|
+
0x20004010,
|
|
10097
10097
|
0,
|
|
10098
|
-
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10098
|
+
0x20404000,
|
|
10099
|
+
0x20000000,
|
|
10100
|
+
0x400010,
|
|
10101
|
+
0x20004010
|
|
10102
10102
|
];
|
|
10103
10103
|
var $ff4c3bd9116e15cc$var$spfunction7 = [
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10104
|
+
0x200000,
|
|
10105
|
+
0x4200002,
|
|
10106
|
+
0x4000802,
|
|
10107
10107
|
0,
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10108
|
+
0x800,
|
|
10109
|
+
0x4000802,
|
|
10110
|
+
0x200802,
|
|
10111
|
+
0x4200800,
|
|
10112
|
+
0x4200802,
|
|
10113
|
+
0x200000,
|
|
10114
10114
|
0,
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10131
|
-
|
|
10132
|
-
|
|
10133
|
-
|
|
10134
|
-
|
|
10135
|
-
|
|
10136
|
-
|
|
10137
|
-
|
|
10138
|
-
|
|
10139
|
-
|
|
10140
|
-
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10156
|
-
|
|
10115
|
+
0x4000002,
|
|
10116
|
+
0x2,
|
|
10117
|
+
0x4000000,
|
|
10118
|
+
0x4200002,
|
|
10119
|
+
0x802,
|
|
10120
|
+
0x4000800,
|
|
10121
|
+
0x200802,
|
|
10122
|
+
0x200002,
|
|
10123
|
+
0x4000800,
|
|
10124
|
+
0x4000002,
|
|
10125
|
+
0x4200000,
|
|
10126
|
+
0x4200800,
|
|
10127
|
+
0x200002,
|
|
10128
|
+
0x4200000,
|
|
10129
|
+
0x800,
|
|
10130
|
+
0x802,
|
|
10131
|
+
0x4200802,
|
|
10132
|
+
0x200800,
|
|
10133
|
+
0x2,
|
|
10134
|
+
0x4000000,
|
|
10135
|
+
0x200800,
|
|
10136
|
+
0x4000000,
|
|
10137
|
+
0x200800,
|
|
10138
|
+
0x200000,
|
|
10139
|
+
0x4000802,
|
|
10140
|
+
0x4000802,
|
|
10141
|
+
0x4200002,
|
|
10142
|
+
0x4200002,
|
|
10143
|
+
0x2,
|
|
10144
|
+
0x200002,
|
|
10145
|
+
0x4000000,
|
|
10146
|
+
0x4000800,
|
|
10147
|
+
0x200000,
|
|
10148
|
+
0x4200800,
|
|
10149
|
+
0x802,
|
|
10150
|
+
0x200802,
|
|
10151
|
+
0x4200800,
|
|
10152
|
+
0x802,
|
|
10153
|
+
0x4000002,
|
|
10154
|
+
0x4200802,
|
|
10155
|
+
0x4200000,
|
|
10156
|
+
0x200800,
|
|
10157
10157
|
0,
|
|
10158
|
-
|
|
10159
|
-
|
|
10158
|
+
0x2,
|
|
10159
|
+
0x4200802,
|
|
10160
10160
|
0,
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
|
|
10161
|
+
0x200802,
|
|
10162
|
+
0x4200000,
|
|
10163
|
+
0x800,
|
|
10164
|
+
0x4000002,
|
|
10165
|
+
0x4000800,
|
|
10166
|
+
0x800,
|
|
10167
|
+
0x200002
|
|
10168
10168
|
];
|
|
10169
10169
|
var $ff4c3bd9116e15cc$var$spfunction8 = [
|
|
10170
|
-
|
|
10171
|
-
|
|
10172
|
-
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10170
|
+
0x10001040,
|
|
10171
|
+
0x1000,
|
|
10172
|
+
0x40000,
|
|
10173
|
+
0x10041040,
|
|
10174
|
+
0x10000000,
|
|
10175
|
+
0x10001040,
|
|
10176
|
+
0x40,
|
|
10177
|
+
0x10000000,
|
|
10178
|
+
0x40040,
|
|
10179
|
+
0x10040000,
|
|
10180
|
+
0x10041040,
|
|
10181
|
+
0x41000,
|
|
10182
|
+
0x10041000,
|
|
10183
|
+
0x41040,
|
|
10184
|
+
0x1000,
|
|
10185
|
+
0x40,
|
|
10186
|
+
0x10040000,
|
|
10187
|
+
0x10000040,
|
|
10188
|
+
0x10001000,
|
|
10189
|
+
0x1040,
|
|
10190
|
+
0x41000,
|
|
10191
|
+
0x40040,
|
|
10192
|
+
0x10040040,
|
|
10193
|
+
0x10041000,
|
|
10194
|
+
0x1040,
|
|
10195
10195
|
0,
|
|
10196
10196
|
0,
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10197
|
+
0x10040040,
|
|
10198
|
+
0x10000040,
|
|
10199
|
+
0x10001000,
|
|
10200
|
+
0x41040,
|
|
10201
|
+
0x40000,
|
|
10202
|
+
0x41040,
|
|
10203
|
+
0x40000,
|
|
10204
|
+
0x10041000,
|
|
10205
|
+
0x1000,
|
|
10206
|
+
0x40,
|
|
10207
|
+
0x10040040,
|
|
10208
|
+
0x1000,
|
|
10209
|
+
0x41040,
|
|
10210
|
+
0x10001000,
|
|
10211
|
+
0x40,
|
|
10212
|
+
0x10000040,
|
|
10213
|
+
0x10040000,
|
|
10214
|
+
0x10040040,
|
|
10215
|
+
0x10000000,
|
|
10216
|
+
0x40000,
|
|
10217
|
+
0x10001040,
|
|
10218
10218
|
0,
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10219
|
+
0x10041040,
|
|
10220
|
+
0x40040,
|
|
10221
|
+
0x10000040,
|
|
10222
|
+
0x10040000,
|
|
10223
|
+
0x10001000,
|
|
10224
|
+
0x10001040,
|
|
10225
10225
|
0,
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10226
|
+
0x10041040,
|
|
10227
|
+
0x41000,
|
|
10228
|
+
0x41000,
|
|
10229
|
+
0x1040,
|
|
10230
|
+
0x1040,
|
|
10231
|
+
0x40040,
|
|
10232
|
+
0x10000000,
|
|
10233
|
+
0x10041000
|
|
10234
10234
|
];
|
|
10235
10235
|
/**
|
|
10236
10236
|
* Create necessary sub keys.
|
|
@@ -10241,242 +10241,242 @@ var $ff4c3bd9116e15cc$var$spfunction8 = [
|
|
|
10241
10241
|
*/ function $ff4c3bd9116e15cc$var$_createKeys(key) {
|
|
10242
10242
|
var pc2bytes0 = [
|
|
10243
10243
|
0,
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10244
|
+
0x4,
|
|
10245
|
+
0x20000000,
|
|
10246
|
+
0x20000004,
|
|
10247
|
+
0x10000,
|
|
10248
|
+
0x10004,
|
|
10249
|
+
0x20010000,
|
|
10250
|
+
0x20010004,
|
|
10251
|
+
0x200,
|
|
10252
|
+
0x204,
|
|
10253
|
+
0x20000200,
|
|
10254
|
+
0x20000204,
|
|
10255
|
+
0x10200,
|
|
10256
|
+
0x10204,
|
|
10257
|
+
0x20010200,
|
|
10258
|
+
0x20010204
|
|
10259
10259
|
], pc2bytes1 = [
|
|
10260
10260
|
0,
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10261
|
+
0x1,
|
|
10262
|
+
0x100000,
|
|
10263
|
+
0x100001,
|
|
10264
|
+
0x4000000,
|
|
10265
|
+
0x4000001,
|
|
10266
|
+
0x4100000,
|
|
10267
|
+
0x4100001,
|
|
10268
|
+
0x100,
|
|
10269
|
+
0x101,
|
|
10270
|
+
0x100100,
|
|
10271
|
+
0x100101,
|
|
10272
|
+
0x4000100,
|
|
10273
|
+
0x4000101,
|
|
10274
|
+
0x4100100,
|
|
10275
|
+
0x4100101
|
|
10276
10276
|
], pc2bytes2 = [
|
|
10277
10277
|
0,
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
|
|
10278
|
+
0x8,
|
|
10279
|
+
0x800,
|
|
10280
|
+
0x808,
|
|
10281
|
+
0x1000000,
|
|
10282
|
+
0x1000008,
|
|
10283
|
+
0x1000800,
|
|
10284
|
+
0x1000808,
|
|
10285
10285
|
0,
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10286
|
+
0x8,
|
|
10287
|
+
0x800,
|
|
10288
|
+
0x808,
|
|
10289
|
+
0x1000000,
|
|
10290
|
+
0x1000008,
|
|
10291
|
+
0x1000800,
|
|
10292
|
+
0x1000808
|
|
10293
10293
|
], pc2bytes3 = [
|
|
10294
10294
|
0,
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
|
|
10309
|
-
|
|
10295
|
+
0x200000,
|
|
10296
|
+
0x8000000,
|
|
10297
|
+
0x8200000,
|
|
10298
|
+
0x2000,
|
|
10299
|
+
0x202000,
|
|
10300
|
+
0x8002000,
|
|
10301
|
+
0x8202000,
|
|
10302
|
+
0x20000,
|
|
10303
|
+
0x220000,
|
|
10304
|
+
0x8020000,
|
|
10305
|
+
0x8220000,
|
|
10306
|
+
0x22000,
|
|
10307
|
+
0x222000,
|
|
10308
|
+
0x8022000,
|
|
10309
|
+
0x8222000
|
|
10310
10310
|
], pc2bytes4 = [
|
|
10311
10311
|
0,
|
|
10312
|
-
|
|
10313
|
-
|
|
10314
|
-
|
|
10312
|
+
0x40000,
|
|
10313
|
+
0x10,
|
|
10314
|
+
0x40010,
|
|
10315
10315
|
0,
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
|
|
10323
|
-
|
|
10324
|
-
|
|
10325
|
-
|
|
10326
|
-
|
|
10316
|
+
0x40000,
|
|
10317
|
+
0x10,
|
|
10318
|
+
0x40010,
|
|
10319
|
+
0x1000,
|
|
10320
|
+
0x41000,
|
|
10321
|
+
0x1010,
|
|
10322
|
+
0x41010,
|
|
10323
|
+
0x1000,
|
|
10324
|
+
0x41000,
|
|
10325
|
+
0x1010,
|
|
10326
|
+
0x41010
|
|
10327
10327
|
], pc2bytes5 = [
|
|
10328
10328
|
0,
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10329
|
+
0x400,
|
|
10330
|
+
0x20,
|
|
10331
|
+
0x420,
|
|
10332
10332
|
0,
|
|
10333
|
-
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10333
|
+
0x400,
|
|
10334
|
+
0x20,
|
|
10335
|
+
0x420,
|
|
10336
|
+
0x2000000,
|
|
10337
|
+
0x2000400,
|
|
10338
|
+
0x2000020,
|
|
10339
|
+
0x2000420,
|
|
10340
|
+
0x2000000,
|
|
10341
|
+
0x2000400,
|
|
10342
|
+
0x2000020,
|
|
10343
|
+
0x2000420
|
|
10344
10344
|
], pc2bytes6 = [
|
|
10345
10345
|
0,
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10346
|
+
0x10000000,
|
|
10347
|
+
0x80000,
|
|
10348
|
+
0x10080000,
|
|
10349
|
+
0x2,
|
|
10350
|
+
0x10000002,
|
|
10351
|
+
0x80002,
|
|
10352
|
+
0x10080002,
|
|
10353
10353
|
0,
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10354
|
+
0x10000000,
|
|
10355
|
+
0x80000,
|
|
10356
|
+
0x10080000,
|
|
10357
|
+
0x2,
|
|
10358
|
+
0x10000002,
|
|
10359
|
+
0x80002,
|
|
10360
|
+
0x10080002
|
|
10361
10361
|
], pc2bytes7 = [
|
|
10362
10362
|
0,
|
|
10363
|
-
|
|
10364
|
-
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10376
|
-
|
|
10377
|
-
|
|
10363
|
+
0x10000,
|
|
10364
|
+
0x800,
|
|
10365
|
+
0x10800,
|
|
10366
|
+
0x20000000,
|
|
10367
|
+
0x20010000,
|
|
10368
|
+
0x20000800,
|
|
10369
|
+
0x20010800,
|
|
10370
|
+
0x20000,
|
|
10371
|
+
0x30000,
|
|
10372
|
+
0x20800,
|
|
10373
|
+
0x30800,
|
|
10374
|
+
0x20020000,
|
|
10375
|
+
0x20030000,
|
|
10376
|
+
0x20020800,
|
|
10377
|
+
0x20030800
|
|
10378
10378
|
], pc2bytes8 = [
|
|
10379
10379
|
0,
|
|
10380
|
-
|
|
10380
|
+
0x40000,
|
|
10381
10381
|
0,
|
|
10382
|
-
|
|
10383
|
-
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10388
|
-
|
|
10389
|
-
|
|
10390
|
-
|
|
10391
|
-
|
|
10392
|
-
|
|
10393
|
-
|
|
10394
|
-
|
|
10382
|
+
0x40000,
|
|
10383
|
+
0x2,
|
|
10384
|
+
0x40002,
|
|
10385
|
+
0x2,
|
|
10386
|
+
0x40002,
|
|
10387
|
+
0x2000000,
|
|
10388
|
+
0x2040000,
|
|
10389
|
+
0x2000000,
|
|
10390
|
+
0x2040000,
|
|
10391
|
+
0x2000002,
|
|
10392
|
+
0x2040002,
|
|
10393
|
+
0x2000002,
|
|
10394
|
+
0x2040002
|
|
10395
10395
|
], pc2bytes9 = [
|
|
10396
10396
|
0,
|
|
10397
|
-
|
|
10398
|
-
|
|
10399
|
-
|
|
10397
|
+
0x10000000,
|
|
10398
|
+
0x8,
|
|
10399
|
+
0x10000008,
|
|
10400
10400
|
0,
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
|
|
10406
|
-
|
|
10407
|
-
|
|
10408
|
-
|
|
10409
|
-
|
|
10410
|
-
|
|
10411
|
-
|
|
10401
|
+
0x10000000,
|
|
10402
|
+
0x8,
|
|
10403
|
+
0x10000008,
|
|
10404
|
+
0x400,
|
|
10405
|
+
0x10000400,
|
|
10406
|
+
0x408,
|
|
10407
|
+
0x10000408,
|
|
10408
|
+
0x400,
|
|
10409
|
+
0x10000400,
|
|
10410
|
+
0x408,
|
|
10411
|
+
0x10000408
|
|
10412
10412
|
], pc2bytes10 = [
|
|
10413
10413
|
0,
|
|
10414
|
-
|
|
10414
|
+
0x20,
|
|
10415
10415
|
0,
|
|
10416
|
-
|
|
10417
|
-
|
|
10418
|
-
|
|
10419
|
-
|
|
10420
|
-
|
|
10421
|
-
|
|
10422
|
-
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10426
|
-
|
|
10427
|
-
|
|
10428
|
-
|
|
10416
|
+
0x20,
|
|
10417
|
+
0x100000,
|
|
10418
|
+
0x100020,
|
|
10419
|
+
0x100000,
|
|
10420
|
+
0x100020,
|
|
10421
|
+
0x2000,
|
|
10422
|
+
0x2020,
|
|
10423
|
+
0x2000,
|
|
10424
|
+
0x2020,
|
|
10425
|
+
0x102000,
|
|
10426
|
+
0x102020,
|
|
10427
|
+
0x102000,
|
|
10428
|
+
0x102020
|
|
10429
10429
|
], pc2bytes11 = [
|
|
10430
10430
|
0,
|
|
10431
|
-
|
|
10432
|
-
|
|
10433
|
-
|
|
10434
|
-
|
|
10435
|
-
|
|
10436
|
-
|
|
10437
|
-
|
|
10438
|
-
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
|
|
10442
|
-
|
|
10443
|
-
|
|
10444
|
-
|
|
10445
|
-
|
|
10431
|
+
0x1000000,
|
|
10432
|
+
0x200,
|
|
10433
|
+
0x1000200,
|
|
10434
|
+
0x200000,
|
|
10435
|
+
0x1200000,
|
|
10436
|
+
0x200200,
|
|
10437
|
+
0x1200200,
|
|
10438
|
+
0x4000000,
|
|
10439
|
+
0x5000000,
|
|
10440
|
+
0x4000200,
|
|
10441
|
+
0x5000200,
|
|
10442
|
+
0x4200000,
|
|
10443
|
+
0x5200000,
|
|
10444
|
+
0x4200200,
|
|
10445
|
+
0x5200200
|
|
10446
10446
|
], pc2bytes12 = [
|
|
10447
10447
|
0,
|
|
10448
|
-
|
|
10449
|
-
|
|
10450
|
-
|
|
10451
|
-
|
|
10452
|
-
|
|
10453
|
-
|
|
10454
|
-
|
|
10455
|
-
|
|
10456
|
-
|
|
10457
|
-
|
|
10458
|
-
|
|
10459
|
-
|
|
10460
|
-
|
|
10461
|
-
|
|
10462
|
-
|
|
10448
|
+
0x1000,
|
|
10449
|
+
0x8000000,
|
|
10450
|
+
0x8001000,
|
|
10451
|
+
0x80000,
|
|
10452
|
+
0x81000,
|
|
10453
|
+
0x8080000,
|
|
10454
|
+
0x8081000,
|
|
10455
|
+
0x10,
|
|
10456
|
+
0x1010,
|
|
10457
|
+
0x8000010,
|
|
10458
|
+
0x8001010,
|
|
10459
|
+
0x80010,
|
|
10460
|
+
0x81010,
|
|
10461
|
+
0x8080010,
|
|
10462
|
+
0x8081010
|
|
10463
10463
|
], pc2bytes13 = [
|
|
10464
10464
|
0,
|
|
10465
|
-
|
|
10466
|
-
|
|
10467
|
-
|
|
10465
|
+
0x4,
|
|
10466
|
+
0x100,
|
|
10467
|
+
0x104,
|
|
10468
10468
|
0,
|
|
10469
|
-
|
|
10470
|
-
|
|
10471
|
-
|
|
10472
|
-
|
|
10473
|
-
|
|
10474
|
-
|
|
10475
|
-
|
|
10476
|
-
|
|
10477
|
-
|
|
10478
|
-
|
|
10479
|
-
|
|
10469
|
+
0x4,
|
|
10470
|
+
0x100,
|
|
10471
|
+
0x104,
|
|
10472
|
+
0x1,
|
|
10473
|
+
0x5,
|
|
10474
|
+
0x101,
|
|
10475
|
+
0x105,
|
|
10476
|
+
0x1,
|
|
10477
|
+
0x5,
|
|
10478
|
+
0x101,
|
|
10479
|
+
0x105
|
|
10480
10480
|
];
|
|
10481
10481
|
// how many iterations (1 for des, 3 for triple des)
|
|
10482
10482
|
// changed by Paul 16/6/2007 to use Triple DES for 9+ byte keys
|
|
@@ -10506,31 +10506,31 @@ var $ff4c3bd9116e15cc$var$spfunction8 = [
|
|
|
10506
10506
|
for(var j = 0; j < iterations; j++){
|
|
10507
10507
|
var left = key.getInt32();
|
|
10508
10508
|
var right = key.getInt32();
|
|
10509
|
-
tmp = (left >>> 4 ^ right) &
|
|
10509
|
+
tmp = (left >>> 4 ^ right) & 0x0f0f0f0f;
|
|
10510
10510
|
right ^= tmp;
|
|
10511
10511
|
left ^= tmp << 4;
|
|
10512
|
-
tmp = (right >>> -16 ^ left) &
|
|
10512
|
+
tmp = (right >>> -16 ^ left) & 0x0000ffff;
|
|
10513
10513
|
left ^= tmp;
|
|
10514
10514
|
right ^= tmp << -16;
|
|
10515
|
-
tmp = (left >>> 2 ^ right) &
|
|
10515
|
+
tmp = (left >>> 2 ^ right) & 0x33333333;
|
|
10516
10516
|
right ^= tmp;
|
|
10517
10517
|
left ^= tmp << 2;
|
|
10518
|
-
tmp = (right >>> -16 ^ left) &
|
|
10518
|
+
tmp = (right >>> -16 ^ left) & 0x0000ffff;
|
|
10519
10519
|
left ^= tmp;
|
|
10520
10520
|
right ^= tmp << -16;
|
|
10521
|
-
tmp = (left >>> 1 ^ right) &
|
|
10521
|
+
tmp = (left >>> 1 ^ right) & 0x55555555;
|
|
10522
10522
|
right ^= tmp;
|
|
10523
10523
|
left ^= tmp << 1;
|
|
10524
|
-
tmp = (right >>> 8 ^ left) &
|
|
10524
|
+
tmp = (right >>> 8 ^ left) & 0x00ff00ff;
|
|
10525
10525
|
left ^= tmp;
|
|
10526
10526
|
right ^= tmp << 8;
|
|
10527
|
-
tmp = (left >>> 1 ^ right) &
|
|
10527
|
+
tmp = (left >>> 1 ^ right) & 0x55555555;
|
|
10528
10528
|
right ^= tmp;
|
|
10529
10529
|
left ^= tmp << 1;
|
|
10530
10530
|
// right needs to be shifted and OR'd with last four bits of left
|
|
10531
|
-
tmp = left << 8 | right >>> 20 &
|
|
10531
|
+
tmp = left << 8 | right >>> 20 & 0x000000f0;
|
|
10532
10532
|
// left needs to be put upside down
|
|
10533
|
-
left = right << 24 | right << 8 &
|
|
10533
|
+
left = right << 24 | right << 8 & 0xff0000 | right >>> 8 & 0xff00 | right >>> 24 & 0xf0;
|
|
10534
10534
|
right = tmp;
|
|
10535
10535
|
// now go through and perform these shifts on the left and right keys
|
|
10536
10536
|
for(var i = 0; i < shifts.length; ++i){
|
|
@@ -10549,9 +10549,9 @@ var $ff4c3bd9116e15cc$var$spfunction8 = [
|
|
|
10549
10549
|
// bits of each byte are used rather than 48 consecutive bits and the
|
|
10550
10550
|
// order of lines will be according to how the S selection functions will
|
|
10551
10551
|
// be applied: S2, S4, S6, S8, S1, S3, S5, S7
|
|
10552
|
-
var lefttmp = pc2bytes0[left >>> 28] | pc2bytes1[left >>> 24 &
|
|
10553
|
-
var righttmp = pc2bytes7[right >>> 28] | pc2bytes8[right >>> 24 &
|
|
10554
|
-
tmp = (righttmp >>> 16 ^ lefttmp) &
|
|
10552
|
+
var lefttmp = pc2bytes0[left >>> 28] | pc2bytes1[left >>> 24 & 0xf] | pc2bytes2[left >>> 20 & 0xf] | pc2bytes3[left >>> 16 & 0xf] | pc2bytes4[left >>> 12 & 0xf] | pc2bytes5[left >>> 8 & 0xf] | pc2bytes6[left >>> 4 & 0xf];
|
|
10553
|
+
var righttmp = pc2bytes7[right >>> 28] | pc2bytes8[right >>> 24 & 0xf] | pc2bytes9[right >>> 20 & 0xf] | pc2bytes10[right >>> 16 & 0xf] | pc2bytes11[right >>> 12 & 0xf] | pc2bytes12[right >>> 8 & 0xf] | pc2bytes13[right >>> 4 & 0xf];
|
|
10554
|
+
tmp = (righttmp >>> 16 ^ lefttmp) & 0x0000ffff;
|
|
10555
10555
|
keys[n++] = lefttmp ^ tmp;
|
|
10556
10556
|
keys[n++] = righttmp ^ tmp << 16;
|
|
10557
10557
|
}
|
|
@@ -10604,19 +10604,19 @@ var $ff4c3bd9116e15cc$var$spfunction8 = [
|
|
|
10604
10604
|
var left = input[0];
|
|
10605
10605
|
var right = input[1];
|
|
10606
10606
|
// first each 64 bit chunk of the message must be permuted according to IP
|
|
10607
|
-
tmp = (left >>> 4 ^ right) &
|
|
10607
|
+
tmp = (left >>> 4 ^ right) & 0x0f0f0f0f;
|
|
10608
10608
|
right ^= tmp;
|
|
10609
10609
|
left ^= tmp << 4;
|
|
10610
|
-
tmp = (left >>> 16 ^ right) &
|
|
10610
|
+
tmp = (left >>> 16 ^ right) & 0x0000ffff;
|
|
10611
10611
|
right ^= tmp;
|
|
10612
10612
|
left ^= tmp << 16;
|
|
10613
|
-
tmp = (right >>> 2 ^ left) &
|
|
10613
|
+
tmp = (right >>> 2 ^ left) & 0x33333333;
|
|
10614
10614
|
left ^= tmp;
|
|
10615
10615
|
right ^= tmp << 2;
|
|
10616
|
-
tmp = (right >>> 8 ^ left) &
|
|
10616
|
+
tmp = (right >>> 8 ^ left) & 0x00ff00ff;
|
|
10617
10617
|
left ^= tmp;
|
|
10618
10618
|
right ^= tmp << 8;
|
|
10619
|
-
tmp = (left >>> 1 ^ right) &
|
|
10619
|
+
tmp = (left >>> 1 ^ right) & 0x55555555;
|
|
10620
10620
|
right ^= tmp;
|
|
10621
10621
|
left ^= tmp << 1;
|
|
10622
10622
|
// rotate left 1 bit
|
|
@@ -10632,7 +10632,7 @@ var $ff4c3bd9116e15cc$var$spfunction8 = [
|
|
|
10632
10632
|
// passing these bytes through the S selection functions
|
|
10633
10633
|
tmp = left;
|
|
10634
10634
|
left = right;
|
|
10635
|
-
right = tmp ^ ($ff4c3bd9116e15cc$var$spfunction2[right1 >>> 24 &
|
|
10635
|
+
right = tmp ^ ($ff4c3bd9116e15cc$var$spfunction2[right1 >>> 24 & 0x3f] | $ff4c3bd9116e15cc$var$spfunction4[right1 >>> 16 & 0x3f] | $ff4c3bd9116e15cc$var$spfunction6[right1 >>> 8 & 0x3f] | $ff4c3bd9116e15cc$var$spfunction8[right1 & 0x3f] | $ff4c3bd9116e15cc$var$spfunction1[right2 >>> 24 & 0x3f] | $ff4c3bd9116e15cc$var$spfunction3[right2 >>> 16 & 0x3f] | $ff4c3bd9116e15cc$var$spfunction5[right2 >>> 8 & 0x3f] | $ff4c3bd9116e15cc$var$spfunction7[right2 & 0x3f]);
|
|
10636
10636
|
}
|
|
10637
10637
|
// unreverse left and right
|
|
10638
10638
|
tmp = left;
|
|
@@ -10643,19 +10643,19 @@ var $ff4c3bd9116e15cc$var$spfunction8 = [
|
|
|
10643
10643
|
left = left >>> 1 | left << 31;
|
|
10644
10644
|
right = right >>> 1 | right << 31;
|
|
10645
10645
|
// now perform IP-1, which is IP in the opposite direction
|
|
10646
|
-
tmp = (left >>> 1 ^ right) &
|
|
10646
|
+
tmp = (left >>> 1 ^ right) & 0x55555555;
|
|
10647
10647
|
right ^= tmp;
|
|
10648
10648
|
left ^= tmp << 1;
|
|
10649
|
-
tmp = (right >>> 8 ^ left) &
|
|
10649
|
+
tmp = (right >>> 8 ^ left) & 0x00ff00ff;
|
|
10650
10650
|
left ^= tmp;
|
|
10651
10651
|
right ^= tmp << 8;
|
|
10652
|
-
tmp = (right >>> 2 ^ left) &
|
|
10652
|
+
tmp = (right >>> 2 ^ left) & 0x33333333;
|
|
10653
10653
|
left ^= tmp;
|
|
10654
10654
|
right ^= tmp << 2;
|
|
10655
|
-
tmp = (left >>> 16 ^ right) &
|
|
10655
|
+
tmp = (left >>> 16 ^ right) & 0x0000ffff;
|
|
10656
10656
|
right ^= tmp;
|
|
10657
10657
|
left ^= tmp << 16;
|
|
10658
|
-
tmp = (left >>> 4 ^ right) &
|
|
10658
|
+
tmp = (left >>> 4 ^ right) & 0x0f0f0f0f;
|
|
10659
10659
|
right ^= tmp;
|
|
10660
10660
|
left ^= tmp << 4;
|
|
10661
10661
|
output[0] = left;
|
|
@@ -10764,7 +10764,7 @@ if ($iGlOy.util.isNodejs && !$iGlOy.options.usePureJavaScript) $7436abf0cf29a7b7
|
|
|
10764
10764
|
}
|
|
10765
10765
|
var hLen = md.digestLength;
|
|
10766
10766
|
/* 1. If dkLen > (2^32 - 1) * hLen, output "derived key too long" and
|
|
10767
|
-
stop. */ if (dkLen >
|
|
10767
|
+
stop. */ if (dkLen > 0xFFFFFFFF * hLen) {
|
|
10768
10768
|
var err1 = new Error('Derived key is too long.');
|
|
10769
10769
|
if (callback) return callback(err1);
|
|
10770
10770
|
throw err1;
|
|
@@ -10914,14 +10914,14 @@ $iGlOy.md.sha256 = $iGlOy.md.algorithms.sha256 = $e523b90a804c5bd3$var$sha256;
|
|
|
10914
10914
|
for(var i = 0; i < int32s; ++i)md.fullMessageLength.push(0);
|
|
10915
10915
|
_input = $iGlOy.util.createBuffer();
|
|
10916
10916
|
_state = {
|
|
10917
|
-
h0:
|
|
10918
|
-
h1:
|
|
10919
|
-
h2:
|
|
10920
|
-
h3:
|
|
10921
|
-
h4:
|
|
10922
|
-
h5:
|
|
10923
|
-
h6:
|
|
10924
|
-
h7:
|
|
10917
|
+
h0: 0x6A09E667,
|
|
10918
|
+
h1: 0xBB67AE85,
|
|
10919
|
+
h2: 0x3C6EF372,
|
|
10920
|
+
h3: 0xA54FF53A,
|
|
10921
|
+
h4: 0x510E527F,
|
|
10922
|
+
h5: 0x9B05688C,
|
|
10923
|
+
h6: 0x1F83D9AB,
|
|
10924
|
+
h7: 0x5BE0CD19
|
|
10925
10925
|
};
|
|
10926
10926
|
return md;
|
|
10927
10927
|
};
|
|
@@ -10942,14 +10942,14 @@ $iGlOy.md.sha256 = $iGlOy.md.algorithms.sha256 = $e523b90a804c5bd3$var$sha256;
|
|
|
10942
10942
|
var len = msg.length;
|
|
10943
10943
|
md.messageLength += len;
|
|
10944
10944
|
len = [
|
|
10945
|
-
len /
|
|
10945
|
+
len / 0x100000000 >>> 0,
|
|
10946
10946
|
len >>> 0
|
|
10947
10947
|
];
|
|
10948
10948
|
for(var i = md.fullMessageLength.length - 1; i >= 0; --i){
|
|
10949
10949
|
md.fullMessageLength[i] += len[1];
|
|
10950
|
-
len[1] = len[0] + (md.fullMessageLength[i] /
|
|
10950
|
+
len[1] = len[0] + (md.fullMessageLength[i] / 0x100000000 >>> 0);
|
|
10951
10951
|
md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0;
|
|
10952
|
-
len[0] = len[1] /
|
|
10952
|
+
len[0] = len[1] / 0x100000000 >>> 0;
|
|
10953
10953
|
}
|
|
10954
10954
|
// add bytes to input buffer
|
|
10955
10955
|
_input.putBytes(msg);
|
|
@@ -10995,7 +10995,7 @@ $iGlOy.md.sha256 = $iGlOy.md.algorithms.sha256 = $e523b90a804c5bd3$var$sha256;
|
|
|
10995
10995
|
var bits = md.fullMessageLength[0] * 8;
|
|
10996
10996
|
for(var i = 0; i < md.fullMessageLength.length - 1; ++i){
|
|
10997
10997
|
next = md.fullMessageLength[i + 1] * 8;
|
|
10998
|
-
carry = next /
|
|
10998
|
+
carry = next / 0x100000000 >>> 0;
|
|
10999
10999
|
bits += carry;
|
|
11000
11000
|
finalBlock.putInt32(bits >>> 0);
|
|
11001
11001
|
bits = next >>> 0;
|
|
@@ -11035,73 +11035,73 @@ var $e523b90a804c5bd3$var$_k = null;
|
|
|
11035
11035
|
*/ function $e523b90a804c5bd3$var$_init() {
|
|
11036
11036
|
// create padding
|
|
11037
11037
|
$e523b90a804c5bd3$var$_padding = String.fromCharCode(128);
|
|
11038
|
-
$e523b90a804c5bd3$var$_padding += $iGlOy.util.fillString(String.fromCharCode(
|
|
11038
|
+
$e523b90a804c5bd3$var$_padding += $iGlOy.util.fillString(String.fromCharCode(0x00), 64);
|
|
11039
11039
|
// create K table for SHA-256
|
|
11040
11040
|
$e523b90a804c5bd3$var$_k = [
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
-
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11041
|
+
0x428a2f98,
|
|
11042
|
+
0x71374491,
|
|
11043
|
+
0xb5c0fbcf,
|
|
11044
|
+
0xe9b5dba5,
|
|
11045
|
+
0x3956c25b,
|
|
11046
|
+
0x59f111f1,
|
|
11047
|
+
0x923f82a4,
|
|
11048
|
+
0xab1c5ed5,
|
|
11049
|
+
0xd807aa98,
|
|
11050
|
+
0x12835b01,
|
|
11051
|
+
0x243185be,
|
|
11052
|
+
0x550c7dc3,
|
|
11053
|
+
0x72be5d74,
|
|
11054
|
+
0x80deb1fe,
|
|
11055
|
+
0x9bdc06a7,
|
|
11056
|
+
0xc19bf174,
|
|
11057
|
+
0xe49b69c1,
|
|
11058
|
+
0xefbe4786,
|
|
11059
|
+
0x0fc19dc6,
|
|
11060
|
+
0x240ca1cc,
|
|
11061
|
+
0x2de92c6f,
|
|
11062
|
+
0x4a7484aa,
|
|
11063
|
+
0x5cb0a9dc,
|
|
11064
|
+
0x76f988da,
|
|
11065
|
+
0x983e5152,
|
|
11066
|
+
0xa831c66d,
|
|
11067
|
+
0xb00327c8,
|
|
11068
|
+
0xbf597fc7,
|
|
11069
|
+
0xc6e00bf3,
|
|
11070
|
+
0xd5a79147,
|
|
11071
|
+
0x06ca6351,
|
|
11072
|
+
0x14292967,
|
|
11073
|
+
0x27b70a85,
|
|
11074
|
+
0x2e1b2138,
|
|
11075
|
+
0x4d2c6dfc,
|
|
11076
|
+
0x53380d13,
|
|
11077
|
+
0x650a7354,
|
|
11078
|
+
0x766a0abb,
|
|
11079
|
+
0x81c2c92e,
|
|
11080
|
+
0x92722c85,
|
|
11081
|
+
0xa2bfe8a1,
|
|
11082
|
+
0xa81a664b,
|
|
11083
|
+
0xc24b8b70,
|
|
11084
|
+
0xc76c51a3,
|
|
11085
|
+
0xd192e819,
|
|
11086
|
+
0xd6990624,
|
|
11087
|
+
0xf40e3585,
|
|
11088
|
+
0x106aa070,
|
|
11089
|
+
0x19a4c116,
|
|
11090
|
+
0x1e376c08,
|
|
11091
|
+
0x2748774c,
|
|
11092
|
+
0x34b0bcb5,
|
|
11093
|
+
0x391c0cb3,
|
|
11094
|
+
0x4ed8aa4a,
|
|
11095
|
+
0x5b9cca4f,
|
|
11096
|
+
0x682e6ff3,
|
|
11097
|
+
0x748f82ee,
|
|
11098
|
+
0x78a5636f,
|
|
11099
|
+
0x84c87814,
|
|
11100
|
+
0x8cc70208,
|
|
11101
|
+
0x90befffa,
|
|
11102
|
+
0xa4506ceb,
|
|
11103
|
+
0xbef9a3f7,
|
|
11104
|
+
0xc67178f2
|
|
11105
11105
|
];
|
|
11106
11106
|
// now initialized
|
|
11107
11107
|
$e523b90a804c5bd3$var$_initialized = true;
|
|
@@ -11254,7 +11254,7 @@ if ($iGlOy.util.isNodejs && !$iGlOy.options.usePureJavaScript && !process.versio
|
|
|
11254
11254
|
// sufficient bytes generated
|
|
11255
11255
|
if (b.length() >= count) return callback(null, b.getBytes(count));
|
|
11256
11256
|
// if amount of data generated is greater than 1 MiB, trigger reseed
|
|
11257
|
-
if (ctx.generated >
|
|
11257
|
+
if (ctx.generated > 0xfffff) ctx.key = null;
|
|
11258
11258
|
if (ctx.key === null) // prevent stack overflow
|
|
11259
11259
|
return $iGlOy.util.nextTick(function() {
|
|
11260
11260
|
_reseed(generate);
|
|
@@ -11290,7 +11290,7 @@ if ($iGlOy.util.isNodejs && !$iGlOy.options.usePureJavaScript && !process.versio
|
|
|
11290
11290
|
var b = $iGlOy.util.createBuffer();
|
|
11291
11291
|
while(b.length() < count){
|
|
11292
11292
|
// if amount of data generated is greater than 1 MiB, trigger reseed
|
|
11293
|
-
if (ctx.generated >
|
|
11293
|
+
if (ctx.generated > 0xfffff) ctx.key = null;
|
|
11294
11294
|
if (ctx.key === null) _reseedSync();
|
|
11295
11295
|
// generate the random bytes
|
|
11296
11296
|
var bytes = cipher(ctx.key, ctx.seed);
|
|
@@ -11333,7 +11333,7 @@ if ($iGlOy.util.isNodejs && !$iGlOy.options.usePureJavaScript && !process.versio
|
|
|
11333
11333
|
* Private function that seeds a generator once enough bytes are available.
|
|
11334
11334
|
*/ function _seed() {
|
|
11335
11335
|
// update reseed count
|
|
11336
|
-
ctx.reseeds = ctx.reseeds ===
|
|
11336
|
+
ctx.reseeds = ctx.reseeds === 0xffffffff ? 0 : ctx.reseeds + 1;
|
|
11337
11337
|
// goal is to update `key` via:
|
|
11338
11338
|
// key = hash(key + s)
|
|
11339
11339
|
// where 's' is all collected entropy from selected pools, then...
|
|
@@ -11398,20 +11398,20 @@ if ($iGlOy.util.isNodejs && !$iGlOy.options.usePureJavaScript && !process.versio
|
|
|
11398
11398
|
/* Draws from Park-Miller "minimal standard" 31 bit PRNG,
|
|
11399
11399
|
implemented with David G. Carta's optimization: with 32 bit math
|
|
11400
11400
|
and without division (Public Domain). */ var hi, lo, next;
|
|
11401
|
-
var seed = Math.floor(Math.random() *
|
|
11401
|
+
var seed = Math.floor(Math.random() * 0x010000);
|
|
11402
11402
|
while(b.length() < needed){
|
|
11403
|
-
lo = 16807 * (seed &
|
|
11403
|
+
lo = 16807 * (seed & 0xFFFF);
|
|
11404
11404
|
hi = 16807 * (seed >> 16);
|
|
11405
|
-
lo += (hi &
|
|
11405
|
+
lo += (hi & 0x7FFF) << 16;
|
|
11406
11406
|
lo += hi >> 15;
|
|
11407
|
-
lo = (lo &
|
|
11408
|
-
seed = lo &
|
|
11407
|
+
lo = (lo & 0x7FFFFFFF) + (lo >> 31);
|
|
11408
|
+
seed = lo & 0xFFFFFFFF;
|
|
11409
11409
|
// consume lower 3 bytes of seed
|
|
11410
11410
|
for(var i = 0; i < 3; ++i){
|
|
11411
11411
|
// throw in more pseudo random
|
|
11412
11412
|
next = seed >>> (i << 3);
|
|
11413
|
-
next ^= Math.floor(Math.random() *
|
|
11414
|
-
b.putByte(next &
|
|
11413
|
+
next ^= Math.floor(Math.random() * 0x0100);
|
|
11414
|
+
b.putByte(next & 0xFF);
|
|
11415
11415
|
}
|
|
11416
11416
|
}
|
|
11417
11417
|
}
|
|
@@ -11459,7 +11459,7 @@ if ($iGlOy.util.isNodejs && !$iGlOy.options.usePureJavaScript && !process.versio
|
|
|
11459
11459
|
* @param n the number of bits in the integer.
|
|
11460
11460
|
*/ ctx.collectInt = function(i, n) {
|
|
11461
11461
|
var bytes = '';
|
|
11462
|
-
for(var x = 0; x < n; x += 8)bytes += String.fromCharCode(i >> x &
|
|
11462
|
+
for(var x = 0; x < n; x += 8)bytes += String.fromCharCode(i >> x & 0xFF);
|
|
11463
11463
|
ctx.collect(bytes);
|
|
11464
11464
|
};
|
|
11465
11465
|
/**
|
|
@@ -11648,262 +11648,262 @@ var $e745366ef6f504e1$exports = {};
|
|
|
11648
11648
|
var $iGlOy = parcelRequire("iGlOy");
|
|
11649
11649
|
|
|
11650
11650
|
var $e745366ef6f504e1$var$piTable = [
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
11709
|
-
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
11726
|
-
|
|
11727
|
-
|
|
11728
|
-
|
|
11729
|
-
|
|
11730
|
-
|
|
11731
|
-
|
|
11732
|
-
|
|
11733
|
-
|
|
11734
|
-
|
|
11735
|
-
|
|
11736
|
-
|
|
11737
|
-
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
|
|
11741
|
-
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
-
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11801
|
-
|
|
11802
|
-
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
|
|
11847
|
-
|
|
11848
|
-
|
|
11849
|
-
|
|
11850
|
-
|
|
11851
|
-
|
|
11852
|
-
|
|
11853
|
-
|
|
11854
|
-
|
|
11855
|
-
|
|
11856
|
-
|
|
11857
|
-
|
|
11858
|
-
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
|
|
11876
|
-
|
|
11877
|
-
|
|
11878
|
-
|
|
11879
|
-
|
|
11880
|
-
|
|
11881
|
-
|
|
11882
|
-
|
|
11883
|
-
|
|
11884
|
-
|
|
11885
|
-
|
|
11886
|
-
|
|
11887
|
-
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
11894
|
-
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
11905
|
-
|
|
11906
|
-
|
|
11651
|
+
0xd9,
|
|
11652
|
+
0x78,
|
|
11653
|
+
0xf9,
|
|
11654
|
+
0xc4,
|
|
11655
|
+
0x19,
|
|
11656
|
+
0xdd,
|
|
11657
|
+
0xb5,
|
|
11658
|
+
0xed,
|
|
11659
|
+
0x28,
|
|
11660
|
+
0xe9,
|
|
11661
|
+
0xfd,
|
|
11662
|
+
0x79,
|
|
11663
|
+
0x4a,
|
|
11664
|
+
0xa0,
|
|
11665
|
+
0xd8,
|
|
11666
|
+
0x9d,
|
|
11667
|
+
0xc6,
|
|
11668
|
+
0x7e,
|
|
11669
|
+
0x37,
|
|
11670
|
+
0x83,
|
|
11671
|
+
0x2b,
|
|
11672
|
+
0x76,
|
|
11673
|
+
0x53,
|
|
11674
|
+
0x8e,
|
|
11675
|
+
0x62,
|
|
11676
|
+
0x4c,
|
|
11677
|
+
0x64,
|
|
11678
|
+
0x88,
|
|
11679
|
+
0x44,
|
|
11680
|
+
0x8b,
|
|
11681
|
+
0xfb,
|
|
11682
|
+
0xa2,
|
|
11683
|
+
0x17,
|
|
11684
|
+
0x9a,
|
|
11685
|
+
0x59,
|
|
11686
|
+
0xf5,
|
|
11687
|
+
0x87,
|
|
11688
|
+
0xb3,
|
|
11689
|
+
0x4f,
|
|
11690
|
+
0x13,
|
|
11691
|
+
0x61,
|
|
11692
|
+
0x45,
|
|
11693
|
+
0x6d,
|
|
11694
|
+
0x8d,
|
|
11695
|
+
0x09,
|
|
11696
|
+
0x81,
|
|
11697
|
+
0x7d,
|
|
11698
|
+
0x32,
|
|
11699
|
+
0xbd,
|
|
11700
|
+
0x8f,
|
|
11701
|
+
0x40,
|
|
11702
|
+
0xeb,
|
|
11703
|
+
0x86,
|
|
11704
|
+
0xb7,
|
|
11705
|
+
0x7b,
|
|
11706
|
+
0x0b,
|
|
11707
|
+
0xf0,
|
|
11708
|
+
0x95,
|
|
11709
|
+
0x21,
|
|
11710
|
+
0x22,
|
|
11711
|
+
0x5c,
|
|
11712
|
+
0x6b,
|
|
11713
|
+
0x4e,
|
|
11714
|
+
0x82,
|
|
11715
|
+
0x54,
|
|
11716
|
+
0xd6,
|
|
11717
|
+
0x65,
|
|
11718
|
+
0x93,
|
|
11719
|
+
0xce,
|
|
11720
|
+
0x60,
|
|
11721
|
+
0xb2,
|
|
11722
|
+
0x1c,
|
|
11723
|
+
0x73,
|
|
11724
|
+
0x56,
|
|
11725
|
+
0xc0,
|
|
11726
|
+
0x14,
|
|
11727
|
+
0xa7,
|
|
11728
|
+
0x8c,
|
|
11729
|
+
0xf1,
|
|
11730
|
+
0xdc,
|
|
11731
|
+
0x12,
|
|
11732
|
+
0x75,
|
|
11733
|
+
0xca,
|
|
11734
|
+
0x1f,
|
|
11735
|
+
0x3b,
|
|
11736
|
+
0xbe,
|
|
11737
|
+
0xe4,
|
|
11738
|
+
0xd1,
|
|
11739
|
+
0x42,
|
|
11740
|
+
0x3d,
|
|
11741
|
+
0xd4,
|
|
11742
|
+
0x30,
|
|
11743
|
+
0xa3,
|
|
11744
|
+
0x3c,
|
|
11745
|
+
0xb6,
|
|
11746
|
+
0x26,
|
|
11747
|
+
0x6f,
|
|
11748
|
+
0xbf,
|
|
11749
|
+
0x0e,
|
|
11750
|
+
0xda,
|
|
11751
|
+
0x46,
|
|
11752
|
+
0x69,
|
|
11753
|
+
0x07,
|
|
11754
|
+
0x57,
|
|
11755
|
+
0x27,
|
|
11756
|
+
0xf2,
|
|
11757
|
+
0x1d,
|
|
11758
|
+
0x9b,
|
|
11759
|
+
0xbc,
|
|
11760
|
+
0x94,
|
|
11761
|
+
0x43,
|
|
11762
|
+
0x03,
|
|
11763
|
+
0xf8,
|
|
11764
|
+
0x11,
|
|
11765
|
+
0xc7,
|
|
11766
|
+
0xf6,
|
|
11767
|
+
0x90,
|
|
11768
|
+
0xef,
|
|
11769
|
+
0x3e,
|
|
11770
|
+
0xe7,
|
|
11771
|
+
0x06,
|
|
11772
|
+
0xc3,
|
|
11773
|
+
0xd5,
|
|
11774
|
+
0x2f,
|
|
11775
|
+
0xc8,
|
|
11776
|
+
0x66,
|
|
11777
|
+
0x1e,
|
|
11778
|
+
0xd7,
|
|
11779
|
+
0x08,
|
|
11780
|
+
0xe8,
|
|
11781
|
+
0xea,
|
|
11782
|
+
0xde,
|
|
11783
|
+
0x80,
|
|
11784
|
+
0x52,
|
|
11785
|
+
0xee,
|
|
11786
|
+
0xf7,
|
|
11787
|
+
0x84,
|
|
11788
|
+
0xaa,
|
|
11789
|
+
0x72,
|
|
11790
|
+
0xac,
|
|
11791
|
+
0x35,
|
|
11792
|
+
0x4d,
|
|
11793
|
+
0x6a,
|
|
11794
|
+
0x2a,
|
|
11795
|
+
0x96,
|
|
11796
|
+
0x1a,
|
|
11797
|
+
0xd2,
|
|
11798
|
+
0x71,
|
|
11799
|
+
0x5a,
|
|
11800
|
+
0x15,
|
|
11801
|
+
0x49,
|
|
11802
|
+
0x74,
|
|
11803
|
+
0x4b,
|
|
11804
|
+
0x9f,
|
|
11805
|
+
0xd0,
|
|
11806
|
+
0x5e,
|
|
11807
|
+
0x04,
|
|
11808
|
+
0x18,
|
|
11809
|
+
0xa4,
|
|
11810
|
+
0xec,
|
|
11811
|
+
0xc2,
|
|
11812
|
+
0xe0,
|
|
11813
|
+
0x41,
|
|
11814
|
+
0x6e,
|
|
11815
|
+
0x0f,
|
|
11816
|
+
0x51,
|
|
11817
|
+
0xcb,
|
|
11818
|
+
0xcc,
|
|
11819
|
+
0x24,
|
|
11820
|
+
0x91,
|
|
11821
|
+
0xaf,
|
|
11822
|
+
0x50,
|
|
11823
|
+
0xa1,
|
|
11824
|
+
0xf4,
|
|
11825
|
+
0x70,
|
|
11826
|
+
0x39,
|
|
11827
|
+
0x99,
|
|
11828
|
+
0x7c,
|
|
11829
|
+
0x3a,
|
|
11830
|
+
0x85,
|
|
11831
|
+
0x23,
|
|
11832
|
+
0xb8,
|
|
11833
|
+
0xb4,
|
|
11834
|
+
0x7a,
|
|
11835
|
+
0xfc,
|
|
11836
|
+
0x02,
|
|
11837
|
+
0x36,
|
|
11838
|
+
0x5b,
|
|
11839
|
+
0x25,
|
|
11840
|
+
0x55,
|
|
11841
|
+
0x97,
|
|
11842
|
+
0x31,
|
|
11843
|
+
0x2d,
|
|
11844
|
+
0x5d,
|
|
11845
|
+
0xfa,
|
|
11846
|
+
0x98,
|
|
11847
|
+
0xe3,
|
|
11848
|
+
0x8a,
|
|
11849
|
+
0x92,
|
|
11850
|
+
0xae,
|
|
11851
|
+
0x05,
|
|
11852
|
+
0xdf,
|
|
11853
|
+
0x29,
|
|
11854
|
+
0x10,
|
|
11855
|
+
0x67,
|
|
11856
|
+
0x6c,
|
|
11857
|
+
0xba,
|
|
11858
|
+
0xc9,
|
|
11859
|
+
0xd3,
|
|
11860
|
+
0x00,
|
|
11861
|
+
0xe6,
|
|
11862
|
+
0xcf,
|
|
11863
|
+
0xe1,
|
|
11864
|
+
0x9e,
|
|
11865
|
+
0xa8,
|
|
11866
|
+
0x2c,
|
|
11867
|
+
0x63,
|
|
11868
|
+
0x16,
|
|
11869
|
+
0x01,
|
|
11870
|
+
0x3f,
|
|
11871
|
+
0x58,
|
|
11872
|
+
0xe2,
|
|
11873
|
+
0x89,
|
|
11874
|
+
0xa9,
|
|
11875
|
+
0x0d,
|
|
11876
|
+
0x38,
|
|
11877
|
+
0x34,
|
|
11878
|
+
0x1b,
|
|
11879
|
+
0xab,
|
|
11880
|
+
0x33,
|
|
11881
|
+
0xff,
|
|
11882
|
+
0xb0,
|
|
11883
|
+
0xbb,
|
|
11884
|
+
0x48,
|
|
11885
|
+
0x0c,
|
|
11886
|
+
0x5f,
|
|
11887
|
+
0xb9,
|
|
11888
|
+
0xb1,
|
|
11889
|
+
0xcd,
|
|
11890
|
+
0x2e,
|
|
11891
|
+
0xc5,
|
|
11892
|
+
0xf3,
|
|
11893
|
+
0xdb,
|
|
11894
|
+
0x47,
|
|
11895
|
+
0xe5,
|
|
11896
|
+
0xa5,
|
|
11897
|
+
0x9c,
|
|
11898
|
+
0x77,
|
|
11899
|
+
0x0a,
|
|
11900
|
+
0xa6,
|
|
11901
|
+
0x20,
|
|
11902
|
+
0x68,
|
|
11903
|
+
0xfe,
|
|
11904
|
+
0x7f,
|
|
11905
|
+
0xc1,
|
|
11906
|
+
0xad
|
|
11907
11907
|
];
|
|
11908
11908
|
var $e745366ef6f504e1$var$s = [
|
|
11909
11909
|
1,
|
|
@@ -11921,7 +11921,7 @@ var $e745366ef6f504e1$var$s = [
|
|
|
11921
11921
|
* @param bits The number of bits to shift by.
|
|
11922
11922
|
* @return The rotated word.
|
|
11923
11923
|
*/ var $e745366ef6f504e1$var$rol = function(word, bits) {
|
|
11924
|
-
return word << bits &
|
|
11924
|
+
return word << bits & 0xffff | (word & 0xffff) >> 16 - bits;
|
|
11925
11925
|
};
|
|
11926
11926
|
/**
|
|
11927
11927
|
* Rotate a word right by given number of bits.
|
|
@@ -11933,7 +11933,7 @@ var $e745366ef6f504e1$var$s = [
|
|
|
11933
11933
|
* @param bits The number of bits to shift by.
|
|
11934
11934
|
* @return The rotated word.
|
|
11935
11935
|
*/ var $e745366ef6f504e1$var$ror = function(word, bits) {
|
|
11936
|
-
return (word &
|
|
11936
|
+
return (word & 0xffff) >> bits | word << 16 - bits & 0xffff;
|
|
11937
11937
|
};
|
|
11938
11938
|
/* RC2 API */ $e745366ef6f504e1$exports = $iGlOy.rc2 = $iGlOy.rc2 || {};
|
|
11939
11939
|
/**
|
|
@@ -11949,9 +11949,9 @@ var $e745366ef6f504e1$var$s = [
|
|
|
11949
11949
|
var T = key.length();
|
|
11950
11950
|
var T1 = effKeyBits;
|
|
11951
11951
|
var T8 = Math.ceil(T1 / 8);
|
|
11952
|
-
var TM =
|
|
11952
|
+
var TM = 0xff >> (T1 & 0x07);
|
|
11953
11953
|
var i;
|
|
11954
|
-
for(i = T; i < 128; i++)L.putByte($e745366ef6f504e1$var$piTable[L.at(i - 1) + L.at(i - T) &
|
|
11954
|
+
for(i = T; i < 128; i++)L.putByte($e745366ef6f504e1$var$piTable[L.at(i - 1) + L.at(i - T) & 0xff]);
|
|
11955
11955
|
L.setAt(128 - T8, $e745366ef6f504e1$var$piTable[L.at(128 - T8) & TM]);
|
|
11956
11956
|
for(i = 127 - T8; i >= 0; i--)L.setAt(i, $e745366ef6f504e1$var$piTable[L.at(i + 1) ^ L.at(i + T8)]);
|
|
11957
11957
|
return L;
|
|
@@ -12029,7 +12029,7 @@ var $e745366ef6f504e1$var$s = [
|
|
|
12029
12029
|
if (encrypt) /* We're encrypting, apply the IV first. */ val ^= _iv.getInt16Le();
|
|
12030
12030
|
else /* We're decryption, keep cipher text for next block. */ _iv.putInt16Le(val);
|
|
12031
12031
|
}
|
|
12032
|
-
R.push(val &
|
|
12032
|
+
R.push(val & 0xffff);
|
|
12033
12033
|
}
|
|
12034
12034
|
/* Reset global "j" variable as per spec. */ j = encrypt ? 0 : 63;
|
|
12035
12035
|
/* Run execution plan. */ for(var ptr = 0; ptr < plan.length; ptr++)for(var ctr = 0; ctr < plan[ptr][0]; ctr++)plan[ptr][1](R);
|
|
@@ -12215,8 +12215,8 @@ $1831e702d86f54be$exports = $iGlOy.jsbn = $iGlOy.jsbn || {};
|
|
|
12215
12215
|
// Bits per digit
|
|
12216
12216
|
var $1831e702d86f54be$var$dbits;
|
|
12217
12217
|
// JavaScript engine analysis
|
|
12218
|
-
var $1831e702d86f54be$var$canary =
|
|
12219
|
-
var $1831e702d86f54be$var$j_lm = ($1831e702d86f54be$var$canary &
|
|
12218
|
+
var $1831e702d86f54be$var$canary = 0xdeadbeefcafe;
|
|
12219
|
+
var $1831e702d86f54be$var$j_lm = ($1831e702d86f54be$var$canary & 0xffffff) == 0xefcafe;
|
|
12220
12220
|
// (public) Constructor
|
|
12221
12221
|
function $1831e702d86f54be$var$BigInteger(a, b, c) {
|
|
12222
12222
|
this.data = [];
|
|
@@ -12241,8 +12241,8 @@ function $1831e702d86f54be$var$nbi() {
|
|
|
12241
12241
|
function $1831e702d86f54be$var$am1(i, x, w, j, c, n) {
|
|
12242
12242
|
while(--n >= 0){
|
|
12243
12243
|
var v = x * this.data[i++] + w.data[j] + c;
|
|
12244
|
-
c = Math.floor(v /
|
|
12245
|
-
w.data[j++] = v &
|
|
12244
|
+
c = Math.floor(v / 0x4000000);
|
|
12245
|
+
w.data[j++] = v & 0x3ffffff;
|
|
12246
12246
|
}
|
|
12247
12247
|
return c;
|
|
12248
12248
|
}
|
|
@@ -12250,28 +12250,28 @@ function $1831e702d86f54be$var$am1(i, x, w, j, c, n) {
|
|
|
12250
12250
|
// Max digit bits should be <= 30 because we do bitwise ops
|
|
12251
12251
|
// on values up to 2*hdvalue^2-hdvalue-1 (< 2^31)
|
|
12252
12252
|
function $1831e702d86f54be$var$am2(i, x, w, j, c, n) {
|
|
12253
|
-
var xl = x &
|
|
12253
|
+
var xl = x & 0x7fff, xh = x >> 15;
|
|
12254
12254
|
while(--n >= 0){
|
|
12255
|
-
var l = this.data[i] &
|
|
12255
|
+
var l = this.data[i] & 0x7fff;
|
|
12256
12256
|
var h = this.data[i++] >> 15;
|
|
12257
12257
|
var m = xh * l + h * xl;
|
|
12258
|
-
l = xl * l + ((m &
|
|
12258
|
+
l = xl * l + ((m & 0x7fff) << 15) + w.data[j] + (c & 0x3fffffff);
|
|
12259
12259
|
c = (l >>> 30) + (m >>> 15) + xh * h + (c >>> 30);
|
|
12260
|
-
w.data[j++] = l &
|
|
12260
|
+
w.data[j++] = l & 0x3fffffff;
|
|
12261
12261
|
}
|
|
12262
12262
|
return c;
|
|
12263
12263
|
}
|
|
12264
12264
|
// Alternately, set max digit bits to 28 since some
|
|
12265
12265
|
// browsers slow down when dealing with 32-bit numbers.
|
|
12266
12266
|
function $1831e702d86f54be$var$am3(i, x, w, j, c, n) {
|
|
12267
|
-
var xl = x &
|
|
12267
|
+
var xl = x & 0x3fff, xh = x >> 14;
|
|
12268
12268
|
while(--n >= 0){
|
|
12269
|
-
var l = this.data[i] &
|
|
12269
|
+
var l = this.data[i] & 0x3fff;
|
|
12270
12270
|
var h = this.data[i++] >> 14;
|
|
12271
12271
|
var m = xh * l + h * xl;
|
|
12272
|
-
l = xl * l + ((m &
|
|
12272
|
+
l = xl * l + ((m & 0x3fff) << 14) + w.data[j] + c;
|
|
12273
12273
|
c = (l >> 28) + (m >> 14) + xh * h;
|
|
12274
|
-
w.data[j++] = l &
|
|
12274
|
+
w.data[j++] = l & 0xfffffff;
|
|
12275
12275
|
}
|
|
12276
12276
|
return c;
|
|
12277
12277
|
}
|
|
@@ -12350,7 +12350,7 @@ function $1831e702d86f54be$var$bnpFromString(s, b) {
|
|
|
12350
12350
|
this.s = 0;
|
|
12351
12351
|
var i = s.length, mi = false, sh = 0;
|
|
12352
12352
|
while(--i >= 0){
|
|
12353
|
-
var x = k == 8 ? s[i] &
|
|
12353
|
+
var x = k == 8 ? s[i] & 0xff : $1831e702d86f54be$var$intAt(s, i);
|
|
12354
12354
|
if (x < 0) {
|
|
12355
12355
|
if (s.charAt(i) == "-") mi = true;
|
|
12356
12356
|
continue;
|
|
@@ -12364,7 +12364,7 @@ function $1831e702d86f54be$var$bnpFromString(s, b) {
|
|
|
12364
12364
|
sh += k;
|
|
12365
12365
|
if (sh >= this.DB) sh -= this.DB;
|
|
12366
12366
|
}
|
|
12367
|
-
if (k == 8 && (s[0] &
|
|
12367
|
+
if (k == 8 && (s[0] & 0x80) != 0) {
|
|
12368
12368
|
this.s = -1;
|
|
12369
12369
|
if (sh > 0) this.data[this.t - 1] |= (1 << this.DB - sh) - 1 << sh;
|
|
12370
12370
|
}
|
|
@@ -12671,9 +12671,9 @@ function $1831e702d86f54be$var$bnpInvDigit() {
|
|
|
12671
12671
|
var x = this.data[0];
|
|
12672
12672
|
if ((x & 1) == 0) return 0;
|
|
12673
12673
|
var y = x & 3; // y == 1/x mod 2^2
|
|
12674
|
-
y = y * (2 - (x &
|
|
12675
|
-
y = y * (2 - (x &
|
|
12676
|
-
y = y * (2 - ((x &
|
|
12674
|
+
y = y * (2 - (x & 0xf) * y) & 0xf; // y == 1/x mod 2^4
|
|
12675
|
+
y = y * (2 - (x & 0xff) * y) & 0xff; // y == 1/x mod 2^8
|
|
12676
|
+
y = y * (2 - ((x & 0xffff) * y & 0xffff)) & 0xffff; // y == 1/x mod 2^16
|
|
12677
12677
|
// last step - calculate inverse mod DV directly;
|
|
12678
12678
|
// assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints
|
|
12679
12679
|
y = y * (2 - x * y % this.DV) % this.DV; // y == 1/x mod 2^dbits
|
|
@@ -12684,7 +12684,7 @@ function $1831e702d86f54be$var$bnpInvDigit() {
|
|
|
12684
12684
|
function $1831e702d86f54be$var$Montgomery(m) {
|
|
12685
12685
|
this.m = m;
|
|
12686
12686
|
this.mp = m.invDigit();
|
|
12687
|
-
this.mpl = this.mp &
|
|
12687
|
+
this.mpl = this.mp & 0x7fff;
|
|
12688
12688
|
this.mph = this.mp >> 15;
|
|
12689
12689
|
this.um = (1 << m.DB - 15) - 1;
|
|
12690
12690
|
this.mt2 = 2 * m.t;
|
|
@@ -12709,7 +12709,7 @@ function $1831e702d86f54be$var$montReduce(x) {
|
|
|
12709
12709
|
while(x.t <= this.mt2)x.data[x.t++] = 0;
|
|
12710
12710
|
for(var i = 0; i < this.m.t; ++i){
|
|
12711
12711
|
// faster way of calculating u0 = x.data[i]*mp mod DV
|
|
12712
|
-
var j = x.data[i] &
|
|
12712
|
+
var j = x.data[i] & 0x7fff;
|
|
12713
12713
|
var u0 = j * this.mpl + ((j * this.mph + (x.data[i] >> 15) * this.mpl & this.um) << 15) & x.DM;
|
|
12714
12714
|
// use am to combine the multiply-shift-add into one call
|
|
12715
12715
|
j = i + this.m.t;
|
|
@@ -12745,7 +12745,7 @@ function $1831e702d86f54be$var$bnpIsEven() {
|
|
|
12745
12745
|
}
|
|
12746
12746
|
// (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79)
|
|
12747
12747
|
function $1831e702d86f54be$var$bnpExp(e, z) {
|
|
12748
|
-
if (e >
|
|
12748
|
+
if (e > 0xffffffff || e < 1) return $1831e702d86f54be$var$BigInteger.ONE;
|
|
12749
12749
|
var r = $1831e702d86f54be$var$nbi(), r2 = $1831e702d86f54be$var$nbi(), g = z.convert(this), i = $1831e702d86f54be$var$nbits(e) - 1;
|
|
12750
12750
|
g.copyTo(r);
|
|
12751
12751
|
while(--i >= 0){
|
|
@@ -12909,14 +12909,14 @@ function $1831e702d86f54be$var$bnToByteArray() {
|
|
|
12909
12909
|
d = (this.data[i] & (1 << p) - 1) << 8 - p;
|
|
12910
12910
|
d |= this.data[--i] >> (p += this.DB - 8);
|
|
12911
12911
|
} else {
|
|
12912
|
-
d = this.data[i] >> (p -= 8) &
|
|
12912
|
+
d = this.data[i] >> (p -= 8) & 0xff;
|
|
12913
12913
|
if (p <= 0) {
|
|
12914
12914
|
p += this.DB;
|
|
12915
12915
|
--i;
|
|
12916
12916
|
}
|
|
12917
12917
|
}
|
|
12918
|
-
if ((d &
|
|
12919
|
-
if (k == 0 && (this.s &
|
|
12918
|
+
if ((d & 0x80) != 0) d |= -256;
|
|
12919
|
+
if (k == 0 && (this.s & 0x80) != (d & 0x80)) ++k;
|
|
12920
12920
|
if (k > 0 || d != this.s) r[k++] = d;
|
|
12921
12921
|
}
|
|
12922
12922
|
}
|
|
@@ -13009,15 +13009,15 @@ function $1831e702d86f54be$var$bnShiftRight(n) {
|
|
|
13009
13009
|
function $1831e702d86f54be$var$lbit(x) {
|
|
13010
13010
|
if (x == 0) return -1;
|
|
13011
13011
|
var r = 0;
|
|
13012
|
-
if ((x &
|
|
13012
|
+
if ((x & 0xffff) == 0) {
|
|
13013
13013
|
x >>= 16;
|
|
13014
13014
|
r += 16;
|
|
13015
13015
|
}
|
|
13016
|
-
if ((x &
|
|
13016
|
+
if ((x & 0xff) == 0) {
|
|
13017
13017
|
x >>= 8;
|
|
13018
13018
|
r += 8;
|
|
13019
13019
|
}
|
|
13020
|
-
if ((x &
|
|
13020
|
+
if ((x & 0xf) == 0) {
|
|
13021
13021
|
x >>= 4;
|
|
13022
13022
|
r += 4;
|
|
13023
13023
|
}
|
|
@@ -13553,7 +13553,7 @@ function $1831e702d86f54be$var$bnGetPrng() {
|
|
|
13553
13553
|
return {
|
|
13554
13554
|
// x is an array to fill with bytes
|
|
13555
13555
|
nextBytes: function(x) {
|
|
13556
|
-
for(var i = 0; i < x.length; ++i)x[i] = Math.floor(Math.random() *
|
|
13556
|
+
for(var i = 0; i < x.length; ++i)x[i] = Math.floor(Math.random() * 0x0100);
|
|
13557
13557
|
}
|
|
13558
13558
|
};
|
|
13559
13559
|
}
|
|
@@ -13664,11 +13664,11 @@ $iGlOy.md.sha1 = $iGlOy.md.algorithms.sha1 = $7dc60e406dad2a14$var$sha1;
|
|
|
13664
13664
|
for(var i = 0; i < int32s; ++i)md.fullMessageLength.push(0);
|
|
13665
13665
|
_input = $iGlOy.util.createBuffer();
|
|
13666
13666
|
_state = {
|
|
13667
|
-
h0:
|
|
13668
|
-
h1:
|
|
13669
|
-
h2:
|
|
13670
|
-
h3:
|
|
13671
|
-
h4:
|
|
13667
|
+
h0: 0x67452301,
|
|
13668
|
+
h1: 0xEFCDAB89,
|
|
13669
|
+
h2: 0x98BADCFE,
|
|
13670
|
+
h3: 0x10325476,
|
|
13671
|
+
h4: 0xC3D2E1F0
|
|
13672
13672
|
};
|
|
13673
13673
|
return md;
|
|
13674
13674
|
};
|
|
@@ -13689,14 +13689,14 @@ $iGlOy.md.sha1 = $iGlOy.md.algorithms.sha1 = $7dc60e406dad2a14$var$sha1;
|
|
|
13689
13689
|
var len = msg.length;
|
|
13690
13690
|
md.messageLength += len;
|
|
13691
13691
|
len = [
|
|
13692
|
-
len /
|
|
13692
|
+
len / 0x100000000 >>> 0,
|
|
13693
13693
|
len >>> 0
|
|
13694
13694
|
];
|
|
13695
13695
|
for(var i = md.fullMessageLength.length - 1; i >= 0; --i){
|
|
13696
13696
|
md.fullMessageLength[i] += len[1];
|
|
13697
|
-
len[1] = len[0] + (md.fullMessageLength[i] /
|
|
13697
|
+
len[1] = len[0] + (md.fullMessageLength[i] / 0x100000000 >>> 0);
|
|
13698
13698
|
md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0;
|
|
13699
|
-
len[0] = len[1] /
|
|
13699
|
+
len[0] = len[1] / 0x100000000 >>> 0;
|
|
13700
13700
|
}
|
|
13701
13701
|
// add bytes to input buffer
|
|
13702
13702
|
_input.putBytes(msg);
|
|
@@ -13742,7 +13742,7 @@ $iGlOy.md.sha1 = $iGlOy.md.algorithms.sha1 = $7dc60e406dad2a14$var$sha1;
|
|
|
13742
13742
|
var bits = md.fullMessageLength[0] * 8;
|
|
13743
13743
|
for(var i = 0; i < md.fullMessageLength.length - 1; ++i){
|
|
13744
13744
|
next = md.fullMessageLength[i + 1] * 8;
|
|
13745
|
-
carry = next /
|
|
13745
|
+
carry = next / 0x100000000 >>> 0;
|
|
13746
13746
|
bits += carry;
|
|
13747
13747
|
finalBlock.putInt32(bits >>> 0);
|
|
13748
13748
|
bits = next >>> 0;
|
|
@@ -13774,7 +13774,7 @@ var $7dc60e406dad2a14$var$_initialized = false;
|
|
|
13774
13774
|
*/ function $7dc60e406dad2a14$var$_init() {
|
|
13775
13775
|
// create padding
|
|
13776
13776
|
$7dc60e406dad2a14$var$_padding = String.fromCharCode(128);
|
|
13777
|
-
$7dc60e406dad2a14$var$_padding += $iGlOy.util.fillString(String.fromCharCode(
|
|
13777
|
+
$7dc60e406dad2a14$var$_padding += $iGlOy.util.fillString(String.fromCharCode(0x00), 64);
|
|
13778
13778
|
// now initialized
|
|
13779
13779
|
$7dc60e406dad2a14$var$_initialized = true;
|
|
13780
13780
|
}
|
|
@@ -13803,7 +13803,7 @@ var $7dc60e406dad2a14$var$_initialized = false;
|
|
|
13803
13803
|
t = bytes.getInt32();
|
|
13804
13804
|
w[i] = t;
|
|
13805
13805
|
f = d ^ b & (c ^ d);
|
|
13806
|
-
t = (a << 5 | a >>> 27) + f + e +
|
|
13806
|
+
t = (a << 5 | a >>> 27) + f + e + 0x5A827999 + t;
|
|
13807
13807
|
e = d;
|
|
13808
13808
|
d = c;
|
|
13809
13809
|
// `>>> 0` necessary to avoid iOS/Safari 10 optimization bug
|
|
@@ -13816,7 +13816,7 @@ var $7dc60e406dad2a14$var$_initialized = false;
|
|
|
13816
13816
|
t = t << 1 | t >>> 31;
|
|
13817
13817
|
w[i] = t;
|
|
13818
13818
|
f = d ^ b & (c ^ d);
|
|
13819
|
-
t = (a << 5 | a >>> 27) + f + e +
|
|
13819
|
+
t = (a << 5 | a >>> 27) + f + e + 0x5A827999 + t;
|
|
13820
13820
|
e = d;
|
|
13821
13821
|
d = c;
|
|
13822
13822
|
// `>>> 0` necessary to avoid iOS/Safari 10 optimization bug
|
|
@@ -13830,7 +13830,7 @@ var $7dc60e406dad2a14$var$_initialized = false;
|
|
|
13830
13830
|
t = t << 1 | t >>> 31;
|
|
13831
13831
|
w[i] = t;
|
|
13832
13832
|
f = b ^ c ^ d;
|
|
13833
|
-
t = (a << 5 | a >>> 27) + f + e +
|
|
13833
|
+
t = (a << 5 | a >>> 27) + f + e + 0x6ED9EBA1 + t;
|
|
13834
13834
|
e = d;
|
|
13835
13835
|
d = c;
|
|
13836
13836
|
// `>>> 0` necessary to avoid iOS/Safari 10 optimization bug
|
|
@@ -13843,7 +13843,7 @@ var $7dc60e406dad2a14$var$_initialized = false;
|
|
|
13843
13843
|
t = t << 2 | t >>> 30;
|
|
13844
13844
|
w[i] = t;
|
|
13845
13845
|
f = b ^ c ^ d;
|
|
13846
|
-
t = (a << 5 | a >>> 27) + f + e +
|
|
13846
|
+
t = (a << 5 | a >>> 27) + f + e + 0x6ED9EBA1 + t;
|
|
13847
13847
|
e = d;
|
|
13848
13848
|
d = c;
|
|
13849
13849
|
// `>>> 0` necessary to avoid iOS/Safari 10 optimization bug
|
|
@@ -13857,7 +13857,7 @@ var $7dc60e406dad2a14$var$_initialized = false;
|
|
|
13857
13857
|
t = t << 2 | t >>> 30;
|
|
13858
13858
|
w[i] = t;
|
|
13859
13859
|
f = b & c | d & (b ^ c);
|
|
13860
|
-
t = (a << 5 | a >>> 27) + f + e +
|
|
13860
|
+
t = (a << 5 | a >>> 27) + f + e + 0x8F1BBCDC + t;
|
|
13861
13861
|
e = d;
|
|
13862
13862
|
d = c;
|
|
13863
13863
|
// `>>> 0` necessary to avoid iOS/Safari 10 optimization bug
|
|
@@ -13871,7 +13871,7 @@ var $7dc60e406dad2a14$var$_initialized = false;
|
|
|
13871
13871
|
t = t << 2 | t >>> 30;
|
|
13872
13872
|
w[i] = t;
|
|
13873
13873
|
f = b ^ c ^ d;
|
|
13874
|
-
t = (a << 5 | a >>> 27) + f + e +
|
|
13874
|
+
t = (a << 5 | a >>> 27) + f + e + 0xCA62C1D6 + t;
|
|
13875
13875
|
e = d;
|
|
13876
13876
|
d = c;
|
|
13877
13877
|
// `>>> 0` necessary to avoid iOS/Safari 10 optimization bug
|
|
@@ -14028,15 +14028,15 @@ var $564ac6480d83471d$var$pkcs1 = $564ac6480d83471d$exports = $iGlOy.pkcs1 = $iG
|
|
|
14028
14028
|
var index = md.digestLength;
|
|
14029
14029
|
for(var j = md.digestLength; j < db.length; j++){
|
|
14030
14030
|
var code = db.charCodeAt(j);
|
|
14031
|
-
var is_0 = code &
|
|
14031
|
+
var is_0 = code & 0x1 ^ 0x1;
|
|
14032
14032
|
// non-zero if not 0 or 1 in the ps section
|
|
14033
|
-
var error_mask = in_ps ?
|
|
14033
|
+
var error_mask = in_ps ? 0xfffe : 0x0000;
|
|
14034
14034
|
error |= code & error_mask;
|
|
14035
14035
|
// latch in_ps to zero after we find 0x1
|
|
14036
14036
|
in_ps = in_ps & is_0;
|
|
14037
14037
|
index += in_ps;
|
|
14038
14038
|
}
|
|
14039
|
-
if (error || db.charCodeAt(index) !==
|
|
14039
|
+
if (error || db.charCodeAt(index) !== 0x1) throw new Error('Invalid RSAES-OAEP padding.');
|
|
14040
14040
|
return db.substring(index + 1);
|
|
14041
14041
|
};
|
|
14042
14042
|
function $564ac6480d83471d$var$rsa_mgf1(seed, maskLength, hash) {
|
|
@@ -14045,7 +14045,7 @@ function $564ac6480d83471d$var$rsa_mgf1(seed, maskLength, hash) {
|
|
|
14045
14045
|
var t = '';
|
|
14046
14046
|
var count = Math.ceil(maskLength / hash.digestLength);
|
|
14047
14047
|
for(var i = 0; i < count; ++i){
|
|
14048
|
-
var c = String.fromCharCode(i >> 24 &
|
|
14048
|
+
var c = String.fromCharCode(i >> 24 & 0xFF, i >> 16 & 0xFF, i >> 8 & 0xFF, i & 0xFF);
|
|
14049
14049
|
hash.start();
|
|
14050
14050
|
hash.update(seed + c);
|
|
14051
14051
|
t += hash.digest().getBytes();
|
|
@@ -14684,7 +14684,7 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
14684
14684
|
var k = Math.ceil(key.n.bitLength() / 8);
|
|
14685
14685
|
if (bt !== false && bt !== true) {
|
|
14686
14686
|
// legacy, default to PKCS#1 v1.5 padding
|
|
14687
|
-
pub = bt ===
|
|
14687
|
+
pub = bt === 0x02;
|
|
14688
14688
|
eb = $8ab3548bea1beb81$var$_encodePkcs1_v1_5(m, key, bt);
|
|
14689
14689
|
} else {
|
|
14690
14690
|
eb = $iGlOy.util.createBuffer();
|
|
@@ -14702,7 +14702,7 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
14702
14702
|
var ed = $iGlOy.util.createBuffer();
|
|
14703
14703
|
var zeros = k - Math.ceil(yhex.length / 2);
|
|
14704
14704
|
while(zeros > 0){
|
|
14705
|
-
ed.putByte(
|
|
14705
|
+
ed.putByte(0x00);
|
|
14706
14706
|
--zeros;
|
|
14707
14707
|
}
|
|
14708
14708
|
ed.putBytes($iGlOy.util.hexToBytes(yhex));
|
|
@@ -14750,7 +14750,7 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
14750
14750
|
var eb = $iGlOy.util.createBuffer();
|
|
14751
14751
|
var zeros = k - Math.ceil(xhex.length / 2);
|
|
14752
14752
|
while(zeros > 0){
|
|
14753
|
-
eb.putByte(
|
|
14753
|
+
eb.putByte(0x00);
|
|
14754
14754
|
--zeros;
|
|
14755
14755
|
}
|
|
14756
14756
|
eb.putBytes($iGlOy.util.hexToBytes(xhex));
|
|
@@ -15014,9 +15014,9 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
15014
15014
|
}
|
|
15015
15015
|
options = options || {};
|
|
15016
15016
|
if (bits === undefined) bits = options.bits || 2048;
|
|
15017
|
-
if (e1 === undefined) e1 = options.e ||
|
|
15017
|
+
if (e1 === undefined) e1 = options.e || 0x10001;
|
|
15018
15018
|
// use native code if permitted, available, and parameters are acceptable
|
|
15019
|
-
if (!$iGlOy.options.usePureJavaScript && !options.prng && bits >= 256 && bits <= 16384 && (e1 ===
|
|
15019
|
+
if (!$iGlOy.options.usePureJavaScript && !options.prng && bits >= 256 && bits <= 16384 && (e1 === 0x10001 || e1 === 3)) {
|
|
15020
15020
|
if (callback) {
|
|
15021
15021
|
// try native async
|
|
15022
15022
|
if ($8ab3548bea1beb81$var$_detectNodeCrypto('generateKeyPair')) return $8ab3548bea1beb81$var$_crypto.generateKeyPair('rsa', {
|
|
@@ -15155,7 +15155,7 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
15155
15155
|
else if (scheme === undefined) scheme = 'RSAES-PKCS1-V1_5';
|
|
15156
15156
|
if (scheme === 'RSAES-PKCS1-V1_5') scheme = {
|
|
15157
15157
|
encode: function(m, key, pub) {
|
|
15158
|
-
return $8ab3548bea1beb81$var$_encodePkcs1_v1_5(m, key,
|
|
15158
|
+
return $8ab3548bea1beb81$var$_encodePkcs1_v1_5(m, key, 0x02).getBytes();
|
|
15159
15159
|
}
|
|
15160
15160
|
};
|
|
15161
15161
|
else if (scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') scheme = {
|
|
@@ -15327,14 +15327,14 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
15327
15327
|
scheme = {
|
|
15328
15328
|
encode: $8ab3548bea1beb81$var$emsaPkcs1v15encode
|
|
15329
15329
|
};
|
|
15330
|
-
bt =
|
|
15330
|
+
bt = 0x01;
|
|
15331
15331
|
} else if (scheme === 'NONE' || scheme === 'NULL' || scheme === null) {
|
|
15332
15332
|
scheme = {
|
|
15333
15333
|
encode: function() {
|
|
15334
15334
|
return md;
|
|
15335
15335
|
}
|
|
15336
15336
|
};
|
|
15337
|
-
bt =
|
|
15337
|
+
bt = 0x01;
|
|
15338
15338
|
}
|
|
15339
15339
|
// encode and then encrypt
|
|
15340
15340
|
var d = scheme.encode(md, key2.n.bitLength());
|
|
@@ -15530,14 +15530,14 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
15530
15530
|
shall have value FF; and for block type 02, they shall be
|
|
15531
15531
|
pseudorandomly generated and nonzero. This makes the length of the
|
|
15532
15532
|
encryption block EB equal to k. */ // build the encryption block
|
|
15533
|
-
eb.putByte(
|
|
15533
|
+
eb.putByte(0x00);
|
|
15534
15534
|
eb.putByte(bt);
|
|
15535
15535
|
// create the padding
|
|
15536
15536
|
var padNum = k - 3 - m.length;
|
|
15537
15537
|
var padByte;
|
|
15538
15538
|
// private key op
|
|
15539
|
-
if (bt ===
|
|
15540
|
-
padByte = bt ===
|
|
15539
|
+
if (bt === 0x00 || bt === 0x01) {
|
|
15540
|
+
padByte = bt === 0x00 ? 0x00 : 0xFF;
|
|
15541
15541
|
for(var i = 0; i < padNum; ++i)eb.putByte(padByte);
|
|
15542
15542
|
} else // public key op
|
|
15543
15543
|
// pad with random non-zero values
|
|
@@ -15552,7 +15552,7 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
15552
15552
|
padNum = numZeros;
|
|
15553
15553
|
}
|
|
15554
15554
|
// zero followed by message
|
|
15555
|
-
eb.putByte(
|
|
15555
|
+
eb.putByte(0x00);
|
|
15556
15556
|
eb.putBytes(m);
|
|
15557
15557
|
return eb;
|
|
15558
15558
|
}
|
|
@@ -15580,29 +15580,29 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
15580
15580
|
var eb = $iGlOy.util.createBuffer(em);
|
|
15581
15581
|
var first = eb.getByte();
|
|
15582
15582
|
var bt = eb.getByte();
|
|
15583
|
-
if (first !==
|
|
15583
|
+
if (first !== 0x00 || pub && bt !== 0x00 && bt !== 0x01 || !pub && bt != 0x02 || pub && bt === 0x00 && typeof ml === 'undefined') throw new Error('Encryption block is invalid.');
|
|
15584
15584
|
var padNum = 0;
|
|
15585
|
-
if (bt ===
|
|
15585
|
+
if (bt === 0x00) {
|
|
15586
15586
|
// check all padding bytes for 0x00
|
|
15587
15587
|
padNum = k - 3 - ml;
|
|
15588
15588
|
for(var i = 0; i < padNum; ++i){
|
|
15589
|
-
if (eb.getByte() !==
|
|
15589
|
+
if (eb.getByte() !== 0x00) throw new Error('Encryption block is invalid.');
|
|
15590
15590
|
}
|
|
15591
|
-
} else if (bt ===
|
|
15591
|
+
} else if (bt === 0x01) {
|
|
15592
15592
|
// find the first byte that isn't 0xFF, should be after all padding
|
|
15593
15593
|
padNum = 0;
|
|
15594
15594
|
while(eb.length() > 1){
|
|
15595
|
-
if (eb.getByte() !==
|
|
15595
|
+
if (eb.getByte() !== 0xFF) {
|
|
15596
15596
|
--eb.read;
|
|
15597
15597
|
break;
|
|
15598
15598
|
}
|
|
15599
15599
|
++padNum;
|
|
15600
15600
|
}
|
|
15601
|
-
} else if (bt ===
|
|
15601
|
+
} else if (bt === 0x02) {
|
|
15602
15602
|
// look for 0x00 byte
|
|
15603
15603
|
padNum = 0;
|
|
15604
15604
|
while(eb.length() > 1){
|
|
15605
|
-
if (eb.getByte() ===
|
|
15605
|
+
if (eb.getByte() === 0x00) {
|
|
15606
15606
|
--eb.read;
|
|
15607
15607
|
break;
|
|
15608
15608
|
}
|
|
@@ -15611,7 +15611,7 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
15611
15611
|
}
|
|
15612
15612
|
// zero must be 0x00 and padNum must be (k - 3 - message length)
|
|
15613
15613
|
var zero = eb.getByte();
|
|
15614
|
-
if (zero !==
|
|
15614
|
+
if (zero !== 0x00 || padNum !== k - 3 - eb.length()) throw new Error('Encryption block is invalid.');
|
|
15615
15615
|
return eb.getBytes();
|
|
15616
15616
|
}
|
|
15617
15617
|
/**
|
|
@@ -15719,7 +15719,7 @@ var $8ab3548bea1beb81$var$publicKeyValidator = $iGlOy.pki.rsa.publicKeyValidator
|
|
|
15719
15719
|
if (hex[0] >= '8') hex = '00' + hex;
|
|
15720
15720
|
var bytes = $iGlOy.util.hexToBytes(hex);
|
|
15721
15721
|
// ensure integer is minimally-encoded
|
|
15722
|
-
if (bytes.length > 1 && (bytes.charCodeAt(0) === 0 && (bytes.charCodeAt(1) &
|
|
15722
|
+
if (bytes.length > 1 && (bytes.charCodeAt(0) === 0 && (bytes.charCodeAt(1) & 0x80) === 0 || bytes.charCodeAt(0) === 0xFF && (bytes.charCodeAt(1) & 0x80) === 0x80)) return bytes.substr(1);
|
|
15723
15723
|
return bytes;
|
|
15724
15724
|
}
|
|
15725
15725
|
/**
|
|
@@ -16404,11 +16404,11 @@ var $4ead143e6089ae29$var$pkcs12PbeParamsValidator = {
|
|
|
16404
16404
|
var Inew = new $iGlOy.util.ByteBuffer();
|
|
16405
16405
|
for(j = 0; j < k; j++){
|
|
16406
16406
|
var chunk = new $iGlOy.util.ByteBuffer(I.getBytes(v));
|
|
16407
|
-
var x =
|
|
16407
|
+
var x = 0x1ff;
|
|
16408
16408
|
for(l = B.length() - 1; l >= 0; l--){
|
|
16409
16409
|
x = x >> 8;
|
|
16410
16410
|
x += B.at(l) + chunk.at(l);
|
|
16411
|
-
chunk.setAt(l, x &
|
|
16411
|
+
chunk.setAt(l, x & 0xff);
|
|
16412
16412
|
}
|
|
16413
16413
|
Inew.putBuffer(chunk);
|
|
16414
16414
|
}
|
|
@@ -17153,7 +17153,7 @@ var $6aa068716df79957$var$pss = $6aa068716df79957$exports = $iGlOy.pss = $iGlOy.
|
|
|
17153
17153
|
* zero octets. The length of PS may be 0. */ var ps = new $iGlOy.util.ByteBuffer();
|
|
17154
17154
|
ps.fillWithByte(0, emLen - sLen - hLen - 2);
|
|
17155
17155
|
/* 8. Let DB = PS || 0x01 || salt; DB is an octet string of length
|
|
17156
|
-
* emLen - hLen - 1. */ ps.putByte(
|
|
17156
|
+
* emLen - hLen - 1. */ ps.putByte(0x01);
|
|
17157
17157
|
ps.putBytes(salt);
|
|
17158
17158
|
var db = ps.getBytes();
|
|
17159
17159
|
/* 9. Let dbMask = MGF(H, emLen - hLen - 1). */ var maskLen = emLen - hLen - 1;
|
|
@@ -17161,10 +17161,10 @@ var $6aa068716df79957$var$pss = $6aa068716df79957$exports = $iGlOy.pss = $iGlOy.
|
|
|
17161
17161
|
/* 10. Let maskedDB = DB \xor dbMask. */ var maskedDB = '';
|
|
17162
17162
|
for(i = 0; i < maskLen; i++)maskedDB += String.fromCharCode(db.charCodeAt(i) ^ dbMask.charCodeAt(i));
|
|
17163
17163
|
/* 11. Set the leftmost 8emLen - emBits bits of the leftmost octet in
|
|
17164
|
-
* maskedDB to zero. */ var mask =
|
|
17164
|
+
* maskedDB to zero. */ var mask = 0xFF00 >> 8 * emLen - emBits & 0xFF;
|
|
17165
17165
|
maskedDB = String.fromCharCode(maskedDB.charCodeAt(0) & ~mask) + maskedDB.substr(1);
|
|
17166
17166
|
/* 12. Let EM = maskedDB || H || 0xbc.
|
|
17167
|
-
* 13. Output EM. */ return maskedDB + h + String.fromCharCode(
|
|
17167
|
+
* 13. Output EM. */ return maskedDB + h + String.fromCharCode(0xbc);
|
|
17168
17168
|
};
|
|
17169
17169
|
/**
|
|
17170
17170
|
* Verifies a PSS signature.
|
|
@@ -17187,13 +17187,13 @@ var $6aa068716df79957$var$pss = $6aa068716df79957$exports = $iGlOy.pss = $iGlOy.
|
|
|
17187
17187
|
* is the length in bits of the RSA modulus n */ em = em.substr(-emLen);
|
|
17188
17188
|
/* 3. If emLen < hLen + sLen + 2, output "inconsistent" and stop. */ if (emLen < hLen + sLen + 2) throw new Error('Inconsistent parameters to PSS signature verification.');
|
|
17189
17189
|
/* 4. If the rightmost octet of EM does not have hexadecimal value
|
|
17190
|
-
* 0xbc, output "inconsistent" and stop. */ if (em.charCodeAt(emLen - 1) !==
|
|
17190
|
+
* 0xbc, output "inconsistent" and stop. */ if (em.charCodeAt(emLen - 1) !== 0xbc) throw new Error('Encoded message does not end in 0xBC.');
|
|
17191
17191
|
/* 5. Let maskedDB be the leftmost emLen - hLen - 1 octets of EM, and
|
|
17192
17192
|
* let H be the next hLen octets. */ var maskLen = emLen - hLen - 1;
|
|
17193
17193
|
var maskedDB = em.substr(0, maskLen);
|
|
17194
17194
|
var h = em.substr(maskLen, hLen);
|
|
17195
17195
|
/* 6. If the leftmost 8emLen - emBits bits of the leftmost octet in
|
|
17196
|
-
* maskedDB are not all equal to zero, output "inconsistent" and stop. */ var mask =
|
|
17196
|
+
* maskedDB are not all equal to zero, output "inconsistent" and stop. */ var mask = 0xFF00 >> 8 * emLen - emBits & 0xFF;
|
|
17197
17197
|
if ((maskedDB.charCodeAt(0) & mask) !== 0) throw new Error('Bits beyond keysize not zero as expected.');
|
|
17198
17198
|
/* 7. Let dbMask = MGF(H, emLen - hLen - 1). */ var dbMask = mgf.generate(h, maskLen);
|
|
17199
17199
|
/* 8. Let DB = maskedDB \xor dbMask. */ var db = '';
|
|
@@ -17205,9 +17205,9 @@ var $6aa068716df79957$var$pss = $6aa068716df79957$exports = $iGlOy.pss = $iGlOy.
|
|
|
17205
17205
|
* position is "position 1") does not have hexadecimal value 0x01,
|
|
17206
17206
|
* output "inconsistent" and stop. */ var checkLen = emLen - hLen - sLen - 2;
|
|
17207
17207
|
for(i = 0; i < checkLen; i++){
|
|
17208
|
-
if (db.charCodeAt(i) !==
|
|
17208
|
+
if (db.charCodeAt(i) !== 0x00) throw new Error('Leftmost octets not zero as expected');
|
|
17209
17209
|
}
|
|
17210
|
-
if (db.charCodeAt(checkLen) !==
|
|
17210
|
+
if (db.charCodeAt(checkLen) !== 0x01) throw new Error('Inconsistent PSS signature, 0x01 marker not found');
|
|
17211
17211
|
/* 11. Let salt be the last sLen octets of DB. */ var salt = db.substr(-sLen);
|
|
17212
17212
|
/* 12. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt */ var m_ = new $iGlOy.util.ByteBuffer();
|
|
17213
17213
|
m_.fillWithByte(0, 8);
|
|
@@ -18067,7 +18067,7 @@ var $f71d929f259208f7$var$certificationRequestValidator = {
|
|
|
18067
18067
|
* @return the certificate.
|
|
18068
18068
|
*/ $f71d929f259208f7$var$pki.createCertificate = function() {
|
|
18069
18069
|
var cert = {};
|
|
18070
|
-
cert.version =
|
|
18070
|
+
cert.version = 0x02;
|
|
18071
18071
|
cert.serialNumber = '00';
|
|
18072
18072
|
cert.signatureOid = null;
|
|
18073
18073
|
cert.signature = null;
|
|
@@ -18472,7 +18472,7 @@ var $f71d929f259208f7$var$certificationRequestValidator = {
|
|
|
18472
18472
|
e.id = $f71d929f259208f7$var$asn1.derToOid(ext.value[0].value);
|
|
18473
18473
|
e.critical = false;
|
|
18474
18474
|
if (ext.value[1].type === $f71d929f259208f7$var$asn1.Type.BOOLEAN) {
|
|
18475
|
-
e.critical = ext.value[1].value.charCodeAt(0) !==
|
|
18475
|
+
e.critical = ext.value[1].value.charCodeAt(0) !== 0x00;
|
|
18476
18476
|
e.value = ext.value[2].value;
|
|
18477
18477
|
} else e.value = ext.value[1].value;
|
|
18478
18478
|
// if the oid is known, get its name
|
|
@@ -18482,8 +18482,8 @@ var $f71d929f259208f7$var$certificationRequestValidator = {
|
|
|
18482
18482
|
if (e.name === 'keyUsage') {
|
|
18483
18483
|
// get value as BIT STRING
|
|
18484
18484
|
var ev = $f71d929f259208f7$var$asn1.fromDer(e.value);
|
|
18485
|
-
var b2 =
|
|
18486
|
-
var b3 =
|
|
18485
|
+
var b2 = 0x00;
|
|
18486
|
+
var b3 = 0x00;
|
|
18487
18487
|
if (ev.value.length > 1) {
|
|
18488
18488
|
// skip first byte, just indicates unused bits which
|
|
18489
18489
|
// will be padded with 0s anyway
|
|
@@ -18492,21 +18492,21 @@ var $f71d929f259208f7$var$certificationRequestValidator = {
|
|
|
18492
18492
|
b3 = ev.value.length > 2 ? ev.value.charCodeAt(2) : 0;
|
|
18493
18493
|
}
|
|
18494
18494
|
// set flags
|
|
18495
|
-
e.digitalSignature = (b2 &
|
|
18496
|
-
e.nonRepudiation = (b2 &
|
|
18497
|
-
e.keyEncipherment = (b2 &
|
|
18498
|
-
e.dataEncipherment = (b2 &
|
|
18499
|
-
e.keyAgreement = (b2 &
|
|
18500
|
-
e.keyCertSign = (b2 &
|
|
18501
|
-
e.cRLSign = (b2 &
|
|
18502
|
-
e.encipherOnly = (b2 &
|
|
18503
|
-
e.decipherOnly = (b3 &
|
|
18495
|
+
e.digitalSignature = (b2 & 0x80) === 0x80;
|
|
18496
|
+
e.nonRepudiation = (b2 & 0x40) === 0x40;
|
|
18497
|
+
e.keyEncipherment = (b2 & 0x20) === 0x20;
|
|
18498
|
+
e.dataEncipherment = (b2 & 0x10) === 0x10;
|
|
18499
|
+
e.keyAgreement = (b2 & 0x08) === 0x08;
|
|
18500
|
+
e.keyCertSign = (b2 & 0x04) === 0x04;
|
|
18501
|
+
e.cRLSign = (b2 & 0x02) === 0x02;
|
|
18502
|
+
e.encipherOnly = (b2 & 0x01) === 0x01;
|
|
18503
|
+
e.decipherOnly = (b3 & 0x80) === 0x80;
|
|
18504
18504
|
} else if (e.name === 'basicConstraints') {
|
|
18505
18505
|
// handle basic constraints
|
|
18506
18506
|
// get value as SEQUENCE
|
|
18507
18507
|
var ev = $f71d929f259208f7$var$asn1.fromDer(e.value);
|
|
18508
18508
|
// get cA BOOLEAN flag (defaults to false)
|
|
18509
|
-
if (ev.value.length > 0 && ev.value[0].type === $f71d929f259208f7$var$asn1.Type.BOOLEAN) e.cA = ev.value[0].value.charCodeAt(0) !==
|
|
18509
|
+
if (ev.value.length > 0 && ev.value[0].type === $f71d929f259208f7$var$asn1.Type.BOOLEAN) e.cA = ev.value[0].value.charCodeAt(0) !== 0x00;
|
|
18510
18510
|
else e.cA = false;
|
|
18511
18511
|
// get path length constraint
|
|
18512
18512
|
var value = null;
|
|
@@ -18526,20 +18526,20 @@ var $f71d929f259208f7$var$certificationRequestValidator = {
|
|
|
18526
18526
|
// handle nsCertType
|
|
18527
18527
|
// get value as BIT STRING
|
|
18528
18528
|
var ev = $f71d929f259208f7$var$asn1.fromDer(e.value);
|
|
18529
|
-
var b2 =
|
|
18529
|
+
var b2 = 0x00;
|
|
18530
18530
|
if (ev.value.length > 1) // skip first byte, just indicates unused bits which
|
|
18531
18531
|
// will be padded with 0s anyway
|
|
18532
18532
|
// get bytes with flag bits
|
|
18533
18533
|
b2 = ev.value.charCodeAt(1);
|
|
18534
18534
|
// set flags
|
|
18535
|
-
e.client = (b2 &
|
|
18536
|
-
e.server = (b2 &
|
|
18537
|
-
e.email = (b2 &
|
|
18538
|
-
e.objsign = (b2 &
|
|
18539
|
-
e.reserved = (b2 &
|
|
18540
|
-
e.sslCA = (b2 &
|
|
18541
|
-
e.emailCA = (b2 &
|
|
18542
|
-
e.objCA = (b2 &
|
|
18535
|
+
e.client = (b2 & 0x80) === 0x80;
|
|
18536
|
+
e.server = (b2 & 0x40) === 0x40;
|
|
18537
|
+
e.email = (b2 & 0x20) === 0x20;
|
|
18538
|
+
e.objsign = (b2 & 0x10) === 0x10;
|
|
18539
|
+
e.reserved = (b2 & 0x08) === 0x08;
|
|
18540
|
+
e.sslCA = (b2 & 0x04) === 0x04;
|
|
18541
|
+
e.emailCA = (b2 & 0x02) === 0x02;
|
|
18542
|
+
e.objCA = (b2 & 0x01) === 0x01;
|
|
18543
18543
|
} else if (e.name === 'subjectAltName' || e.name === 'issuerAltName') {
|
|
18544
18544
|
// handle subjectAltName/issuerAltName
|
|
18545
18545
|
e.altNames = [];
|
|
@@ -18664,7 +18664,7 @@ var $f71d929f259208f7$var$certificationRequestValidator = {
|
|
|
18664
18664
|
* @return the empty certification request.
|
|
18665
18665
|
*/ $f71d929f259208f7$var$pki.createCertificationRequest = function() {
|
|
18666
18666
|
var csr = {};
|
|
18667
|
-
csr.version =
|
|
18667
|
+
csr.version = 0x00;
|
|
18668
18668
|
csr.signatureOid = null;
|
|
18669
18669
|
csr.signature = null;
|
|
18670
18670
|
csr.siginfo = {};
|
|
@@ -18898,42 +18898,42 @@ var $f71d929f259208f7$var$certificationRequestValidator = {
|
|
|
18898
18898
|
if (e.name === 'keyUsage') {
|
|
18899
18899
|
// build flags
|
|
18900
18900
|
var unused = 0;
|
|
18901
|
-
var b2 =
|
|
18902
|
-
var b3 =
|
|
18901
|
+
var b2 = 0x00;
|
|
18902
|
+
var b3 = 0x00;
|
|
18903
18903
|
if (e.digitalSignature) {
|
|
18904
|
-
b2 |=
|
|
18904
|
+
b2 |= 0x80;
|
|
18905
18905
|
unused = 7;
|
|
18906
18906
|
}
|
|
18907
18907
|
if (e.nonRepudiation) {
|
|
18908
|
-
b2 |=
|
|
18908
|
+
b2 |= 0x40;
|
|
18909
18909
|
unused = 6;
|
|
18910
18910
|
}
|
|
18911
18911
|
if (e.keyEncipherment) {
|
|
18912
|
-
b2 |=
|
|
18912
|
+
b2 |= 0x20;
|
|
18913
18913
|
unused = 5;
|
|
18914
18914
|
}
|
|
18915
18915
|
if (e.dataEncipherment) {
|
|
18916
|
-
b2 |=
|
|
18916
|
+
b2 |= 0x10;
|
|
18917
18917
|
unused = 4;
|
|
18918
18918
|
}
|
|
18919
18919
|
if (e.keyAgreement) {
|
|
18920
|
-
b2 |=
|
|
18920
|
+
b2 |= 0x08;
|
|
18921
18921
|
unused = 3;
|
|
18922
18922
|
}
|
|
18923
18923
|
if (e.keyCertSign) {
|
|
18924
|
-
b2 |=
|
|
18924
|
+
b2 |= 0x04;
|
|
18925
18925
|
unused = 2;
|
|
18926
18926
|
}
|
|
18927
18927
|
if (e.cRLSign) {
|
|
18928
|
-
b2 |=
|
|
18928
|
+
b2 |= 0x02;
|
|
18929
18929
|
unused = 1;
|
|
18930
18930
|
}
|
|
18931
18931
|
if (e.encipherOnly) {
|
|
18932
|
-
b2 |=
|
|
18932
|
+
b2 |= 0x01;
|
|
18933
18933
|
unused = 0;
|
|
18934
18934
|
}
|
|
18935
18935
|
if (e.decipherOnly) {
|
|
18936
|
-
b3 |=
|
|
18936
|
+
b3 |= 0x80;
|
|
18937
18937
|
unused = 7;
|
|
18938
18938
|
}
|
|
18939
18939
|
// create bit string
|
|
@@ -18945,7 +18945,7 @@ var $f71d929f259208f7$var$certificationRequestValidator = {
|
|
|
18945
18945
|
// basicConstraints is a SEQUENCE
|
|
18946
18946
|
e.value = $f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.SEQUENCE, true, []);
|
|
18947
18947
|
// cA BOOLEAN flag defaults to false
|
|
18948
|
-
if (e.cA) e.value.value.push($f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BOOLEAN, false, String.fromCharCode(
|
|
18948
|
+
if (e.cA) e.value.value.push($f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BOOLEAN, false, String.fromCharCode(0xFF)));
|
|
18949
18949
|
if ('pathLenConstraint' in e) e.value.value.push($f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.INTEGER, false, $f71d929f259208f7$var$asn1.integerToDer(e.pathLenConstraint).getBytes()));
|
|
18950
18950
|
} else if (e.name === 'extKeyUsage') {
|
|
18951
18951
|
// extKeyUsage is a SEQUENCE of OIDs
|
|
@@ -18962,37 +18962,37 @@ var $f71d929f259208f7$var$certificationRequestValidator = {
|
|
|
18962
18962
|
// nsCertType is a BIT STRING
|
|
18963
18963
|
// build flags
|
|
18964
18964
|
var unused = 0;
|
|
18965
|
-
var b2 =
|
|
18965
|
+
var b2 = 0x00;
|
|
18966
18966
|
if (e.client) {
|
|
18967
|
-
b2 |=
|
|
18967
|
+
b2 |= 0x80;
|
|
18968
18968
|
unused = 7;
|
|
18969
18969
|
}
|
|
18970
18970
|
if (e.server) {
|
|
18971
|
-
b2 |=
|
|
18971
|
+
b2 |= 0x40;
|
|
18972
18972
|
unused = 6;
|
|
18973
18973
|
}
|
|
18974
18974
|
if (e.email) {
|
|
18975
|
-
b2 |=
|
|
18975
|
+
b2 |= 0x20;
|
|
18976
18976
|
unused = 5;
|
|
18977
18977
|
}
|
|
18978
18978
|
if (e.objsign) {
|
|
18979
|
-
b2 |=
|
|
18979
|
+
b2 |= 0x10;
|
|
18980
18980
|
unused = 4;
|
|
18981
18981
|
}
|
|
18982
18982
|
if (e.reserved) {
|
|
18983
|
-
b2 |=
|
|
18983
|
+
b2 |= 0x08;
|
|
18984
18984
|
unused = 3;
|
|
18985
18985
|
}
|
|
18986
18986
|
if (e.sslCA) {
|
|
18987
|
-
b2 |=
|
|
18987
|
+
b2 |= 0x04;
|
|
18988
18988
|
unused = 2;
|
|
18989
18989
|
}
|
|
18990
18990
|
if (e.emailCA) {
|
|
18991
|
-
b2 |=
|
|
18991
|
+
b2 |= 0x02;
|
|
18992
18992
|
unused = 1;
|
|
18993
18993
|
}
|
|
18994
18994
|
if (e.objCA) {
|
|
18995
|
-
b2 |=
|
|
18995
|
+
b2 |= 0x01;
|
|
18996
18996
|
unused = 0;
|
|
18997
18997
|
}
|
|
18998
18998
|
// create bit string
|
|
@@ -19218,12 +19218,12 @@ var $f71d929f259208f7$var$jan_1_2050 = new Date('2050-01-01T00:00:00Z');
|
|
|
19218
19218
|
if (cert.issuer.uniqueId) // issuerUniqueID (optional)
|
|
19219
19219
|
tbs.value.push($f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.CONTEXT_SPECIFIC, 1, true, [
|
|
19220
19220
|
$f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BITSTRING, false, // TODO: support arbitrary bit length ids
|
|
19221
|
-
String.fromCharCode(
|
|
19221
|
+
String.fromCharCode(0x00) + cert.issuer.uniqueId)
|
|
19222
19222
|
]));
|
|
19223
19223
|
if (cert.subject.uniqueId) // subjectUniqueID (optional)
|
|
19224
19224
|
tbs.value.push($f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.CONTEXT_SPECIFIC, 2, true, [
|
|
19225
19225
|
$f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BITSTRING, false, // TODO: support arbitrary bit length ids
|
|
19226
|
-
String.fromCharCode(
|
|
19226
|
+
String.fromCharCode(0x00) + cert.subject.uniqueId)
|
|
19227
19227
|
]));
|
|
19228
19228
|
if (cert.extensions.length > 0) // extensions (optional)
|
|
19229
19229
|
tbs.value.push($f71d929f259208f7$var$pki.certificateExtensionsToAsn1(cert.extensions));
|
|
@@ -19280,7 +19280,7 @@ var $f71d929f259208f7$var$jan_1_2050 = new Date('2050-01-01T00:00:00Z');
|
|
|
19280
19280
|
$f71d929f259208f7$var$_signatureParametersToAsn1(cert.signatureOid, cert.signatureParameters)
|
|
19281
19281
|
]),
|
|
19282
19282
|
// SignatureValue
|
|
19283
|
-
$f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BITSTRING, false, String.fromCharCode(
|
|
19283
|
+
$f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BITSTRING, false, String.fromCharCode(0x00) + cert.signature)
|
|
19284
19284
|
]);
|
|
19285
19285
|
};
|
|
19286
19286
|
/**
|
|
@@ -19311,7 +19311,7 @@ var $f71d929f259208f7$var$jan_1_2050 = new Date('2050-01-01T00:00:00Z');
|
|
|
19311
19311
|
extseq.value.push($f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.OID, false, $f71d929f259208f7$var$asn1.oidToDer(ext.id).getBytes()));
|
|
19312
19312
|
// critical defaults to false
|
|
19313
19313
|
if (ext.critical) // critical BOOLEAN DEFAULT FALSE
|
|
19314
|
-
extseq.value.push($f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BOOLEAN, false, String.fromCharCode(
|
|
19314
|
+
extseq.value.push($f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BOOLEAN, false, String.fromCharCode(0xFF)));
|
|
19315
19315
|
var value = ext.value;
|
|
19316
19316
|
if (typeof ext.value !== 'string') // value is asn.1
|
|
19317
19317
|
value = $f71d929f259208f7$var$asn1.toDer(value).getBytes();
|
|
@@ -19340,7 +19340,7 @@ var $f71d929f259208f7$var$jan_1_2050 = new Date('2050-01-01T00:00:00Z');
|
|
|
19340
19340
|
$f71d929f259208f7$var$_signatureParametersToAsn1(csr.signatureOid, csr.signatureParameters)
|
|
19341
19341
|
]),
|
|
19342
19342
|
// signature
|
|
19343
|
-
$f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BITSTRING, false, String.fromCharCode(
|
|
19343
|
+
$f71d929f259208f7$var$asn1.create($f71d929f259208f7$var$asn1.Class.UNIVERSAL, $f71d929f259208f7$var$asn1.Type.BITSTRING, false, String.fromCharCode(0x00) + csr.signature)
|
|
19344
19344
|
]);
|
|
19345
19345
|
};
|
|
19346
19346
|
/**
|
|
@@ -21204,7 +21204,7 @@ $e55982d45da68b81$var$tls.Alert.Description = {
|
|
|
21204
21204
|
if (!client) for(var i = 0; i < msg.extensions.length; ++i){
|
|
21205
21205
|
var ext = msg.extensions[i];
|
|
21206
21206
|
// support SNI extension
|
|
21207
|
-
if (ext.type[0] ===
|
|
21207
|
+
if (ext.type[0] === 0x00 && ext.type[1] === 0x00) {
|
|
21208
21208
|
// get server name list
|
|
21209
21209
|
var snl = $e55982d45da68b81$var$readVector(ext.data, 2);
|
|
21210
21210
|
while(snl.length() > 0){
|
|
@@ -21212,7 +21212,7 @@ $e55982d45da68b81$var$tls.Alert.Description = {
|
|
|
21212
21212
|
var snType = snl.getByte();
|
|
21213
21213
|
// only HostName type (0x00) is known, break out if
|
|
21214
21214
|
// another type is detected
|
|
21215
|
-
if (snType !==
|
|
21215
|
+
if (snType !== 0x00) break;
|
|
21216
21216
|
// add host name to server name list
|
|
21217
21217
|
c.session.extensions.server_name.serverNameList.push($e55982d45da68b81$var$readVector(snl, 2).getBytes());
|
|
21218
21218
|
}
|
|
@@ -21920,7 +21920,7 @@ $e55982d45da68b81$var$tls.Alert.Description = {
|
|
|
21920
21920
|
* @param c the connection.
|
|
21921
21921
|
* @param record the record.
|
|
21922
21922
|
*/ $e55982d45da68b81$var$tls.handleChangeCipherSpec = function(c, record) {
|
|
21923
|
-
if (record.fragment.getByte() !==
|
|
21923
|
+
if (record.fragment.getByte() !== 0x01) return c.error(c, {
|
|
21924
21924
|
message: 'Invalid ChangeCipherSpec message received.',
|
|
21925
21925
|
send: true,
|
|
21926
21926
|
alert: {
|
|
@@ -23044,7 +23044,7 @@ $e55982d45da68b81$var$hsTable[$e55982d45da68b81$var$tls.ConnectionEnd.server] =
|
|
|
23044
23044
|
return true;
|
|
23045
23045
|
},
|
|
23046
23046
|
updateSequenceNumber: function() {
|
|
23047
|
-
if (mode.sequenceNumber[1] ===
|
|
23047
|
+
if (mode.sequenceNumber[1] === 0xFFFFFFFF) {
|
|
23048
23048
|
mode.sequenceNumber[1] = 0;
|
|
23049
23049
|
++mode.sequenceNumber[0];
|
|
23050
23050
|
} else ++mode.sequenceNumber[1];
|
|
@@ -23290,8 +23290,8 @@ $e55982d45da68b81$var$hsTable[$e55982d45da68b81$var$tls.ConnectionEnd.server] =
|
|
|
23290
23290
|
if (c.virtualHost) {
|
|
23291
23291
|
// create extension struct
|
|
23292
23292
|
var ext = $iGlOy.util.createBuffer();
|
|
23293
|
-
ext.putByte(
|
|
23294
|
-
ext.putByte(
|
|
23293
|
+
ext.putByte(0x00); // type server_name (ExtensionType is 2 bytes)
|
|
23294
|
+
ext.putByte(0x00);
|
|
23295
23295
|
/* In order to provide the server name, clients MAY include an
|
|
23296
23296
|
* extension of type "server_name" in the (extended) client hello.
|
|
23297
23297
|
* The "extension_data" field of this extension SHALL contain
|
|
@@ -23314,7 +23314,7 @@ $e55982d45da68b81$var$hsTable[$e55982d45da68b81$var$tls.ConnectionEnd.server] =
|
|
|
23314
23314
|
* ServerName server_name_list<1..2^16-1>
|
|
23315
23315
|
* } ServerNameList;
|
|
23316
23316
|
*/ var serverName = $iGlOy.util.createBuffer();
|
|
23317
|
-
serverName.putByte(
|
|
23317
|
+
serverName.putByte(0x00); // type host_name
|
|
23318
23318
|
$e55982d45da68b81$var$writeVector(serverName, 2, $iGlOy.util.createBuffer(c.virtualHost));
|
|
23319
23319
|
// ServerNameList is in extension_data
|
|
23320
23320
|
var snList = $iGlOy.util.createBuffer();
|
|
@@ -23672,7 +23672,7 @@ $e55982d45da68b81$var$hsTable[$e55982d45da68b81$var$tls.ConnectionEnd.server] =
|
|
|
23672
23672
|
// TODO: support other certificate types
|
|
23673
23673
|
var certTypes = $iGlOy.util.createBuffer();
|
|
23674
23674
|
// common RSA certificate type
|
|
23675
|
-
certTypes.putByte(
|
|
23675
|
+
certTypes.putByte(0x01);
|
|
23676
23676
|
// add distinguished names from CA store
|
|
23677
23677
|
var cAs = $iGlOy.util.createBuffer();
|
|
23678
23678
|
for(var key in c.caStore.certs){
|
|
@@ -23721,7 +23721,7 @@ $e55982d45da68b81$var$hsTable[$e55982d45da68b81$var$tls.ConnectionEnd.server] =
|
|
|
23721
23721
|
* @return the ChangeCipherSpec byte buffer.
|
|
23722
23722
|
*/ $e55982d45da68b81$var$tls.createChangeCipherSpec = function() {
|
|
23723
23723
|
var rval = $iGlOy.util.createBuffer();
|
|
23724
|
-
rval.putByte(
|
|
23724
|
+
rval.putByte(0x01);
|
|
23725
23725
|
return rval;
|
|
23726
23726
|
};
|
|
23727
23727
|
/**
|
|
@@ -24559,8 +24559,8 @@ var $48103dfbc323e2e4$var$tls = $48103dfbc323e2e4$exports = $iGlOy.tls;
|
|
|
24559
24559
|
* Supported cipher suites.
|
|
24560
24560
|
*/ $48103dfbc323e2e4$var$tls.CipherSuites['TLS_RSA_WITH_AES_128_CBC_SHA'] = {
|
|
24561
24561
|
id: [
|
|
24562
|
-
|
|
24563
|
-
|
|
24562
|
+
0x00,
|
|
24563
|
+
0x2f
|
|
24564
24564
|
],
|
|
24565
24565
|
name: 'TLS_RSA_WITH_AES_128_CBC_SHA',
|
|
24566
24566
|
initSecurityParameters: function(sp) {
|
|
@@ -24578,8 +24578,8 @@ var $48103dfbc323e2e4$var$tls = $48103dfbc323e2e4$exports = $iGlOy.tls;
|
|
|
24578
24578
|
};
|
|
24579
24579
|
$48103dfbc323e2e4$var$tls.CipherSuites['TLS_RSA_WITH_AES_256_CBC_SHA'] = {
|
|
24580
24580
|
id: [
|
|
24581
|
-
|
|
24582
|
-
|
|
24581
|
+
0x00,
|
|
24582
|
+
0x35
|
|
24583
24583
|
],
|
|
24584
24584
|
name: 'TLS_RSA_WITH_AES_256_CBC_SHA',
|
|
24585
24585
|
initSecurityParameters: function(sp) {
|
|
@@ -24899,14 +24899,14 @@ $iGlOy.md['sha512/224'] = $iGlOy.md.algorithms['sha512/224'] = $iGlOy.sha512.sha
|
|
|
24899
24899
|
var len = msg.length;
|
|
24900
24900
|
md.messageLength += len;
|
|
24901
24901
|
len = [
|
|
24902
|
-
len /
|
|
24902
|
+
len / 0x100000000 >>> 0,
|
|
24903
24903
|
len >>> 0
|
|
24904
24904
|
];
|
|
24905
24905
|
for(var i = md.fullMessageLength.length - 1; i >= 0; --i){
|
|
24906
24906
|
md.fullMessageLength[i] += len[1];
|
|
24907
|
-
len[1] = len[0] + (md.fullMessageLength[i] /
|
|
24907
|
+
len[1] = len[0] + (md.fullMessageLength[i] / 0x100000000 >>> 0);
|
|
24908
24908
|
md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0;
|
|
24909
|
-
len[0] = len[1] /
|
|
24909
|
+
len[0] = len[1] / 0x100000000 >>> 0;
|
|
24910
24910
|
}
|
|
24911
24911
|
// add bytes to input buffer
|
|
24912
24912
|
_input.putBytes(msg);
|
|
@@ -24952,7 +24952,7 @@ $iGlOy.md['sha512/224'] = $iGlOy.md.algorithms['sha512/224'] = $iGlOy.sha512.sha
|
|
|
24952
24952
|
var bits = md.fullMessageLength[0] * 8;
|
|
24953
24953
|
for(var i = 0; i < md.fullMessageLength.length - 1; ++i){
|
|
24954
24954
|
next = md.fullMessageLength[i + 1] * 8;
|
|
24955
|
-
carry = next /
|
|
24955
|
+
carry = next / 0x100000000 >>> 0;
|
|
24956
24956
|
bits += carry;
|
|
24957
24957
|
finalBlock.putInt32(bits >>> 0);
|
|
24958
24958
|
bits = next >>> 0;
|
|
@@ -24986,466 +24986,466 @@ var $33c8fc1a702f0359$var$_states = null;
|
|
|
24986
24986
|
*/ function $33c8fc1a702f0359$var$_init() {
|
|
24987
24987
|
// create padding
|
|
24988
24988
|
$33c8fc1a702f0359$var$_padding = String.fromCharCode(128);
|
|
24989
|
-
$33c8fc1a702f0359$var$_padding += $iGlOy.util.fillString(String.fromCharCode(
|
|
24989
|
+
$33c8fc1a702f0359$var$_padding += $iGlOy.util.fillString(String.fromCharCode(0x00), 128);
|
|
24990
24990
|
// create K table for SHA-512
|
|
24991
24991
|
$33c8fc1a702f0359$var$_k = [
|
|
24992
24992
|
[
|
|
24993
|
-
|
|
24994
|
-
|
|
24993
|
+
0x428a2f98,
|
|
24994
|
+
0xd728ae22
|
|
24995
24995
|
],
|
|
24996
24996
|
[
|
|
24997
|
-
|
|
24998
|
-
|
|
24997
|
+
0x71374491,
|
|
24998
|
+
0x23ef65cd
|
|
24999
24999
|
],
|
|
25000
25000
|
[
|
|
25001
|
-
|
|
25002
|
-
|
|
25001
|
+
0xb5c0fbcf,
|
|
25002
|
+
0xec4d3b2f
|
|
25003
25003
|
],
|
|
25004
25004
|
[
|
|
25005
|
-
|
|
25006
|
-
|
|
25005
|
+
0xe9b5dba5,
|
|
25006
|
+
0x8189dbbc
|
|
25007
25007
|
],
|
|
25008
25008
|
[
|
|
25009
|
-
|
|
25010
|
-
|
|
25009
|
+
0x3956c25b,
|
|
25010
|
+
0xf348b538
|
|
25011
25011
|
],
|
|
25012
25012
|
[
|
|
25013
|
-
|
|
25014
|
-
|
|
25013
|
+
0x59f111f1,
|
|
25014
|
+
0xb605d019
|
|
25015
25015
|
],
|
|
25016
25016
|
[
|
|
25017
|
-
|
|
25018
|
-
|
|
25017
|
+
0x923f82a4,
|
|
25018
|
+
0xaf194f9b
|
|
25019
25019
|
],
|
|
25020
25020
|
[
|
|
25021
|
-
|
|
25022
|
-
|
|
25021
|
+
0xab1c5ed5,
|
|
25022
|
+
0xda6d8118
|
|
25023
25023
|
],
|
|
25024
25024
|
[
|
|
25025
|
-
|
|
25026
|
-
|
|
25025
|
+
0xd807aa98,
|
|
25026
|
+
0xa3030242
|
|
25027
25027
|
],
|
|
25028
25028
|
[
|
|
25029
|
-
|
|
25030
|
-
|
|
25029
|
+
0x12835b01,
|
|
25030
|
+
0x45706fbe
|
|
25031
25031
|
],
|
|
25032
25032
|
[
|
|
25033
|
-
|
|
25034
|
-
|
|
25033
|
+
0x243185be,
|
|
25034
|
+
0x4ee4b28c
|
|
25035
25035
|
],
|
|
25036
25036
|
[
|
|
25037
|
-
|
|
25038
|
-
|
|
25037
|
+
0x550c7dc3,
|
|
25038
|
+
0xd5ffb4e2
|
|
25039
25039
|
],
|
|
25040
25040
|
[
|
|
25041
|
-
|
|
25042
|
-
|
|
25041
|
+
0x72be5d74,
|
|
25042
|
+
0xf27b896f
|
|
25043
25043
|
],
|
|
25044
25044
|
[
|
|
25045
|
-
|
|
25046
|
-
|
|
25045
|
+
0x80deb1fe,
|
|
25046
|
+
0x3b1696b1
|
|
25047
25047
|
],
|
|
25048
25048
|
[
|
|
25049
|
-
|
|
25050
|
-
|
|
25049
|
+
0x9bdc06a7,
|
|
25050
|
+
0x25c71235
|
|
25051
25051
|
],
|
|
25052
25052
|
[
|
|
25053
|
-
|
|
25054
|
-
|
|
25053
|
+
0xc19bf174,
|
|
25054
|
+
0xcf692694
|
|
25055
25055
|
],
|
|
25056
25056
|
[
|
|
25057
|
-
|
|
25058
|
-
|
|
25057
|
+
0xe49b69c1,
|
|
25058
|
+
0x9ef14ad2
|
|
25059
25059
|
],
|
|
25060
25060
|
[
|
|
25061
|
-
|
|
25062
|
-
|
|
25061
|
+
0xefbe4786,
|
|
25062
|
+
0x384f25e3
|
|
25063
25063
|
],
|
|
25064
25064
|
[
|
|
25065
|
-
|
|
25066
|
-
|
|
25065
|
+
0x0fc19dc6,
|
|
25066
|
+
0x8b8cd5b5
|
|
25067
25067
|
],
|
|
25068
25068
|
[
|
|
25069
|
-
|
|
25070
|
-
|
|
25069
|
+
0x240ca1cc,
|
|
25070
|
+
0x77ac9c65
|
|
25071
25071
|
],
|
|
25072
25072
|
[
|
|
25073
|
-
|
|
25074
|
-
|
|
25073
|
+
0x2de92c6f,
|
|
25074
|
+
0x592b0275
|
|
25075
25075
|
],
|
|
25076
25076
|
[
|
|
25077
|
-
|
|
25078
|
-
|
|
25077
|
+
0x4a7484aa,
|
|
25078
|
+
0x6ea6e483
|
|
25079
25079
|
],
|
|
25080
25080
|
[
|
|
25081
|
-
|
|
25082
|
-
|
|
25081
|
+
0x5cb0a9dc,
|
|
25082
|
+
0xbd41fbd4
|
|
25083
25083
|
],
|
|
25084
25084
|
[
|
|
25085
|
-
|
|
25086
|
-
|
|
25085
|
+
0x76f988da,
|
|
25086
|
+
0x831153b5
|
|
25087
25087
|
],
|
|
25088
25088
|
[
|
|
25089
|
-
|
|
25090
|
-
|
|
25089
|
+
0x983e5152,
|
|
25090
|
+
0xee66dfab
|
|
25091
25091
|
],
|
|
25092
25092
|
[
|
|
25093
|
-
|
|
25094
|
-
|
|
25093
|
+
0xa831c66d,
|
|
25094
|
+
0x2db43210
|
|
25095
25095
|
],
|
|
25096
25096
|
[
|
|
25097
|
-
|
|
25098
|
-
|
|
25097
|
+
0xb00327c8,
|
|
25098
|
+
0x98fb213f
|
|
25099
25099
|
],
|
|
25100
25100
|
[
|
|
25101
|
-
|
|
25102
|
-
|
|
25101
|
+
0xbf597fc7,
|
|
25102
|
+
0xbeef0ee4
|
|
25103
25103
|
],
|
|
25104
25104
|
[
|
|
25105
|
-
|
|
25106
|
-
|
|
25105
|
+
0xc6e00bf3,
|
|
25106
|
+
0x3da88fc2
|
|
25107
25107
|
],
|
|
25108
25108
|
[
|
|
25109
|
-
|
|
25110
|
-
|
|
25109
|
+
0xd5a79147,
|
|
25110
|
+
0x930aa725
|
|
25111
25111
|
],
|
|
25112
25112
|
[
|
|
25113
|
-
|
|
25114
|
-
|
|
25113
|
+
0x06ca6351,
|
|
25114
|
+
0xe003826f
|
|
25115
25115
|
],
|
|
25116
25116
|
[
|
|
25117
|
-
|
|
25118
|
-
|
|
25117
|
+
0x14292967,
|
|
25118
|
+
0x0a0e6e70
|
|
25119
25119
|
],
|
|
25120
25120
|
[
|
|
25121
|
-
|
|
25122
|
-
|
|
25121
|
+
0x27b70a85,
|
|
25122
|
+
0x46d22ffc
|
|
25123
25123
|
],
|
|
25124
25124
|
[
|
|
25125
|
-
|
|
25126
|
-
|
|
25125
|
+
0x2e1b2138,
|
|
25126
|
+
0x5c26c926
|
|
25127
25127
|
],
|
|
25128
25128
|
[
|
|
25129
|
-
|
|
25130
|
-
|
|
25129
|
+
0x4d2c6dfc,
|
|
25130
|
+
0x5ac42aed
|
|
25131
25131
|
],
|
|
25132
25132
|
[
|
|
25133
|
-
|
|
25134
|
-
|
|
25133
|
+
0x53380d13,
|
|
25134
|
+
0x9d95b3df
|
|
25135
25135
|
],
|
|
25136
25136
|
[
|
|
25137
|
-
|
|
25138
|
-
|
|
25137
|
+
0x650a7354,
|
|
25138
|
+
0x8baf63de
|
|
25139
25139
|
],
|
|
25140
25140
|
[
|
|
25141
|
-
|
|
25142
|
-
|
|
25141
|
+
0x766a0abb,
|
|
25142
|
+
0x3c77b2a8
|
|
25143
25143
|
],
|
|
25144
25144
|
[
|
|
25145
|
-
|
|
25146
|
-
|
|
25145
|
+
0x81c2c92e,
|
|
25146
|
+
0x47edaee6
|
|
25147
25147
|
],
|
|
25148
25148
|
[
|
|
25149
|
-
|
|
25150
|
-
|
|
25149
|
+
0x92722c85,
|
|
25150
|
+
0x1482353b
|
|
25151
25151
|
],
|
|
25152
25152
|
[
|
|
25153
|
-
|
|
25154
|
-
|
|
25153
|
+
0xa2bfe8a1,
|
|
25154
|
+
0x4cf10364
|
|
25155
25155
|
],
|
|
25156
25156
|
[
|
|
25157
|
-
|
|
25158
|
-
|
|
25157
|
+
0xa81a664b,
|
|
25158
|
+
0xbc423001
|
|
25159
25159
|
],
|
|
25160
25160
|
[
|
|
25161
|
-
|
|
25162
|
-
|
|
25161
|
+
0xc24b8b70,
|
|
25162
|
+
0xd0f89791
|
|
25163
25163
|
],
|
|
25164
25164
|
[
|
|
25165
|
-
|
|
25166
|
-
|
|
25165
|
+
0xc76c51a3,
|
|
25166
|
+
0x0654be30
|
|
25167
25167
|
],
|
|
25168
25168
|
[
|
|
25169
|
-
|
|
25170
|
-
|
|
25169
|
+
0xd192e819,
|
|
25170
|
+
0xd6ef5218
|
|
25171
25171
|
],
|
|
25172
25172
|
[
|
|
25173
|
-
|
|
25174
|
-
|
|
25173
|
+
0xd6990624,
|
|
25174
|
+
0x5565a910
|
|
25175
25175
|
],
|
|
25176
25176
|
[
|
|
25177
|
-
|
|
25178
|
-
|
|
25177
|
+
0xf40e3585,
|
|
25178
|
+
0x5771202a
|
|
25179
25179
|
],
|
|
25180
25180
|
[
|
|
25181
|
-
|
|
25182
|
-
|
|
25181
|
+
0x106aa070,
|
|
25182
|
+
0x32bbd1b8
|
|
25183
25183
|
],
|
|
25184
25184
|
[
|
|
25185
|
-
|
|
25186
|
-
|
|
25185
|
+
0x19a4c116,
|
|
25186
|
+
0xb8d2d0c8
|
|
25187
25187
|
],
|
|
25188
25188
|
[
|
|
25189
|
-
|
|
25190
|
-
|
|
25189
|
+
0x1e376c08,
|
|
25190
|
+
0x5141ab53
|
|
25191
25191
|
],
|
|
25192
25192
|
[
|
|
25193
|
-
|
|
25194
|
-
|
|
25193
|
+
0x2748774c,
|
|
25194
|
+
0xdf8eeb99
|
|
25195
25195
|
],
|
|
25196
25196
|
[
|
|
25197
|
-
|
|
25198
|
-
|
|
25197
|
+
0x34b0bcb5,
|
|
25198
|
+
0xe19b48a8
|
|
25199
25199
|
],
|
|
25200
25200
|
[
|
|
25201
|
-
|
|
25202
|
-
|
|
25201
|
+
0x391c0cb3,
|
|
25202
|
+
0xc5c95a63
|
|
25203
25203
|
],
|
|
25204
25204
|
[
|
|
25205
|
-
|
|
25206
|
-
|
|
25205
|
+
0x4ed8aa4a,
|
|
25206
|
+
0xe3418acb
|
|
25207
25207
|
],
|
|
25208
25208
|
[
|
|
25209
|
-
|
|
25210
|
-
|
|
25209
|
+
0x5b9cca4f,
|
|
25210
|
+
0x7763e373
|
|
25211
25211
|
],
|
|
25212
25212
|
[
|
|
25213
|
-
|
|
25214
|
-
|
|
25213
|
+
0x682e6ff3,
|
|
25214
|
+
0xd6b2b8a3
|
|
25215
25215
|
],
|
|
25216
25216
|
[
|
|
25217
|
-
|
|
25218
|
-
|
|
25217
|
+
0x748f82ee,
|
|
25218
|
+
0x5defb2fc
|
|
25219
25219
|
],
|
|
25220
25220
|
[
|
|
25221
|
-
|
|
25222
|
-
|
|
25221
|
+
0x78a5636f,
|
|
25222
|
+
0x43172f60
|
|
25223
25223
|
],
|
|
25224
25224
|
[
|
|
25225
|
-
|
|
25226
|
-
|
|
25225
|
+
0x84c87814,
|
|
25226
|
+
0xa1f0ab72
|
|
25227
25227
|
],
|
|
25228
25228
|
[
|
|
25229
|
-
|
|
25230
|
-
|
|
25229
|
+
0x8cc70208,
|
|
25230
|
+
0x1a6439ec
|
|
25231
25231
|
],
|
|
25232
25232
|
[
|
|
25233
|
-
|
|
25234
|
-
|
|
25233
|
+
0x90befffa,
|
|
25234
|
+
0x23631e28
|
|
25235
25235
|
],
|
|
25236
25236
|
[
|
|
25237
|
-
|
|
25238
|
-
|
|
25237
|
+
0xa4506ceb,
|
|
25238
|
+
0xde82bde9
|
|
25239
25239
|
],
|
|
25240
25240
|
[
|
|
25241
|
-
|
|
25242
|
-
|
|
25241
|
+
0xbef9a3f7,
|
|
25242
|
+
0xb2c67915
|
|
25243
25243
|
],
|
|
25244
25244
|
[
|
|
25245
|
-
|
|
25246
|
-
|
|
25245
|
+
0xc67178f2,
|
|
25246
|
+
0xe372532b
|
|
25247
25247
|
],
|
|
25248
25248
|
[
|
|
25249
|
-
|
|
25250
|
-
|
|
25249
|
+
0xca273ece,
|
|
25250
|
+
0xea26619c
|
|
25251
25251
|
],
|
|
25252
25252
|
[
|
|
25253
|
-
|
|
25254
|
-
|
|
25253
|
+
0xd186b8c7,
|
|
25254
|
+
0x21c0c207
|
|
25255
25255
|
],
|
|
25256
25256
|
[
|
|
25257
|
-
|
|
25258
|
-
|
|
25257
|
+
0xeada7dd6,
|
|
25258
|
+
0xcde0eb1e
|
|
25259
25259
|
],
|
|
25260
25260
|
[
|
|
25261
|
-
|
|
25262
|
-
|
|
25261
|
+
0xf57d4f7f,
|
|
25262
|
+
0xee6ed178
|
|
25263
25263
|
],
|
|
25264
25264
|
[
|
|
25265
|
-
|
|
25266
|
-
|
|
25265
|
+
0x06f067aa,
|
|
25266
|
+
0x72176fba
|
|
25267
25267
|
],
|
|
25268
25268
|
[
|
|
25269
|
-
|
|
25270
|
-
|
|
25269
|
+
0x0a637dc5,
|
|
25270
|
+
0xa2c898a6
|
|
25271
25271
|
],
|
|
25272
25272
|
[
|
|
25273
|
-
|
|
25274
|
-
|
|
25273
|
+
0x113f9804,
|
|
25274
|
+
0xbef90dae
|
|
25275
25275
|
],
|
|
25276
25276
|
[
|
|
25277
|
-
|
|
25278
|
-
|
|
25277
|
+
0x1b710b35,
|
|
25278
|
+
0x131c471b
|
|
25279
25279
|
],
|
|
25280
25280
|
[
|
|
25281
|
-
|
|
25282
|
-
|
|
25281
|
+
0x28db77f5,
|
|
25282
|
+
0x23047d84
|
|
25283
25283
|
],
|
|
25284
25284
|
[
|
|
25285
|
-
|
|
25286
|
-
|
|
25285
|
+
0x32caab7b,
|
|
25286
|
+
0x40c72493
|
|
25287
25287
|
],
|
|
25288
25288
|
[
|
|
25289
|
-
|
|
25290
|
-
|
|
25289
|
+
0x3c9ebe0a,
|
|
25290
|
+
0x15c9bebc
|
|
25291
25291
|
],
|
|
25292
25292
|
[
|
|
25293
|
-
|
|
25294
|
-
|
|
25293
|
+
0x431d67c4,
|
|
25294
|
+
0x9c100d4c
|
|
25295
25295
|
],
|
|
25296
25296
|
[
|
|
25297
|
-
|
|
25298
|
-
|
|
25297
|
+
0x4cc5d4be,
|
|
25298
|
+
0xcb3e42b6
|
|
25299
25299
|
],
|
|
25300
25300
|
[
|
|
25301
|
-
|
|
25302
|
-
|
|
25301
|
+
0x597f299c,
|
|
25302
|
+
0xfc657e2a
|
|
25303
25303
|
],
|
|
25304
25304
|
[
|
|
25305
|
-
|
|
25306
|
-
|
|
25305
|
+
0x5fcb6fab,
|
|
25306
|
+
0x3ad6faec
|
|
25307
25307
|
],
|
|
25308
25308
|
[
|
|
25309
|
-
|
|
25310
|
-
|
|
25309
|
+
0x6c44198c,
|
|
25310
|
+
0x4a475817
|
|
25311
25311
|
]
|
|
25312
25312
|
];
|
|
25313
25313
|
// initial hash states
|
|
25314
25314
|
$33c8fc1a702f0359$var$_states = {};
|
|
25315
25315
|
$33c8fc1a702f0359$var$_states['SHA-512'] = [
|
|
25316
25316
|
[
|
|
25317
|
-
|
|
25318
|
-
|
|
25317
|
+
0x6a09e667,
|
|
25318
|
+
0xf3bcc908
|
|
25319
25319
|
],
|
|
25320
25320
|
[
|
|
25321
|
-
|
|
25322
|
-
|
|
25321
|
+
0xbb67ae85,
|
|
25322
|
+
0x84caa73b
|
|
25323
25323
|
],
|
|
25324
25324
|
[
|
|
25325
|
-
|
|
25326
|
-
|
|
25325
|
+
0x3c6ef372,
|
|
25326
|
+
0xfe94f82b
|
|
25327
25327
|
],
|
|
25328
25328
|
[
|
|
25329
|
-
|
|
25330
|
-
|
|
25329
|
+
0xa54ff53a,
|
|
25330
|
+
0x5f1d36f1
|
|
25331
25331
|
],
|
|
25332
25332
|
[
|
|
25333
|
-
|
|
25334
|
-
|
|
25333
|
+
0x510e527f,
|
|
25334
|
+
0xade682d1
|
|
25335
25335
|
],
|
|
25336
25336
|
[
|
|
25337
|
-
|
|
25338
|
-
|
|
25337
|
+
0x9b05688c,
|
|
25338
|
+
0x2b3e6c1f
|
|
25339
25339
|
],
|
|
25340
25340
|
[
|
|
25341
|
-
|
|
25342
|
-
|
|
25341
|
+
0x1f83d9ab,
|
|
25342
|
+
0xfb41bd6b
|
|
25343
25343
|
],
|
|
25344
25344
|
[
|
|
25345
|
-
|
|
25346
|
-
|
|
25345
|
+
0x5be0cd19,
|
|
25346
|
+
0x137e2179
|
|
25347
25347
|
]
|
|
25348
25348
|
];
|
|
25349
25349
|
$33c8fc1a702f0359$var$_states['SHA-384'] = [
|
|
25350
25350
|
[
|
|
25351
|
-
|
|
25352
|
-
|
|
25351
|
+
0xcbbb9d5d,
|
|
25352
|
+
0xc1059ed8
|
|
25353
25353
|
],
|
|
25354
25354
|
[
|
|
25355
|
-
|
|
25356
|
-
|
|
25355
|
+
0x629a292a,
|
|
25356
|
+
0x367cd507
|
|
25357
25357
|
],
|
|
25358
25358
|
[
|
|
25359
|
-
|
|
25360
|
-
|
|
25359
|
+
0x9159015a,
|
|
25360
|
+
0x3070dd17
|
|
25361
25361
|
],
|
|
25362
25362
|
[
|
|
25363
|
-
|
|
25364
|
-
|
|
25363
|
+
0x152fecd8,
|
|
25364
|
+
0xf70e5939
|
|
25365
25365
|
],
|
|
25366
25366
|
[
|
|
25367
|
-
|
|
25368
|
-
|
|
25367
|
+
0x67332667,
|
|
25368
|
+
0xffc00b31
|
|
25369
25369
|
],
|
|
25370
25370
|
[
|
|
25371
|
-
|
|
25372
|
-
|
|
25371
|
+
0x8eb44a87,
|
|
25372
|
+
0x68581511
|
|
25373
25373
|
],
|
|
25374
25374
|
[
|
|
25375
|
-
|
|
25376
|
-
|
|
25375
|
+
0xdb0c2e0d,
|
|
25376
|
+
0x64f98fa7
|
|
25377
25377
|
],
|
|
25378
25378
|
[
|
|
25379
|
-
|
|
25380
|
-
|
|
25379
|
+
0x47b5481d,
|
|
25380
|
+
0xbefa4fa4
|
|
25381
25381
|
]
|
|
25382
25382
|
];
|
|
25383
25383
|
$33c8fc1a702f0359$var$_states['SHA-512/256'] = [
|
|
25384
25384
|
[
|
|
25385
|
-
|
|
25386
|
-
|
|
25385
|
+
0x22312194,
|
|
25386
|
+
0xFC2BF72C
|
|
25387
25387
|
],
|
|
25388
25388
|
[
|
|
25389
|
-
|
|
25390
|
-
|
|
25389
|
+
0x9F555FA3,
|
|
25390
|
+
0xC84C64C2
|
|
25391
25391
|
],
|
|
25392
25392
|
[
|
|
25393
|
-
|
|
25394
|
-
|
|
25393
|
+
0x2393B86B,
|
|
25394
|
+
0x6F53B151
|
|
25395
25395
|
],
|
|
25396
25396
|
[
|
|
25397
|
-
|
|
25398
|
-
|
|
25397
|
+
0x96387719,
|
|
25398
|
+
0x5940EABD
|
|
25399
25399
|
],
|
|
25400
25400
|
[
|
|
25401
|
-
|
|
25402
|
-
|
|
25401
|
+
0x96283EE2,
|
|
25402
|
+
0xA88EFFE3
|
|
25403
25403
|
],
|
|
25404
25404
|
[
|
|
25405
|
-
|
|
25406
|
-
|
|
25405
|
+
0xBE5E1E25,
|
|
25406
|
+
0x53863992
|
|
25407
25407
|
],
|
|
25408
25408
|
[
|
|
25409
|
-
|
|
25410
|
-
|
|
25409
|
+
0x2B0199FC,
|
|
25410
|
+
0x2C85B8AA
|
|
25411
25411
|
],
|
|
25412
25412
|
[
|
|
25413
|
-
|
|
25414
|
-
|
|
25413
|
+
0x0EB72DDC,
|
|
25414
|
+
0x81C52CA2
|
|
25415
25415
|
]
|
|
25416
25416
|
];
|
|
25417
25417
|
$33c8fc1a702f0359$var$_states['SHA-512/224'] = [
|
|
25418
25418
|
[
|
|
25419
|
-
|
|
25420
|
-
|
|
25419
|
+
0x8C3D37C8,
|
|
25420
|
+
0x19544DA2
|
|
25421
25421
|
],
|
|
25422
25422
|
[
|
|
25423
|
-
|
|
25424
|
-
|
|
25423
|
+
0x73E19966,
|
|
25424
|
+
0x89DCD4D6
|
|
25425
25425
|
],
|
|
25426
25426
|
[
|
|
25427
|
-
|
|
25428
|
-
|
|
25427
|
+
0x1DFAB7AE,
|
|
25428
|
+
0x32FF9C82
|
|
25429
25429
|
],
|
|
25430
25430
|
[
|
|
25431
|
-
|
|
25432
|
-
|
|
25431
|
+
0x679DD514,
|
|
25432
|
+
0x582F9FCF
|
|
25433
25433
|
],
|
|
25434
25434
|
[
|
|
25435
|
-
|
|
25436
|
-
|
|
25435
|
+
0x0F6D2B69,
|
|
25436
|
+
0x7BD44DA8
|
|
25437
25437
|
],
|
|
25438
25438
|
[
|
|
25439
|
-
|
|
25440
|
-
|
|
25439
|
+
0x77E36F73,
|
|
25440
|
+
0x04C48942
|
|
25441
25441
|
],
|
|
25442
25442
|
[
|
|
25443
|
-
|
|
25444
|
-
|
|
25443
|
+
0x3F9D85A8,
|
|
25444
|
+
0x6A1D36C8
|
|
25445
25445
|
],
|
|
25446
25446
|
[
|
|
25447
|
-
|
|
25448
|
-
|
|
25447
|
+
0x1112E6AD,
|
|
25448
|
+
0x91D692A1
|
|
25449
25449
|
]
|
|
25450
25450
|
];
|
|
25451
25451
|
// now initialized
|
|
@@ -25503,7 +25503,7 @@ var $33c8fc1a702f0359$var$_states = null;
|
|
|
25503
25503
|
w7 = w[i - 7];
|
|
25504
25504
|
w16 = w[i - 16];
|
|
25505
25505
|
lo = t1_lo + w7[1] + t2_lo + w16[1];
|
|
25506
|
-
w[i][0] = t1_hi + w7[0] + t2_hi + w16[0] + (lo /
|
|
25506
|
+
w[i][0] = t1_hi + w7[0] + t2_hi + w16[0] + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25507
25507
|
w[i][1] = lo >>> 0;
|
|
25508
25508
|
}
|
|
25509
25509
|
// initialize hash value for this chunk
|
|
@@ -25540,11 +25540,11 @@ var $33c8fc1a702f0359$var$_states = null;
|
|
|
25540
25540
|
// main algorithm
|
|
25541
25541
|
// t1 = (h + s1 + ch + _k[i] + _w[i]) modulo 2^64 (carry lo overflow)
|
|
25542
25542
|
lo = h_lo + s1_lo + ch_lo + $33c8fc1a702f0359$var$_k[i][1] + w[i][1];
|
|
25543
|
-
t1_hi = h_hi + s1_hi + ch_hi + $33c8fc1a702f0359$var$_k[i][0] + w[i][0] + (lo /
|
|
25543
|
+
t1_hi = h_hi + s1_hi + ch_hi + $33c8fc1a702f0359$var$_k[i][0] + w[i][0] + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25544
25544
|
t1_lo = lo >>> 0;
|
|
25545
25545
|
// t2 = s0 + maj modulo 2^64 (carry lo overflow)
|
|
25546
25546
|
lo = s0_lo + maj_lo;
|
|
25547
|
-
t2_hi = s0_hi + maj_hi + (lo /
|
|
25547
|
+
t2_hi = s0_hi + maj_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25548
25548
|
t2_lo = lo >>> 0;
|
|
25549
25549
|
h_hi = g_hi;
|
|
25550
25550
|
h_lo = g_lo;
|
|
@@ -25554,7 +25554,7 @@ var $33c8fc1a702f0359$var$_states = null;
|
|
|
25554
25554
|
f_lo = e_lo;
|
|
25555
25555
|
// e = (d + t1) modulo 2^64 (carry lo overflow)
|
|
25556
25556
|
lo = d_lo + t1_lo;
|
|
25557
|
-
e_hi = d_hi + t1_hi + (lo /
|
|
25557
|
+
e_hi = d_hi + t1_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25558
25558
|
e_lo = lo >>> 0;
|
|
25559
25559
|
d_hi = c_hi;
|
|
25560
25560
|
d_lo = c_lo;
|
|
@@ -25564,33 +25564,33 @@ var $33c8fc1a702f0359$var$_states = null;
|
|
|
25564
25564
|
b_lo = a_lo;
|
|
25565
25565
|
// a = (t1 + t2) modulo 2^64 (carry lo overflow)
|
|
25566
25566
|
lo = t1_lo + t2_lo;
|
|
25567
|
-
a_hi = t1_hi + t2_hi + (lo /
|
|
25567
|
+
a_hi = t1_hi + t2_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25568
25568
|
a_lo = lo >>> 0;
|
|
25569
25569
|
}
|
|
25570
25570
|
// update hash state (additional modulo 2^64)
|
|
25571
25571
|
lo = s[0][1] + a_lo;
|
|
25572
|
-
s[0][0] = s[0][0] + a_hi + (lo /
|
|
25572
|
+
s[0][0] = s[0][0] + a_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25573
25573
|
s[0][1] = lo >>> 0;
|
|
25574
25574
|
lo = s[1][1] + b_lo;
|
|
25575
|
-
s[1][0] = s[1][0] + b_hi + (lo /
|
|
25575
|
+
s[1][0] = s[1][0] + b_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25576
25576
|
s[1][1] = lo >>> 0;
|
|
25577
25577
|
lo = s[2][1] + c_lo;
|
|
25578
|
-
s[2][0] = s[2][0] + c_hi + (lo /
|
|
25578
|
+
s[2][0] = s[2][0] + c_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25579
25579
|
s[2][1] = lo >>> 0;
|
|
25580
25580
|
lo = s[3][1] + d_lo;
|
|
25581
|
-
s[3][0] = s[3][0] + d_hi + (lo /
|
|
25581
|
+
s[3][0] = s[3][0] + d_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25582
25582
|
s[3][1] = lo >>> 0;
|
|
25583
25583
|
lo = s[4][1] + e_lo;
|
|
25584
|
-
s[4][0] = s[4][0] + e_hi + (lo /
|
|
25584
|
+
s[4][0] = s[4][0] + e_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25585
25585
|
s[4][1] = lo >>> 0;
|
|
25586
25586
|
lo = s[5][1] + f_lo;
|
|
25587
|
-
s[5][0] = s[5][0] + f_hi + (lo /
|
|
25587
|
+
s[5][0] = s[5][0] + f_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25588
25588
|
s[5][1] = lo >>> 0;
|
|
25589
25589
|
lo = s[6][1] + g_lo;
|
|
25590
|
-
s[6][0] = s[6][0] + g_hi + (lo /
|
|
25590
|
+
s[6][0] = s[6][0] + g_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25591
25591
|
s[6][1] = lo >>> 0;
|
|
25592
25592
|
lo = s[7][1] + h_lo;
|
|
25593
|
-
s[7][0] = s[7][0] + h_hi + (lo /
|
|
25593
|
+
s[7][0] = s[7][0] + h_hi + (lo / 0x100000000 >>> 0) >>> 0;
|
|
25594
25594
|
s[7][1] = lo >>> 0;
|
|
25595
25595
|
len -= 128;
|
|
25596
25596
|
}
|
|
@@ -25853,94 +25853,94 @@ var $96695cc1b97188e1$var$gf1 = $96695cc1b97188e1$var$gf([
|
|
|
25853
25853
|
1
|
|
25854
25854
|
]);
|
|
25855
25855
|
var $96695cc1b97188e1$var$D = $96695cc1b97188e1$var$gf([
|
|
25856
|
-
|
|
25857
|
-
|
|
25858
|
-
|
|
25859
|
-
|
|
25860
|
-
|
|
25861
|
-
|
|
25862
|
-
|
|
25863
|
-
|
|
25864
|
-
|
|
25865
|
-
|
|
25866
|
-
|
|
25867
|
-
|
|
25868
|
-
|
|
25869
|
-
|
|
25870
|
-
|
|
25871
|
-
|
|
25856
|
+
0x78a3,
|
|
25857
|
+
0x1359,
|
|
25858
|
+
0x4dca,
|
|
25859
|
+
0x75eb,
|
|
25860
|
+
0xd8ab,
|
|
25861
|
+
0x4141,
|
|
25862
|
+
0x0a4d,
|
|
25863
|
+
0x0070,
|
|
25864
|
+
0xe898,
|
|
25865
|
+
0x7779,
|
|
25866
|
+
0x4079,
|
|
25867
|
+
0x8cc7,
|
|
25868
|
+
0xfe73,
|
|
25869
|
+
0x2b6f,
|
|
25870
|
+
0x6cee,
|
|
25871
|
+
0x5203
|
|
25872
25872
|
]);
|
|
25873
25873
|
var $96695cc1b97188e1$var$D2 = $96695cc1b97188e1$var$gf([
|
|
25874
|
-
|
|
25875
|
-
|
|
25876
|
-
|
|
25877
|
-
|
|
25878
|
-
|
|
25879
|
-
|
|
25880
|
-
|
|
25881
|
-
|
|
25882
|
-
|
|
25883
|
-
|
|
25884
|
-
|
|
25885
|
-
|
|
25886
|
-
|
|
25887
|
-
|
|
25888
|
-
|
|
25889
|
-
|
|
25874
|
+
0xf159,
|
|
25875
|
+
0x26b2,
|
|
25876
|
+
0x9b94,
|
|
25877
|
+
0xebd6,
|
|
25878
|
+
0xb156,
|
|
25879
|
+
0x8283,
|
|
25880
|
+
0x149a,
|
|
25881
|
+
0x00e0,
|
|
25882
|
+
0xd130,
|
|
25883
|
+
0xeef3,
|
|
25884
|
+
0x80f2,
|
|
25885
|
+
0x198e,
|
|
25886
|
+
0xfce7,
|
|
25887
|
+
0x56df,
|
|
25888
|
+
0xd9dc,
|
|
25889
|
+
0x2406
|
|
25890
25890
|
]);
|
|
25891
25891
|
var $96695cc1b97188e1$var$X = $96695cc1b97188e1$var$gf([
|
|
25892
|
-
|
|
25893
|
-
|
|
25894
|
-
|
|
25895
|
-
|
|
25896
|
-
|
|
25897
|
-
|
|
25898
|
-
|
|
25899
|
-
|
|
25900
|
-
|
|
25901
|
-
|
|
25902
|
-
|
|
25903
|
-
|
|
25904
|
-
|
|
25905
|
-
|
|
25906
|
-
|
|
25907
|
-
|
|
25892
|
+
0xd51a,
|
|
25893
|
+
0x8f25,
|
|
25894
|
+
0x2d60,
|
|
25895
|
+
0xc956,
|
|
25896
|
+
0xa7b2,
|
|
25897
|
+
0x9525,
|
|
25898
|
+
0xc760,
|
|
25899
|
+
0x692c,
|
|
25900
|
+
0xdc5c,
|
|
25901
|
+
0xfdd6,
|
|
25902
|
+
0xe231,
|
|
25903
|
+
0xc0a4,
|
|
25904
|
+
0x53fe,
|
|
25905
|
+
0xcd6e,
|
|
25906
|
+
0x36d3,
|
|
25907
|
+
0x2169
|
|
25908
25908
|
]);
|
|
25909
25909
|
var $96695cc1b97188e1$var$Y = $96695cc1b97188e1$var$gf([
|
|
25910
|
-
|
|
25911
|
-
|
|
25912
|
-
|
|
25913
|
-
|
|
25914
|
-
|
|
25915
|
-
|
|
25916
|
-
|
|
25917
|
-
|
|
25918
|
-
|
|
25919
|
-
|
|
25920
|
-
|
|
25921
|
-
|
|
25922
|
-
|
|
25923
|
-
|
|
25924
|
-
|
|
25925
|
-
|
|
25910
|
+
0x6658,
|
|
25911
|
+
0x6666,
|
|
25912
|
+
0x6666,
|
|
25913
|
+
0x6666,
|
|
25914
|
+
0x6666,
|
|
25915
|
+
0x6666,
|
|
25916
|
+
0x6666,
|
|
25917
|
+
0x6666,
|
|
25918
|
+
0x6666,
|
|
25919
|
+
0x6666,
|
|
25920
|
+
0x6666,
|
|
25921
|
+
0x6666,
|
|
25922
|
+
0x6666,
|
|
25923
|
+
0x6666,
|
|
25924
|
+
0x6666,
|
|
25925
|
+
0x6666
|
|
25926
25926
|
]);
|
|
25927
25927
|
var $96695cc1b97188e1$var$L = new Float64Array([
|
|
25928
|
-
|
|
25929
|
-
|
|
25930
|
-
|
|
25931
|
-
|
|
25932
|
-
|
|
25933
|
-
|
|
25934
|
-
|
|
25935
|
-
|
|
25936
|
-
|
|
25937
|
-
|
|
25938
|
-
|
|
25939
|
-
|
|
25940
|
-
|
|
25941
|
-
|
|
25942
|
-
|
|
25943
|
-
|
|
25928
|
+
0xed,
|
|
25929
|
+
0xd3,
|
|
25930
|
+
0xf5,
|
|
25931
|
+
0x5c,
|
|
25932
|
+
0x1a,
|
|
25933
|
+
0x63,
|
|
25934
|
+
0x12,
|
|
25935
|
+
0x58,
|
|
25936
|
+
0xd6,
|
|
25937
|
+
0x9c,
|
|
25938
|
+
0xf7,
|
|
25939
|
+
0xa2,
|
|
25940
|
+
0xde,
|
|
25941
|
+
0xf9,
|
|
25942
|
+
0xde,
|
|
25943
|
+
0x14,
|
|
25944
25944
|
0,
|
|
25945
25945
|
0,
|
|
25946
25946
|
0,
|
|
@@ -25956,25 +25956,25 @@ var $96695cc1b97188e1$var$L = new Float64Array([
|
|
|
25956
25956
|
0,
|
|
25957
25957
|
0,
|
|
25958
25958
|
0,
|
|
25959
|
-
|
|
25959
|
+
0x10
|
|
25960
25960
|
]);
|
|
25961
25961
|
var $96695cc1b97188e1$var$I = $96695cc1b97188e1$var$gf([
|
|
25962
|
-
|
|
25963
|
-
|
|
25964
|
-
|
|
25965
|
-
|
|
25966
|
-
|
|
25967
|
-
|
|
25968
|
-
|
|
25969
|
-
|
|
25970
|
-
|
|
25971
|
-
|
|
25972
|
-
|
|
25973
|
-
|
|
25974
|
-
|
|
25975
|
-
|
|
25976
|
-
|
|
25977
|
-
|
|
25962
|
+
0xa0b0,
|
|
25963
|
+
0x4a0e,
|
|
25964
|
+
0x1b27,
|
|
25965
|
+
0xc4ee,
|
|
25966
|
+
0xe478,
|
|
25967
|
+
0xad2f,
|
|
25968
|
+
0x1806,
|
|
25969
|
+
0x2f43,
|
|
25970
|
+
0xd7a7,
|
|
25971
|
+
0x3dfb,
|
|
25972
|
+
0x0099,
|
|
25973
|
+
0x2b4d,
|
|
25974
|
+
0xdf0b,
|
|
25975
|
+
0x4fc1,
|
|
25976
|
+
0x2480,
|
|
25977
|
+
0x2b83
|
|
25978
25978
|
]);
|
|
25979
25979
|
// TODO: update forge buffer implementation to use `Buffer` or `Uint8Array`,
|
|
25980
25980
|
// whichever is available, to improve performance
|
|
@@ -26141,18 +26141,18 @@ function $96695cc1b97188e1$var$pack25519(o, n) {
|
|
|
26141
26141
|
$96695cc1b97188e1$var$car25519(t);
|
|
26142
26142
|
$96695cc1b97188e1$var$car25519(t);
|
|
26143
26143
|
for(j = 0; j < 2; ++j){
|
|
26144
|
-
m[0] = t[0] -
|
|
26144
|
+
m[0] = t[0] - 0xffed;
|
|
26145
26145
|
for(i = 1; i < 15; ++i){
|
|
26146
|
-
m[i] = t[i] -
|
|
26147
|
-
m[i - 1] &=
|
|
26146
|
+
m[i] = t[i] - 0xffff - (m[i - 1] >> 16 & 1);
|
|
26147
|
+
m[i - 1] &= 0xffff;
|
|
26148
26148
|
}
|
|
26149
|
-
m[15] = t[15] -
|
|
26149
|
+
m[15] = t[15] - 0x7fff - (m[14] >> 16 & 1);
|
|
26150
26150
|
b = m[15] >> 16 & 1;
|
|
26151
|
-
m[14] &=
|
|
26151
|
+
m[14] &= 0xffff;
|
|
26152
26152
|
$96695cc1b97188e1$var$sel25519(t, m, 1 - b);
|
|
26153
26153
|
}
|
|
26154
26154
|
for(i = 0; i < 16; i++){
|
|
26155
|
-
o[2 * i] = t[i] &
|
|
26155
|
+
o[2 * i] = t[i] & 0xff;
|
|
26156
26156
|
o[2 * i + 1] = t[i] >> 8;
|
|
26157
26157
|
}
|
|
26158
26158
|
}
|
|
@@ -26187,7 +26187,7 @@ function $96695cc1b97188e1$var$unpackneg(r, p) {
|
|
|
26187
26187
|
function $96695cc1b97188e1$var$unpack25519(o, n) {
|
|
26188
26188
|
var i;
|
|
26189
26189
|
for(i = 0; i < 16; ++i)o[i] = n[2 * i] + (n[2 * i + 1] << 8);
|
|
26190
|
-
o[15] &=
|
|
26190
|
+
o[15] &= 0x7fff;
|
|
26191
26191
|
}
|
|
26192
26192
|
function $96695cc1b97188e1$var$pow2523(o, i) {
|
|
26193
26193
|
var c = $96695cc1b97188e1$var$gf();
|
|
@@ -32460,7 +32460,7 @@ $parcel$export($f48e6c7a66080865$exports, "distance", () => $f48e6c7a66080865$ex
|
|
|
32460
32460
|
$parcel$export($f48e6c7a66080865$exports, "closest", () => $f48e6c7a66080865$export$ff7f7c97cdce86e, (v) => $f48e6c7a66080865$export$ff7f7c97cdce86e = v);
|
|
32461
32461
|
var $f48e6c7a66080865$export$9f17032d917177de;
|
|
32462
32462
|
var $f48e6c7a66080865$export$ff7f7c97cdce86e;
|
|
32463
|
-
const $f48e6c7a66080865$var$peq = new Uint32Array(
|
|
32463
|
+
const $f48e6c7a66080865$var$peq = new Uint32Array(0x10000);
|
|
32464
32464
|
const $f48e6c7a66080865$var$myers_32 = (a, b)=>{
|
|
32465
32465
|
const n = a.length;
|
|
32466
32466
|
const m = b.length;
|
|
@@ -32782,7 +32782,7 @@ function $4ca1027d34905147$export$2115c2c0a84eef61(expectedValues, actualValue)
|
|
|
32782
32782
|
);
|
|
32783
32783
|
}
|
|
32784
32784
|
$4ca1027d34905147$var$validateSchema.diagnostic = function(schema, data, origin, message1) {
|
|
32785
|
-
if ('source' in data && 'data' in data && typeof data.source !== 'string' && !data) throw new Error('At least one of data.source and data.
|
|
32785
|
+
if ('source' in data && 'data' in data && typeof data.source !== 'string' && !data) throw new Error('At least one of data.source and data.data must be defined!');
|
|
32786
32786
|
var _data;
|
|
32787
32787
|
let object = data.map ? data.map.data : (_data = data.data) !== null && _data !== void 0 ? _data : JSON.parse(data.source);
|
|
32788
32788
|
let errors = $4ca1027d34905147$var$validateSchema(schema, object);
|
|
@@ -32936,6 +32936,8 @@ function $e499d3e618e93ebd$export$2e2bcd8739ae039(fn, delay) {
|
|
|
32936
32936
|
|
|
32937
32937
|
|
|
32938
32938
|
var $618f8c1de80a427f$exports = {};
|
|
32939
|
+
|
|
32940
|
+
var $618f8c1de80a427f$var$__dirname = $8C1kk$path.resolve(__dirname, "../../../../node_modules/open");
|
|
32939
32941
|
'use strict';
|
|
32940
32942
|
|
|
32941
32943
|
var $618f8c1de80a427f$require$promisify = $8C1kk$util.promisify;
|
|
@@ -32991,7 +32993,7 @@ else $544c5203b18a57d8$exports = $544c5203b18a57d8$var$isWsl();
|
|
|
32991
32993
|
const $618f8c1de80a427f$var$pAccess = $618f8c1de80a427f$require$promisify($8C1kk$fs.access);
|
|
32992
32994
|
const $618f8c1de80a427f$var$pExecFile = $618f8c1de80a427f$require$promisify($8C1kk$child_process.execFile);
|
|
32993
32995
|
// Path to included `xdg-open`.
|
|
32994
|
-
const $618f8c1de80a427f$var$localXdgOpenPath = $8C1kk$path.join(__dirname, 'xdg-open');
|
|
32996
|
+
const $618f8c1de80a427f$var$localXdgOpenPath = $8C1kk$path.join($618f8c1de80a427f$var$__dirname, 'xdg-open');
|
|
32995
32997
|
// Convert a path from WSL format to Windows format:
|
|
32996
32998
|
// `/mnt/c/Program Files/Example/MyApp.exe` → `C:\Program Files\Example\MyApp.exe`
|
|
32997
32999
|
const $618f8c1de80a427f$var$wslToWindowsPath = async (path)=>{
|
|
@@ -33058,7 +33060,7 @@ $618f8c1de80a427f$exports = async (target, options)=>{
|
|
|
33058
33060
|
if (options.app) command = options.app;
|
|
33059
33061
|
else {
|
|
33060
33062
|
// When bundled by Webpack, there's no actual package file path and no local `xdg-open`.
|
|
33061
|
-
const isBundled =
|
|
33063
|
+
const isBundled = !$618f8c1de80a427f$var$__dirname || $618f8c1de80a427f$var$__dirname === '/';
|
|
33062
33064
|
// Check if local `xdg-open` exists and is executable.
|
|
33063
33065
|
let exeLocalXdgOpen = false;
|
|
33064
33066
|
try {
|