pynacl
pynacl copied to clipboard
crypto_pwhash_scryptsalsa208sha256 is missing
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.
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.