Skip to content

Commit

Permalink
Merge pull request brix#70 from pkaminski/aes-reset
Browse files Browse the repository at this point in the history
Make AES reset a no-op after first call, since data doesn't change.
  • Loading branch information
evanvosberg authored Oct 27, 2016
2 parents 8edc21e + 10f7c2c commit f643619
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/aes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f643619

Please sign in to comment.