-
-
Notifications
You must be signed in to change notification settings - Fork 3
libsodium.SecureMemoryblock
libsodium.SecureMemoryblock
Protected Class SecureMemoryblock
This class provides guarded heap memory allocations and memory protection. Guarded allocations are aligned on a page boundary and surrounded by canaries and guard pages, meaning any buffer overruns will immediately terminate the application. In addition, the memory can be marked as non-readable, non-writeable, and/or non-swapable.
This class should not be used for general-purpose memory allocations, but instead to protect sensitive data that has to be held in memory for extended periods of time. In general you should use this class if accidentally exposing the sensitive data is a worse outcome than having the OS forcibly terminate the whole application.
Wiki home | Project page | Bugs | Become a sponsor
Text and code examples are Copyright ©2016-24 Andrew Lambert, offered under the CC BY-SA 3.0 License.
- libsodium module
- FAQ
-
Examples
- Secure memory
- Password hashing
- Generic hashing
- Encrypting streams or files
- PKI
- Encryption
- Digital signatures
- SKI
- Encryption
- Message authentication