Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,1 @@ | ||
require('./lib/siphash'); | ||
exports = module.exports = require('./lib/siphash'); |
@@ -57,3 +57,3 @@ | ||
v1 = { h: k1.h, l: k1.l }, v3 = k1, | ||
mi, mp = 0, ml = m.length, ml8 = ml - 7, | ||
mi, mp = 0, ml = m.length, ml7 = ml - 7, | ||
buf = new Uint8Array(new ArrayBuffer(8)); | ||
@@ -65,3 +65,3 @@ | ||
_xor(v3, { h: 0x74656462, l: 0x79746573 }); | ||
while (mp < ml8) { | ||
while (mp < ml7) { | ||
mi = { h: _get_int(m, mp + 4), l: _get_int(m, mp) }; | ||
@@ -68,0 +68,0 @@ _xor(v3, mi); |
@@ -17,3 +17,3 @@ { | ||
}, | ||
"version": "1.0.0" | ||
"version": "1.0.1" | ||
} |
@@ -614,2 +614,15 @@ | ||
"Found: [" + found + "] Expected: [" + expected + "]"); | ||
found = siphash.hash(siphash.string16_to_key(key), message); | ||
var m = | ||
((found.l >>> 0) & 0xff) + "," + | ||
((found.l >>> 8) & 0xff) + "," + | ||
((found.l >>> 16) & 0xff) + "," + | ||
((found.l >>> 24) & 0xff) + "," + | ||
((found.h >>> 0) & 0xff) + "," + | ||
((found.h >>> 8) & 0xff) + "," + | ||
((found.h >>> 16) & 0xff) + "," + | ||
((found.h >>> 24) & 0xff); | ||
console.log('{<<"' + key + '">>, <<"' + message + '">>, <<' + m + '>>},') | ||
} | ||
@@ -616,0 +629,0 @@ |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Non-existent author
Supply chain riskThe package was published by an npm account that no longer exists.
Found 1 instance in 1 package
599
0
22429
8
1