Enum yubihsm::asymmetric::Algorithm
source · #[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§
source§impl<'de> Deserialize<'de> for Algorithm
impl<'de> Deserialize<'de> for Algorithm
source§fn deserialize<D: Deserializer<'de>>(
deserializer: D
) -> Result<Algorithm, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D ) -> Result<Algorithm, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Algorithm> for Algorithm
impl PartialEq<Algorithm> for Algorithm
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralEq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more