Enum askar_crypto::sign::SignatureType
source · pub enum SignatureType {
EdDSA,
ES256,
ES256K,
ES384,
}
Expand description
Supported signature types
Variants§
EdDSA
Standard signature output for ed25519
ES256
Elliptic curve DSA using P-256 and SHA-256
ES256K
Elliptic curve DSA using K-256 and SHA-256
ES384
Elliptic curve DSA using P-384 and SHA-384
Implementations§
source§impl SignatureType
impl SignatureType
sourcepub const fn signature_length(&self) -> usize
pub const fn signature_length(&self) -> usize
Get the length of the signature output.
Trait Implementations§
source§impl Clone for SignatureType
impl Clone for SignatureType
source§fn clone(&self) -> SignatureType
fn clone(&self) -> SignatureType
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 Debug for SignatureType
impl Debug for SignatureType
source§impl FromStr for SignatureType
impl FromStr for SignatureType
source§impl Hash for SignatureType
impl Hash for SignatureType
source§impl Ord for SignatureType
impl Ord for SignatureType
source§fn cmp(&self, other: &SignatureType) -> Ordering
fn cmp(&self, other: &SignatureType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SignatureType
impl PartialEq for SignatureType
source§fn eq(&self, other: &SignatureType) -> bool
fn eq(&self, other: &SignatureType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SignatureType
impl PartialOrd for SignatureType
source§fn partial_cmp(&self, other: &SignatureType) -> Option<Ordering>
fn partial_cmp(&self, other: &SignatureType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for SignatureType
impl Eq for SignatureType
impl StructuralPartialEq for SignatureType
Auto Trait Implementations§
impl RefUnwindSafe for SignatureType
impl Send for SignatureType
impl Sync for SignatureType
impl Unpin for SignatureType
impl UnwindSafe for SignatureType
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