From a53767d5c06ba914484010d1d7fa15e64d6c20f7 Mon Sep 17 00:00:00 2001 From: Giulio Cesare Solaroli Date: Thu, 13 Aug 2015 10:54:49 +0200 Subject: [PATCH] Fixed hidden error triggered setting "use strict" --- frontend/delta/js/Clipperz/Crypto/AES.js | 2 ++ frontend/delta/js/Clipperz/Crypto/AES_2.js | 11 +++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/frontend/delta/js/Clipperz/Crypto/AES.js b/frontend/delta/js/Clipperz/Crypto/AES.js index 8f9ee92..6fda601 100644 --- a/frontend/delta/js/Clipperz/Crypto/AES.js +++ b/frontend/delta/js/Clipperz/Crypto/AES.js @@ -21,6 +21,8 @@ refer to http://www.clipperz.com. */ +"use strict"; + try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { throw "Clipperz.Crypto.AES depends on Clipperz.ByteArray!"; } diff --git a/frontend/delta/js/Clipperz/Crypto/AES_2.js b/frontend/delta/js/Clipperz/Crypto/AES_2.js index b072028..c361af2 100644 --- a/frontend/delta/js/Clipperz/Crypto/AES_2.js +++ b/frontend/delta/js/Clipperz/Crypto/AES_2.js @@ -21,6 +21,8 @@ refer to http://www.clipperz.com. */ +"use strict"; + try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { throw "Clipperz.Crypto.AES_2 depends on Clipperz.ByteArray!"; } @@ -804,10 +806,11 @@ MochiKit.Base.update(Clipperz.Crypto.AES_2, { //----------------------------------------------------------------------------- 'deferredDecrypt': function(aKey, someData) { - var deferredResult - var nonce; - var message; - var key; + var deferredResult + var nonce; + var message; + var key; + var executionContext; key = new Clipperz.Crypto.AES_2.Key({key:aKey}); nonce = someData.split(0, (128/8));