pub enum SignatureType {
EdDSA,
ES256,
ES256ph,
ES256K,
ES256Kph,
ES384,
ES384ph,
}Expand description
Supported signature types
Variants§
EdDSA
Standard signature output for ed25519
ES256
Elliptic curve DSA using P-256 and SHA-256
ES256ph
Elliptic curve DSA using P-256 and pre-hashed input
ES256K
Elliptic curve DSA using K-256 and SHA-256
ES256Kph
Elliptic curve DSA using K-256 and pre-hashed input
ES384
Elliptic curve DSA using P-384 and SHA-384
ES384ph
Elliptic curve DSA using P-384 and pre-hashed input
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 duplicate 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§impl PartialOrd for SignatureType
impl PartialOrd for SignatureType
impl Copy for SignatureType
impl Eq for SignatureType
impl StructuralPartialEq for SignatureType
Auto Trait Implementations§
impl Freeze for SignatureType
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