Enum yubihsm::algorithm::EcdsaAlg [−][src]
#[repr(u8)]pub enum EcdsaAlg { SHA1, SHA256, SHA384, SHA512, }
Valid algorithms for asymmetric keys
Variants
SHA1
ecdsa-sha1
SHA256
ecdsa-sha256
SHA384
ecdsa-sha384
SHA512
ecdsa-sha512
Methods
impl EcdsaAlg
[src]
impl EcdsaAlg
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 EcdsaAlgorithm
(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 EcdsaAlg
[src]
impl Copy for EcdsaAlg
impl Clone for EcdsaAlg
[src]
impl Clone for EcdsaAlg
fn clone(&self) -> EcdsaAlg
[src]
fn clone(&self) -> EcdsaAlg
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 EcdsaAlg
[src]
impl Debug for EcdsaAlg
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 EcdsaAlg
[src]
impl Eq for EcdsaAlg
impl PartialEq for EcdsaAlg
[src]
impl PartialEq for EcdsaAlg
fn eq(&self, other: &EcdsaAlg) -> bool
[src]
fn eq(&self, other: &EcdsaAlg) -> 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<EcdsaAlg> for Algorithm
[src]
impl From<EcdsaAlg> for Algorithm
impl Serialize for EcdsaAlg
[src]
impl Serialize for EcdsaAlg
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 EcdsaAlg
[src]
impl<'de> Deserialize<'de> for EcdsaAlg
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<EcdsaAlg, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<EcdsaAlg, D::Error>
Deserialize this value from the given Serde deserializer. Read more