Issues (615)

lib/pbkdf2_sha512-browser.js (1 issue)

Labels
Severity
1
/* globals window, self */
2
3
var pbkdf2Sha512 = function(pw, salt, iterations, keySizeBytes) {
4
    // assumes asmCrypto is made available
5
    var asmCrypto = typeof window !== "undefined" ? window.asmCrypto : self.asmCrypto;
6
7
    return new Buffer(new asmCrypto.PBKDF2_HMAC_SHA512.bytes(pw, salt, iterations, keySizeBytes).buffer);
0 ignored issues
show
The variable Buffer seems to be never declared. If this is a global, consider adding a /** global: Buffer */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
8
};
9
10
module.exports = {
11
    digest: pbkdf2Sha512
12
};
13