MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / we

Function we

daily/ydyp.js:1741–1780  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1739};
1740
1741function we() {
1742 return ve || (ve = 1, be.exports = function(e) {
1743 /** @preserve
1744 * Counter block mode compatible with Dr Brian Gladman fileenc.c
1745 * derived from CryptoJS.mode.CTR
1746 * Jan Hruby jhruby.web@gmail.com
1747 */
1748 return e.mode.CTRGladman = function() {
1749 var t = e.lib.BlockCipherMode.extend();
1750
1751 function r(e) {
1752 if (255 & ~(e >> 24)) e += 1 << 24;
1753 else {
1754 var t = e >> 16 & 255,
1755 r = e >> 8 & 255,
1756 o = 255 & e;
1757 255 === t ? (t = 0, 255 === r ? (r = 0, 255 === o ? o = 0 : ++o) : ++r) : ++t, e = 0, e += t << 16, e += r << 8, e += o
1758 }
1759 return e
1760 }
1761
1762 function o(e) {
1763 return 0 === (e[0] = r(e[0])) && (e[1] = r(e[1])), e
1764 }
1765 var n = t.Encryptor = t.extend({
1766 processBlock: function(e, t) {
1767 var r = this._cipher,
1768 n = r.blockSize,
1769 i = this._iv,
1770 s = this._counter;
1771 i && (s = this._counter = i.slice(0), this._iv = void 0), o(s);
1772 var a = s.slice(0);
1773 r.encryptBlock(a, 0);
1774 for (var c = 0; c < n; c++) e[t + c] ^= a[c]
1775 }
1776 });
1777 return t.Decryptor = n, t
1778 }(), e.mode.CTRGladman
1779 }(v(), he())), be.exports
1780}
1781var ke, _e = {
1782 exports: {}
1783};

Callers 1

ydyp.jsFile · 0.85

Calls 3

oFunction · 0.85
vFunction · 0.85
heFunction · 0.85

Tested by

no test coverage detected