pub struct EcPrivateKey {
pub version: Integer,
pub private_key: OctetString,
pub parameters: Option<EcParameters>,
pub public_key: Option<BitString>,
}
Expand description
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: Integer
§private_key: OctetString
§parameters: Option<EcParameters>
§public_key: Option<BitString>
Implementations§
Source§impl EcPrivateKey
impl EcPrivateKey
pub fn take_from<S: Source>( cons: &mut Constructed<'_, S>, ) -> Result<Self, DecodeError<S::Error>>
pub fn encode_ref(&self) -> impl Values + '_
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 PartialEq for EcPrivateKey
impl PartialEq for EcPrivateKey
Source§impl TryFrom<&OctetString> for EcPrivateKey
impl TryFrom<&OctetString> for EcPrivateKey
Source§type Error = DecodeError<Infallible>
type Error = DecodeError<Infallible>
The type returned in the event of a conversion error.
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)