Comparing version 5.3.0 to 5.4.0
@@ -5,2 +5,6 @@ # Change Log | ||
## [5.4.0] - 2015-10-09 | ||
### Fixed | ||
- Check for empty buffer (see #97) | ||
## [5.3.0] - 2015-10-08 | ||
@@ -7,0 +11,0 @@ ### Added |
21
index.js
@@ -161,2 +161,9 @@ "use strict"; | ||
} | ||
// Check resulting buffer is not empty | ||
if (!args[0].length) { | ||
var error = new Error("Input key is empty"); | ||
error.propertyValue = args[0]; | ||
throw error; | ||
} | ||
@@ -187,2 +194,9 @@ // | ||
// Check resulting buffer is not empty | ||
if (!args[0].length) { | ||
var error = new Error("Input KDF is empty"); | ||
error.propertyValue = args[0]; | ||
throw error; | ||
} | ||
// | ||
@@ -201,2 +215,9 @@ // Check Key | ||
// Check resulting key is not empty | ||
if (!args[1].length) { | ||
var error = new Error("Input key is empty"); | ||
error.propertyValue = args[1]; | ||
throw error; | ||
} | ||
return args; | ||
@@ -203,0 +224,0 @@ } |
{ | ||
"name": "scrypt", | ||
"description": "The scrypt crypto library for NodeJS", | ||
"version": "5.3.0", | ||
"version": "5.4.0", | ||
"license": "zlib", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
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
2185814
98
1006