38 releases
0.12.1 | Mar 1, 2023 |
---|---|
0.11.2 | Aug 9, 2020 |
0.10.1 |
|
0.9.3 | Jan 27, 2020 |
0.2.5 | Nov 13, 2016 |
#427 in Memory management
3,057 downloads per month
Used in 9 crates
(4 directly)
14KB
310 lines
seckey
Use memsec protected secret memory.
exmaple
use seckey::SecBytes;
let mut secpass = SecBytes::with(1, |buf| buf.copy_from_slice(&[8; 8][..]));
{
assert_eq!([8u8; 8], *secpass.read());
}
{
let mut wpass = secpass.write();
wpass[0] = 0;
assert_eq!([0, 8, 8, 8, 8, 8, 8, 8], *wpass);
}
lib.rs
:
Use memsec protected secret memory.
Dependencies
~0–10MB
~45K SLoC