diff --git a/src/oaep.rs b/src/oaep.rs index 0cbd1e3b..31c07059 100644 --- a/src/oaep.rs +++ b/src/oaep.rs @@ -240,8 +240,6 @@ fn decrypt( mgf_digest: &mut dyn DynDigest, label: Option, ) -> Result> { - key::check_public(priv_key)?; - if ciphertext.len() != priv_key.size() { return Err(Error::Decryption); }