@novnc/novnc
Advanced tools
Comparing version 1.5.0-g1b2fe33 to 1.5.0-g50e4685
@@ -31,3 +31,3 @@ "use strict"; | ||
value: function () { | ||
var _importKey2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(key, extractable, keyUsages) { | ||
var _importKey2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(key, extractable, keyUsages) { | ||
return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
@@ -56,3 +56,3 @@ while (1) switch (_context.prev = _context.next) { | ||
value: function () { | ||
var _encrypt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_algorithm, plaintext) { | ||
var _encrypt = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_algorithm, plaintext) { | ||
var x, n, i, y; | ||
@@ -106,3 +106,3 @@ return _regeneratorRuntime().wrap(function _callee2$(_context2) { | ||
value: function () { | ||
var _importKey3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(key, _algorithm, extractable, keyUsages) { | ||
var _importKey3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(key, _algorithm, extractable, keyUsages) { | ||
var cipher; | ||
@@ -151,3 +151,3 @@ return _regeneratorRuntime().wrap(function _callee3$(_context3) { | ||
value: function () { | ||
var _encryptBlock2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(block) { | ||
var _encryptBlock2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(block) { | ||
var encrypted; | ||
@@ -179,3 +179,3 @@ return _regeneratorRuntime().wrap(function _callee4$(_context4) { | ||
value: function () { | ||
var _initCMAC2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { | ||
var _initCMAC2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { | ||
var k1, k2, v, i, lut; | ||
@@ -215,3 +215,3 @@ return _regeneratorRuntime().wrap(function _callee5$(_context5) { | ||
value: function () { | ||
var _encryptCTR2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data, counter) { | ||
var _encryptCTR2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(data, counter) { | ||
var encrypted; | ||
@@ -244,3 +244,3 @@ return _regeneratorRuntime().wrap(function _callee6$(_context6) { | ||
value: function () { | ||
var _decryptCTR2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(data, counter) { | ||
var _decryptCTR2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(data, counter) { | ||
var decrypted; | ||
@@ -273,3 +273,3 @@ return _regeneratorRuntime().wrap(function _callee7$(_context7) { | ||
value: function () { | ||
var _computeCMAC2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee8(data, prefixBlock) { | ||
var _computeCMAC2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(data, prefixBlock) { | ||
var n, m, r, cbcData, i, _i, cbcEncrypted, mac; | ||
@@ -325,3 +325,3 @@ return _regeneratorRuntime().wrap(function _callee8$(_context8) { | ||
value: function () { | ||
var _importKey4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee9(key) { | ||
var _importKey4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(key) { | ||
return _regeneratorRuntime().wrap(function _callee9$(_context9) { | ||
@@ -359,3 +359,3 @@ while (1) switch (_context9.prev = _context9.next) { | ||
value: function () { | ||
var _encrypt2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee10(algorithm, message) { | ||
var _encrypt2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(algorithm, message) { | ||
var ad, nonce, nCMAC, encrypted, adCMAC, mac, i, res; | ||
@@ -404,3 +404,3 @@ return _regeneratorRuntime().wrap(function _callee10$(_context10) { | ||
value: function () { | ||
var _decrypt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee11(algorithm, data) { | ||
var _decrypt = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(algorithm, data) { | ||
var encrypted, ad, nonce, mac, nCMAC, adCMAC, computedMac, i, _i2, res; | ||
@@ -470,3 +470,3 @@ return _regeneratorRuntime().wrap(function _callee11$(_context11) { | ||
value: function () { | ||
var _importKey5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee12(key, _algorithm, _extractable, _keyUsages) { | ||
var _importKey5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(key, _algorithm, _extractable, _keyUsages) { | ||
var cipher; | ||
@@ -473,0 +473,0 @@ return _regeneratorRuntime().wrap(function _callee12$(_context12) { |
@@ -25,3 +25,3 @@ "use strict"; | ||
function _MD() { | ||
_MD = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(d) { | ||
_MD = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(d) { | ||
var s, i; | ||
@@ -28,0 +28,0 @@ return _regeneratorRuntime().wrap(function _callee$(_context) { |
@@ -56,3 +56,3 @@ "use strict"; | ||
value: function () { | ||
var _generateKey2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(algorithm, extractable) { | ||
var _generateKey2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(algorithm, extractable) { | ||
var key, privateKey; | ||
@@ -100,3 +100,3 @@ return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
value: function () { | ||
var _importKey2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, extractable) { | ||
var _importKey2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(key, extractable) { | ||
var n, e; | ||
@@ -137,3 +137,3 @@ return _regeneratorRuntime().wrap(function _callee2$(_context2) { | ||
value: function () { | ||
var _encrypt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_algorithm, message) { | ||
var _encrypt = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(_algorithm, message) { | ||
var ps, i, em, emBigInt, c; | ||
@@ -175,3 +175,3 @@ return _regeneratorRuntime().wrap(function _callee3$(_context3) { | ||
value: function () { | ||
var _decrypt = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_algorithm, message) { | ||
var _decrypt = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(_algorithm, message) { | ||
var msgBigInt, emBigInt, em, i; | ||
@@ -233,3 +233,3 @@ return _regeneratorRuntime().wrap(function _callee4$(_context4) { | ||
value: function () { | ||
var _exportKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { | ||
var _exportKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5() { | ||
return _regeneratorRuntime().wrap(function _callee5$(_context5) { | ||
@@ -263,3 +263,3 @@ while (1) switch (_context5.prev = _context5.next) { | ||
value: function () { | ||
var _generateKey3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6(algorithm, extractable, _keyUsages) { | ||
var _generateKey3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(algorithm, extractable, _keyUsages) { | ||
var cipher; | ||
@@ -290,3 +290,3 @@ return _regeneratorRuntime().wrap(function _callee6$(_context6) { | ||
value: function () { | ||
var _importKey3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee7(key, _algorithm, extractable, keyUsages) { | ||
var _importKey3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(key, _algorithm, extractable, keyUsages) { | ||
var cipher; | ||
@@ -293,0 +293,0 @@ return _regeneratorRuntime().wrap(function _callee7$(_context7) { |
@@ -21,2 +21,3 @@ "use strict"; | ||
encodingHextile: 5, | ||
encodingZlib: 6, | ||
encodingTight: 7, | ||
@@ -53,2 +54,4 @@ encodingZRLE: 16, | ||
return "Hextile"; | ||
case encodings.encodingZlib: | ||
return "Zlib"; | ||
case encodings.encodingTight: | ||
@@ -55,0 +58,0 @@ return "Tight"; |
@@ -206,3 +206,3 @@ "use strict"; | ||
this._altGrArmed = true; | ||
this._altGrTimeout = setTimeout(this._handleAltGrTimeout.bind(this), 100); | ||
this._altGrTimeout = setTimeout(this._interruptAltGrSequence.bind(this), 100); | ||
this._altGrCtrlTime = e.timeStamp; | ||
@@ -221,7 +221,3 @@ return; | ||
// abort that detection | ||
if (this._altGrArmed) { | ||
this._altGrArmed = false; | ||
clearTimeout(this._altGrTimeout); | ||
this._sendKeyEvent(_keysym["default"].XK_Control_L, "ControlLeft", true); | ||
} | ||
this._interruptAltGrSequence(); | ||
@@ -249,7 +245,9 @@ // See comment in _handleKeyDown() | ||
}, { | ||
key: "_handleAltGrTimeout", | ||
value: function _handleAltGrTimeout() { | ||
this._altGrArmed = false; | ||
clearTimeout(this._altGrTimeout); | ||
this._sendKeyEvent(_keysym["default"].XK_Control_L, "ControlLeft", true); | ||
key: "_interruptAltGrSequence", | ||
value: function _interruptAltGrSequence() { | ||
if (this._altGrArmed) { | ||
this._altGrArmed = false; | ||
clearTimeout(this._altGrTimeout); | ||
this._sendKeyEvent(_keysym["default"].XK_Control_L, "ControlLeft", true); | ||
} | ||
} | ||
@@ -260,2 +258,5 @@ }, { | ||
Log.Debug(">> Keyboard.allKeysUp"); | ||
// Prevent control key being processed after losing focus. | ||
this._interruptAltGrSequence(); | ||
for (var code in this._keyDownList) { | ||
@@ -262,0 +263,0 @@ this._sendKeyEvent(this._keyDownList[code], code, false); |
@@ -36,3 +36,3 @@ "use strict"; | ||
value: function () { | ||
var _setKey = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(key) { | ||
var _setKey = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(key) { | ||
return _regeneratorRuntime().wrap(function _callee$(_context) { | ||
@@ -61,3 +61,3 @@ while (1) switch (_context.prev = _context.next) { | ||
value: function () { | ||
var _makeMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(message) { | ||
var _makeMessage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(message) { | ||
var ad, encrypted, i, res; | ||
@@ -95,3 +95,3 @@ return _regeneratorRuntime().wrap(function _callee2$(_context2) { | ||
value: function () { | ||
var _receiveMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(length, encrypted) { | ||
var _receiveMessage = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(length, encrypted) { | ||
var ad, res, i; | ||
@@ -237,3 +237,3 @@ return _regeneratorRuntime().wrap(function _callee3$(_context3) { | ||
value: function () { | ||
var _negotiateRA2neAuthAsync = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { | ||
var _negotiateRA2neAuthAsync = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4() { | ||
var serverKeyLengthBuffer, serverKeyLength, serverKeyBytes, serverN, serverE, serverRSACipher, serverPublickey, approveKey, clientKeyLength, clientKeyBytes, clientRSACipher, clientExportedRSAKey, clientN, clientE, clientPublicKey, clientRandom, clientEncryptedRandom, clientRandomMessage, serverEncryptedRandom, serverRandom, clientSessionKey, serverSessionKey, clientCipher, serverCipher, serverHash, clientHash, serverHashReceived, i, subtype, waitCredentials, username, password, credentials, _i, _i2; | ||
@@ -240,0 +240,0 @@ return _regeneratorRuntime().wrap(function _callee4$(_context4) { |
@@ -236,3 +236,3 @@ "use strict"; | ||
} | ||
this._sQ.set(bytes.subarray(offset, chunkSize), this._sQlen); | ||
this._sQ.set(bytes.subarray(offset, offset + chunkSize), this._sQlen); | ||
this._sQlen += chunkSize; | ||
@@ -239,0 +239,0 @@ offset += chunkSize; |
{ | ||
"name": "@novnc/novnc", | ||
"version": "1.5.0-g1b2fe33", | ||
"version": "1.5.0-g50e4685", | ||
"description": "An HTML5 VNC client", | ||
@@ -5,0 +5,0 @@ "browser": "lib/rfb", |
@@ -69,3 +69,3 @@ ## noVNC: HTML VNC Client Library and Application | ||
* Supported VNC encodings: raw, copyrect, rre, hextile, tight, tightPNG, | ||
ZRLE, JPEG | ||
ZRLE, JPEG, Zlib | ||
* Supports scaling, clipping and resizing the desktop | ||
@@ -72,0 +72,0 @@ * Local cursor rendering |
Sorry, the diff of this file is too big to display
738254
63
17430