Struct pgp::composed::key::PublicSubkey
source · pub struct PublicSubkey { /* private fields */ }
Implementations§
source§impl PublicSubkey
impl PublicSubkey
pub fn new(key: PublicSubkey, keyflags: KeyFlags) -> Self
pub fn sign<F>( self, sec_key: &impl SecretKeyTrait, key_pw: F ) -> Result<SignedPublicSubKey>
Trait Implementations§
source§impl Clone for PublicSubkey
impl Clone for PublicSubkey
source§fn clone(&self) -> PublicSubkey
fn clone(&self) -> PublicSubkey
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 PublicSubkey
impl Debug for PublicSubkey
source§impl KeyTrait for PublicSubkey
impl KeyTrait for PublicSubkey
source§impl PartialEq for PublicSubkey
impl PartialEq for PublicSubkey
source§fn eq(&self, other: &PublicSubkey) -> bool
fn eq(&self, other: &PublicSubkey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PublicKeyTrait for PublicSubkey
impl PublicKeyTrait for PublicSubkey
source§fn verify_signature(
&self,
hash: HashAlgorithm,
data: &[u8],
sig: &[Mpi]
) -> Result<()>
fn verify_signature( &self, hash: HashAlgorithm, data: &[u8], sig: &[Mpi] ) -> Result<()>
Verify a signed message.
Data will be hashed using
hash
, before verifying.impl Eq for PublicSubkey
impl StructuralPartialEq for PublicSubkey
Auto Trait Implementations§
impl Freeze for PublicSubkey
impl RefUnwindSafe for PublicSubkey
impl Send for PublicSubkey
impl Sync for PublicSubkey
impl Unpin for PublicSubkey
impl UnwindSafe for PublicSubkey
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