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 · sourceconst fn clone_from(&mut self, source: &Self)
const 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 Label for EcdsaCurve
impl Label 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 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + 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 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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
sourceimpl<T> Encode for Twhere
T: Label,
impl<T> Encode for Twhere
T: Label,
sourcefn encoded_len(&self) -> Result<usize, <T as Label>::Error>
fn encoded_len(&self) -> Result<usize, <T as Label>::Error>
Get the length of this type encoded in bytes, prior to Base64 encoding.
sourcefn encode(&self, writer: &mut impl Writer) -> Result<(), <T as Label>::Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), <T as Label>::Error>
Encode this value using the provided
Writer
.sourcefn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
fn encoded_len_prefixed(&self) -> Result<usize, Self::Error>
Return the length of this type after encoding when prepended with a
uint32
length prefix. Read more