Skip to content

Commit 0611c86

Browse files
author
Gabriele Musco
committed
fix: remove oaep decrypt key size limit (RustCrypto#418)
1 parent fd92bd9 commit 0611c86

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/oaep.rs

-2
Original file line numberDiff line numberDiff line change
@@ -240,8 +240,6 @@ fn decrypt<R: CryptoRngCore + ?Sized>(
240240
mgf_digest: &mut dyn DynDigest,
241241
label: Option<String>,
242242
) -> Result<Vec<u8>> {
243-
key::check_public(priv_key)?;
244-
245243
if ciphertext.len() != priv_key.size() {
246244
return Err(Error::Decryption);
247245
}

0 commit comments

Comments
 (0)