libnitrokey icon indicating copy to clipboard operation
libnitrokey copied to clipboard

Protect memory from being paged out to swap file

Open szszszsz opened this issue 8 years ago • 2 comments

  • mmap on Unix
  • similar on Windows

szszszsz avatar Aug 09 '16 16:08 szszszsz

Would this be of help? https://download.libsodium.org/libsodium/content/helpers/memory_management.html

ColinGilbert avatar Sep 16 '16 17:09 ColinGilbert

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.

szszszsz avatar Sep 19 '16 08:09 szszszsz