Struct rsa::pkcs1v15::DecryptingKey
source · pub struct DecryptingKey { /* private fields */ }
Expand description
Decryption key for PKCS#1 v1.5 decryption as described in RFC8017 § 7.2.
Implementations§
source§impl DecryptingKey
impl DecryptingKey
sourcepub fn new(key: RsaPrivateKey) -> Self
pub fn new(key: RsaPrivateKey) -> Self
Create a new verifying key from an RSA public key.
Trait Implementations§
source§impl Clone for DecryptingKey
impl Clone for DecryptingKey
source§fn clone(&self) -> DecryptingKey
fn clone(&self) -> DecryptingKey
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 DecryptingKey
impl Debug for DecryptingKey
source§impl Decryptor for DecryptingKey
impl Decryptor for DecryptingKey
source§impl EncryptingKeypair for DecryptingKey
impl EncryptingKeypair for DecryptingKey
§type EncryptingKey = EncryptingKey
type EncryptingKey = EncryptingKey
Encrypting key type for this keypair.
source§fn encrypting_key(&self) -> EncryptingKey
fn encrypting_key(&self) -> EncryptingKey
Get the encrypting key which can encrypt messages to be decrypted by
the decryption key portion of this keypair.
source§impl RandomizedDecryptor for DecryptingKey
impl RandomizedDecryptor for DecryptingKey
source§fn decrypt_with_rng<R: CryptoRngCore + ?Sized>(
&self,
rng: &mut R,
ciphertext: &[u8]
) -> Result<Vec<u8>>
fn decrypt_with_rng<R: CryptoRngCore + ?Sized>( &self, rng: &mut R, ciphertext: &[u8] ) -> Result<Vec<u8>>
Decrypt the given message.