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