pub enum CurveType {
NistP256,
NistP384,
NistP521,
Curve25519,
}Expand description
CurveType provides an enum of the curve types that can be used when creating a key(s)
The current curve types supported is NistP256, NistP384, and Curve25519.
Note that Curve25519 is only supported for EcDh operations.
Variants§
NistP256
NistP256 represents the NIST P-256 curve.
NistP384
NistP384 represents the NIST P-384 curve.
NistP521
NistP521 represents the NIST P-521 curve.
Curve25519
Curve25519 represents the EC25519 curve. This curve is only supported for EcDh operations.
Implementations§
Trait Implementations§
impl Copy for CurveType
impl StructuralPartialEq for CurveType
Auto Trait Implementations§
impl Freeze for CurveType
impl RefUnwindSafe for CurveType
impl Send for CurveType
impl Sync for CurveType
impl Unpin for CurveType
impl UnwindSafe for CurveType
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