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 duplicate 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<'a> DecodeValue<'a> for EcParameters
 
impl<'a> DecodeValue<'a> for EcParameters
Source§impl EncodeValue for EcParameters
 
impl EncodeValue for EcParameters
Source§impl<'a> From<&'a EcParameters> for AnyRef<'a>
 
impl<'a> From<&'a EcParameters> for AnyRef<'a>
Source§fn from(params: &'a EcParameters) -> AnyRef<'a>
 
fn from(params: &'a EcParameters) -> AnyRef<'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§impl<'a, T> Decode<'a> for Twhere
    T: DecodeValue<'a> + FixedTag,
 
impl<'a, T> Decode<'a> for Twhere
    T: DecodeValue<'a> + FixedTag,
Source§impl<T> Encode for Twhere
    T: EncodeValue + Tagged,
 
impl<T> Encode for Twhere
    T: EncodeValue + Tagged,
Source§fn encoded_len(&self) -> Result<Length, Error>
 
fn encoded_len(&self) -> Result<Length, Error>
Compute the length of this value in bytes when encoded as ASN.1 DER.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
 
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value as ASN.1 DER using the provided Writer.
Source§fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
 
fn encode_to_slice<'a>(&self, buf: &'a mut [u8]) -> Result<&'a [u8], Error>
Encode this value to the provided byte slice, returning a sub-slice
containing the encoded message.