Struct pgp::native::composed::signed_key::SignedSecretSubKey
source · pub struct SignedSecretSubKey {
pub key: SecretSubkey,
pub signatures: Vec<Signature, Global>,
}
Expand description
Represents a composed secret PGP SubKey.
Fields§
§key: SecretSubkey
§signatures: Vec<Signature, Global>
Implementations§
source§impl SignedSecretSubKey
impl SignedSecretSubKey
pub fn new( key: SecretSubkey, signatures: Vec<Signature, Global> ) -> SignedSecretSubKey
pub fn verify(&self, key: &impl PublicKeyTrait) -> Result<(), Error>
Trait Implementations§
source§impl Clone for SignedSecretSubKey
impl Clone for SignedSecretSubKey
source§fn clone(&self) -> SignedSecretSubKey
fn clone(&self) -> SignedSecretSubKey
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SignedSecretSubKey
impl Debug for SignedSecretSubKey
source§impl KeyTrait for SignedSecretSubKey
impl KeyTrait for SignedSecretSubKey
source§impl PartialEq<SignedSecretSubKey> for SignedSecretSubKey
impl PartialEq<SignedSecretSubKey> for SignedSecretSubKey
source§fn eq(&self, other: &SignedSecretSubKey) -> bool
fn eq(&self, other: &SignedSecretSubKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PublicKeyTrait for SignedSecretSubKey
impl PublicKeyTrait for SignedSecretSubKey
source§fn verify_signature(
&self,
hash: HashAlgorithm,
data: &[u8],
sig: &[Mpi]
) -> Result<(), Error>
fn verify_signature( &self, hash: HashAlgorithm, data: &[u8], sig: &[Mpi] ) -> Result<(), Error>
Verify a signed message.
Data will be hashed using
hash
, before verifying.source§impl SecretKeyTrait for SignedSecretSubKey
impl SecretKeyTrait for SignedSecretSubKey
type PublicKey = PublicSubkey
fn unlock<F, G>(&self, pw: F, work: G) -> Result<(), Error>where F: FnOnce() -> String, G: FnOnce(&SecretKeyRepr) -> Result<(), Error>,
fn create_signature<F>( &self, key_pw: F, hash: HashAlgorithm, data: &[u8] ) -> Result<Vec<Mpi, Global>, Error>where F: FnOnce() -> String,
fn public_key(&self) -> <SignedSecretSubKey as SecretKeyTrait>::PublicKey
source§impl Serialize for SignedSecretSubKey
impl Serialize for SignedSecretSubKey
impl Eq for SignedSecretSubKey
impl StructuralEq for SignedSecretSubKey
impl StructuralPartialEq for SignedSecretSubKey
Auto Trait Implementations§
impl RefUnwindSafe for SignedSecretSubKey
impl Send for SignedSecretSubKey
impl Sync for SignedSecretSubKey
impl Unpin for SignedSecretSubKey
impl UnwindSafe for SignedSecretSubKey
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.