aes: minor.
This commit is contained in:
parent
3186aaa6cc
commit
34ecf9b318
@ -617,6 +617,8 @@ AESDecipher.prototype.update = function update(data) {
|
|||||||
AESDecipher.prototype.final = function final() {
|
AESDecipher.prototype.final = function final() {
|
||||||
var i, b, n, block;
|
var i, b, n, block;
|
||||||
|
|
||||||
|
this.key.destroy();
|
||||||
|
|
||||||
assert(!this.waiting, 'Bad decrypt (trailing bytes).');
|
assert(!this.waiting, 'Bad decrypt (trailing bytes).');
|
||||||
assert(this.lastBlock, 'Bad decrypt (no data).');
|
assert(this.lastBlock, 'Bad decrypt (no data).');
|
||||||
|
|
||||||
@ -640,8 +642,6 @@ AESDecipher.prototype.final = function final() {
|
|||||||
|
|
||||||
block = block.slice(0, -n);
|
block = block.slice(0, -n);
|
||||||
|
|
||||||
this.key.destroy();
|
|
||||||
|
|
||||||
return block;
|
return block;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user