Enum pgp::types::public::EcdsaPublicParams
source · pub enum EcdsaPublicParams {
P256 {
key: PublicKey,
p: Mpi,
},
P384 {
key: PublicKey,
p: Mpi,
},
Secp256k1 {
key: PublicKey,
p: Mpi,
},
Unsupported {
curve: ECCCurve,
p: Mpi,
},
}
Variants§
Implementations§
source§impl EcdsaPublicParams
impl EcdsaPublicParams
pub fn try_from_mpi(p: MpiRef<'_>, curve: ECCCurve) -> Result<Self>
pub const fn secret_key_length(&self) -> Option<usize>
Trait Implementations§
source§impl Clone for EcdsaPublicParams
impl Clone for EcdsaPublicParams
source§fn clone(&self) -> EcdsaPublicParams
fn clone(&self) -> EcdsaPublicParams
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 EcdsaPublicParams
impl Debug for EcdsaPublicParams
source§impl PartialEq for EcdsaPublicParams
impl PartialEq for EcdsaPublicParams
source§fn eq(&self, other: &EcdsaPublicParams) -> bool
fn eq(&self, other: &EcdsaPublicParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for EcdsaPublicParams
impl Serialize for EcdsaPublicParams
impl Eq for EcdsaPublicParams
impl StructuralPartialEq for EcdsaPublicParams
Auto Trait Implementations§
impl RefUnwindSafe for EcdsaPublicParams
impl Send for EcdsaPublicParams
impl Sync for EcdsaPublicParams
impl Unpin for EcdsaPublicParams
impl UnwindSafe for EcdsaPublicParams
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