From cebba558ac44140cd8e7ea114dfe63d18e8faac8 Mon Sep 17 00:00:00 2001 From: Kostas Tsiounis Date: Tue, 15 Oct 2024 16:47:42 -0400 Subject: [PATCH] Check MD5 too --- .../share/classes/sun/security/provider/SunEntries.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/java.base/share/classes/sun/security/provider/SunEntries.java b/src/java.base/share/classes/sun/security/provider/SunEntries.java index 76ae700a19f..e1a10a3526f 100644 --- a/src/java.base/share/classes/sun/security/provider/SunEntries.java +++ b/src/java.base/share/classes/sun/security/provider/SunEntries.java @@ -291,8 +291,7 @@ public final class SunEntries { */ /* Don't use native MD5 on AIX due to an observed performance regression. */ if (useNativeDigest - && NativeCrypto.isAllowedAndLoaded() - && NativeCrypto.isMD5Available() + && NativeCrypto.isAlgorithmAvailable("MD5") && !OperatingSystem.isAix() ) { providerMD5 = "sun.security.provider.NativeMD5";