Struct sgx_crypto::sm2::Sm2KeyPair
source · [−]pub struct Sm2KeyPair { /* private fields */ }
Implementations
sourceimpl 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
sourceimpl Clone for Sm2KeyPair
impl Clone for Sm2KeyPair
sourcefn clone(&self) -> Sm2KeyPair
fn clone(&self) -> Sm2KeyPair
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for Sm2KeyPair
impl Debug for Sm2KeyPair
sourceimpl Default for Sm2KeyPair
impl Default for Sm2KeyPair
sourcefn default() -> Sm2KeyPair
fn default() -> Sm2KeyPair
Returns the “default value” for a type. Read more
sourceimpl From<&[u8; 96]> for Sm2KeyPair
impl From<&[u8; 96]> for Sm2KeyPair
sourcefn from(key: &[u8; 96]) -> Sm2KeyPair
fn from(key: &[u8; 96]) -> Sm2KeyPair
Converts to this type from the input type.
sourceimpl From<&Sm2KeyPair> for [u8; 96]
impl From<&Sm2KeyPair> for [u8; 96]
sourcefn from(key: &Sm2KeyPair) -> [u8; 96]
fn from(key: &Sm2KeyPair) -> [u8; 96]
Converts to this type from the input type.
sourceimpl From<&Sm2KeyPair> for (Sm2PrivateKey, Sm2PublicKey)
impl From<&Sm2KeyPair> for (Sm2PrivateKey, Sm2PublicKey)
sourcefn from(key_pair: &Sm2KeyPair) -> (Sm2PrivateKey, Sm2PublicKey)
fn from(key_pair: &Sm2KeyPair) -> (Sm2PrivateKey, Sm2PublicKey)
Converts to this type from the input type.
sourceimpl From<[u8; 96]> for Sm2KeyPair
impl From<[u8; 96]> for Sm2KeyPair
sourcefn from(key: [u8; 96]) -> Sm2KeyPair
fn from(key: [u8; 96]) -> Sm2KeyPair
Converts to this type from the input type.
sourceimpl From<(Sm2PrivateKey, Sm2PublicKey)> for Sm2KeyPair
impl From<(Sm2PrivateKey, Sm2PublicKey)> for Sm2KeyPair
sourcefn from(key_pair: (Sm2PrivateKey, Sm2PublicKey)) -> Sm2KeyPair
fn from(key_pair: (Sm2PrivateKey, Sm2PublicKey)) -> Sm2KeyPair
Converts to this type from the input type.
sourceimpl From<Sm2KeyPair> for [u8; 96]
impl From<Sm2KeyPair> for [u8; 96]
sourcefn from(key: Sm2KeyPair) -> [u8; 96]
fn from(key: Sm2KeyPair) -> [u8; 96]
Converts to this type from the input type.
sourceimpl From<Sm2KeyPair> for (Sm2PrivateKey, Sm2PublicKey)
impl From<Sm2KeyPair> for (Sm2PrivateKey, Sm2PublicKey)
sourcefn from(key_pair: Sm2KeyPair) -> (Sm2PrivateKey, Sm2PublicKey)
fn from(key_pair: Sm2KeyPair) -> (Sm2PrivateKey, Sm2PublicKey)
Converts to this type from the input type.
sourceimpl PartialEq<Sm2KeyPair> for Sm2KeyPair
impl PartialEq<Sm2KeyPair> for Sm2KeyPair
sourcefn eq(&self, other: &Sm2KeyPair) -> bool
fn eq(&self, other: &Sm2KeyPair) -> bool
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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> EnclaveRange for Twhere
T: ContiguousMemory,
impl<T> EnclaveRange for Twhere
T: ContiguousMemory,
default fn is_enclave_range(&self) -> bool
default fn is_host_range(&self) -> bool
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more