Struct sgx_crypto::sm2::Sm2KeyPair
source · pub struct Sm2KeyPair { /* private fields */ }Implementations§
source§impl Sm2KeyPair
impl Sm2KeyPair
pub fn create() -> SgxResult<Sm2KeyPair>
pub fn create_with_seed<H: AsRef<[u8]>>(hash_drg: H) -> SgxResult<Sm2KeyPair>
pub fn private_key(&self) -> Sm2PrivateKey
pub fn public_key(&self) -> Sm2PublicKey
pub fn clear(&mut self)
Trait Implementations§
source§impl Clone for Sm2KeyPair
impl Clone for Sm2KeyPair
source§fn clone(&self) -> Sm2KeyPair
fn clone(&self) -> Sm2KeyPair
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 Sm2KeyPair
impl Debug for Sm2KeyPair
source§impl Default for Sm2KeyPair
impl Default for Sm2KeyPair
source§fn default() -> Sm2KeyPair
fn default() -> Sm2KeyPair
Returns the “default value” for a type. Read more
source§impl From<&Sm2KeyPair> for (Sm2PrivateKey, Sm2PublicKey)
impl From<&Sm2KeyPair> for (Sm2PrivateKey, Sm2PublicKey)
source§fn from(key_pair: &Sm2KeyPair) -> (Sm2PrivateKey, Sm2PublicKey)
fn from(key_pair: &Sm2KeyPair) -> (Sm2PrivateKey, Sm2PublicKey)
Converts to this type from the input type.
source§impl From<(Sm2PrivateKey, Sm2PublicKey)> for Sm2KeyPair
impl From<(Sm2PrivateKey, Sm2PublicKey)> for Sm2KeyPair
source§fn from(key_pair: (Sm2PrivateKey, Sm2PublicKey)) -> Sm2KeyPair
fn from(key_pair: (Sm2PrivateKey, Sm2PublicKey)) -> Sm2KeyPair
Converts to this type from the input type.
source§impl From<Sm2KeyPair> for (Sm2PrivateKey, Sm2PublicKey)
impl From<Sm2KeyPair> for (Sm2PrivateKey, Sm2PublicKey)
source§fn from(key_pair: Sm2KeyPair) -> (Sm2PrivateKey, Sm2PublicKey)
fn from(key_pair: Sm2KeyPair) -> (Sm2PrivateKey, Sm2PublicKey)
Converts to this type from the input type.
source§impl PartialEq for Sm2KeyPair
impl PartialEq for Sm2KeyPair
source§fn eq(&self, other: &Sm2KeyPair) -> bool
fn eq(&self, other: &Sm2KeyPair) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl BytewiseEquality for Sm2KeyPair
impl ContiguousMemory for Sm2KeyPair
impl Copy for Sm2KeyPair
impl Eq for Sm2KeyPair
impl StructuralEq for Sm2KeyPair
impl StructuralPartialEq for Sm2KeyPair
Auto Trait Implementations§
impl RefUnwindSafe for Sm2KeyPair
impl Send for Sm2KeyPair
impl Sync for Sm2KeyPair
impl Unpin for Sm2KeyPair
impl UnwindSafe for Sm2KeyPair
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