Struct sgx_crypto::rsa::Rsa3072PublicKey
source · pub struct Rsa3072PublicKey { /* private fields */ }Implementations§
source§impl Rsa3072PublicKey
impl Rsa3072PublicKey
pub fn encrypt(&self, plaintext: &[u8]) -> SgxResult<Vec<u8>>
pub fn verify<T>( &self, data: &T, signature: &Rsa3072Signature ) -> SgxResult<bool>where T: ContiguousMemory + ?Sized,
pub fn from_private_key(key: &Rsa3072PrivateKey) -> Rsa3072PublicKey
pub fn public_key(&self) -> Rsa3072PubKey
pub fn clear(&mut self)
Trait Implementations§
source§impl Clone for Rsa3072PublicKey
impl Clone for Rsa3072PublicKey
source§fn clone(&self) -> Rsa3072PublicKey
fn clone(&self) -> Rsa3072PublicKey
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 Debug for Rsa3072PublicKey
impl Debug for Rsa3072PublicKey
source§impl Default for Rsa3072PublicKey
impl Default for Rsa3072PublicKey
source§impl From<&Rsa3072PubKey> for Rsa3072PublicKey
impl From<&Rsa3072PubKey> for Rsa3072PublicKey
source§fn from(key: &Rsa3072PubKey) -> Rsa3072PublicKey
fn from(key: &Rsa3072PubKey) -> Rsa3072PublicKey
Converts to this type from the input type.
source§impl From<&Rsa3072PublicKey> for Rsa3072PubKey
impl From<&Rsa3072PublicKey> for Rsa3072PubKey
source§fn from(key: &Rsa3072PublicKey) -> Rsa3072PubKey
fn from(key: &Rsa3072PublicKey) -> Rsa3072PubKey
Converts to this type from the input type.
source§impl From<Rsa3072PubKey> for Rsa3072PublicKey
impl From<Rsa3072PubKey> for Rsa3072PublicKey
source§fn from(key: Rsa3072PubKey) -> Rsa3072PublicKey
fn from(key: Rsa3072PubKey) -> Rsa3072PublicKey
Converts to this type from the input type.
source§impl From<Rsa3072PublicKey> for Rsa3072PubKey
impl From<Rsa3072PublicKey> for Rsa3072PubKey
source§fn from(key: Rsa3072PublicKey) -> Rsa3072PubKey
fn from(key: Rsa3072PublicKey) -> Rsa3072PubKey
Converts to this type from the input type.
source§impl PartialEq for Rsa3072PublicKey
impl PartialEq for Rsa3072PublicKey
source§fn eq(&self, other: &Rsa3072PublicKey) -> bool
fn eq(&self, other: &Rsa3072PublicKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl TryFrom<&[u8]> for Rsa3072PublicKey
impl TryFrom<&[u8]> for Rsa3072PublicKey
§type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
impl BytewiseEquality for Rsa3072PublicKey
impl ContiguousMemory for Rsa3072PublicKey
impl Copy for Rsa3072PublicKey
impl Eq for Rsa3072PublicKey
impl StructuralEq for Rsa3072PublicKey
impl StructuralPartialEq for Rsa3072PublicKey
Auto Trait Implementations§
impl RefUnwindSafe for Rsa3072PublicKey
impl Send for Rsa3072PublicKey
impl Sync for Rsa3072PublicKey
impl Unpin for Rsa3072PublicKey
impl UnwindSafe for Rsa3072PublicKey
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