Enum pgp::types::PublicParams
source · pub enum PublicParams {
RSA {
n: Mpi,
e: Mpi,
},
DSA {
p: Mpi,
q: Mpi,
g: Mpi,
y: Mpi,
},
ECDSA(EcdsaPublicParams),
ECDH {
curve: ECCCurve,
p: Mpi,
hash: HashAlgorithm,
alg_sym: SymmetricKeyAlgorithm,
},
Elgamal {
p: Mpi,
g: Mpi,
y: Mpi,
},
EdDSA {
curve: ECCCurve,
q: Mpi,
},
Unknown {
data: Vec<u8>,
},
}
Expand description
Represent the public paramaters for the different algorithms.
Variants§
Trait Implementations§
source§impl Clone for PublicParams
impl Clone for PublicParams
source§fn clone(&self) -> PublicParams
fn clone(&self) -> PublicParams
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 PublicParams
impl Debug for PublicParams
source§impl PartialEq for PublicParams
impl PartialEq for PublicParams
source§fn eq(&self, other: &PublicParams) -> bool
fn eq(&self, other: &PublicParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PublicParams
impl Serialize for PublicParams
impl Eq for PublicParams
impl StructuralPartialEq for PublicParams
Auto Trait Implementations§
impl RefUnwindSafe for PublicParams
impl Send for PublicParams
impl Sync for PublicParams
impl Unpin for PublicParams
impl UnwindSafe for PublicParams
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