🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

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