Struct sgx_crypto::rsa::Rsa2048PublicKey
source · [−]pub struct Rsa2048PublicKey { /* private fields */ }
Implementations
sourceimpl Rsa2048PublicKey
impl Rsa2048PublicKey
pub fn encrypt(&self, plaintext: &[u8]) -> SgxResult<Vec<u8>>
pub fn verify<T: ?Sized>(
&self,
data: &T,
signature: &Rsa2048Signature
) -> SgxResult<bool>where
T: ContiguousMemory,
pub fn from_private_key(key: &Rsa2048PrivateKey) -> Rsa2048PublicKey
pub fn public_key(&self) -> Rsa2048PubKey
pub fn clear(&mut self)
Trait Implementations
sourceimpl AsRef<[u8; 260]> for Rsa2048PublicKey
impl AsRef<[u8; 260]> for Rsa2048PublicKey
sourceimpl Clone for Rsa2048PublicKey
impl Clone for Rsa2048PublicKey
sourcefn clone(&self) -> Rsa2048PublicKey
fn clone(&self) -> Rsa2048PublicKey
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 Rsa2048PublicKey
impl Debug for Rsa2048PublicKey
sourceimpl Default for Rsa2048PublicKey
impl Default for Rsa2048PublicKey
sourceimpl From<&[u8; 260]> for Rsa2048PublicKey
impl From<&[u8; 260]> for Rsa2048PublicKey
sourcefn from(array: &[u8; 260]) -> Rsa2048PublicKey
fn from(array: &[u8; 260]) -> Rsa2048PublicKey
Converts to this type from the input type.
sourceimpl From<&Rsa2048PubKey> for Rsa2048PublicKey
impl From<&Rsa2048PubKey> for Rsa2048PublicKey
sourcefn from(key: &Rsa2048PubKey) -> Rsa2048PublicKey
fn from(key: &Rsa2048PubKey) -> Rsa2048PublicKey
Converts to this type from the input type.
sourceimpl From<&Rsa2048PublicKey> for Rsa2048PubKey
impl From<&Rsa2048PublicKey> for Rsa2048PubKey
sourcefn from(key: &Rsa2048PublicKey) -> Rsa2048PubKey
fn from(key: &Rsa2048PublicKey) -> Rsa2048PubKey
Converts to this type from the input type.
sourceimpl From<[u8; 260]> for Rsa2048PublicKey
impl From<[u8; 260]> for Rsa2048PublicKey
sourcefn from(array: [u8; 260]) -> Rsa2048PublicKey
fn from(array: [u8; 260]) -> Rsa2048PublicKey
Converts to this type from the input type.
sourceimpl From<Rsa2048PubKey> for Rsa2048PublicKey
impl From<Rsa2048PubKey> for Rsa2048PublicKey
sourcefn from(key: Rsa2048PubKey) -> Rsa2048PublicKey
fn from(key: Rsa2048PubKey) -> Rsa2048PublicKey
Converts to this type from the input type.
sourceimpl From<Rsa2048PublicKey> for Rsa2048PubKey
impl From<Rsa2048PublicKey> for Rsa2048PubKey
sourcefn from(key: Rsa2048PublicKey) -> Rsa2048PubKey
fn from(key: Rsa2048PublicKey) -> Rsa2048PubKey
Converts to this type from the input type.
sourceimpl PartialEq<Rsa2048PublicKey> for Rsa2048PublicKey
impl PartialEq<Rsa2048PublicKey> for Rsa2048PublicKey
sourcefn eq(&self, other: &Rsa2048PublicKey) -> bool
fn eq(&self, other: &Rsa2048PublicKey) -> bool
sourceimpl TryFrom<&[u8]> for Rsa2048PublicKey
impl TryFrom<&[u8]> for Rsa2048PublicKey
type Error = TryFromSliceError
type Error = TryFromSliceError
The type returned in the event of a conversion error.
sourcefn try_from(slice: &[u8]) -> Result<Rsa2048PublicKey, Self::Error>
fn try_from(slice: &[u8]) -> Result<Rsa2048PublicKey, Self::Error>
Performs the conversion.
impl BytewiseEquality for Rsa2048PublicKey
impl ContiguousMemory for Rsa2048PublicKey
impl Copy for Rsa2048PublicKey
impl Eq for Rsa2048PublicKey
impl StructuralEq for Rsa2048PublicKey
impl StructuralPartialEq for Rsa2048PublicKey
Auto Trait Implementations
impl RefUnwindSafe for Rsa2048PublicKey
impl Send for Rsa2048PublicKey
impl Sync for Rsa2048PublicKey
impl Unpin for Rsa2048PublicKey
impl UnwindSafe for Rsa2048PublicKey
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