Skip to content

Commit

Permalink
fix: remove oaep decrypt key size limit (RustCrypto#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriele Musco committed Jul 8, 2024
1 parent fd92bd9 commit 0611c86
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/oaep.rs
Original file line number Diff line number Diff line change
Expand Up @@ -240,8 +240,6 @@ fn decrypt<R: CryptoRngCore + ?Sized>(
mgf_digest: &mut dyn DynDigest,
label: Option<String>,
) -> Result<Vec<u8>> {
key::check_public(priv_key)?;

if ciphertext.len() != priv_key.size() {
return Err(Error::Decryption);
}
Expand Down

0 comments on commit 0611c86

Please sign in to comment.