Enum yubihsm::algorithm::AsymmetricAlg[][src]

#[repr(u8)]
pub enum AsymmetricAlg { RSA_2048, RSA_3072, RSA_4096, Ed25519, EC_P224, EC_P256, EC_P384, EC_P521, EC_K256, EC_BP256, EC_BP384, EC_BP512, }

Asymmetric algorithms (RSA or ECC)

Variants

2048-bit RSA

3072-bit RSA

4096-bit RSA

Ed25519

NIST P-224 (secp224r1)

NIST P-256 (secp256r1, prime256v1)

NIST P-384 (secp384r1)

P-521 (secp521r1)

secp256k1

brainpool256r1

brainpool384r1

brainpool512r1

Methods

impl AsymmetricAlg
[src]

Convert an unsigned byte tag into an AsymmetricAlgorithm (if valid)

Serialize algorithm ID as a byte

Return the size of the given key (as expected by the YubiHSM2) in bytes

Trait Implementations

impl Copy for AsymmetricAlg
[src]

impl Clone for AsymmetricAlg
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for AsymmetricAlg
[src]

Formats the value using the given formatter. Read more

impl Eq for AsymmetricAlg
[src]

impl PartialEq for AsymmetricAlg
[src]

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

This method tests for !=.

impl From<AsymmetricAlg> for Algorithm
[src]

Performs the conversion.

impl Serialize for AsymmetricAlg
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations