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
sourceimpl<const SIZE: usize> Clone for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Clone for EcdsaPrivateKey<SIZE>
sourcefn clone(&self) -> EcdsaPrivateKey<SIZE>
fn clone(&self) -> EcdsaPrivateKey<SIZE>
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<const SIZE: usize> ConstantTimeEq for EcdsaPrivateKey<SIZE>
Available on crate feature subtle
only.
impl<const SIZE: usize> ConstantTimeEq for EcdsaPrivateKey<SIZE>
Available on crate feature
subtle
only.sourceimpl<const SIZE: usize> Debug for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Debug for EcdsaPrivateKey<SIZE>
sourceimpl<const SIZE: usize> Decode for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Decode for EcdsaPrivateKey<SIZE>
sourceimpl<const SIZE: usize> Drop for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Drop for EcdsaPrivateKey<SIZE>
sourceimpl<const SIZE: usize> Encode for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Encode for EcdsaPrivateKey<SIZE>
sourcefn encoded_len(&self) -> Result<usize>
fn encoded_len(&self) -> Result<usize>
Get the length of this type encoded in bytes, prior to Base64 encoding.
sourcefn encode(&self, writer: &mut impl Writer) -> Result<()>
fn encode(&self, writer: &mut impl Writer) -> Result<()>
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 moresourceimpl 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.sourcefn from(sk: SecretKey) -> EcdsaPrivateKey<32>
fn from(sk: SecretKey) -> EcdsaPrivateKey<32>
Converts to this type from the input type.
sourceimpl 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.sourcefn from(sk: SecretKey) -> EcdsaPrivateKey<48>
fn from(sk: SecretKey) -> EcdsaPrivateKey<48>
Converts to this type from the input type.
sourceimpl<const SIZE: usize> LowerHex for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> LowerHex for EcdsaPrivateKey<SIZE>
sourceimpl<const SIZE: usize> PartialEq<EcdsaPrivateKey<SIZE>> for EcdsaPrivateKey<SIZE>
Available on crate feature subtle
only.
impl<const SIZE: usize> PartialEq<EcdsaPrivateKey<SIZE>> for EcdsaPrivateKey<SIZE>
Available on crate feature
subtle
only.sourceimpl Signer<Signature> for EcdsaPrivateKey<32>
Available on crate feature p256
only.
impl Signer<Signature> for EcdsaPrivateKey<32>
Available on crate feature
p256
only.sourceimpl Signer<Signature> for EcdsaPrivateKey<48>
Available on crate feature p384
only.
impl Signer<Signature> for EcdsaPrivateKey<48>
Available on crate feature
p384
only.sourceimpl<const SIZE: usize> UpperHex for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> UpperHex for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Eq for EcdsaPrivateKey<SIZE>
Available on crate feature
subtle
only.Auto Trait Implementations
impl<const SIZE: usize> RefUnwindSafe for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Send for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Sync for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Unpin for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> UnwindSafe for EcdsaPrivateKey<SIZE>
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