pub struct SecretKeyPacket {
pub public_key: PublicKeyPacket,
pub s2k_usage: u8,
pub encryption_info: Option<EncryptionInfo>,
pub secret_key_data: Vec<u8>,
}Expand description
A parsed secret key or secret subkey packet.
Contains the public key portion plus the secret key data, which may be encrypted with a passphrase.
Fields§
§public_key: PublicKeyPacketThe public key portion (version, creation time, algorithm, key material).
s2k_usage: u8String-to-Key usage byte indicating encryption method.
encryption_info: Option<EncryptionInfo>Encryption parameters, if the key is encrypted.
secret_key_data: Vec<u8>The secret key data (encrypted or plaintext).
Trait Implementations§
Source§impl Clone for SecretKeyPacket
impl Clone for SecretKeyPacket
Source§fn clone(&self) -> SecretKeyPacket
fn clone(&self) -> SecretKeyPacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SecretKeyPacket
impl RefUnwindSafe for SecretKeyPacket
impl Send for SecretKeyPacket
impl Sync for SecretKeyPacket
impl Unpin for SecretKeyPacket
impl UnsafeUnpin for SecretKeyPacket
impl UnwindSafe for SecretKeyPacket
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more