Enum pgp::types::plain_secret::PlainSecretParamsRef
source · pub enum PlainSecretParamsRef<'a> {
RSA {
d: MpiRef<'a>,
p: MpiRef<'a>,
q: MpiRef<'a>,
u: MpiRef<'a>,
},
DSA(MpiRef<'a>),
ECDSA(MpiRef<'a>),
ECDH(MpiRef<'a>),
Elgamal(MpiRef<'a>),
EdDSA(MpiRef<'a>),
}
Variants§
Implementations§
source§impl<'a> PlainSecretParamsRef<'a>
impl<'a> PlainSecretParamsRef<'a>
pub fn to_owned(&self) -> PlainSecretParams
pub fn string_to_key_id(&self) -> u8
pub fn compare_checksum_simple(&self, other: Option<&[u8]>) -> Result<()>
pub fn checksum_simple(&self) -> Vec<u8> ⓘ
pub fn checksum_sha1(&self) -> Vec<u8> ⓘ
pub fn as_repr(&self, public_params: &PublicParams) -> Result<SecretKeyRepr>
Trait Implementations§
source§impl<'a> Clone for PlainSecretParamsRef<'a>
impl<'a> Clone for PlainSecretParamsRef<'a>
source§fn clone(&self) -> PlainSecretParamsRef<'a>
fn clone(&self) -> PlainSecretParamsRef<'a>
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<'a> Debug for PlainSecretParamsRef<'a>
impl<'a> Debug for PlainSecretParamsRef<'a>
source§impl<'a> PartialEq for PlainSecretParamsRef<'a>
impl<'a> PartialEq for PlainSecretParamsRef<'a>
source§fn eq(&self, other: &PlainSecretParamsRef<'a>) -> bool
fn eq(&self, other: &PlainSecretParamsRef<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for PlainSecretParamsRef<'a>
impl<'a> Serialize for PlainSecretParamsRef<'a>
impl<'a> Eq for PlainSecretParamsRef<'a>
impl<'a> StructuralPartialEq for PlainSecretParamsRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for PlainSecretParamsRef<'a>
impl<'a> Send for PlainSecretParamsRef<'a>
impl<'a> Sync for PlainSecretParamsRef<'a>
impl<'a> Unpin for PlainSecretParamsRef<'a>
impl<'a> UnwindSafe for PlainSecretParamsRef<'a>
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