https://github.com/quininer/memsec
Rust implementation `libsodium/utils`.
https://github.com/quininer/memsec
memory-management protection rust secure
Last synced: 6 months ago
JSON representation
Rust implementation `libsodium/utils`.
- Host: GitHub
- URL: https://github.com/quininer/memsec
- Owner: quininer
- License: mit
- Created: 2016-06-11T01:35:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2025-01-21T03:14:44.000Z (9 months ago)
- Last Synced: 2025-04-09T15:06:49.892Z (6 months ago)
- Topics: memory-management, protection, rust, secure
- Language: Rust
- Homepage:
- Size: 96.7 KB
- Stars: 50
- Watchers: 4
- Forks: 10
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# memsec
[](https://travis-ci.org/quininer/memsec)
[](https://ci.appveyor.com/project/quininer/memsec)
[](https://crates.io/crates/memsec)
[](https://github.com/quininer/memsec/blob/master/LICENSE)
[](https://docs.rs/memsec/)Rust implementation `libsodium/utils`.
* [x] `memeq`/`memcmp`
* [x] `memset`/`memzero`
* [x] `mlock`/`munlock`
* [x] `alloc`/`free`/`mprotect`
* [x] Linux only: `alloc_memfd_secret`/`free_memfd_secret` functions similar to `alloc`/`free` implementation backed by `memfd_secret`ref
---* [Securing memory allocations](https://download.libsodium.org/doc/helpers/memory_management.html)
* [rlibc](https://github.com/alexcrichton/rlibc)
* [aligned\_alloc.rs](https://github.com/jonas-schievink/aligned_alloc.rs)
* [cst\_time\_memcmp](https://github.com/chmike/cst_time_memcmp)
* [memfd_secret] (https://man.archlinux.org/man/memfd_secret.2.en)