Integration of scrypt tests from wg/scrypt project and changes to lib/scrypt.js to pass tests