Recommend sodium_mlock()
/sodium_munlock()
over sodium_memzero()
.
This commit is contained in:
parent
be4917144b
commit
2a531bb519
@ -327,8 +327,9 @@ results in the stored hash value included in `str` when using the same
|
|||||||
parameters.
|
parameters.
|
||||||
|
|
||||||
`0` is returned if the passwords are matching, `-1` is they are not.
|
`0` is returned if the passwords are matching, `-1` is they are not.
|
||||||
The plaintext password should be immediately zeroed out from memory
|
The plaintext password should be locked in memory using
|
||||||
after this function returns, using `sodium_memzero()`.
|
`sodium_mlock()` and immediately zeroed out and unlocked after this
|
||||||
|
function returns, using `sodium_munlock()`.
|
||||||
|
|
||||||
## Constants available as functions
|
## Constants available as functions
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user