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 more