libnitrokey
libnitrokey copied to clipboard
Protect memory from being paged out to swap file
-
mmap
on Unix - similar on Windows
Would this be of help? https://download.libsodium.org/libsodium/content/helpers/memory_management.html
Hi @ColinGilbert ! Thank you for the suggestion. It looks like a strong candidate. I have seen this library before but it appeared too big for only this task. However I have not seen yet anything more specialized in protecting memory (in case you would see one please let me know!). Random bytes generators might be handy too.