Struct cryptographic_message_syntax::asn1::rfc5915::EcPrivateKey [−][src]
Elliptic curve private key.
ECPrivateKey ::= SEQUENCE {
version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1),
privateKey OCTET STRING,
parameters [0] ECParameters {{ NamedCurve }} OPTIONAL,
publicKey [1] BIT STRING OPTIONAL
}
Fields
version: Integerprivate_key: OctetStringparameters: Option<EcParameters>public_key: Option<BitString>Implementations
impl EcPrivateKey[src]
pub fn take_from<S: Source>(
cons: &mut Constructed<'_, S>
) -> Result<Self, S::Err>[src]
cons: &mut Constructed<'_, S>
) -> Result<Self, S::Err>
pub fn encode_ref(&self) -> impl Values + '_[src]
Trait Implementations
impl Clone for EcPrivateKey[src]
fn clone(&self) -> EcPrivateKey[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for EcPrivateKey[src]
impl Eq for EcPrivateKey[src]
impl PartialEq<EcPrivateKey> for EcPrivateKey[src]
fn eq(&self, other: &EcPrivateKey) -> bool[src]
fn ne(&self, other: &EcPrivateKey) -> bool[src]
impl StructuralEq for EcPrivateKey[src]
impl StructuralPartialEq for EcPrivateKey[src]
impl TryFrom<&'_ OctetString> for EcPrivateKey[src]
Auto Trait Implementations
impl RefUnwindSafe for EcPrivateKey
impl Send for EcPrivateKey
impl Sync for EcPrivateKey
impl Unpin for EcPrivateKey
impl UnwindSafe for EcPrivateKey
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,