Struct sgx_crypto::rsa::Rsa2048PrivateKey
source · pub struct Rsa2048PrivateKey { /* private fields */ }Implementations§
source§impl Rsa2048PrivateKey
impl Rsa2048PrivateKey
pub fn decrypt(&self, ciphertext: &[u8]) -> SgxResult<Vec<u8>>
pub fn sign<T>(&self, data: &T) -> SgxResult<Rsa2048Signature>where T: ContiguousMemory + ?Sized,
pub fn sign_and_verify<T>( &self, public_key: &Rsa2048PublicKey, data: &T ) -> SgxResult<Rsa2048Signature>where T: ContiguousMemory + ?Sized,
pub fn export_public_key(&self) -> Rsa2048PublicKey
pub fn private_key(&self) -> Rsa2048Key
pub fn clear(&mut self)
Trait Implementations§
source§impl Clone for Rsa2048PrivateKey
impl Clone for Rsa2048PrivateKey
source§fn clone(&self) -> Rsa2048PrivateKey
fn clone(&self) -> Rsa2048PrivateKey
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 Rsa2048PrivateKey
impl Debug for Rsa2048PrivateKey
source§impl Default for Rsa2048PrivateKey
impl Default for Rsa2048PrivateKey
source§impl From<&Rsa2048Key> for Rsa2048PrivateKey
impl From<&Rsa2048Key> for Rsa2048PrivateKey
source§fn from(key: &Rsa2048Key) -> Rsa2048PrivateKey
fn from(key: &Rsa2048Key) -> Rsa2048PrivateKey
Converts to this type from the input type.
source§impl From<&Rsa2048PrivateKey> for Rsa2048Key
impl From<&Rsa2048PrivateKey> for Rsa2048Key
source§fn from(key: &Rsa2048PrivateKey) -> Rsa2048Key
fn from(key: &Rsa2048PrivateKey) -> Rsa2048Key
Converts to this type from the input type.
source§impl From<Rsa2048Key> for Rsa2048PrivateKey
impl From<Rsa2048Key> for Rsa2048PrivateKey
source§fn from(key: Rsa2048Key) -> Rsa2048PrivateKey
fn from(key: Rsa2048Key) -> Rsa2048PrivateKey
Converts to this type from the input type.
source§impl From<Rsa2048PrivateKey> for Rsa2048Key
impl From<Rsa2048PrivateKey> for Rsa2048Key
source§fn from(key: Rsa2048PrivateKey) -> Rsa2048Key
fn from(key: Rsa2048PrivateKey) -> Rsa2048Key
Converts to this type from the input type.
source§impl PartialEq for Rsa2048PrivateKey
impl PartialEq for Rsa2048PrivateKey
source§fn eq(&self, other: &Rsa2048PrivateKey) -> bool
fn eq(&self, other: &Rsa2048PrivateKey) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl 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.
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§
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