pub enum SignatureType {
EcdsaP224,
EcdsaP256,
EcdsaP384,
EcdsaP521,
EdDsa,
Pkcs1,
PssMd5,
PssSha1,
PssSha224,
PssSha256,
PssSha384,
PssSha512,
}
Expand description
The type of a signature
This enum covers all variants of [nethsm_sdk_rs::models::SignMode
], but instead of
[nethsm_sdk_rs::models::SignMode::Ecdsa
] covers prime size specific ECDSA modes.
Variants§
EcdsaP224
Elliptic Curve Digital Signature Algorithm (ECDSA) signing using a key over a prime field for a prime of size 224 bit
EcdsaP256
Elliptic Curve Digital Signature Algorithm (ECDSA) signing using a key over a prime field for a prime of size 256 bit
EcdsaP384
Elliptic Curve Digital Signature Algorithm (ECDSA) signing using a key over a prime field for a prime of size 384 bit
EcdsaP521
Elliptic Curve Digital Signature Algorithm (ECDSA) signing using a key over a prime field for a prime of size 521 bit
EdDsa
Signing following the Edwards-curve Digital Signature Algorithm (EdDSA)
Pkcs1
RSA signing following the PKCS#1 standard
PssMd5
RSA signing following a “probabilistic signature scheme” (PSS) using an MD-5 hash
PssSha1
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-1 hash
PssSha224
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-224 hash
PssSha256
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-256 hash
PssSha384
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-384 hash
PssSha512
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-512 hash
Trait Implementations§
source§impl Clone for SignatureType
impl Clone for SignatureType
source§fn clone(&self) -> SignatureType
fn clone(&self) -> SignatureType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SignatureType
impl Debug for SignatureType
source§impl<'de> Deserialize<'de> for SignatureType
impl<'de> Deserialize<'de> for SignatureType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Display for SignatureType
impl Display for SignatureType
source§impl<'_derivative_strum> From<&'_derivative_strum SignatureType> for &'static str
impl<'_derivative_strum> From<&'_derivative_strum SignatureType> for &'static str
source§fn from(x: &'_derivative_strum SignatureType) -> &'static str
fn from(x: &'_derivative_strum SignatureType) -> &'static str
source§impl From<SignatureType> for &'static str
impl From<SignatureType> for &'static str
source§fn from(x: SignatureType) -> &'static str
fn from(x: SignatureType) -> &'static str
source§impl From<SignatureType> for SignMode
impl From<SignatureType> for SignMode
source§fn from(value: SignatureType) -> Self
fn from(value: SignatureType) -> Self
source§impl FromStr for SignatureType
impl FromStr for SignatureType
source§impl Hash for SignatureType
impl Hash for SignatureType
source§impl IntoEnumIterator for SignatureType
impl IntoEnumIterator for SignatureType
type Iterator = SignatureTypeIter
fn iter() -> SignatureTypeIter ⓘ
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,
source§impl PartialEq for SignatureType
impl PartialEq for SignatureType
source§impl PartialOrd for SignatureType
impl PartialOrd for SignatureType
source§impl Serialize for SignatureType
impl Serialize for SignatureType
source§impl TryFrom<&str> for SignatureType
impl TryFrom<&str> 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
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)
clone_to_uninit
)