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, Error>
fn encoded_len_prefixed(&self) -> Result<usize, 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<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), 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 From<SecretKey<NistP521>> for EcdsaPrivateKey<66>
Available on crate feature p521
only.
impl From<SecretKey<NistP521>> for EcdsaPrivateKey<66>
Available on crate feature
p521
only.source§fn from(sk: SecretKey) -> EcdsaPrivateKey<66>
fn from(sk: SecretKey) -> EcdsaPrivateKey<66>
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 for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> PartialEq for EcdsaPrivateKey<SIZE>
source§impl Signer<Signature> for EcdsaPrivateKey<32>
Available on crate features alloc
and p256
only.
impl Signer<Signature> for EcdsaPrivateKey<32>
Available on crate features
alloc
and p256
only.source§impl Signer<Signature> for EcdsaPrivateKey<48>
Available on crate features alloc
and p384
only.
impl Signer<Signature> for EcdsaPrivateKey<48>
Available on crate features
alloc
and p384
only.source§impl Signer<Signature> for EcdsaPrivateKey<66>
Available on crate features alloc
and p521
only.
impl Signer<Signature> for EcdsaPrivateKey<66>
Available on crate features
alloc
and p521
only.source§impl<const SIZE: usize> UpperHex for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> UpperHex for EcdsaPrivateKey<SIZE>
impl<const SIZE: usize> Eq for EcdsaPrivateKey<SIZE>
Auto Trait Implementations§
impl<const SIZE: usize> Freeze for EcdsaPrivateKey<SIZE>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)