The sodium_mlock() function locks at least len bytes of memory starting at addr. This can help avoid swapping sensitive data to disk.
0 on success, -1 otherwise
https://download.libsodium.org/doc/memory_management#locking-memory
See Implementation
The sodium_mlock() function locks at least len bytes of memory starting at addr. This can help avoid swapping sensitive data to disk.