Struct rsa::pkcs1v15::EncryptingKey  
source · pub struct EncryptingKey { /* private fields */ }Expand description
Encryption key for PKCS#1 v1.5 encryption as described in RFC8017 § 7.2.
Implementations§
source§impl EncryptingKey
 
impl EncryptingKey
sourcepub fn new(key: RsaPublicKey) -> Self
 
pub fn new(key: RsaPublicKey) -> Self
Create a new verifying key from an RSA public key.
Trait Implementations§
source§impl Clone for EncryptingKey
 
impl Clone for EncryptingKey
source§fn clone(&self) -> EncryptingKey
 
fn clone(&self) -> EncryptingKey
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for EncryptingKey
 
impl Debug for EncryptingKey
source§impl RandomizedEncryptor for EncryptingKey
 
impl RandomizedEncryptor for EncryptingKey
source§fn encrypt_with_rng<R: CryptoRngCore + ?Sized>(
    &self,
    rng: &mut R,
    msg: &[u8],
) -> Result<Vec<u8>>
 
fn encrypt_with_rng<R: CryptoRngCore + ?Sized>( &self, rng: &mut R, msg: &[u8], ) -> Result<Vec<u8>>
Encrypt the given message.
Auto Trait Implementations§
impl Freeze for EncryptingKey
impl RefUnwindSafe for EncryptingKey
impl Send for EncryptingKey
impl Sync for EncryptingKey
impl Unpin for EncryptingKey
impl UnwindSafe for EncryptingKey
Blanket Implementations§
§impl<T> Any for Twhere
    T: 'static + ?Sized,
 
impl<T> Any for Twhere
    T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
    T: ?Sized,
 
impl<T> Borrow<T> for Twhere
    T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)