Skip to content

Commit c666902

Browse files
GabMusGabriele Musco
and
Gabriele Musco
authored
fix: remove oaep decrypt key size limit (#418) (#441)
As per #418, let me know if this is the preferred way or if you'd rather remove the limit some other way Co-authored-by: Gabriele Musco <[email protected]>
1 parent fd92bd9 commit c666902

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)