#security #memory-allocator

nightly sensitive

Memory allocator for sensitive information

19 releases

0.10.3 Aug 28, 2023
0.10.2 May 24, 2023
0.10.1 Jan 1, 2023
0.10.0 Jun 18, 2022
0.9.1 Jun 10, 2021

#144 in Memory management

Download history 21/week @ 2023-06-11 41/week @ 2023-06-18 23/week @ 2023-06-25 72/week @ 2023-07-02 49/week @ 2023-07-09 48/week @ 2023-07-16 21/week @ 2023-07-23 17/week @ 2023-07-30 20/week @ 2023-08-06 37/week @ 2023-08-13 19/week @ 2023-08-20 80/week @ 2023-08-27 28/week @ 2023-09-03 61/week @ 2023-09-10 28/week @ 2023-09-17 17/week @ 2023-09-24

139 downloads per month
Used in integrity-scrub

MirOS license

58KB
1.5K SLoC

Synopsis

This is a library of memory allocators and data structures to handle sensitive information, especially when interfacing with foreign and unsafe code.

It currently features:

Usage

Add this to your Cargo.toml:

[dependencies]
sensitive = "0.10"

The force-mlock feature may be used to force allocations to be memory‐resident: If the memory cannot be locked, the allocation will fail. Without this feature, locking is attempted, but failures are ignored.

Implementation notes

This code relies heavily on experimental nightly‐only APIs.

Dependencies

~0–360KB