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-sha256

rsa-pkcs1-sha384

rsa-pkcs1-sha512

rsa-pss-sha1

rsa-pss-sha256

rsa-pss-sha384

rsa-pss-sha512

rsa2048

rsa3072

rsa4096

ecp256 (secp256r1)

ecp384 (secp384r1)

ecp521 (secp521r1)

eck256 (secp256k1)

ecpb256 (brainpool256r1)

ecpb384 (brainpool384r1)

ecpb512 (brainpool512r1)

hmac-sha1

hmac-sha256

hmac-sha384

hmac-sha512

ecdsa-sha1

ecdsa

rsa-oaep-sha1

rsa-oaep-sha256

rsa-oaep-sha384

rsa-oaep-sha512

aes128-ccm-wrap

opaque

x509-cert

mgf-sha1

mgf-sha256

mgf-sha384

mgf-sha512

template-ssh

yubico-otp-aes128

yubico-aes-auth

yubico-otp-aes192

yubico-otp-aes256

aes192-ccm-wrap

aes256-ccm-wrap

ecdsa-sha256

ecdsa-sha384

ecdsa-sha512

ed25519

ecp224 (secp224r1)

Methods

impl Algorithm
[src]

[src]

Convert an unsigned byte into an Algorithm (if valid)

[src]

Serialize algorithm ID as a byte

Trait Implementations

impl Copy for Algorithm
[src]

impl Clone for Algorithm
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Algorithm
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for Algorithm
[src]

impl PartialEq for Algorithm
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Serialize for Algorithm
[src]

[src]

Serialize this value into the given Serde serializer. Read more

impl<'de> Deserialize<'de> for Algorithm
[src]

[src]

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for Algorithm

impl Sync for Algorithm