Struct sgx_crypto::ecc::EcPublicKey
source · [−]pub struct EcPublicKey(_);
Implementations
sourceimpl EcPublicKey
impl EcPublicKey
pub fn verify<T: ?Sized>(
&self,
data: &T,
signature: &EcSignature
) -> SgxResult<bool>where
T: ContiguousMemory,
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
sourceimpl AsRef<[u8; 64]> for EcPublicKey
impl AsRef<[u8; 64]> for EcPublicKey
sourceimpl Clone for EcPublicKey
impl Clone for EcPublicKey
sourcefn clone(&self) -> EcPublicKey
fn clone(&self) -> EcPublicKey
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl ConstTimeEq<EcPublicKey> for EcPublicKey
impl ConstTimeEq<EcPublicKey> for EcPublicKey
sourceimpl Debug for EcPublicKey
impl Debug for EcPublicKey
sourceimpl Default for EcPublicKey
impl Default for EcPublicKey
sourcefn default() -> EcPublicKey
fn default() -> EcPublicKey
Returns the “default value” for a type. Read more
sourceimpl From<&[u8; 64]> for EcPublicKey
impl From<&[u8; 64]> for EcPublicKey
sourcefn from(key: &[u8; 64]) -> EcPublicKey
fn from(key: &[u8; 64]) -> EcPublicKey
Converts to this type from the input type.
sourceimpl From<&Ec256PublicKey> for EcPublicKey
impl From<&Ec256PublicKey> for EcPublicKey
sourcefn from(key: &Ec256PublicKey) -> EcPublicKey
fn from(key: &Ec256PublicKey) -> EcPublicKey
Converts to this type from the input type.
sourceimpl From<&EcPublicKey> for [u8; 64]
impl From<&EcPublicKey> for [u8; 64]
sourcefn from(key: &EcPublicKey) -> [u8; 64]
fn from(key: &EcPublicKey) -> [u8; 64]
Converts to this type from the input type.
sourceimpl From<&EcPublicKey> for Ec256PublicKey
impl From<&EcPublicKey> for Ec256PublicKey
sourcefn from(key: &EcPublicKey) -> Ec256PublicKey
fn from(key: &EcPublicKey) -> Ec256PublicKey
Converts to this type from the input type.
sourceimpl From<[u8; 64]> for EcPublicKey
impl From<[u8; 64]> for EcPublicKey
sourcefn from(key: [u8; 64]) -> EcPublicKey
fn from(key: [u8; 64]) -> EcPublicKey
Converts to this type from the input type.
sourceimpl From<Ec256PublicKey> for EcPublicKey
impl From<Ec256PublicKey> for EcPublicKey
sourcefn from(key: Ec256PublicKey) -> EcPublicKey
fn from(key: Ec256PublicKey) -> EcPublicKey
Converts to this type from the input type.
sourceimpl From<EcPublicKey> for [u8; 64]
impl From<EcPublicKey> for [u8; 64]
sourcefn from(key: EcPublicKey) -> [u8; 64]
fn from(key: EcPublicKey) -> [u8; 64]
Converts to this type from the input type.
sourceimpl From<EcPublicKey> for Ec256PublicKey
impl From<EcPublicKey> for Ec256PublicKey
sourcefn from(key: EcPublicKey) -> Ec256PublicKey
fn from(key: EcPublicKey) -> Ec256PublicKey
Converts to this type from the input type.
sourceimpl PartialEq<EcPublicKey> for EcPublicKey
impl PartialEq<EcPublicKey> for EcPublicKey
sourcefn eq(&self, other: &EcPublicKey) -> bool
fn eq(&self, other: &EcPublicKey) -> bool
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more