Struct sgx_crypto::ecc::EcKeyPair
source · pub struct EcKeyPair { /* private fields */ }Implementations§
source§impl EcKeyPair
impl EcKeyPair
pub fn create() -> SgxResult<EcKeyPair>
pub fn create_with_seed<H: AsRef<[u8]>>(hash_drg: H) -> SgxResult<EcKeyPair>
pub fn private_key(&self) -> EcPrivateKey
pub fn public_key(&self) -> EcPublicKey
pub fn clear(&mut self)
Trait Implementations§
source§impl From<&EcKeyPair> for (EcPrivateKey, EcPublicKey)
impl From<&EcKeyPair> for (EcPrivateKey, EcPublicKey)
source§fn from(key_pair: &EcKeyPair) -> (EcPrivateKey, EcPublicKey)
fn from(key_pair: &EcKeyPair) -> (EcPrivateKey, EcPublicKey)
Converts to this type from the input type.
source§impl From<(EcPrivateKey, EcPublicKey)> for EcKeyPair
impl From<(EcPrivateKey, EcPublicKey)> for EcKeyPair
source§fn from(key_pair: (EcPrivateKey, EcPublicKey)) -> EcKeyPair
fn from(key_pair: (EcPrivateKey, EcPublicKey)) -> EcKeyPair
Converts to this type from the input type.
source§impl From<EcKeyPair> for (EcPrivateKey, EcPublicKey)
impl From<EcKeyPair> for (EcPrivateKey, EcPublicKey)
source§fn from(key_pair: EcKeyPair) -> (EcPrivateKey, EcPublicKey)
fn from(key_pair: EcKeyPair) -> (EcPrivateKey, EcPublicKey)
Converts to this type from the input type.
source§impl PartialEq for EcKeyPair
impl PartialEq for EcKeyPair
impl BytewiseEquality for EcKeyPair
impl ContiguousMemory for EcKeyPair
impl Copy for EcKeyPair
impl Eq for EcKeyPair
impl StructuralEq for EcKeyPair
impl StructuralPartialEq for EcKeyPair
Auto Trait Implementations§
impl RefUnwindSafe for EcKeyPair
impl Send for EcKeyPair
impl Sync for EcKeyPair
impl Unpin for EcKeyPair
impl UnwindSafe for EcKeyPair
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