Securely hold secrets in memory and protect them against cross-protection-boundary readout via microarchitectural, via attacks on physical layout, and via coldboot attacks.
/// Wraps `core::result::Result` with the `MemSecurityErr` as the `Err()` value
pubtypeMemSecurityResult<T>=Result<T, MemSecurityErr>;/// Errors encountered in execution of the code in this crate
#[derive(Debug, PartialEq, Eq, PartialOrd, Ord, Clone, Copy)]pubenumMemSecurityErr{/// An error was encountered while encrypting the data
EncryptionErr,/// An error was encountered when decrypting data using XChaCha12Poly1305
DecryptionError,}