Struct sgx_crypto::rsa::Rsa3072PublicKey
source · [−]pub struct Rsa3072PublicKey { /* private fields */ }
Implementations
sourceimpl Rsa3072PublicKey
impl Rsa3072PublicKey
pub fn encrypt(&self, plaintext: &[u8]) -> SgxResult<Vec<u8>>
pub fn verify<T: ?Sized>(
&self,
data: &T,
signature: &Rsa3072Signature
) -> SgxResult<bool>where
T: ContiguousMemory,
pub fn from_private_key(key: &Rsa3072PrivateKey) -> Rsa3072PublicKey
pub fn public_key(&self) -> Rsa3072PubKey
pub fn clear(&mut self)
Trait Implementations
sourceimpl AsRef<[u8; 388]> for Rsa3072PublicKey
impl AsRef<[u8; 388]> for Rsa3072PublicKey
sourceimpl Clone for Rsa3072PublicKey
impl Clone for Rsa3072PublicKey
sourcefn clone(&self) -> Rsa3072PublicKey
fn clone(&self) -> Rsa3072PublicKey
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 moresourceimpl Debug for Rsa3072PublicKey
impl Debug for Rsa3072PublicKey
sourceimpl Default for Rsa3072PublicKey
impl Default for Rsa3072PublicKey
sourceimpl From<&[u8; 388]> for Rsa3072PublicKey
impl From<&[u8; 388]> for Rsa3072PublicKey
sourcefn from(array: &[u8; 388]) -> Rsa3072PublicKey
fn from(array: &[u8; 388]) -> Rsa3072PublicKey
Converts to this type from the input type.
sourceimpl From<&Rsa3072PubKey> for Rsa3072PublicKey
impl From<&Rsa3072PubKey> for Rsa3072PublicKey
sourcefn from(key: &Rsa3072PubKey) -> Rsa3072PublicKey
fn from(key: &Rsa3072PubKey) -> Rsa3072PublicKey
Converts to this type from the input type.
sourceimpl From<&Rsa3072PublicKey> for Rsa3072PubKey
impl From<&Rsa3072PublicKey> for Rsa3072PubKey
sourcefn from(key: &Rsa3072PublicKey) -> Rsa3072PubKey
fn from(key: &Rsa3072PublicKey) -> Rsa3072PubKey
Converts to this type from the input type.
sourceimpl From<[u8; 388]> for Rsa3072PublicKey
impl From<[u8; 388]> for Rsa3072PublicKey
sourcefn from(array: [u8; 388]) -> Rsa3072PublicKey
fn from(array: [u8; 388]) -> Rsa3072PublicKey
Converts to this type from the input type.
sourceimpl From<Rsa3072PubKey> for Rsa3072PublicKey
impl From<Rsa3072PubKey> for Rsa3072PublicKey
sourcefn from(key: Rsa3072PubKey) -> Rsa3072PublicKey
fn from(key: Rsa3072PubKey) -> Rsa3072PublicKey
Converts to this type from the input type.
sourceimpl From<Rsa3072PublicKey> for Rsa3072PubKey
impl From<Rsa3072PublicKey> for Rsa3072PubKey
sourcefn from(key: Rsa3072PublicKey) -> Rsa3072PubKey
fn from(key: Rsa3072PublicKey) -> Rsa3072PubKey
Converts to this type from the input type.
sourceimpl PartialEq<Rsa3072PublicKey> for Rsa3072PublicKey
impl PartialEq<Rsa3072PublicKey> for Rsa3072PublicKey
sourcefn eq(&self, other: &Rsa3072PublicKey) -> bool
fn eq(&self, other: &Rsa3072PublicKey) -> bool
sourceimpl 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.
sourcefn try_from(slice: &[u8]) -> Result<Rsa3072PublicKey, Self::Error>
fn try_from(slice: &[u8]) -> Result<Rsa3072PublicKey, Self::Error>
Performs the conversion.
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
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> EnclaveRange for Twhere
T: ContiguousMemory,
impl<T> EnclaveRange for Twhere
T: ContiguousMemory,
default fn is_enclave_range(&self) -> bool
default fn is_host_range(&self) -> bool
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
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