Struct sequoia_openpgp::packet::key::Unencrypted [−][src]
pub struct Unencrypted { /* fields omitted */ }
Expand description
Unencrypted secret key material.
This data structure is used by the SecretKeyMaterial
enum.
Unlike an Encrypted
key, this key an be used as-is.
The secret key is encrypted in memory and only decrypted on demand. This helps protect against heartbleed-style attacks where a buffer over-read allows an attacker to read from the process’s address space. This protection is less important for Rust programs, which are memory safe. However, it is essential when Sequoia is used via its FFI.
See crypto::mem::Encrypted
for details.
Implementations
Maps the given function over the secret.
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Unencrypted
impl Send for Unencrypted
impl Sync for Unencrypted
impl Unpin for Unencrypted
impl UnwindSafe for Unencrypted
Blanket Implementations
Mutably borrows from an owned value. Read more