1
0
mirror of http://git.whoc.org.uk/git/password-manager.git synced 2024-11-14 18:19:02 +01:00

Fixed hidden error triggered setting "use strict"

This commit is contained in:
Giulio Cesare Solaroli 2015-08-13 10:54:49 +02:00
parent 00398aa65e
commit a53767d5c0
2 changed files with 9 additions and 4 deletions

View File

@ -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!";
}

View File

@ -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));