From cf00c88c64df21725f93278275f39bba677253b9 Mon Sep 17 00:00:00 2001 From: Refizul Date: Mon, 12 May 2025 01:58:45 +0200 Subject: [PATCH] Update LE.pm - Make use of the new use_pkcs1_oaep_padding function Switched use_pkcs1_padding to use_pkcs1_oaep_padding to be compatible with the new version of Crypt::OpenSSL::RSA --- lib/Crypt/LE.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Crypt/LE.pm b/lib/Crypt/LE.pm index b395360..dfe4150 100644 --- a/lib/Crypt/LE.pm +++ b/lib/Crypt/LE.pm @@ -671,7 +671,7 @@ sub _set_key { my $pem = $key->get_private_key_string; my ($n, $e) = $key->get_key_parameters; return $self->_status(INVALID_DATA, "Key modulus is divisible by a small prime and will be rejected.") if $self->_is_divisible($n); - $key->use_pkcs1_padding; + $key->use_pkcs1_oaep_padding; $key->use_sha256_hash; $self->{key_params} = { n => $n, e => $e }; $self->{key} = $key;