Enum ethers::signers::yubihsm::asymmetric::Algorithm [−][src]
#[repr(u8)]
pub enum Algorithm {
Rsa2048,
Rsa3072,
Rsa4096,
Ed25519,
EcP224,
EcP256,
EcP384,
EcP521,
EcK256,
EcBp256,
EcBp384,
EcBp512,
}
Expand description
Asymmetric algorithms (RSA or ECC)
Variants
Rsa2048
2048-bit RSA
Rsa3072
3072-bit RSA
Rsa4096
4096-bit RSA
Ed25519
Ed25519
EcP224
NIST P-224 (secp224r1)
EcP256
NIST P-256 (secp256r1, prime256v1)
EcP384
NIST P-384 (secp384r1)
EcP521
P-521 (secp521r1)
EcK256
secp256k1
EcBp256
brainpool256r1
EcBp384
brainpool384r1
EcBp512
brainpool512r1
Implementations
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