Enum ethers::signers::yubihsm::algorithm::Algorithm [−][src]
#[repr(u8)]
pub enum Algorithm {
Asymmetric(Algorithm),
Authentication(Algorithm),
Ecdh(Algorithm),
Ecdsa(Algorithm),
Hmac(Algorithm),
Mgf(Algorithm),
Opaque(Algorithm),
Rsa(Algorithm),
Template(Algorithm),
Wrap(Algorithm),
YubicoOtp(Algorithm),
}
Expand description
Cryptographic algorithm types supported by the YubiHSM 2
Variants
Asymmetric(Algorithm)
Tuple Fields
0: Algorithm
Asymmetric algorithms
Authentication(Algorithm)
Tuple Fields
0: Algorithm
YubiHSM 2 symmetric PSK authentication
Ecdh(Algorithm)
Tuple Fields
0: Algorithm
Elliptic Curve Diffie-Hellman (i.e. key exchange) algorithms
Ecdsa(Algorithm)
Tuple Fields
0: Algorithm
ECDSA algorithms
Hmac(Algorithm)
Tuple Fields
0: Algorithm
HMAC algorithms
Mgf(Algorithm)
Tuple Fields
0: Algorithm
RSA-PSS mask generating functions
Opaque(Algorithm)
Tuple Fields
0: Algorithm
Opaque data types
Rsa(Algorithm)
Tuple Fields
0: Algorithm
RSA algorithms (signing and encryption)
Template(Algorithm)
Tuple Fields
0: Algorithm
SSH template algorithms
Wrap(Algorithm)
Tuple Fields
0: Algorithm
Object wrap (i.e. HSM-to-HSM encryption) algorithms
YubicoOtp(Algorithm)
Tuple Fields
0: Algorithm
Yubico OTP algorithms
Implementations
Convert an unsigned byte into an Algorithm (if valid)
Get asymmetric::Algorithm
Get authentication::Algorithm
Trait Implementations
pub fn deserialize<D>(
deserializer: D
) -> Result<Algorithm, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
pub fn deserialize<D>(
deserializer: D
) -> Result<Algorithm, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
pub fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more