You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The function returns 0 on success, and -1 if the computation didn't complete, usually because the operating system refused to allocate the amount of requested memory.
That case is not handled at all here. If this function fails to derive the key, this will return an all zero key silently instead of signaling an error to the caller.
crypto_pwhash
can return non-zero error codes in the event of an failure.That case is not handled at all here. If this function fails to derive the key, this will return an all zero key silently instead of signaling an error to the caller.
https://github.com/joshjdevl/libsodium-jni/blob/master/src/main/java/org/libsodium/jni/crypto/Hash.java#L51
This is unrelated, but I think
crypto_pwhash_alg_default
is (as of 1.0.9) Argon2. So isn't this function misnamed?The text was updated successfully, but these errors were encountered: