Comparing version 0.0.1 to 0.0.2
@@ -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 @@ }, |
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
0
17455
1
114
- Removedvows@0.5.13
- Removedeyes@0.1.8(transitive)
- Removedvows@0.5.13(transitive)