From 17e6a5f8a4f18d64d07c90c76e7e81736fff3f92 Mon Sep 17 00:00:00 2001 From: Kevin Jones Date: Wed, 22 May 2024 13:24:07 -0400 Subject: [PATCH] Fix the OpenSSL version for EVP_DigestSqueeze. According to the documentation, EVP_DigestSqueeze was introduced in OpenSSL 3.3, not OpenSSL 3.2. https://www.openssl.org/docs/manmaster/man3/EVP_DigestSqueeze.html This caused our tests to expect a functioning squeeze implementation on OpenSSL 3.2, but get a PlatformNotSupportedException because 3.2 does not actually support it. --- .../System.Security.Cryptography/tests/ShakeTestDriver.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libraries/System.Security.Cryptography/tests/ShakeTestDriver.cs b/src/libraries/System.Security.Cryptography/tests/ShakeTestDriver.cs index 658d1b83a80d2..a2a6304e4fabb 100644 --- a/src/libraries/System.Security.Cryptography/tests/ShakeTestDriver.cs +++ b/src/libraries/System.Security.Cryptography/tests/ShakeTestDriver.cs @@ -51,8 +51,8 @@ public static bool IsReadSupported { get { - const long OpenSsl_3_2_0 = 0x30200000L; - return IsSupported && (PlatformDetection.IsWindows || SafeEvpPKeyHandle.OpenSslVersion >= OpenSsl_3_2_0); + const long OpenSsl_3_3_0 = 0x30300000L; + return IsSupported && (PlatformDetection.IsWindows || SafeEvpPKeyHandle.OpenSslVersion >= OpenSsl_3_3_0); } }