Struct sgx_crypto::ecc::EcPrivateKey
source · [−]pub struct EcPrivateKey(_);
Implementations
sourceimpl EcPrivateKey
impl EcPrivateKey
pub fn sign<T: ?Sized>(&self, data: &T) -> SgxResult<EcSignature>where
T: ContiguousMemory,
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
sourceimpl AsRef<[u8; 32]> for EcPrivateKey
impl AsRef<[u8; 32]> for EcPrivateKey
sourceimpl Clone for EcPrivateKey
impl Clone for EcPrivateKey
sourcefn clone(&self) -> EcPrivateKey
fn clone(&self) -> EcPrivateKey
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl ConstTimeEq<EcPrivateKey> for EcPrivateKey
impl ConstTimeEq<EcPrivateKey> for EcPrivateKey
sourceimpl Debug for EcPrivateKey
impl Debug for EcPrivateKey
sourceimpl Default for EcPrivateKey
impl Default for EcPrivateKey
sourcefn default() -> EcPrivateKey
fn default() -> EcPrivateKey
Returns the “default value” for a type. Read more
sourceimpl From<&[u8; 32]> for EcPrivateKey
impl From<&[u8; 32]> for EcPrivateKey
sourcefn from(key: &[u8; 32]) -> EcPrivateKey
fn from(key: &[u8; 32]) -> EcPrivateKey
Converts to this type from the input type.
sourceimpl From<&AlignEc256PrivateKey> for EcPrivateKey
impl From<&AlignEc256PrivateKey> for EcPrivateKey
sourcefn from(key: &AlignEc256PrivateKey) -> EcPrivateKey
fn from(key: &AlignEc256PrivateKey) -> EcPrivateKey
Converts to this type from the input type.
sourceimpl From<&Ec256PrivateKey> for EcPrivateKey
impl From<&Ec256PrivateKey> for EcPrivateKey
sourcefn from(key: &Ec256PrivateKey) -> EcPrivateKey
fn from(key: &Ec256PrivateKey) -> EcPrivateKey
Converts to this type from the input type.
sourceimpl From<&EcPrivateKey> for [u8; 32]
impl From<&EcPrivateKey> for [u8; 32]
sourcefn from(key: &EcPrivateKey) -> [u8; 32]
fn from(key: &EcPrivateKey) -> [u8; 32]
Converts to this type from the input type.
sourceimpl From<&EcPrivateKey> for AlignEc256PrivateKey
impl From<&EcPrivateKey> for AlignEc256PrivateKey
sourcefn from(key: &EcPrivateKey) -> AlignEc256PrivateKey
fn from(key: &EcPrivateKey) -> AlignEc256PrivateKey
Converts to this type from the input type.
sourceimpl From<&EcPrivateKey> for Ec256PrivateKey
impl From<&EcPrivateKey> for Ec256PrivateKey
sourcefn from(key: &EcPrivateKey) -> Ec256PrivateKey
fn from(key: &EcPrivateKey) -> Ec256PrivateKey
Converts to this type from the input type.
sourceimpl From<[u8; 32]> for EcPrivateKey
impl From<[u8; 32]> for EcPrivateKey
sourcefn from(key: [u8; 32]) -> EcPrivateKey
fn from(key: [u8; 32]) -> EcPrivateKey
Converts to this type from the input type.
sourceimpl From<AlignEc256PrivateKey> for EcPrivateKey
impl From<AlignEc256PrivateKey> for EcPrivateKey
sourcefn from(key: AlignEc256PrivateKey) -> EcPrivateKey
fn from(key: AlignEc256PrivateKey) -> EcPrivateKey
Converts to this type from the input type.
sourceimpl From<Ec256PrivateKey> for EcPrivateKey
impl From<Ec256PrivateKey> for EcPrivateKey
sourcefn from(key: Ec256PrivateKey) -> EcPrivateKey
fn from(key: Ec256PrivateKey) -> EcPrivateKey
Converts to this type from the input type.
sourceimpl From<EcPrivateKey> for [u8; 32]
impl From<EcPrivateKey> for [u8; 32]
sourcefn from(key: EcPrivateKey) -> [u8; 32]
fn from(key: EcPrivateKey) -> [u8; 32]
Converts to this type from the input type.
sourceimpl From<EcPrivateKey> for AlignEc256PrivateKey
impl From<EcPrivateKey> for AlignEc256PrivateKey
sourcefn from(key: EcPrivateKey) -> AlignEc256PrivateKey
fn from(key: EcPrivateKey) -> AlignEc256PrivateKey
Converts to this type from the input type.
sourceimpl From<EcPrivateKey> for Ec256PrivateKey
impl From<EcPrivateKey> for Ec256PrivateKey
sourcefn from(key: EcPrivateKey) -> Ec256PrivateKey
fn from(key: EcPrivateKey) -> Ec256PrivateKey
Converts to this type from the input type.
sourceimpl PartialEq<EcPrivateKey> for EcPrivateKey
impl PartialEq<EcPrivateKey> for EcPrivateKey
sourcefn eq(&self, other: &EcPrivateKey) -> bool
fn eq(&self, other: &EcPrivateKey) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more