Add bounds checking for Scrypt parameters. (#3130)

* Add bounds checking for Scrypt parameters.

* Pep8.

* More PEP8.

* Change wording.
3 files changed