[−][src]Function yaca::rsa_private_decrypt
pub fn rsa_private_decrypt(
padding: &Padding,
prv_key: &Key,
ciphertext: &[u8]
) -> Result<Vec<u8>>
Decrypts data using a RSA private key (low-level decrypt equivalent)
padding
defines the padding method that was used in encryption.- The
prv_key
has to be of aKeyType::RsaPrivate
type and must match the public key that was used in the encryption. - The
ciphertext
is the data to be decrypted.