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§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