Enum ssh_key::private::EcdsaKeypair
source · [−]pub enum EcdsaKeypair {
NistP256 {
public: EncodedPoint<U32>,
private: EcdsaPrivateKey<32>,
},
NistP384 {
public: EncodedPoint<U48>,
private: EcdsaPrivateKey<48>,
},
NistP521 {
public: EncodedPoint<U66>,
private: EcdsaPrivateKey<66>,
},
}Expand description
Elliptic Curve Digital Signature Algorithm (ECDSA) private/public keypair.
Variants
NistP256
NIST P-256 ECDSA keypair.
NistP384
NIST P-384 ECDSA keypair.
NistP521
NIST P-521 ECDSA keypair.
Implementations
Trait Implementations
sourceimpl Clone for EcdsaKeypair
impl Clone for EcdsaKeypair
sourcefn clone(&self) -> EcdsaKeypair
fn clone(&self) -> EcdsaKeypair
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 ConstantTimeEq for EcdsaKeypair
This is supported on crate feature subtle only.
impl ConstantTimeEq for EcdsaKeypair
This is supported on crate feature
subtle only.sourceimpl Debug for EcdsaKeypair
impl Debug for EcdsaKeypair
sourceimpl From<&'_ EcdsaKeypair> for EcdsaPublicKey
impl From<&'_ EcdsaKeypair> for EcdsaPublicKey
sourcefn from(keypair: &EcdsaKeypair) -> EcdsaPublicKey
fn from(keypair: &EcdsaKeypair) -> EcdsaPublicKey
Performs the conversion.
sourceimpl From<EcdsaKeypair> for EcdsaPublicKey
impl From<EcdsaKeypair> for EcdsaPublicKey
sourcefn from(keypair: EcdsaKeypair) -> EcdsaPublicKey
fn from(keypair: EcdsaKeypair) -> EcdsaPublicKey
Performs the conversion.
sourceimpl PartialEq<EcdsaKeypair> for EcdsaKeypair
This is supported on crate feature subtle only.
impl PartialEq<EcdsaKeypair> for EcdsaKeypair
This is supported on crate feature
subtle only.impl Eq for EcdsaKeypair
This is supported on crate feature
subtle only.Auto Trait Implementations
impl RefUnwindSafe for EcdsaKeypair
impl Send for EcdsaKeypair
impl Sync for EcdsaKeypair
impl Unpin for EcdsaKeypair
impl UnwindSafe for EcdsaKeypair
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