Enum openpgp_card::algorithm::Curve
source · #[non_exhaustive]pub enum Curve {
NistP256r1,
NistP384r1,
NistP521r1,
BrainpoolP256r1,
BrainpoolP384r1,
BrainpoolP512r1,
Secp256k1,
Ed25519,
Cv25519,
Ed448,
X448,
Unknown(Vec<u8>),
}
Expand description
Enum for naming ECC curves, and mapping them to/from their OIDs.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NistP256r1
NistP384r1
NistP521r1
BrainpoolP256r1
BrainpoolP384r1
BrainpoolP512r1
Secp256k1
Ed25519
Cv25519
Ed448
X448
Unknown(Vec<u8>)
Implementations§
Trait Implementations§
source§impl PartialEq for Curve
impl PartialEq for Curve
impl Eq for Curve
impl StructuralPartialEq for Curve
Auto Trait Implementations§
impl RefUnwindSafe for Curve
impl Send for Curve
impl Sync for Curve
impl Unpin for Curve
impl UnwindSafe for Curve
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