@stablelib/blake2b
Advanced tools
Comparing version 0.10.3 to 0.10.4
@@ -498,7 +498,6 @@ // Copyright (C) 2017 Dmitry Chestnykh | ||
let a = this._ctr[i] + n; | ||
if (a === a >>> 0) { | ||
this._ctr[i] = a; | ||
this._ctr[i] = a >>> 0; | ||
if (this._ctr[i] === a) { | ||
return; | ||
} | ||
this._ctr[i + 1] = 0; | ||
n = 1; | ||
@@ -515,4 +514,4 @@ } | ||
v[12 * 2 + 1] ^= this._ctr[1]; | ||
v[13 * 2 + 0] ^= this._ctr[3]; | ||
v[13 * 2 + 1] ^= this._ctr[4]; | ||
v[13 * 2 + 0] ^= this._ctr[2]; | ||
v[13 * 2 + 1] ^= this._ctr[3]; | ||
v[14 * 2 + 0] ^= this._flag[0]; | ||
@@ -519,0 +518,0 @@ v[14 * 2 + 1] ^= this._flag[1]; |
@@ -50,3 +50,3 @@ "use strict"; | ||
]; | ||
var BLAKE2b = (function () { | ||
var BLAKE2b = /** @class */ (function () { | ||
function BLAKE2b(digestLength, config) { | ||
@@ -418,7 +418,6 @@ if (digestLength === void 0) { digestLength = 64; } | ||
var a = this._ctr[i] + n; | ||
if (a === a >>> 0) { | ||
this._ctr[i] = a; | ||
this._ctr[i] = a >>> 0; | ||
if (this._ctr[i] === a) { | ||
return; | ||
} | ||
this._ctr[i + 1] = 0; | ||
n = 1; | ||
@@ -434,4 +433,4 @@ } | ||
v[12 * 2 + 1] ^= this._ctr[1]; | ||
v[13 * 2 + 0] ^= this._ctr[3]; | ||
v[13 * 2 + 1] ^= this._ctr[4]; | ||
v[13 * 2 + 0] ^= this._ctr[2]; | ||
v[13 * 2 + 1] ^= this._ctr[3]; | ||
v[14 * 2 + 0] ^= this._flag[0]; | ||
@@ -438,0 +437,0 @@ v[14 * 2 + 1] ^= this._flag[1]; |
{ | ||
"name": "@stablelib/blake2b", | ||
"version": "0.10.3", | ||
"version": "0.10.4", | ||
"description": "BLAKE2b cryptographic hash function", | ||
@@ -5,0 +5,0 @@ "main": "./lib/blake2b.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
224500
2308