pub struct EcPrivateKey {
pub version: u8,
pub key: Vec<u8>,
pub curve: Option<ObjectIdentifier>,
pub public_key: Option<Vec<u8>>,
}
Expand description
The SEC1 EcPrivateKey structure decoded from the input.
Fields§
§version: u8
The version of the curve.
key: Vec<u8>
The private key bytes.
curve: Option<ObjectIdentifier>
The curve OID.
public_key: Option<Vec<u8>>
The public key bytes, if included.
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
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