21 releases

new 0.10.5 Mar 10, 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

#145 in Memory management

Download history 5/week @ 2024-11-13 8/week @ 2024-11-20 6/week @ 2024-11-27 12/week @ 2024-12-04 18/week @ 2024-12-11 9/week @ 2024-12-18 3/week @ 2025-01-22 9/week @ 2025-02-05 124/week @ 2025-02-12 43/week @ 2025-02-19 20/week @ 2025-02-26

196 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.

Intellectual property

This work is dedicated to the public domain under the terms of the CC0 1.0 licence.

The author holds no patent rights related to this work.

Dependencies

~74–500KB