Enum yubihsm::algorithm::RsaAlg[][src]

#[repr(u8)]
pub enum RsaAlg { PKCS1_SHA1, PKCS1_SHA256, PKCS1_SHA384, PKCS1_SHA512, PSS_SHA1, PSS_SHA256, PSS_SHA384, PSS_SHA512, OAEP_SHA1, OAEP_SHA256, OAEP_SHA384, OAEP_SHA512, }

RSA algorithms (signing and encryption)

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

rsa-oaep-sha1

rsa-oaep-sha256

rsa-oaep-sha384

rsa-oaep-sha512

Methods

impl RsaAlg
[src]

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

Serialize algorithm ID as a byte

Trait Implementations

impl Copy for RsaAlg
[src]

impl Clone for RsaAlg
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for RsaAlg
[src]

Formats the value using the given formatter. Read more

impl Eq for RsaAlg
[src]

impl PartialEq for RsaAlg
[src]

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

This method tests for !=.

impl From<RsaAlg> for Algorithm
[src]

Performs the conversion.

impl Serialize for RsaAlg
[src]

Serialize this value into the given Serde serializer. Read more

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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

impl Send for RsaAlg

impl Sync for RsaAlg