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

hkdf

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hkdf - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

10

lib/hkdf.js

@@ -43,9 +43,5 @@ //

var hmac = crypto.createHmac(this.hashAlg, this.prk);
// XXX is there a more optimal way to build up buffers?
var input = Buffer.concat([
prev,
info,
new Buffer(String.fromCharCode(i + 1))
]);
hmac.update(input);
hmac.update(prev);
hmac.update(info);
hmac.update(new Buffer([i + 1]));
prev = hmac.digest();

@@ -52,0 +48,0 @@ buffers.push(prev);

{
"name" : "hkdf",
"version" : "0.0.1",
"description" : "HKDF key derivation function",
"main" : "index",
"repository" : {
"type" : "git",
"url" : "https://github.com/benadida/node-hkdf"
"name": "hkdf",
"version": "0.0.2",
"description": "HKDF key derivation function",
"main": "index",
"repository": {
"type": "git",
"url": "https://github.com/benadida/node-hkdf"
},
"dependencies" : {
"devDependencies": {
"vows": "0.5.13"
},
"author" : {
"name" : "Ben Adida",
"email" : "ben@adida.net"
"author": {
"name": "Ben Adida",
"email": "ben@adida.net"
},
"scripts" : {
"scripts": {
"test": "./scripts/run_all_tests.sh"

@@ -19,0 +19,0 @@ },

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