Struct sgx_crypto::sm2::Sm2ShareKey
source · [−]pub struct Sm2ShareKey(_);
Implementations
pub fn derive_key(&self, label: &[u8]) -> SgxResult<AlignKey128bit>
pub fn clear(&mut self)
Trait Implementations
sourcefn clone(&self) -> Sm2ShareKey
fn clone(&self) -> Sm2ShareKey
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 morefn ct_eq(&self, other: &Sm2ShareKey) -> bool
fn ct_ne(&self, other: &T) -> bool
sourcefn default() -> Sm2ShareKey
fn default() -> Sm2ShareKey
Returns the “default value” for a type. Read more
sourcefn from(key: &[u8; 32]) -> Sm2ShareKey
fn from(key: &[u8; 32]) -> Sm2ShareKey
Converts to this type from the input type.
sourcefn from(key: &AlignEc256SharedKey) -> Sm2ShareKey
fn from(key: &AlignEc256SharedKey) -> Sm2ShareKey
Converts to this type from the input type.
sourcefn from(key: &Ec256SharedKey) -> Sm2ShareKey
fn from(key: &Ec256SharedKey) -> Sm2ShareKey
Converts to this type from the input type.
sourcefn from(key: &Sm2ShareKey) -> [u8; 32]
fn from(key: &Sm2ShareKey) -> [u8; 32]
Converts to this type from the input type.
sourcefn from(key: &Sm2ShareKey) -> AlignEc256SharedKey
fn from(key: &Sm2ShareKey) -> AlignEc256SharedKey
Converts to this type from the input type.
sourcefn from(key: &Sm2ShareKey) -> Ec256SharedKey
fn from(key: &Sm2ShareKey) -> Ec256SharedKey
Converts to this type from the input type.
sourcefn from(key: [u8; 32]) -> Sm2ShareKey
fn from(key: [u8; 32]) -> Sm2ShareKey
Converts to this type from the input type.
sourcefn from(key: AlignEc256SharedKey) -> Sm2ShareKey
fn from(key: AlignEc256SharedKey) -> Sm2ShareKey
Converts to this type from the input type.
sourcefn from(key: Ec256SharedKey) -> Sm2ShareKey
fn from(key: Ec256SharedKey) -> Sm2ShareKey
Converts to this type from the input type.
sourcefn from(key: Sm2ShareKey) -> [u8; 32]
fn from(key: Sm2ShareKey) -> [u8; 32]
Converts to this type from the input type.
sourcefn from(key: Sm2ShareKey) -> AlignEc256SharedKey
fn from(key: Sm2ShareKey) -> AlignEc256SharedKey
Converts to this type from the input type.
sourcefn from(key: Sm2ShareKey) -> Ec256SharedKey
fn from(key: Sm2ShareKey) -> Ec256SharedKey
Converts to this type from the input type.
sourcefn eq(&self, other: &Sm2ShareKey) -> bool
fn eq(&self, other: &Sm2ShareKey) -> bool
Auto Trait Implementations
Blanket Implementations
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
default fn is_enclave_range(&self) -> bool
default fn is_host_range(&self) -> bool
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