Struct picky_asn1_x509::private_key_info::ECPrivateKey
source · pub struct ECPrivateKey {
pub version: IntegerAsn1,
pub private_key: EncapsulatedEcSecret,
pub parameters: Optional<ExplicitContextTag0<Option<EcParameters>>>,
pub public_key: Optional<ExplicitContextTag1<Option<EncapsulatedEcPoint>>>,
}
Expand description
Elliptic Curve Private Key Structure
EC private key information SHALL have ASN.1 type ECPrivateKey:
ECPrivateKey ::= SEQUENCE {
version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1),
privateKey OCTET STRING,
parameters [0] ECParameters {{ NamedCurve }} OPTIONAL,
publicKey [1] BIT STRING OPTIONAL
}
Fields§
§version: IntegerAsn1
§private_key: EncapsulatedEcSecret
§parameters: Optional<ExplicitContextTag0<Option<EcParameters>>>
§public_key: Optional<ExplicitContextTag1<Option<EncapsulatedEcPoint>>>
Trait Implementations§
source§impl Clone for ECPrivateKey
impl Clone for ECPrivateKey
source§fn clone(&self) -> ECPrivateKey
fn clone(&self) -> ECPrivateKey
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 ECPrivateKey
impl Debug for ECPrivateKey
source§impl<'de> Deserialize<'de> for ECPrivateKey
impl<'de> Deserialize<'de> for ECPrivateKey
source§fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for ECPrivateKey
impl PartialEq for ECPrivateKey
source§fn eq(&self, other: &ECPrivateKey) -> bool
fn eq(&self, other: &ECPrivateKey) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ECPrivateKey
impl Serialize for ECPrivateKey
impl Eq for ECPrivateKey
impl StructuralPartialEq for ECPrivateKey
Auto Trait Implementations§
impl Freeze for ECPrivateKey
impl RefUnwindSafe for ECPrivateKey
impl Send for ECPrivateKey
impl Sync for ECPrivateKey
impl Unpin for ECPrivateKey
impl UnwindSafe for ECPrivateKey
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
)