pub struct Pkcs1v15Encrypt;
Expand description
Encryption using PKCS#1 v1.5 padding.
Trait Implementations§
source§impl Clone for Pkcs1v15Encrypt
impl Clone for Pkcs1v15Encrypt
source§fn clone(&self) -> Pkcs1v15Encrypt
fn clone(&self) -> Pkcs1v15Encrypt
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 Pkcs1v15Encrypt
impl Debug for Pkcs1v15Encrypt
source§impl Default for Pkcs1v15Encrypt
impl Default for Pkcs1v15Encrypt
source§fn default() -> Pkcs1v15Encrypt
fn default() -> Pkcs1v15Encrypt
Returns the “default value” for a type. Read more
source§impl PaddingScheme for Pkcs1v15Encrypt
impl PaddingScheme for Pkcs1v15Encrypt
source§fn decrypt<Rng: CryptoRngCore>(
self,
rng: Option<&mut Rng>,
priv_key: &RsaPrivateKey,
ciphertext: &[u8],
) -> Result<Vec<u8>>
fn decrypt<Rng: CryptoRngCore>( self, rng: Option<&mut Rng>, priv_key: &RsaPrivateKey, ciphertext: &[u8], ) -> Result<Vec<u8>>
Decrypt the given message using the given private key. Read more
source§fn encrypt<Rng: CryptoRngCore>(
self,
rng: &mut Rng,
pub_key: &RsaPublicKey,
msg: &[u8],
) -> Result<Vec<u8>>
fn encrypt<Rng: CryptoRngCore>( self, rng: &mut Rng, pub_key: &RsaPublicKey, msg: &[u8], ) -> Result<Vec<u8>>
Encrypt the given message using the given public key.
source§impl PartialEq for Pkcs1v15Encrypt
impl PartialEq for Pkcs1v15Encrypt
impl Copy for Pkcs1v15Encrypt
impl Eq for Pkcs1v15Encrypt
impl StructuralPartialEq for Pkcs1v15Encrypt
Auto Trait Implementations§
impl Freeze for Pkcs1v15Encrypt
impl RefUnwindSafe for Pkcs1v15Encrypt
impl Send for Pkcs1v15Encrypt
impl Sync for Pkcs1v15Encrypt
impl Unpin for Pkcs1v15Encrypt
impl UnwindSafe for Pkcs1v15Encrypt
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§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
)