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
PKCS1_SHA1
rsa-pkcs1-sha1
PKCS1_SHA256
rsa-pkcs1-sha256
PKCS1_SHA384
rsa-pkcs1-sha384
PKCS1_SHA512
rsa-pkcs1-sha512
PSS_SHA1
rsa-pss-sha1
PSS_SHA256
rsa-pss-sha256
PSS_SHA384
rsa-pss-sha384
PSS_SHA512
rsa-pss-sha512
OAEP_SHA1
rsa-oaep-sha1
OAEP_SHA256
rsa-oaep-sha256
OAEP_SHA384
rsa-oaep-sha384
OAEP_SHA512
rsa-oaep-sha512
Methods
impl RsaAlg
[src]
impl RsaAlg
pub fn from_u8(tag: u8) -> Result<Self, AlgorithmError>
[src]
pub fn from_u8(tag: u8) -> Result<Self, AlgorithmError>
Convert an unsigned byte tag into an RsaAlgorithm
(if valid)
pub fn to_u8(self) -> u8
[src]
pub fn to_u8(self) -> u8
Serialize algorithm ID as a byte
Trait Implementations
impl Copy for RsaAlg
[src]
impl Copy for RsaAlg
impl Clone for RsaAlg
[src]
impl Clone for RsaAlg
fn clone(&self) -> RsaAlg
[src]
fn clone(&self) -> RsaAlg
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for RsaAlg
[src]
impl Debug for RsaAlg
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for RsaAlg
[src]
impl Eq for RsaAlg
impl PartialEq for RsaAlg
[src]
impl PartialEq for RsaAlg
fn eq(&self, other: &RsaAlg) -> bool
[src]
fn eq(&self, other: &RsaAlg) -> bool
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]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl From<RsaAlg> for Algorithm
[src]
impl From<RsaAlg> for Algorithm
impl Serialize for RsaAlg
[src]
impl Serialize for RsaAlg
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
[src]
fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for RsaAlg
[src]
impl<'de> Deserialize<'de> for RsaAlg
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<RsaAlg, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<RsaAlg, D::Error>
Deserialize this value from the given Serde deserializer. Read more