Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 9 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | // assumes asmCrypto is made available |
||
2 | var asmCrypto = window.asmCrypto; |
||
3 | |||
4 | var pbkdf2Sha512 = function(pw, salt, iterations, keySizeBytes) { |
||
5 | return new Buffer(new asmCrypto.PBKDF2_HMAC_SHA512.bytes(pw, salt, iterations, keySizeBytes).buffer); |
||
|
|||
6 | }; |
||
7 | |||
8 | module.exports = { |
||
9 | digest: pbkdf2Sha512 |
||
10 | }; |
||
11 |
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.