Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto_pwhash_scryptsalsa208sha256 is missing #700

Open
Tronic opened this issue Nov 15, 2021 · 1 comment
Open

crypto_pwhash_scryptsalsa208sha256 is missing #700

Tronic opened this issue Nov 15, 2021 · 1 comment

Comments

@Tronic
Copy link

Tronic commented Nov 15, 2021

There is no binding for the key derivation function crypto_pwhash_scryptsalsa208sha256.

crypto_pwhash_scryptsalsa208sha256_ll is available but it is not compatible because the cost parameter need to be calculated differently, and the libsodium function pickparams which does just that does not appear to be exposed.

@Tronic
Copy link
Author

Tronic commented Nov 15, 2021

Actually the function for calculating those parameters is included as nacl_bindings_pick_scrypt_params, with an added note that you need n = 1 << N_log2, where N_log2 is the value returned by this function.

Still, it would be nice to have that higher level function too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants
@Tronic and others