pub enum KeyMechanism {
Show 19 variants
AesDecryptionCbc,
AesEncryptionCbc,
EcdsaSignature,
EdDsaSignature,
RsaDecryptionOaepMd5,
RsaDecryptionOaepSha1,
RsaDecryptionOaepSha224,
RsaDecryptionOaepSha256,
RsaDecryptionOaepSha384,
RsaDecryptionOaepSha512,
RsaDecryptionPkcs1,
RsaDecryptionRaw,
RsaSignaturePkcs1,
RsaSignaturePssMd5,
RsaSignaturePssSha1,
RsaSignaturePssSha224,
RsaSignaturePssSha256,
RsaSignaturePssSha384,
RsaSignaturePssSha512,
}
Expand description
A mechanism which can be used with a key
Variants§
AesDecryptionCbc
Decryption using the Advanced Encryption Standard (AES) with Cipher Block Chaining (CBC)
AesEncryptionCbc
Encryption using the Advanced Encryption Standard (AES) with Cipher Block Chaining (CBC)
EcdsaSignature
Signing following the Elliptic Curve Digital Signature Algorithm (ECDSA)
EdDsaSignature
Signing following the Edwards-curve Digital Signature Algorithm (EdDSA)
RsaDecryptionOaepMd5
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using an MD-5 hash
RsaDecryptionOaepSha1
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-1 hash
RsaDecryptionOaepSha224
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-224 hash
RsaDecryptionOaepSha256
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-256 hash
RsaDecryptionOaepSha384
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-384 hash
RsaDecryptionOaepSha512
RSA decryption with Optimal Asymmetric Encryption Padding (OAEP) using a SHA-512 hash
RsaDecryptionPkcs1
RSA decryption following the PKCS#1 standard
RsaDecryptionRaw
Raw RSA decryption
RsaSignaturePkcs1
RSA signing following the PKCS#1 standard
RsaSignaturePssMd5
RSA signing following a “probabilistic signature scheme” (PSS) using an MD-5 hash
RsaSignaturePssSha1
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-1 hash
RsaSignaturePssSha224
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-224 hash
RsaSignaturePssSha256
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-256 hash
RsaSignaturePssSha384
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-384 hash
RsaSignaturePssSha512
RSA signing following a “probabilistic signature scheme” (PSS) using a SHA-512 hash
Implementations§
Source§impl KeyMechanism
impl KeyMechanism
Sourcepub fn curve25519_mechanisms() -> Vec<KeyMechanism>
pub fn curve25519_mechanisms() -> Vec<KeyMechanism>
Returns key mechanisms specific to Curve25519 key types
Sourcepub fn elliptic_curve_mechanisms() -> Vec<KeyMechanism>
pub fn elliptic_curve_mechanisms() -> Vec<KeyMechanism>
Returns key mechanisms specific to elliptic curve key types
Sourcepub fn generic_mechanisms() -> Vec<KeyMechanism>
pub fn generic_mechanisms() -> Vec<KeyMechanism>
Returns key mechanisms specific to generic key types
Sourcepub fn rsa_mechanisms() -> Vec<KeyMechanism>
pub fn rsa_mechanisms() -> Vec<KeyMechanism>
Returns key mechanisms specific to RSA key types
Trait Implementations§
Source§impl Clone for KeyMechanism
impl Clone for KeyMechanism
Source§fn clone(&self) -> KeyMechanism
fn clone(&self) -> KeyMechanism
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more