Struct sgx_crypto::ecc::EcKeyPair
source · [−]pub struct EcKeyPair { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl From<&EcKeyPair> for (EcPrivateKey, EcPublicKey)
impl From<&EcKeyPair> for (EcPrivateKey, EcPublicKey)
sourcefn from(key_pair: &EcKeyPair) -> (EcPrivateKey, EcPublicKey)
fn from(key_pair: &EcKeyPair) -> (EcPrivateKey, EcPublicKey)
Converts to this type from the input type.
sourceimpl From<(EcPrivateKey, EcPublicKey)> for EcKeyPair
impl From<(EcPrivateKey, EcPublicKey)> for EcKeyPair
sourcefn from(key_pair: (EcPrivateKey, EcPublicKey)) -> EcKeyPair
fn from(key_pair: (EcPrivateKey, EcPublicKey)) -> EcKeyPair
Converts to this type from the input type.
sourceimpl From<EcKeyPair> for (EcPrivateKey, EcPublicKey)
impl From<EcKeyPair> for (EcPrivateKey, EcPublicKey)
sourcefn from(key_pair: EcKeyPair) -> (EcPrivateKey, EcPublicKey)
fn from(key_pair: EcKeyPair) -> (EcPrivateKey, EcPublicKey)
Converts to this type from the input type.
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
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