Struct sgx_crypto::ecc::EcPrivateKey
source · pub struct EcPrivateKey(/* private fields */);Implementations§
source§impl EcPrivateKey
impl EcPrivateKey
pub fn sign<T>(&self, data: &T) -> SgxResult<EcSignature>where T: ContiguousMemory + ?Sized,
pub fn create_with_seed<H: AsRef<[u8]>>(hash_drg: H) -> SgxResult<EcPrivateKey>
pub fn export_public_key(&self) -> SgxResult<EcPublicKey>
pub fn private_key(&self) -> Ec256PrivateKey
pub fn clear(&mut self)
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 ConstTimeEq for EcPrivateKey
impl ConstTimeEq for EcPrivateKey
source§impl Debug for EcPrivateKey
impl Debug for EcPrivateKey
source§impl Default for EcPrivateKey
impl Default for EcPrivateKey
source§fn default() -> EcPrivateKey
fn default() -> EcPrivateKey
Returns the “default value” for a type. Read more
source§impl From<&AlignEc256PrivateKey> for EcPrivateKey
impl From<&AlignEc256PrivateKey> for EcPrivateKey
source§fn from(key: &AlignEc256PrivateKey) -> EcPrivateKey
fn from(key: &AlignEc256PrivateKey) -> EcPrivateKey
Converts to this type from the input type.
source§impl From<&Ec256PrivateKey> for EcPrivateKey
impl From<&Ec256PrivateKey> for EcPrivateKey
source§fn from(key: &Ec256PrivateKey) -> EcPrivateKey
fn from(key: &Ec256PrivateKey) -> EcPrivateKey
Converts to this type from the input type.
source§impl From<&EcPrivateKey> for AlignEc256PrivateKey
impl From<&EcPrivateKey> for AlignEc256PrivateKey
source§fn from(key: &EcPrivateKey) -> AlignEc256PrivateKey
fn from(key: &EcPrivateKey) -> AlignEc256PrivateKey
Converts to this type from the input type.
source§impl From<&EcPrivateKey> for Ec256PrivateKey
impl From<&EcPrivateKey> for Ec256PrivateKey
source§fn from(key: &EcPrivateKey) -> Ec256PrivateKey
fn from(key: &EcPrivateKey) -> Ec256PrivateKey
Converts to this type from the input type.
source§impl From<AlignEc256PrivateKey> for EcPrivateKey
impl From<AlignEc256PrivateKey> for EcPrivateKey
source§fn from(key: AlignEc256PrivateKey) -> EcPrivateKey
fn from(key: AlignEc256PrivateKey) -> EcPrivateKey
Converts to this type from the input type.
source§impl From<Ec256PrivateKey> for EcPrivateKey
impl From<Ec256PrivateKey> for EcPrivateKey
source§fn from(key: Ec256PrivateKey) -> EcPrivateKey
fn from(key: Ec256PrivateKey) -> EcPrivateKey
Converts to this type from the input type.
source§impl From<EcPrivateKey> for AlignEc256PrivateKey
impl From<EcPrivateKey> for AlignEc256PrivateKey
source§fn from(key: EcPrivateKey) -> AlignEc256PrivateKey
fn from(key: EcPrivateKey) -> AlignEc256PrivateKey
Converts to this type from the input type.
source§impl From<EcPrivateKey> for Ec256PrivateKey
impl From<EcPrivateKey> for Ec256PrivateKey
source§fn from(key: EcPrivateKey) -> Ec256PrivateKey
fn from(key: EcPrivateKey) -> Ec256PrivateKey
Converts to this type from the input type.
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 ==.impl BytewiseEquality for EcPrivateKey
impl ContiguousMemory for EcPrivateKey
impl Copy for EcPrivateKey
impl Eq for EcPrivateKey
impl StructuralEq for EcPrivateKey
impl StructuralPartialEq for EcPrivateKey
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§
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