Skip to content

Commit 1015596

Browse files
vcsjonespull[bot]
authored andcommitted
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.
1 parent 636112a commit 1015596

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libraries/System.Security.Cryptography/tests/ShakeTestDriver.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ public static bool IsReadSupported
5151
{
5252
get
5353
{
54-
const long OpenSsl_3_2_0 = 0x30200000L;
55-
return IsSupported && (PlatformDetection.IsWindows || SafeEvpPKeyHandle.OpenSslVersion >= OpenSsl_3_2_0);
54+
const long OpenSsl_3_3_0 = 0x30300000L;
55+
return IsSupported && (PlatformDetection.IsWindows || SafeEvpPKeyHandle.OpenSslVersion >= OpenSsl_3_3_0);
5656
}
5757
}
5858

0 commit comments

Comments
 (0)