crypto
crypto copied to clipboard
scrypt: allow hash.Hash payload, similar to hkdf & pbkdf2
Allow to adapt payload type & complexity via hash.Hash Interface, similar to all other golang.org/x/crypto KDF functions (hkdf, pbkdf2,...).
This would allow to continue to use and apapt existing scrypt based implementations in 2023+, ignoring the increased (cheap) availibility of sha2 hardware assisted solutions.
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.