Skip to content

Conversation

@shanewholloway
Copy link

Documentation lists the argument order of scrypt.paramsSync and
scrypt.params as maxtime, [maxmem, [max_memfrac]], and the argument
checking in index.js is consistent with this. However, both
src/node-boilerplate/inc/scrypt_params_async.h and
src/node-boilerplate/scrypt_params_sync.cc were accessing the arguments as
[maxtime, max_memfrac, maxmem], and thus returning incorrect results.

…` and `maxmemfrac` to match documentation

Documentation lists the argument order of `scrypt.paramsSync` and
`scrypt.params` as `maxtime, [maxmem, [max_memfrac]]`, and the argument
checking in `index.js` is consistent with this. However, both
`src/node-boilerplate/inc/scrypt_params_async.h` and
`src/node-boilerplate/scrypt_params_sync.cc` were accessing the arguments as
`[maxtime, max_memfrac, maxmem]`, and thus returning incorrect results.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant