From 0611c86ca1f17286cb766326d7e455e349d52251 Mon Sep 17 00:00:00 2001 From: Gabriele Musco Date: Mon, 8 Jul 2024 20:47:20 +0200 Subject: [PATCH] fix: remove oaep decrypt key size limit (#418) --- src/oaep.rs | 2 -- 1 file changed, 2 deletions(-) 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); }