memsecurity 0.2.0-alpha1

Securely hold secrets in memory and protect them against cross-protection-boundary readout via microarchitectural, via attacks on physical layout, and via coldboot attacks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
/// Wraps `core::result::Result` with the `MemSecurityErr` as the `Err()` value
pub type MemSecurityResult<T> = Result<T, MemSecurityErr>;

/// Errors encountered in execution of the code in this crate
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]
pub enum MemSecurityErr {
    /// An error was encountered while encrypting the data
    EncryptionErr,
    /// An error was encountered when decrypting data using XChaCha12Poly1305
    DecryptionError,
}