Enum tuf::crypto::SignatureScheme
[−]
[src]
pub enum SignatureScheme { Ed25519, RsaSsaPssSha256, RsaSsaPssSha512, }
Cryptographic signature schemes.
Variants
Ed25519
RsaSsaPssSha256
RSASSA-PSS calculated over SHA256
RsaSsaPssSha512
RSASSA-PSS calculated over SHA512
Trait Implementations
impl Debug for SignatureScheme
[src]
impl Clone for SignatureScheme
[src]
fn clone(&self) -> SignatureScheme
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for SignatureScheme
[src]
fn eq(&self, __arg_0: &SignatureScheme) -> 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
This method tests for !=
.
impl ToString for SignatureScheme
[src]
impl FromStr for SignatureScheme
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl Serialize for SignatureScheme
[src]
fn serialize<S>(&self, ser: S) -> Result<S::Ok, S::Error> where
S: Serializer,
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for SignatureScheme
[src]
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more