https://github.com/hf/secmem
A simple, header-only C++ library, that creates a secure memory mapping.
https://github.com/hf/secmem
Last synced: 5 months ago
JSON representation
A simple, header-only C++ library, that creates a secure memory mapping.
- Host: GitHub
- URL: https://github.com/hf/secmem
- Owner: hf
- License: other
- Created: 2015-02-27T18:23:05.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-20T10:07:58.000Z (over 11 years ago)
- Last Synced: 2024-12-31T06:29:49.360Z (over 1 year ago)
- Language: Python
- Size: 285 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SecMem
This is a small, minimal, header-only C++ library that creates a secure memory
mapping in the virutal memory subsystem.
Secure memory implies:
+ it will not be shared among processes
+ will not be persisted to swap, i.e. always locked in RAM
+ it is securely clearable with zeros or another value
+ it allows specific protection, i.e. generates SEGFAULT on disallowed access
This library uses reference counting to manage the memory mapping.
It is useful for managing memory in cryptographic applications.
## License
Copyright © 2015 Stojan Dimitrovski
All code herein (except where otherwise noted) is distributed under
[The MIT License](http://opensource.org/licenses/MIT).
See the included file `LICENSE.txt` for the full text.