Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-conte.../plugins/embedpre.../assets/pdf/build
File: pdf.worker.js
rawData: this._data
[39500] Fix | Delete
};
[39501] Fix | Delete
}
[39502] Fix | Delete
}
[39503] Fix | Delete
[39504] Fix | Delete
;// CONCATENATED MODULE: ./src/core/decrypt_stream.js
[39505] Fix | Delete
[39506] Fix | Delete
const chunkSize = 512;
[39507] Fix | Delete
class DecryptStream extends DecodeStream {
[39508] Fix | Delete
constructor(str, maybeLength, decrypt) {
[39509] Fix | Delete
super(maybeLength);
[39510] Fix | Delete
this.str = str;
[39511] Fix | Delete
this.dict = str.dict;
[39512] Fix | Delete
this.decrypt = decrypt;
[39513] Fix | Delete
this.nextChunk = null;
[39514] Fix | Delete
this.initialized = false;
[39515] Fix | Delete
}
[39516] Fix | Delete
readBlock() {
[39517] Fix | Delete
let chunk;
[39518] Fix | Delete
if (this.initialized) {
[39519] Fix | Delete
chunk = this.nextChunk;
[39520] Fix | Delete
} else {
[39521] Fix | Delete
chunk = this.str.getBytes(chunkSize);
[39522] Fix | Delete
this.initialized = true;
[39523] Fix | Delete
}
[39524] Fix | Delete
if (!chunk || chunk.length === 0) {
[39525] Fix | Delete
this.eof = true;
[39526] Fix | Delete
return;
[39527] Fix | Delete
}
[39528] Fix | Delete
this.nextChunk = this.str.getBytes(chunkSize);
[39529] Fix | Delete
const hasMoreData = this.nextChunk?.length > 0;
[39530] Fix | Delete
const decrypt = this.decrypt;
[39531] Fix | Delete
chunk = decrypt(chunk, !hasMoreData);
[39532] Fix | Delete
const bufferLength = this.bufferLength,
[39533] Fix | Delete
newLength = bufferLength + chunk.length,
[39534] Fix | Delete
buffer = this.ensureBuffer(newLength);
[39535] Fix | Delete
buffer.set(chunk, bufferLength);
[39536] Fix | Delete
this.bufferLength = newLength;
[39537] Fix | Delete
}
[39538] Fix | Delete
}
[39539] Fix | Delete
[39540] Fix | Delete
;// CONCATENATED MODULE: ./src/core/crypto.js
[39541] Fix | Delete
[39542] Fix | Delete
[39543] Fix | Delete
[39544] Fix | Delete
[39545] Fix | Delete
[39546] Fix | Delete
[39547] Fix | Delete
[39548] Fix | Delete
[39549] Fix | Delete
[39550] Fix | Delete
[39551] Fix | Delete
[39552] Fix | Delete
[39553] Fix | Delete
class ARCFourCipher {
[39554] Fix | Delete
constructor(key) {
[39555] Fix | Delete
this.a = 0;
[39556] Fix | Delete
this.b = 0;
[39557] Fix | Delete
const s = new Uint8Array(256);
[39558] Fix | Delete
const keyLength = key.length;
[39559] Fix | Delete
for (let i = 0; i < 256; ++i) {
[39560] Fix | Delete
s[i] = i;
[39561] Fix | Delete
}
[39562] Fix | Delete
for (let i = 0, j = 0; i < 256; ++i) {
[39563] Fix | Delete
const tmp = s[i];
[39564] Fix | Delete
j = j + tmp + key[i % keyLength] & 0xff;
[39565] Fix | Delete
s[i] = s[j];
[39566] Fix | Delete
s[j] = tmp;
[39567] Fix | Delete
}
[39568] Fix | Delete
this.s = s;
[39569] Fix | Delete
}
[39570] Fix | Delete
encryptBlock(data) {
[39571] Fix | Delete
let a = this.a,
[39572] Fix | Delete
b = this.b;
[39573] Fix | Delete
const s = this.s;
[39574] Fix | Delete
const n = data.length;
[39575] Fix | Delete
const output = new Uint8Array(n);
[39576] Fix | Delete
for (let i = 0; i < n; ++i) {
[39577] Fix | Delete
a = a + 1 & 0xff;
[39578] Fix | Delete
const tmp = s[a];
[39579] Fix | Delete
b = b + tmp & 0xff;
[39580] Fix | Delete
const tmp2 = s[b];
[39581] Fix | Delete
s[a] = tmp2;
[39582] Fix | Delete
s[b] = tmp;
[39583] Fix | Delete
output[i] = data[i] ^ s[tmp + tmp2 & 0xff];
[39584] Fix | Delete
}
[39585] Fix | Delete
this.a = a;
[39586] Fix | Delete
this.b = b;
[39587] Fix | Delete
return output;
[39588] Fix | Delete
}
[39589] Fix | Delete
decryptBlock(data) {
[39590] Fix | Delete
return this.encryptBlock(data);
[39591] Fix | Delete
}
[39592] Fix | Delete
encrypt(data) {
[39593] Fix | Delete
return this.encryptBlock(data);
[39594] Fix | Delete
}
[39595] Fix | Delete
}
[39596] Fix | Delete
const calculateMD5 = function calculateMD5Closure() {
[39597] Fix | Delete
const r = new Uint8Array([7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
[39598] Fix | Delete
const k = new Int32Array([-680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426, -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162, 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632, 643717713, -373897302, -701558691, 38016083, -660478335, -405537848, 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784, 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556, -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222, -722521979, 76029189, -640364487, -421815835, 530742520, -995338651, -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606, -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649, -145523070, -1120210379, 718787259, -343485551]);
[39599] Fix | Delete
function hash(data, offset, length) {
[39600] Fix | Delete
let h0 = 1732584193,
[39601] Fix | Delete
h1 = -271733879,
[39602] Fix | Delete
h2 = -1732584194,
[39603] Fix | Delete
h3 = 271733878;
[39604] Fix | Delete
const paddedLength = length + 72 & ~63;
[39605] Fix | Delete
const padded = new Uint8Array(paddedLength);
[39606] Fix | Delete
let i, j;
[39607] Fix | Delete
for (i = 0; i < length; ++i) {
[39608] Fix | Delete
padded[i] = data[offset++];
[39609] Fix | Delete
}
[39610] Fix | Delete
padded[i++] = 0x80;
[39611] Fix | Delete
const n = paddedLength - 8;
[39612] Fix | Delete
while (i < n) {
[39613] Fix | Delete
padded[i++] = 0;
[39614] Fix | Delete
}
[39615] Fix | Delete
padded[i++] = length << 3 & 0xff;
[39616] Fix | Delete
padded[i++] = length >> 5 & 0xff;
[39617] Fix | Delete
padded[i++] = length >> 13 & 0xff;
[39618] Fix | Delete
padded[i++] = length >> 21 & 0xff;
[39619] Fix | Delete
padded[i++] = length >>> 29 & 0xff;
[39620] Fix | Delete
padded[i++] = 0;
[39621] Fix | Delete
padded[i++] = 0;
[39622] Fix | Delete
padded[i++] = 0;
[39623] Fix | Delete
const w = new Int32Array(16);
[39624] Fix | Delete
for (i = 0; i < paddedLength;) {
[39625] Fix | Delete
for (j = 0; j < 16; ++j, i += 4) {
[39626] Fix | Delete
w[j] = padded[i] | padded[i + 1] << 8 | padded[i + 2] << 16 | padded[i + 3] << 24;
[39627] Fix | Delete
}
[39628] Fix | Delete
let a = h0,
[39629] Fix | Delete
b = h1,
[39630] Fix | Delete
c = h2,
[39631] Fix | Delete
d = h3,
[39632] Fix | Delete
f,
[39633] Fix | Delete
g;
[39634] Fix | Delete
for (j = 0; j < 64; ++j) {
[39635] Fix | Delete
if (j < 16) {
[39636] Fix | Delete
f = b & c | ~b & d;
[39637] Fix | Delete
g = j;
[39638] Fix | Delete
} else if (j < 32) {
[39639] Fix | Delete
f = d & b | ~d & c;
[39640] Fix | Delete
g = 5 * j + 1 & 15;
[39641] Fix | Delete
} else if (j < 48) {
[39642] Fix | Delete
f = b ^ c ^ d;
[39643] Fix | Delete
g = 3 * j + 5 & 15;
[39644] Fix | Delete
} else {
[39645] Fix | Delete
f = c ^ (b | ~d);
[39646] Fix | Delete
g = 7 * j & 15;
[39647] Fix | Delete
}
[39648] Fix | Delete
const tmp = d,
[39649] Fix | Delete
rotateArg = a + f + k[j] + w[g] | 0,
[39650] Fix | Delete
rotate = r[j];
[39651] Fix | Delete
d = c;
[39652] Fix | Delete
c = b;
[39653] Fix | Delete
b = b + (rotateArg << rotate | rotateArg >>> 32 - rotate) | 0;
[39654] Fix | Delete
a = tmp;
[39655] Fix | Delete
}
[39656] Fix | Delete
h0 = h0 + a | 0;
[39657] Fix | Delete
h1 = h1 + b | 0;
[39658] Fix | Delete
h2 = h2 + c | 0;
[39659] Fix | Delete
h3 = h3 + d | 0;
[39660] Fix | Delete
}
[39661] Fix | Delete
return new Uint8Array([h0 & 0xFF, h0 >> 8 & 0xFF, h0 >> 16 & 0xFF, h0 >>> 24 & 0xFF, h1 & 0xFF, h1 >> 8 & 0xFF, h1 >> 16 & 0xFF, h1 >>> 24 & 0xFF, h2 & 0xFF, h2 >> 8 & 0xFF, h2 >> 16 & 0xFF, h2 >>> 24 & 0xFF, h3 & 0xFF, h3 >> 8 & 0xFF, h3 >> 16 & 0xFF, h3 >>> 24 & 0xFF]);
[39662] Fix | Delete
}
[39663] Fix | Delete
return hash;
[39664] Fix | Delete
}();
[39665] Fix | Delete
class Word64 {
[39666] Fix | Delete
constructor(highInteger, lowInteger) {
[39667] Fix | Delete
this.high = highInteger | 0;
[39668] Fix | Delete
this.low = lowInteger | 0;
[39669] Fix | Delete
}
[39670] Fix | Delete
and(word) {
[39671] Fix | Delete
this.high &= word.high;
[39672] Fix | Delete
this.low &= word.low;
[39673] Fix | Delete
}
[39674] Fix | Delete
xor(word) {
[39675] Fix | Delete
this.high ^= word.high;
[39676] Fix | Delete
this.low ^= word.low;
[39677] Fix | Delete
}
[39678] Fix | Delete
or(word) {
[39679] Fix | Delete
this.high |= word.high;
[39680] Fix | Delete
this.low |= word.low;
[39681] Fix | Delete
}
[39682] Fix | Delete
shiftRight(places) {
[39683] Fix | Delete
if (places >= 32) {
[39684] Fix | Delete
this.low = this.high >>> places - 32 | 0;
[39685] Fix | Delete
this.high = 0;
[39686] Fix | Delete
} else {
[39687] Fix | Delete
this.low = this.low >>> places | this.high << 32 - places;
[39688] Fix | Delete
this.high = this.high >>> places | 0;
[39689] Fix | Delete
}
[39690] Fix | Delete
}
[39691] Fix | Delete
shiftLeft(places) {
[39692] Fix | Delete
if (places >= 32) {
[39693] Fix | Delete
this.high = this.low << places - 32;
[39694] Fix | Delete
this.low = 0;
[39695] Fix | Delete
} else {
[39696] Fix | Delete
this.high = this.high << places | this.low >>> 32 - places;
[39697] Fix | Delete
this.low <<= places;
[39698] Fix | Delete
}
[39699] Fix | Delete
}
[39700] Fix | Delete
rotateRight(places) {
[39701] Fix | Delete
let low, high;
[39702] Fix | Delete
if (places & 32) {
[39703] Fix | Delete
high = this.low;
[39704] Fix | Delete
low = this.high;
[39705] Fix | Delete
} else {
[39706] Fix | Delete
low = this.low;
[39707] Fix | Delete
high = this.high;
[39708] Fix | Delete
}
[39709] Fix | Delete
places &= 31;
[39710] Fix | Delete
this.low = low >>> places | high << 32 - places;
[39711] Fix | Delete
this.high = high >>> places | low << 32 - places;
[39712] Fix | Delete
}
[39713] Fix | Delete
not() {
[39714] Fix | Delete
this.high = ~this.high;
[39715] Fix | Delete
this.low = ~this.low;
[39716] Fix | Delete
}
[39717] Fix | Delete
add(word) {
[39718] Fix | Delete
const lowAdd = (this.low >>> 0) + (word.low >>> 0);
[39719] Fix | Delete
let highAdd = (this.high >>> 0) + (word.high >>> 0);
[39720] Fix | Delete
if (lowAdd > 0xffffffff) {
[39721] Fix | Delete
highAdd += 1;
[39722] Fix | Delete
}
[39723] Fix | Delete
this.low = lowAdd | 0;
[39724] Fix | Delete
this.high = highAdd | 0;
[39725] Fix | Delete
}
[39726] Fix | Delete
copyTo(bytes, offset) {
[39727] Fix | Delete
bytes[offset] = this.high >>> 24 & 0xff;
[39728] Fix | Delete
bytes[offset + 1] = this.high >> 16 & 0xff;
[39729] Fix | Delete
bytes[offset + 2] = this.high >> 8 & 0xff;
[39730] Fix | Delete
bytes[offset + 3] = this.high & 0xff;
[39731] Fix | Delete
bytes[offset + 4] = this.low >>> 24 & 0xff;
[39732] Fix | Delete
bytes[offset + 5] = this.low >> 16 & 0xff;
[39733] Fix | Delete
bytes[offset + 6] = this.low >> 8 & 0xff;
[39734] Fix | Delete
bytes[offset + 7] = this.low & 0xff;
[39735] Fix | Delete
}
[39736] Fix | Delete
assign(word) {
[39737] Fix | Delete
this.high = word.high;
[39738] Fix | Delete
this.low = word.low;
[39739] Fix | Delete
}
[39740] Fix | Delete
}
[39741] Fix | Delete
const calculateSHA256 = function calculateSHA256Closure() {
[39742] Fix | Delete
function rotr(x, n) {
[39743] Fix | Delete
return x >>> n | x << 32 - n;
[39744] Fix | Delete
}
[39745] Fix | Delete
function ch(x, y, z) {
[39746] Fix | Delete
return x & y ^ ~x & z;
[39747] Fix | Delete
}
[39748] Fix | Delete
function maj(x, y, z) {
[39749] Fix | Delete
return x & y ^ x & z ^ y & z;
[39750] Fix | Delete
}
[39751] Fix | Delete
function sigma(x) {
[39752] Fix | Delete
return rotr(x, 2) ^ rotr(x, 13) ^ rotr(x, 22);
[39753] Fix | Delete
}
[39754] Fix | Delete
function sigmaPrime(x) {
[39755] Fix | Delete
return rotr(x, 6) ^ rotr(x, 11) ^ rotr(x, 25);
[39756] Fix | Delete
}
[39757] Fix | Delete
function littleSigma(x) {
[39758] Fix | Delete
return rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3;
[39759] Fix | Delete
}
[39760] Fix | Delete
function littleSigmaPrime(x) {
[39761] Fix | Delete
return rotr(x, 17) ^ rotr(x, 19) ^ x >>> 10;
[39762] Fix | Delete
}
[39763] Fix | Delete
const k = [0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2];
[39764] Fix | Delete
function hash(data, offset, length) {
[39765] Fix | Delete
let h0 = 0x6a09e667,
[39766] Fix | Delete
h1 = 0xbb67ae85,
[39767] Fix | Delete
h2 = 0x3c6ef372,
[39768] Fix | Delete
h3 = 0xa54ff53a,
[39769] Fix | Delete
h4 = 0x510e527f,
[39770] Fix | Delete
h5 = 0x9b05688c,
[39771] Fix | Delete
h6 = 0x1f83d9ab,
[39772] Fix | Delete
h7 = 0x5be0cd19;
[39773] Fix | Delete
const paddedLength = Math.ceil((length + 9) / 64) * 64;
[39774] Fix | Delete
const padded = new Uint8Array(paddedLength);
[39775] Fix | Delete
let i, j;
[39776] Fix | Delete
for (i = 0; i < length; ++i) {
[39777] Fix | Delete
padded[i] = data[offset++];
[39778] Fix | Delete
}
[39779] Fix | Delete
padded[i++] = 0x80;
[39780] Fix | Delete
const n = paddedLength - 8;
[39781] Fix | Delete
while (i < n) {
[39782] Fix | Delete
padded[i++] = 0;
[39783] Fix | Delete
}
[39784] Fix | Delete
padded[i++] = 0;
[39785] Fix | Delete
padded[i++] = 0;
[39786] Fix | Delete
padded[i++] = 0;
[39787] Fix | Delete
padded[i++] = length >>> 29 & 0xff;
[39788] Fix | Delete
padded[i++] = length >> 21 & 0xff;
[39789] Fix | Delete
padded[i++] = length >> 13 & 0xff;
[39790] Fix | Delete
padded[i++] = length >> 5 & 0xff;
[39791] Fix | Delete
padded[i++] = length << 3 & 0xff;
[39792] Fix | Delete
const w = new Uint32Array(64);
[39793] Fix | Delete
for (i = 0; i < paddedLength;) {
[39794] Fix | Delete
for (j = 0; j < 16; ++j) {
[39795] Fix | Delete
w[j] = padded[i] << 24 | padded[i + 1] << 16 | padded[i + 2] << 8 | padded[i + 3];
[39796] Fix | Delete
i += 4;
[39797] Fix | Delete
}
[39798] Fix | Delete
for (j = 16; j < 64; ++j) {
[39799] Fix | Delete
w[j] = littleSigmaPrime(w[j - 2]) + w[j - 7] + littleSigma(w[j - 15]) + w[j - 16] | 0;
[39800] Fix | Delete
}
[39801] Fix | Delete
let a = h0,
[39802] Fix | Delete
b = h1,
[39803] Fix | Delete
c = h2,
[39804] Fix | Delete
d = h3,
[39805] Fix | Delete
e = h4,
[39806] Fix | Delete
f = h5,
[39807] Fix | Delete
g = h6,
[39808] Fix | Delete
h = h7,
[39809] Fix | Delete
t1,
[39810] Fix | Delete
t2;
[39811] Fix | Delete
for (j = 0; j < 64; ++j) {
[39812] Fix | Delete
t1 = h + sigmaPrime(e) + ch(e, f, g) + k[j] + w[j];
[39813] Fix | Delete
t2 = sigma(a) + maj(a, b, c);
[39814] Fix | Delete
h = g;
[39815] Fix | Delete
g = f;
[39816] Fix | Delete
f = e;
[39817] Fix | Delete
e = d + t1 | 0;
[39818] Fix | Delete
d = c;
[39819] Fix | Delete
c = b;
[39820] Fix | Delete
b = a;
[39821] Fix | Delete
a = t1 + t2 | 0;
[39822] Fix | Delete
}
[39823] Fix | Delete
h0 = h0 + a | 0;
[39824] Fix | Delete
h1 = h1 + b | 0;
[39825] Fix | Delete
h2 = h2 + c | 0;
[39826] Fix | Delete
h3 = h3 + d | 0;
[39827] Fix | Delete
h4 = h4 + e | 0;
[39828] Fix | Delete
h5 = h5 + f | 0;
[39829] Fix | Delete
h6 = h6 + g | 0;
[39830] Fix | Delete
h7 = h7 + h | 0;
[39831] Fix | Delete
}
[39832] Fix | Delete
return new Uint8Array([h0 >> 24 & 0xFF, h0 >> 16 & 0xFF, h0 >> 8 & 0xFF, h0 & 0xFF, h1 >> 24 & 0xFF, h1 >> 16 & 0xFF, h1 >> 8 & 0xFF, h1 & 0xFF, h2 >> 24 & 0xFF, h2 >> 16 & 0xFF, h2 >> 8 & 0xFF, h2 & 0xFF, h3 >> 24 & 0xFF, h3 >> 16 & 0xFF, h3 >> 8 & 0xFF, h3 & 0xFF, h4 >> 24 & 0xFF, h4 >> 16 & 0xFF, h4 >> 8 & 0xFF, h4 & 0xFF, h5 >> 24 & 0xFF, h5 >> 16 & 0xFF, h5 >> 8 & 0xFF, h5 & 0xFF, h6 >> 24 & 0xFF, h6 >> 16 & 0xFF, h6 >> 8 & 0xFF, h6 & 0xFF, h7 >> 24 & 0xFF, h7 >> 16 & 0xFF, h7 >> 8 & 0xFF, h7 & 0xFF]);
[39833] Fix | Delete
}
[39834] Fix | Delete
return hash;
[39835] Fix | Delete
}();
[39836] Fix | Delete
const calculateSHA512 = function calculateSHA512Closure() {
[39837] Fix | Delete
function ch(result, x, y, z, tmp) {
[39838] Fix | Delete
result.assign(x);
[39839] Fix | Delete
result.and(y);
[39840] Fix | Delete
tmp.assign(x);
[39841] Fix | Delete
tmp.not();
[39842] Fix | Delete
tmp.and(z);
[39843] Fix | Delete
result.xor(tmp);
[39844] Fix | Delete
}
[39845] Fix | Delete
function maj(result, x, y, z, tmp) {
[39846] Fix | Delete
result.assign(x);
[39847] Fix | Delete
result.and(y);
[39848] Fix | Delete
tmp.assign(x);
[39849] Fix | Delete
tmp.and(z);
[39850] Fix | Delete
result.xor(tmp);
[39851] Fix | Delete
tmp.assign(y);
[39852] Fix | Delete
tmp.and(z);
[39853] Fix | Delete
result.xor(tmp);
[39854] Fix | Delete
}
[39855] Fix | Delete
function sigma(result, x, tmp) {
[39856] Fix | Delete
result.assign(x);
[39857] Fix | Delete
result.rotateRight(28);
[39858] Fix | Delete
tmp.assign(x);
[39859] Fix | Delete
tmp.rotateRight(34);
[39860] Fix | Delete
result.xor(tmp);
[39861] Fix | Delete
tmp.assign(x);
[39862] Fix | Delete
tmp.rotateRight(39);
[39863] Fix | Delete
result.xor(tmp);
[39864] Fix | Delete
}
[39865] Fix | Delete
function sigmaPrime(result, x, tmp) {
[39866] Fix | Delete
result.assign(x);
[39867] Fix | Delete
result.rotateRight(14);
[39868] Fix | Delete
tmp.assign(x);
[39869] Fix | Delete
tmp.rotateRight(18);
[39870] Fix | Delete
result.xor(tmp);
[39871] Fix | Delete
tmp.assign(x);
[39872] Fix | Delete
tmp.rotateRight(41);
[39873] Fix | Delete
result.xor(tmp);
[39874] Fix | Delete
}
[39875] Fix | Delete
function littleSigma(result, x, tmp) {
[39876] Fix | Delete
result.assign(x);
[39877] Fix | Delete
result.rotateRight(1);
[39878] Fix | Delete
tmp.assign(x);
[39879] Fix | Delete
tmp.rotateRight(8);
[39880] Fix | Delete
result.xor(tmp);
[39881] Fix | Delete
tmp.assign(x);
[39882] Fix | Delete
tmp.shiftRight(7);
[39883] Fix | Delete
result.xor(tmp);
[39884] Fix | Delete
}
[39885] Fix | Delete
function littleSigmaPrime(result, x, tmp) {
[39886] Fix | Delete
result.assign(x);
[39887] Fix | Delete
result.rotateRight(19);
[39888] Fix | Delete
tmp.assign(x);
[39889] Fix | Delete
tmp.rotateRight(61);
[39890] Fix | Delete
result.xor(tmp);
[39891] Fix | Delete
tmp.assign(x);
[39892] Fix | Delete
tmp.shiftRight(6);
[39893] Fix | Delete
result.xor(tmp);
[39894] Fix | Delete
}
[39895] Fix | Delete
const k = [new Word64(0x428a2f98, 0xd728ae22), new Word64(0x71374491, 0x23ef65cd), new Word64(0xb5c0fbcf, 0xec4d3b2f), new Word64(0xe9b5dba5, 0x8189dbbc), new Word64(0x3956c25b, 0xf348b538), new Word64(0x59f111f1, 0xb605d019), new Word64(0x923f82a4, 0xaf194f9b), new Word64(0xab1c5ed5, 0xda6d8118), new Word64(0xd807aa98, 0xa3030242), new Word64(0x12835b01, 0x45706fbe), new Word64(0x243185be, 0x4ee4b28c), new Word64(0x550c7dc3, 0xd5ffb4e2), new Word64(0x72be5d74, 0xf27b896f), new Word64(0x80deb1fe, 0x3b1696b1), new Word64(0x9bdc06a7, 0x25c71235), new Word64(0xc19bf174, 0xcf692694), new Word64(0xe49b69c1, 0x9ef14ad2), new Word64(0xefbe4786, 0x384f25e3), new Word64(0x0fc19dc6, 0x8b8cd5b5), new Word64(0x240ca1cc, 0x77ac9c65), new Word64(0x2de92c6f, 0x592b0275), new Word64(0x4a7484aa, 0x6ea6e483), new Word64(0x5cb0a9dc, 0xbd41fbd4), new Word64(0x76f988da, 0x831153b5), new Word64(0x983e5152, 0xee66dfab), new Word64(0xa831c66d, 0x2db43210), new Word64(0xb00327c8, 0x98fb213f), new Word64(0xbf597fc7, 0xbeef0ee4), new Word64(0xc6e00bf3, 0x3da88fc2), new Word64(0xd5a79147, 0x930aa725), new Word64(0x06ca6351, 0xe003826f), new Word64(0x14292967, 0x0a0e6e70), new Word64(0x27b70a85, 0x46d22ffc), new Word64(0x2e1b2138, 0x5c26c926), new Word64(0x4d2c6dfc, 0x5ac42aed), new Word64(0x53380d13, 0x9d95b3df), new Word64(0x650a7354, 0x8baf63de), new Word64(0x766a0abb, 0x3c77b2a8), new Word64(0x81c2c92e, 0x47edaee6), new Word64(0x92722c85, 0x1482353b), new Word64(0xa2bfe8a1, 0x4cf10364), new Word64(0xa81a664b, 0xbc423001), new Word64(0xc24b8b70, 0xd0f89791), new Word64(0xc76c51a3, 0x0654be30), new Word64(0xd192e819, 0xd6ef5218), new Word64(0xd6990624, 0x5565a910), new Word64(0xf40e3585, 0x5771202a), new Word64(0x106aa070, 0x32bbd1b8), new Word64(0x19a4c116, 0xb8d2d0c8), new Word64(0x1e376c08, 0x5141ab53), new Word64(0x2748774c, 0xdf8eeb99), new Word64(0x34b0bcb5, 0xe19b48a8), new Word64(0x391c0cb3, 0xc5c95a63), new Word64(0x4ed8aa4a, 0xe3418acb), new Word64(0x5b9cca4f, 0x7763e373), new Word64(0x682e6ff3, 0xd6b2b8a3), new Word64(0x748f82ee, 0x5defb2fc), new Word64(0x78a5636f, 0x43172f60), new Word64(0x84c87814, 0xa1f0ab72), new Word64(0x8cc70208, 0x1a6439ec), new Word64(0x90befffa, 0x23631e28), new Word64(0xa4506ceb, 0xde82bde9), new Word64(0xbef9a3f7, 0xb2c67915), new Word64(0xc67178f2, 0xe372532b), new Word64(0xca273ece, 0xea26619c), new Word64(0xd186b8c7, 0x21c0c207), new Word64(0xeada7dd6, 0xcde0eb1e), new Word64(0xf57d4f7f, 0xee6ed178), new Word64(0x06f067aa, 0x72176fba), new Word64(0x0a637dc5, 0xa2c898a6), new Word64(0x113f9804, 0xbef90dae), new Word64(0x1b710b35, 0x131c471b), new Word64(0x28db77f5, 0x23047d84), new Word64(0x32caab7b, 0x40c72493), new Word64(0x3c9ebe0a, 0x15c9bebc), new Word64(0x431d67c4, 0x9c100d4c), new Word64(0x4cc5d4be, 0xcb3e42b6), new Word64(0x597f299c, 0xfc657e2a), new Word64(0x5fcb6fab, 0x3ad6faec), new Word64(0x6c44198c, 0x4a475817)];
[39896] Fix | Delete
function hash(data, offset, length, mode384 = false) {
[39897] Fix | Delete
let h0, h1, h2, h3, h4, h5, h6, h7;
[39898] Fix | Delete
if (!mode384) {
[39899] Fix | Delete
h0 = new Word64(0x6a09e667, 0xf3bcc908);
[39900] Fix | Delete
h1 = new Word64(0xbb67ae85, 0x84caa73b);
[39901] Fix | Delete
h2 = new Word64(0x3c6ef372, 0xfe94f82b);
[39902] Fix | Delete
h3 = new Word64(0xa54ff53a, 0x5f1d36f1);
[39903] Fix | Delete
h4 = new Word64(0x510e527f, 0xade682d1);
[39904] Fix | Delete
h5 = new Word64(0x9b05688c, 0x2b3e6c1f);
[39905] Fix | Delete
h6 = new Word64(0x1f83d9ab, 0xfb41bd6b);
[39906] Fix | Delete
h7 = new Word64(0x5be0cd19, 0x137e2179);
[39907] Fix | Delete
} else {
[39908] Fix | Delete
h0 = new Word64(0xcbbb9d5d, 0xc1059ed8);
[39909] Fix | Delete
h1 = new Word64(0x629a292a, 0x367cd507);
[39910] Fix | Delete
h2 = new Word64(0x9159015a, 0x3070dd17);
[39911] Fix | Delete
h3 = new Word64(0x152fecd8, 0xf70e5939);
[39912] Fix | Delete
h4 = new Word64(0x67332667, 0xffc00b31);
[39913] Fix | Delete
h5 = new Word64(0x8eb44a87, 0x68581511);
[39914] Fix | Delete
h6 = new Word64(0xdb0c2e0d, 0x64f98fa7);
[39915] Fix | Delete
h7 = new Word64(0x47b5481d, 0xbefa4fa4);
[39916] Fix | Delete
}
[39917] Fix | Delete
const paddedLength = Math.ceil((length + 17) / 128) * 128;
[39918] Fix | Delete
const padded = new Uint8Array(paddedLength);
[39919] Fix | Delete
let i, j;
[39920] Fix | Delete
for (i = 0; i < length; ++i) {
[39921] Fix | Delete
padded[i] = data[offset++];
[39922] Fix | Delete
}
[39923] Fix | Delete
padded[i++] = 0x80;
[39924] Fix | Delete
const n = paddedLength - 16;
[39925] Fix | Delete
while (i < n) {
[39926] Fix | Delete
padded[i++] = 0;
[39927] Fix | Delete
}
[39928] Fix | Delete
padded[i++] = 0;
[39929] Fix | Delete
padded[i++] = 0;
[39930] Fix | Delete
padded[i++] = 0;
[39931] Fix | Delete
padded[i++] = 0;
[39932] Fix | Delete
padded[i++] = 0;
[39933] Fix | Delete
padded[i++] = 0;
[39934] Fix | Delete
padded[i++] = 0;
[39935] Fix | Delete
padded[i++] = 0;
[39936] Fix | Delete
padded[i++] = 0;
[39937] Fix | Delete
padded[i++] = 0;
[39938] Fix | Delete
padded[i++] = 0;
[39939] Fix | Delete
padded[i++] = length >>> 29 & 0xff;
[39940] Fix | Delete
padded[i++] = length >> 21 & 0xff;
[39941] Fix | Delete
padded[i++] = length >> 13 & 0xff;
[39942] Fix | Delete
padded[i++] = length >> 5 & 0xff;
[39943] Fix | Delete
padded[i++] = length << 3 & 0xff;
[39944] Fix | Delete
const w = new Array(80);
[39945] Fix | Delete
for (i = 0; i < 80; i++) {
[39946] Fix | Delete
w[i] = new Word64(0, 0);
[39947] Fix | Delete
}
[39948] Fix | Delete
let a = new Word64(0, 0),
[39949] Fix | Delete
b = new Word64(0, 0),
[39950] Fix | Delete
c = new Word64(0, 0);
[39951] Fix | Delete
let d = new Word64(0, 0),
[39952] Fix | Delete
e = new Word64(0, 0),
[39953] Fix | Delete
f = new Word64(0, 0);
[39954] Fix | Delete
let g = new Word64(0, 0),
[39955] Fix | Delete
h = new Word64(0, 0);
[39956] Fix | Delete
const t1 = new Word64(0, 0),
[39957] Fix | Delete
t2 = new Word64(0, 0);
[39958] Fix | Delete
const tmp1 = new Word64(0, 0),
[39959] Fix | Delete
tmp2 = new Word64(0, 0);
[39960] Fix | Delete
let tmp3;
[39961] Fix | Delete
for (i = 0; i < paddedLength;) {
[39962] Fix | Delete
for (j = 0; j < 16; ++j) {
[39963] Fix | Delete
w[j].high = padded[i] << 24 | padded[i + 1] << 16 | padded[i + 2] << 8 | padded[i + 3];
[39964] Fix | Delete
w[j].low = padded[i + 4] << 24 | padded[i + 5] << 16 | padded[i + 6] << 8 | padded[i + 7];
[39965] Fix | Delete
i += 8;
[39966] Fix | Delete
}
[39967] Fix | Delete
for (j = 16; j < 80; ++j) {
[39968] Fix | Delete
tmp3 = w[j];
[39969] Fix | Delete
littleSigmaPrime(tmp3, w[j - 2], tmp2);
[39970] Fix | Delete
tmp3.add(w[j - 7]);
[39971] Fix | Delete
littleSigma(tmp1, w[j - 15], tmp2);
[39972] Fix | Delete
tmp3.add(tmp1);
[39973] Fix | Delete
tmp3.add(w[j - 16]);
[39974] Fix | Delete
}
[39975] Fix | Delete
a.assign(h0);
[39976] Fix | Delete
b.assign(h1);
[39977] Fix | Delete
c.assign(h2);
[39978] Fix | Delete
d.assign(h3);
[39979] Fix | Delete
e.assign(h4);
[39980] Fix | Delete
f.assign(h5);
[39981] Fix | Delete
g.assign(h6);
[39982] Fix | Delete
h.assign(h7);
[39983] Fix | Delete
for (j = 0; j < 80; ++j) {
[39984] Fix | Delete
t1.assign(h);
[39985] Fix | Delete
sigmaPrime(tmp1, e, tmp2);
[39986] Fix | Delete
t1.add(tmp1);
[39987] Fix | Delete
ch(tmp1, e, f, g, tmp2);
[39988] Fix | Delete
t1.add(tmp1);
[39989] Fix | Delete
t1.add(k[j]);
[39990] Fix | Delete
t1.add(w[j]);
[39991] Fix | Delete
sigma(t2, a, tmp2);
[39992] Fix | Delete
maj(tmp1, a, b, c, tmp2);
[39993] Fix | Delete
t2.add(tmp1);
[39994] Fix | Delete
tmp3 = h;
[39995] Fix | Delete
h = g;
[39996] Fix | Delete
g = f;
[39997] Fix | Delete
f = e;
[39998] Fix | Delete
d.add(t1);
[39999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function