From 6b81995dd5c739baad3772eb2717cd86be7cba11 Mon Sep 17 00:00:00 2001 From: Tankred Hase Date: Tue, 25 Feb 2014 00:05:43 +0100 Subject: [PATCH] remove aes args from global scope --- src/crypto/cipher/aes.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/crypto/cipher/aes.js b/src/crypto/cipher/aes.js index 2a13e946..3892aa08 100644 --- a/src/crypto/cipher/aes.js +++ b/src/crypto/cipher/aes.js @@ -442,9 +442,11 @@ function keyExpansion(key) { } } } - this.rounds = rounds; - this.rk = keySched; - return this; + + return { + rounds: rounds, + rk: keySched + }; } function AESencrypt(block, ctx) {