Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

siphash

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

siphash - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc