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