1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//! Secure memory zeroing utilities
use Zeroize;
/// Securely zero a slice of memory
///
/// This function ensures that the contents of the slice are securely
/// zeroed, even if the compiler would otherwise optimize the operation away.
/// Securely clone a slice, zeroing the source afterwards
///
/// This function clones the contents of the slice and then securely
/// zeroes the original slice.
/// Guard that zeroes memory when dropped
///
/// This struct provides a way to ensure that memory is zeroed when
/// it goes out of scope, by automatically zeroing the contained
/// buffer when the `ZeroGuard` is dropped.
;