[Pkg-javascript-commits] [node-browserify-aes] 13/92: typo in ctr
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Jun 4 09:35:15 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-browserify-aes.
commit 1e9271ad93d382cbc08f35cb5268b1174a3d67e1
Author: Calvin Metcalf <calvin.metcalf at state.ma.us>
Date: Thu Oct 16 18:29:56 2014 -0400
typo in ctr
---
decrypter.js | 2 +-
encrypter.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/decrypter.js b/decrypter.js
index d92745e..8b55ba4 100644
--- a/decrypter.js
+++ b/decrypter.js
@@ -181,7 +181,7 @@ CTR.prototype._flush = function (next) {
CTR.prototype._incr32 = function () {
var len = this._iv.length;
var item;
- while (--len) {
+ while (len--) {
item = this._iv.readUInt8(len);
if (item === 255) {
this._iv.writeUInt8(0, len);
diff --git a/encrypter.js b/encrypter.js
index 4f99a20..b284183 100644
--- a/encrypter.js
+++ b/encrypter.js
@@ -148,7 +148,7 @@ CTR.prototype._flush = function (next) {
CTR.prototype._incr32 = function () {
var len = this._iv.length;
var item;
- while (--len) {
+ while (len--) {
item = this._iv.readUInt8(len);
if (item === 255) {
this._iv.writeUInt8(0, len);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-browserify-aes.git
More information about the Pkg-javascript-commits
mailing list