1 line
269 KiB
Plaintext
1 line
269 KiB
Plaintext
|
{"version":3,"file":"crypto.worker-CfCshcpI.js","sources":["src/helpers/bytes/bufferConcats.ts","src/lib/polyfill.ts","node_modules/.pnpm/big-integer@1.6.52/node_modules/big-integer/BigInteger.js","src/helpers/bigInt/bigIntConstants.ts","src/helpers/bigInt/bigIntConversion.ts","src/helpers/bytes/bytesModPow.ts","node_modules/.pnpm/pako@2.1.0/node_modules/pako/dist/pako_inflate.min.js","src/helpers/gzipUncompress.ts","src/environment/ctx.ts","src/helpers/listenMessagePort.ts","src/config/modes.ts","src/config/debug.ts","src/config/tabId.ts","src/helpers/array/indexOfAndSplice.ts","src/helpers/context.ts","src/helpers/eventListenerBase.ts","src/helpers/makeError.ts","src/environment/userAgent.ts","src/helpers/dT.ts","src/lib/logger.ts","src/lib/mtproto/superMessagePort.ts","src/lib/crypto/cryptoMessagePort.ts","src/lib/calls/helpers/getEmojisFingerprint.ts","src/lib/crypto/computeDhKey.ts","src/helpers/array/randomize.ts","src/helpers/bytes/addPadding.ts","src/helpers/bytes/bytesFromHex.ts","src/lib/crypto/generateDh.ts","src/helpers/bytes/bytesXor.ts","src/helpers/bytes/convertToUint8Array.ts","src/helpers/bytes/bytesToHex.ts","src/lib/crypto/srp.ts","node_modules/.pnpm/@cryptography+aes@0.1.1/node_modules/@cryptography/aes/dist/es/aes.js","src/helpers/bytes/bytesFromWordss.ts","src/helpers/bytes/bytesToWordss.ts","src/lib/crypto/utils/aesIGE.ts","src/helpers/random.ts","src/helpers/bigInt/bigIntRandom.ts","src/lib/crypto/utils/factorize/BrentPollard.ts","src/lib/crypto/subtle.ts","src/lib/crypto/utils/pbkdf2.ts","src/lib/crypto/utils/rsa.ts","src/lib/crypto/utils/sha1.ts","src/lib/crypto/utils/sha256.ts","src/lib/crypto/utils/aesCTR.ts","src/lib/crypto/aesCtrUtils.ts","src/lib/crypto/crypto.worker.ts"],"sourcesContent":["export default function bufferConcats(...args: (ArrayBuffer | Uint8Array | number[])[]) {\n const length = args.reduce((acc, v) => acc + ((v as ArrayBuffer).byteLength || (v as Uint8Array).length), 0);\n\n const tmp = new Uint8Array(length);\n\n let lastLength = 0;\n args.forEach((b) => {\n tmp.set(b instanceof ArrayBuffer ? new Uint8Array(b) : b, lastLength);\n lastLength += (b as ArrayBuffer).byteLength || (b as Uint8Array).length;\n });\n\n return tmp/* .buffer */;\n}\n","/*\n * https://github.com/morethanwords/tweb\n * Copyright (C) 2019-2021 Eduard Kuzmenko\n * https://github.com/morethanwords/tweb/blob/master/LICENSE\n */\n\nimport bufferConcats from '../helpers/bytes/bufferConcats';\n\nUint8Array.prototype.concat = function(...args: Array<Uint8Array | ArrayBuffer | number[]>) {\n return bufferConcats(this, ...args);\n};\n\n/* Uint8Array.prototype.toString = function() {\n return String.fromCharCode.apply(null, [...this]);\n}; */\n\nUint8Array.prototype.toJSON = function() {\n return [...this];\n // return {type: 'bytes', value: [...this]};\n};\n\nPromise.prototype.finally = Promise.prototype.finally || function<T>(this: Promise<T>, fn: () => any) {\n const onFinally = (callback: typeof fn) => Promise.resolve(fn()).then(callback);\n return this.then(\n result => onFinally(() => result),\n reason => onFinally(() => Promise.reject(reason))\n );\n};\n\ndeclare global {\n interface Uint8Array {\n concat: (...args: Array<Uint8Array | ArrayBuffer | number[]>) => Uint8Array,\n // toString: () => string,\n toJSON: () => number[],\n // toJSON: () => {type: 'bytes', value: number[]},\n }\n\n interface Promise<T> {\n finally: (onfinally?: () => void) => Promise<T>;\n }\n}\n","var bigInt = (function (undefined) {\r\n \"use strict\";\r\n\r\n var BASE = 1e7,\r\n LOG_BASE = 7,\r\n MAX_INT = 9007199254740992,\r\n MAX_INT_ARR = smallToArray(MAX_INT),\r\n DEFAULT_ALPHABET = \"0123456789abcdefghijklmnopqrstuvwxyz\";\r\n\r\n var supportsNativeBigInt = typeof BigInt === \"function\";\r\n\r\n function Integer(v, radix, alphabet, caseSensitive) {\r\n if (typeof v === \"undefined\") return Integer[0];\r\n if (typeof radix !== \"undefined\") return +radix === 10 && !alphabet ? parseValue(v) : parseBase(v, radix, alphabet, cas
|