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