pub enum EcdsaPrivateKey {
NistP256(EcdsaPrivateKey<32>),
NistP384(EcdsaPrivateKey<48>),
NistP521(EcdsaPrivateKey<66>),
}
Expand description
Elliptic Curve Digital Signature Algorithm (ECDSA) private/public key pair.
Variants§
NistP256(EcdsaPrivateKey<32>)
NIST P-256 ECDSA private key.
NistP384(EcdsaPrivateKey<48>)
NIST P-384 ECDSA private key.
NistP521(EcdsaPrivateKey<66>)
NIST P-521 ECDSA private key.
Trait Implementations§
Source§impl Clone for EcdsaPrivateKey
impl Clone for EcdsaPrivateKey
Source§fn clone(&self) -> EcdsaPrivateKey
fn clone(&self) -> EcdsaPrivateKey
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 ConstantTimeEq for EcdsaPrivateKey
impl ConstantTimeEq for EcdsaPrivateKey
Source§impl Debug for EcdsaPrivateKey
impl Debug for EcdsaPrivateKey
Source§impl Encode for EcdsaPrivateKey
impl Encode for EcdsaPrivateKey
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 PartialEq for EcdsaPrivateKey
impl PartialEq for EcdsaPrivateKey
impl Eq for EcdsaPrivateKey
Auto Trait Implementations§
impl Freeze for EcdsaPrivateKey
impl RefUnwindSafe for EcdsaPrivateKey
impl Send for EcdsaPrivateKey
impl Sync for EcdsaPrivateKey
impl Unpin for EcdsaPrivateKey
impl UnwindSafe for EcdsaPrivateKey
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