pub enum EcdsaCurve {
Secp256r1,
Secp384r1,
}
Expand description
Represents a known curve used with ECDSA.
Variants§
Implementations§
Source§impl EcdsaCurve
impl EcdsaCurve
Sourcepub fn as_signature_oid(&self) -> Oid
pub fn as_signature_oid(&self) -> Oid
Obtain the OID representing this elliptic curve.
Trait Implementations§
Source§impl Clone for EcdsaCurve
impl Clone for EcdsaCurve
Source§fn clone(&self) -> EcdsaCurve
fn clone(&self) -> EcdsaCurve
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EcdsaCurve
impl Debug for EcdsaCurve
Source§impl From<EcdsaCurve> for &'static EcdsaSigningAlgorithm
impl From<EcdsaCurve> for &'static EcdsaSigningAlgorithm
Source§fn from(curve: EcdsaCurve) -> Self
fn from(curve: EcdsaCurve) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EcdsaCurve
impl PartialEq for EcdsaCurve
Source§impl TryFrom<&Oid> for EcdsaCurve
impl TryFrom<&Oid> for EcdsaCurve
impl Copy for EcdsaCurve
impl Eq for EcdsaCurve
impl StructuralPartialEq for EcdsaCurve
Auto Trait Implementations§
impl Freeze for EcdsaCurve
impl RefUnwindSafe for EcdsaCurve
impl Send for EcdsaCurve
impl Sync for EcdsaCurve
impl Unpin for EcdsaCurve
impl UnwindSafe for EcdsaCurve
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)