Enum sec1::EcParameters
source · pub enum EcParameters {
NamedCurve(ObjectIdentifier),
}
Expand description
Elliptic curve parameters as described in RFC5480 Section 2.1.1:
ECParameters ::= CHOICE {
namedCurve OBJECT IDENTIFIER
-- implicitCurve NULL
-- specifiedCurve SpecifiedECDomain
}
-- implicitCurve and specifiedCurve MUST NOT be used in PKIX.
-- Details for SpecifiedECDomain can be found in [X9.62].
-- Any future additions to this CHOICE should be coordinated
-- with ANSI X9.
Variants§
NamedCurve(ObjectIdentifier)
Elliptic curve named by a particular OID.
namedCurve identifies all the required values for a particular set of elliptic curve domain parameters to be represented by an object identifier.
Implementations§
source§impl EcParameters
impl EcParameters
sourcepub fn named_curve(self) -> Option<ObjectIdentifier>
pub fn named_curve(self) -> Option<ObjectIdentifier>
Obtain the namedCurve
OID.
Trait Implementations§
source§impl Clone for EcParameters
impl Clone for EcParameters
source§fn clone(&self) -> EcParameters
fn clone(&self) -> EcParameters
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 EcParameters
impl Debug for EcParameters
source§impl DecodeValue<'_> for EcParameters
impl DecodeValue<'_> for EcParameters
source§impl EncodeValue for EcParameters
impl EncodeValue for EcParameters
source§impl<'a> From<&'a EcParameters> for Any<'a>
impl<'a> From<&'a EcParameters> for Any<'a>
source§fn from(params: &'a EcParameters) -> Any<'a>
fn from(params: &'a EcParameters) -> Any<'a>
Converts to this type from the input type.
source§impl From<ObjectIdentifier> for EcParameters
impl From<ObjectIdentifier> for EcParameters
source§fn from(oid: ObjectIdentifier) -> EcParameters
fn from(oid: ObjectIdentifier) -> EcParameters
Converts to this type from the input type.
source§impl PartialEq for EcParameters
impl PartialEq for EcParameters
impl Copy for EcParameters
impl Eq for EcParameters
impl StructuralPartialEq for EcParameters
Auto Trait Implementations§
impl Freeze for EcParameters
impl RefUnwindSafe for EcParameters
impl Send for EcParameters
impl Sync for EcParameters
impl Unpin for EcParameters
impl UnwindSafe for EcParameters
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)