The sodium_munlock() function should be called after locked memory is not being used any more.
It will zero len bytes starting at addr before actually flagging the pages as
swappable again. Calling sodium_memzero() prior to sodium_munlock() is thus not required.
The sodium_munlock() function should be called after locked memory is not being used any more. It will zero len bytes starting at addr before actually flagging the pages as swappable again. Calling sodium_memzero() prior to sodium_munlock() is thus not required.