We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 158bc83 commit 388d45eCopy full SHA for 388d45e
hash.js
@@ -6,7 +6,6 @@ function Hash (blockSize, finalSize) {
6
this._finalSize = finalSize
7
this._blockSize = blockSize
8
this._len = 0
9
- this._s = 0
10
}
11
12
Hash.prototype.update = function (data, enc) {
@@ -15,8 +14,8 @@ Hash.prototype.update = function (data, enc) {
15
14
data = new Buffer(data, enc)
16
17
+ var s = this._len
18
var l = this._len += data.length
19
- var s = this._s || 0
20
var f = 0
21
var buffer = this._block
22
@@ -35,7 +34,6 @@ Hash.prototype.update = function (data, enc) {
35
34
this._update(buffer)
36
37
38
- this._s = s
39
40
return this
41
0 commit comments