Struct ssh_key::private::EcdsaPrivateKey
source · pub struct EcdsaPrivateKey<const SIZE: usize> { /* private fields */ }Available on crate feature
ecdsa only.Expand description
Elliptic Curve Digital Signature Algorithm (ECDSA) private key.
Implementations§
Trait Implementations§
source§impl<const SIZE: usize> Clone for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Clone for EcdsaPrivateKey<SIZE>
source§fn clone(&self) -> EcdsaPrivateKey<SIZE>
fn clone(&self) -> EcdsaPrivateKey<SIZE>
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<const SIZE: usize> ConstantTimeEq for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> ConstantTimeEq for EcdsaPrivateKey<SIZE>
source§impl<const SIZE: usize> Debug for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Debug for EcdsaPrivateKey<SIZE>
source§impl<const SIZE: usize> Decode for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Decode for EcdsaPrivateKey<SIZE>
source§impl<const SIZE: usize> Drop for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Drop for EcdsaPrivateKey<SIZE>
source§impl<const SIZE: usize> Encode for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Encode for EcdsaPrivateKey<SIZE>
source§fn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
source§fn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
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.source§impl From<SecretKey<NistP256>> for EcdsaPrivateKey<32>
Available on crate feature p256 only.
impl From<SecretKey<NistP256>> for EcdsaPrivateKey<32>
Available on crate feature
p256 only.source§fn from(sk: SecretKey) -> EcdsaPrivateKey<32>
fn from(sk: SecretKey) -> EcdsaPrivateKey<32>
Converts to this type from the input type.
source§impl From<SecretKey<NistP384>> for EcdsaPrivateKey<48>
Available on crate feature p384 only.
impl From<SecretKey<NistP384>> for EcdsaPrivateKey<48>
Available on crate feature
p384 only.source§fn from(sk: SecretKey) -> EcdsaPrivateKey<48>
fn from(sk: SecretKey) -> EcdsaPrivateKey<48>
Converts to this type from the input type.
source§impl<const SIZE: usize> LowerHex for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> LowerHex for EcdsaPrivateKey<SIZE>
source§impl<const SIZE: usize> PartialEq<EcdsaPrivateKey<SIZE>> for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> PartialEq<EcdsaPrivateKey<SIZE>> for EcdsaPrivateKey<SIZE>
source§impl Signer<Signature> for EcdsaPrivateKey<32>
Available on crate feature p256 only.
impl Signer<Signature> for EcdsaPrivateKey<32>
Available on crate feature
p256 only.source§impl Signer<Signature> for EcdsaPrivateKey<48>
Available on crate feature p384 only.
impl Signer<Signature> for EcdsaPrivateKey<48>
Available on crate feature
p384 only.