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.