#security

nightly sensitive

Memory allocator for sensitive information

16 releases (8 breaking)

Uses new Rust 2021

new 0.10.0 Jun 18, 2022
0.9.5 Mar 16, 2022
0.9.4 Feb 8, 2022
0.9.3 Dec 18, 2021
0.9.1 Jun 10, 2021

#69 in Memory management

Download history 19/week @ 2022-03-04 70/week @ 2022-03-11 97/week @ 2022-03-18 20/week @ 2022-03-25 19/week @ 2022-04-01 21/week @ 2022-04-08 20/week @ 2022-04-15 38/week @ 2022-04-22 122/week @ 2022-04-29 123/week @ 2022-05-06 273/week @ 2022-05-13 64/week @ 2022-05-20 91/week @ 2022-05-27 135/week @ 2022-06-03 16/week @ 2022-06-10 46/week @ 2022-06-17

290 downloads per month
Used in integrity-scrub

MirOS license

58KB
2K 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

~215KB