Struct pgp::packet::SecretSubkey [−][src]
pub struct SecretSubkey { /* fields omitted */ }
Implementations
Parses a SecretKey
packet from the given slice.
Checks if we should expect a SHA1 checksum in the encrypted part.
Trait Implementations
Performs the conversion.
Returns the fingerprint of this key.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Verify a signed message.
Data will be hashed using hash
, before verifying. Read more
Encrypt the given plain
for this key.
This is the data used for hashing in a signature. Only uses the public portion of the key.
Unlock the raw data in the secret parameters.
type PublicKey = PublicSubkey
fn create_signature<F>(
&self,
key_pw: F,
hash: HashAlgorithm,
data: &[u8]
) -> Result<Vec<Mpi>> where
F: FnOnce() -> String,
Auto Trait Implementations
impl RefUnwindSafe for SecretSubkey
impl Send for SecretSubkey
impl Sync for SecretSubkey
impl Unpin for SecretSubkey
impl UnwindSafe for SecretSubkey
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self