#protection #memory #secure

no-std seckey

Use memsec protected secret memory

38 releases

0.12.1 Mar 1, 2023
0.11.2 Aug 9, 2020
0.10.1 Jul 31, 2018
0.9.3 Jan 27, 2020
0.2.5 Nov 13, 2016

#139 in Memory management

Download history 519/week @ 2022-12-01 540/week @ 2022-12-08 670/week @ 2022-12-15 616/week @ 2022-12-22 484/week @ 2022-12-29 578/week @ 2023-01-05 531/week @ 2023-01-12 514/week @ 2023-01-19 453/week @ 2023-01-26 471/week @ 2023-02-02 553/week @ 2023-02-09 580/week @ 2023-02-16 523/week @ 2023-02-23 704/week @ 2023-03-02 467/week @ 2023-03-09 602/week @ 2023-03-16

2,368 downloads per month
Used in 8 crates (4 directly)

MIT license

13KB
310 lines

seckey

travis-ci appveyor crates license docs.rs

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–4MB
~56K SLoC