We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fd92bd9 commit 0611c86Copy full SHA for 0611c86
src/oaep.rs
@@ -240,8 +240,6 @@ fn decrypt<R: CryptoRngCore + ?Sized>(
240
mgf_digest: &mut dyn DynDigest,
241
label: Option<String>,
242
) -> Result<Vec<u8>> {
243
- key::check_public(priv_key)?;
244
-
245
if ciphertext.len() != priv_key.size() {
246
return Err(Error::Decryption);
247
}
0 commit comments