Struct sgx_crypto::sm2::Sm2PublicKey
source · pub struct Sm2PublicKey(/* private fields */);Implementations§
source§impl Sm2PublicKey
impl Sm2PublicKey
pub fn verify<T>(&self, data: &T, signature: &Sm2Signature) -> SgxResult<bool>where T: ContiguousMemory + ?Sized,
pub fn verify_hash( &self, hash: &Sha256Hash, signature: &Sm2Signature ) -> SgxResult<bool>
pub fn check_point(&self) -> SgxResult<bool>
pub fn from_private_key(key: &Sm2PrivateKey) -> SgxResult<Sm2PublicKey>
pub fn public_key(&self) -> Ec256PublicKey
pub fn clear(&mut self)
Trait Implementations§
source§impl Clone for Sm2PublicKey
impl Clone for Sm2PublicKey
source§fn clone(&self) -> Sm2PublicKey
fn clone(&self) -> Sm2PublicKey
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 ConstTimeEq for Sm2PublicKey
impl ConstTimeEq for Sm2PublicKey
source§impl Debug for Sm2PublicKey
impl Debug for Sm2PublicKey
source§impl Default for Sm2PublicKey
impl Default for Sm2PublicKey
source§fn default() -> Sm2PublicKey
fn default() -> Sm2PublicKey
Returns the “default value” for a type. Read more
source§impl From<&Ec256PublicKey> for Sm2PublicKey
impl From<&Ec256PublicKey> for Sm2PublicKey
source§fn from(key: &Ec256PublicKey) -> Sm2PublicKey
fn from(key: &Ec256PublicKey) -> Sm2PublicKey
Converts to this type from the input type.
source§impl From<&Sm2PublicKey> for Ec256PublicKey
impl From<&Sm2PublicKey> for Ec256PublicKey
source§fn from(key: &Sm2PublicKey) -> Ec256PublicKey
fn from(key: &Sm2PublicKey) -> Ec256PublicKey
Converts to this type from the input type.
source§impl From<Ec256PublicKey> for Sm2PublicKey
impl From<Ec256PublicKey> for Sm2PublicKey
source§fn from(key: Ec256PublicKey) -> Sm2PublicKey
fn from(key: Ec256PublicKey) -> Sm2PublicKey
Converts to this type from the input type.
source§impl From<Sm2PublicKey> for Ec256PublicKey
impl From<Sm2PublicKey> for Ec256PublicKey
source§fn from(key: Sm2PublicKey) -> Ec256PublicKey
fn from(key: Sm2PublicKey) -> Ec256PublicKey
Converts to this type from the input type.
source§impl PartialEq for Sm2PublicKey
impl PartialEq for Sm2PublicKey
source§fn eq(&self, other: &Sm2PublicKey) -> bool
fn eq(&self, other: &Sm2PublicKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl BytewiseEquality for Sm2PublicKey
impl ContiguousMemory for Sm2PublicKey
impl Copy for Sm2PublicKey
impl Eq for Sm2PublicKey
impl StructuralEq for Sm2PublicKey
impl StructuralPartialEq for Sm2PublicKey
Auto Trait Implementations§
impl RefUnwindSafe for Sm2PublicKey
impl Send for Sm2PublicKey
impl Sync for Sm2PublicKey
impl Unpin for Sm2PublicKey
impl UnwindSafe for Sm2PublicKey
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