pynacl icon indicating copy to clipboard operation
pynacl copied to clipboard

crypto_pwhash_scryptsalsa208sha256 is missing

Open Tronic opened this issue 4 years ago • 1 comments

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 avatar Nov 15 '21 21:11 Tronic

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.

Tronic avatar Nov 15 '21 22:11 Tronic