Struct sgx_crypto::rsa::Rsa3072PrivateKey
source · [−]pub struct Rsa3072PrivateKey { /* private fields */ }
Implementations
sourceimpl Rsa3072PrivateKey
impl Rsa3072PrivateKey
pub fn decrypt(&self, ciphertext: &[u8]) -> SgxResult<Vec<u8>>
pub fn sign<T: ?Sized>(&self, data: &T) -> SgxResult<Rsa3072Signature>where
T: ContiguousMemory,
pub fn sign_and_verify<T: ?Sized>(
&self,
public_key: &Rsa3072PublicKey,
data: &T
) -> SgxResult<Rsa3072Signature>where
T: ContiguousMemory,
pub fn export_public_key(&self) -> Rsa3072PublicKey
pub fn private_key(&self) -> Rsa3072Key
pub fn clear(&mut self)
Trait Implementations
sourceimpl AsRef<[u8; 1736]> for Rsa3072PrivateKey
impl AsRef<[u8; 1736]> for Rsa3072PrivateKey
sourceimpl Clone for Rsa3072PrivateKey
impl Clone for Rsa3072PrivateKey
sourcefn clone(&self) -> Rsa3072PrivateKey
fn clone(&self) -> Rsa3072PrivateKey
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 Rsa3072PrivateKey
impl Debug for Rsa3072PrivateKey
sourceimpl Default for Rsa3072PrivateKey
impl Default for Rsa3072PrivateKey
sourceimpl From<&[u8; 1736]> for Rsa3072PrivateKey
impl From<&[u8; 1736]> for Rsa3072PrivateKey
sourcefn from(array: &[u8; 1736]) -> Rsa3072PrivateKey
fn from(array: &[u8; 1736]) -> Rsa3072PrivateKey
Converts to this type from the input type.
sourceimpl From<&Rsa3072Key> for Rsa3072PrivateKey
impl From<&Rsa3072Key> for Rsa3072PrivateKey
sourcefn from(key: &Rsa3072Key) -> Rsa3072PrivateKey
fn from(key: &Rsa3072Key) -> Rsa3072PrivateKey
Converts to this type from the input type.
sourceimpl From<&Rsa3072PrivateKey> for Rsa3072Key
impl From<&Rsa3072PrivateKey> for Rsa3072Key
sourcefn from(key: &Rsa3072PrivateKey) -> Rsa3072Key
fn from(key: &Rsa3072PrivateKey) -> Rsa3072Key
Converts to this type from the input type.
sourceimpl From<[u8; 1736]> for Rsa3072PrivateKey
impl From<[u8; 1736]> for Rsa3072PrivateKey
sourcefn from(array: [u8; 1736]) -> Rsa3072PrivateKey
fn from(array: [u8; 1736]) -> Rsa3072PrivateKey
Converts to this type from the input type.
sourceimpl From<Rsa3072Key> for Rsa3072PrivateKey
impl From<Rsa3072Key> for Rsa3072PrivateKey
sourcefn from(key: Rsa3072Key) -> Rsa3072PrivateKey
fn from(key: Rsa3072Key) -> Rsa3072PrivateKey
Converts to this type from the input type.
sourceimpl From<Rsa3072PrivateKey> for Rsa3072Key
impl From<Rsa3072PrivateKey> for Rsa3072Key
sourcefn from(key: Rsa3072PrivateKey) -> Rsa3072Key
fn from(key: Rsa3072PrivateKey) -> Rsa3072Key
Converts to this type from the input type.
sourceimpl PartialEq<Rsa3072PrivateKey> for Rsa3072PrivateKey
impl PartialEq<Rsa3072PrivateKey> for Rsa3072PrivateKey
sourcefn eq(&self, other: &Rsa3072PrivateKey) -> bool
fn eq(&self, other: &Rsa3072PrivateKey) -> bool
sourceimpl 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.
sourcefn try_from(slice: &[u8]) -> Result<Rsa3072PrivateKey, Self::Error>
fn try_from(slice: &[u8]) -> Result<Rsa3072PrivateKey, Self::Error>
Performs the conversion.
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
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