Enum ssh_key::EcdsaCurve
source · [−]pub enum EcdsaCurve {
NistP256,
NistP384,
NistP521,
}Expand description
Elliptic curves supported for use with ECDSA.
Variants
NistP256
NIST P-256 (a.k.a. prime256v1, secp256r1)
NistP384
NIST P-384 (a.k.a. secp384r1)
NistP521
NIST P-521 (a.k.a. secp521r1)
Implementations
sourceimpl EcdsaCurve
impl EcdsaCurve
Trait Implementations
sourceimpl AsRef<str> for EcdsaCurve
impl AsRef<str> for EcdsaCurve
sourceimpl Clone for EcdsaCurve
impl Clone for EcdsaCurve
sourcefn clone(&self) -> EcdsaCurve
fn clone(&self) -> EcdsaCurve
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for EcdsaCurve
impl Debug for EcdsaCurve
sourceimpl Display for EcdsaCurve
impl Display for EcdsaCurve
sourceimpl FromStr for EcdsaCurve
impl FromStr for EcdsaCurve
sourceimpl Hash for EcdsaCurve
impl Hash for EcdsaCurve
sourceimpl Ord for EcdsaCurve
impl Ord for EcdsaCurve
sourcefn cmp(&self, other: &EcdsaCurve) -> Ordering
fn cmp(&self, other: &EcdsaCurve) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<EcdsaCurve> for EcdsaCurve
impl PartialEq<EcdsaCurve> for EcdsaCurve
sourcefn eq(&self, other: &EcdsaCurve) -> bool
fn eq(&self, other: &EcdsaCurve) -> bool
sourceimpl PartialOrd<EcdsaCurve> for EcdsaCurve
impl PartialOrd<EcdsaCurve> for EcdsaCurve
sourcefn partial_cmp(&self, other: &EcdsaCurve) -> Option<Ordering>
fn partial_cmp(&self, other: &EcdsaCurve) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for EcdsaCurve
impl Eq for EcdsaCurve
impl StructuralEq for EcdsaCurve
impl StructuralPartialEq for EcdsaCurve
Auto Trait Implementations
impl RefUnwindSafe for EcdsaCurve
impl Send for EcdsaCurve
impl Sync for EcdsaCurve
impl Unpin for EcdsaCurve
impl UnwindSafe for EcdsaCurve
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more