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";