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§
Trait Implementations§
source§impl AsRef<str> for EcdsaCurve
impl AsRef<str> for EcdsaCurve
source§impl Clone for EcdsaCurve
impl Clone for EcdsaCurve
source§fn clone(&self) -> EcdsaCurve
fn clone(&self) -> EcdsaCurve
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 EcdsaCurve
impl Debug for EcdsaCurve
source§impl Display for EcdsaCurve
impl Display for EcdsaCurve
source§impl FromStr for EcdsaCurve
impl FromStr for EcdsaCurve
source§impl Hash for EcdsaCurve
impl Hash for EcdsaCurve
source§impl Ord for EcdsaCurve
impl Ord for EcdsaCurve
source§fn cmp(&self, other: &EcdsaCurve) -> Ordering
fn cmp(&self, other: &EcdsaCurve) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<EcdsaCurve> for EcdsaCurve
impl PartialEq<EcdsaCurve> for EcdsaCurve
source§fn eq(&self, other: &EcdsaCurve) -> bool
fn eq(&self, other: &EcdsaCurve) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<EcdsaCurve> for EcdsaCurve
impl PartialOrd<EcdsaCurve> for EcdsaCurve
source§fn partial_cmp(&self, other: &EcdsaCurve) -> Option<Ordering>
fn partial_cmp(&self, other: &EcdsaCurve) -> Option<Ordering>
1.0.0 · source§fn 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§
source§impl<T> Encode for Twhere
T: Label,
impl<T> Encode for Twhere
T: Label,
source§fn 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.
source§fn 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.source§fn 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.source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Self::Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Self::Error>
Encode this value, first prepending a
uint32 length prefix
set to Encode::encoded_len.