diff --git a/src/aes.js b/src/aes.js index 80eff25..df7e1b2 100644 --- a/src/aes.js +++ b/src/aes.js @@ -76,6 +76,8 @@ */ var AES = C_algo.AES = BlockCipher.extend({ _doReset: function () { + if (this._nRounds) return; + // Shortcuts var key = this._key; var keyWords = key.words;