20 releases

new 0.10.4 Feb 16, 2025
0.10.3 Aug 28, 2023
0.10.2 May 24, 2023
0.10.1 Jan 1, 2023
0.9.1 Jun 10, 2021

#144 in Memory management

Download history 2/week @ 2024-10-29 2/week @ 2024-11-05 4/week @ 2024-11-12 9/week @ 2024-11-19 6/week @ 2024-11-26 10/week @ 2024-12-03 19/week @ 2024-12-10 11/week @ 2024-12-17 3/week @ 2025-01-21 9/week @ 2025-02-04 101/week @ 2025-02-11

113 downloads per month
Used in integrity-scrub

CC0 license

59KB
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

~36–465KB