Enum yubihsm::algorithm::Algorithm
[−]
[src]
pub enum Algorithm { RSA_PKCS1_SHA1, RSA_PKCS1_SHA256, RSA_PKCS1_SHA384, RSA_PKCS1_SHA512, RSA_PSS_SHA1, RSA_PSS_SHA256, RSA_PSS_SHA384, RSA_PSS_SHA512, RSA2048, RSA3072, RSA4096, EC_P256, EC_P384, EC_P521, EC_K256, EC_BP256, EC_BP384, EC_BP512, HMAC_SHA1, HMAC_SHA256, HMAC_SHA384, HMAC_SHA512, EC_ECDSA_SHA1, EC_ECDH, RSA_OAEP_SHA1, RSA_OAEP_SHA256, RSA_OAEP_SHA384, RSA_OAEP_SHA512, AES128_CCM_WRAP, OPAQUE_DATA, OPAQUE_X509_CERT, MGF1_SHA1, MGF1_SHA256, MGF1_SHA384, MGF1_SHA512, TEMPL_SSH, YUBICO_OTP_AES128, YUBICO_AES_AUTH, YUBICO_OTP_AES192, YUBICO_OTP_AES256, AES192_CCM_WRAP, AES256_CCM_WRAP, EC_ECDSA_SHA256, EC_ECDSA_SHA384, EC_ECDSA_SHA512, EC_ED25519, EC_P224, }
Cryptographic algorithm types supported by the YubiHSM2
Variants
RSA_PKCS1_SHA1
rsa-pkcs1-sha1
RSA_PKCS1_SHA256
rsa-pkcs1-sha256
RSA_PKCS1_SHA384
rsa-pkcs1-sha384
RSA_PKCS1_SHA512
rsa-pkcs1-sha512
RSA_PSS_SHA1
rsa-pss-sha1
RSA_PSS_SHA256
rsa-pss-sha256
RSA_PSS_SHA384
rsa-pss-sha384
RSA_PSS_SHA512
rsa-pss-sha512
RSA2048
rsa2048
RSA3072
rsa3072
RSA4096
rsa4096
EC_P256
ecp256 (secp256r1)
EC_P384
ecp384 (secp384r1)
EC_P521
ecp521 (secp521r1)
EC_K256
eck256 (secp256k1)
EC_BP256
ecpb256 (brainpool256r1)
EC_BP384
ecpb384 (brainpool384r1)
EC_BP512
ecpb512 (brainpool512r1)
HMAC_SHA1
hmac-sha1
HMAC_SHA256
hmac-sha256
HMAC_SHA384
hmac-sha384
HMAC_SHA512
hmac-sha512
EC_ECDSA_SHA1
ecdsa-sha1
EC_ECDH
ecdsa
RSA_OAEP_SHA1
rsa-oaep-sha1
RSA_OAEP_SHA256
rsa-oaep-sha256
RSA_OAEP_SHA384
rsa-oaep-sha384
RSA_OAEP_SHA512
rsa-oaep-sha512
AES128_CCM_WRAP
aes128-ccm-wrap
OPAQUE_DATA
opaque
OPAQUE_X509_CERT
x509-cert
MGF1_SHA1
mgf-sha1
MGF1_SHA256
mgf-sha256
MGF1_SHA384
mgf-sha384
MGF1_SHA512
mgf-sha512
TEMPL_SSH
template-ssh
YUBICO_OTP_AES128
yubico-otp-aes128
YUBICO_AES_AUTH
yubico-aes-auth
YUBICO_OTP_AES192
yubico-otp-aes192
YUBICO_OTP_AES256
yubico-otp-aes256
AES192_CCM_WRAP
aes192-ccm-wrap
AES256_CCM_WRAP
aes256-ccm-wrap
EC_ECDSA_SHA256
ecdsa-sha256
EC_ECDSA_SHA384
ecdsa-sha384
EC_ECDSA_SHA512
ecdsa-sha512
EC_ED25519
ed25519
EC_P224
ecp224 (secp224r1)
Methods
impl Algorithm
[src]
pub fn from_u8(byte: u8) -> Result<Self, Error>
[src]
Convert an unsigned byte into an Algorithm (if valid)
pub fn to_u8(&self) -> u8
[src]
Serialize algorithm ID as a byte
Trait Implementations
impl Copy for Algorithm
[src]
impl Clone for Algorithm
[src]
fn clone(&self) -> Algorithm
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Algorithm
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for Algorithm
[src]
impl PartialEq for Algorithm
[src]
fn eq(&self, __arg_0: &Algorithm) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Serialize for Algorithm
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Algorithm
[src]
fn deserialize<D>(deserializer: D) -> Result<Algorithm, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more