[][src]Function yaca::rsa_public_decrypt

pub fn rsa_public_decrypt(
    padding: &Padding,
    pub_key: &Key,
    ciphertext: &[u8]
) -> Result<Vec<u8>>

Decrypts data using a RSA public key (low-level verify equivalent)

  • padding defines the padding method that was used in encryption.
  • The pub_key has to be of a KeyType::RsaPublic type and must match the private key that was used in the encryption.
  • The ciphertext is the data to be decrypted.