From 087f94808d818d19d71afd1b60b58525dc219836 Mon Sep 17 00:00:00 2001 From: Facundo Tuesca Date: Mon, 26 Feb 2024 18:20:04 +0100 Subject: [PATCH] Remove incorrect code and ignore with incompatible OpenSSL backends --- src/rust/src/backend/ec.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/rust/src/backend/ec.rs b/src/rust/src/backend/ec.rs index e75191eb98cb6..f2cbedbf989fd 100644 --- a/src/rust/src/backend/ec.rs +++ b/src/rust/src/backend/ec.rs @@ -300,12 +300,8 @@ impl ECPrivateKey { } } else { let _ = algo; - return Err(CryptographyError::from( - exceptions::UnsupportedAlgorithm::new_err(( - "ECDSA with deterministic signature (RFC 6979) is not supported by this version of OpenSSL.", - exceptions::Reasons::UNSUPPORTED_PUBLIC_KEY_ALGORITHM, - )), - )); + // `deterministic` always be False if we're not using OpenSSL >= 3.2.0. + // Because of that, we completely ignore its value here. } }