Skip to content

Commit b576a45

Browse files
committed
cb not callback
1 parent 64aa86f commit b576a45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pbkdf2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ var zeroBuffer = new Buffer(blocksize); zeroBuffer.fill(0)
1111
module.exports = function (createHmac, exports) {
1212
exports = exports || {}
1313

14-
exports.pbkdf2 = function(password, salt, iterations, keylen, callback) {
15-
if('function' !== typeof callback)
14+
exports.pbkdf2 = function(password, salt, iterations, keylen, cb) {
15+
if('function' !== typeof cb)
1616
throw new Error('No callback provided to pbkdf2');
1717
setTimeout(function () {
1818
cb(null, exports.pbkdf2Sync(password, salt, iterations, keylen))

0 commit comments

Comments
 (0)