[−][src]Struct sgx_crypto_helper::rsa2048::Rsa2048KeyPair
Data structure of RSA 2048 Keypair (RSA-OAEP). RSA 2048 Keypair provides block cipher encryption/decryption implementations. The block size of plain text is 190 bytes and the block size of cipher text is 256 bytes. 190 byte = 2048bit - 2*SHA256_BYTE - 2
Methods
impl Rsa2048KeyPair
[src]
pub fn export_pubkey(self) -> SgxResult<Rsa2048PubKey>
[src]
Trait Implementations
impl RsaKeyPair for Rsa2048KeyPair
[src]
fn new() -> SgxResult<Self>
[src]
fn new_with_e(e: u32) -> SgxResult<Self>
[src]
fn to_privkey(self) -> SgxResult<SgxRsaPrivKey>
[src]
fn to_pubkey(self) -> SgxResult<SgxRsaPubKey>
[src]
fn encrypt_buffer(
self,
plaintext: &[u8],
ciphertext: &mut Vec<u8>
) -> SgxResult<usize>
[src]
self,
plaintext: &[u8],
ciphertext: &mut Vec<u8>
) -> SgxResult<usize>
fn decrypt_buffer(
self,
ciphertext: &[u8],
plaintext: &mut Vec<u8>
) -> SgxResult<usize>
[src]
self,
ciphertext: &[u8],
plaintext: &mut Vec<u8>
) -> SgxResult<usize>
impl Copy for Rsa2048KeyPair
[src]
impl Clone for Rsa2048KeyPair
[src]
fn clone(&self) -> Rsa2048KeyPair
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for Rsa2048KeyPair
[src]
impl Debug for Rsa2048KeyPair
[src]
impl Serialize for Rsa2048KeyPair
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Rsa2048KeyPair
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for Rsa2048KeyPair
impl Sync for Rsa2048KeyPair
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,