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 more
sourceimpl 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
sourceimpl PartialEq<EcdsaCurve> for EcdsaCurve
impl PartialEq<EcdsaCurve> for EcdsaCurve
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>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
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 more
impl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more