Skip to content

Commit 37d6b7f

Browse files
authored
Merge pull request #452 from jasonkatonica/katonica/issue/fixparsingpbkdf2
Update PBKDF2 property parsing logic
2 parents 2de9a84 + d66e81f commit 37d6b7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.base/share/classes/com/sun/crypto/provider/PBKDF2KeyImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ final class PBKDF2KeyImpl implements javax.crypto.interfaces.PBEKey {
6868
@java.io.Serial
6969
private static final long serialVersionUID = -2234868909660948157L;
7070

71-
private static final boolean useNativePBKDF2 = Boolean.getBoolean(
71+
private static final boolean useNativePBKDF2 = Boolean.parseBoolean(
7272
GetPropertyAction.privilegedGetProperty("jdk.nativePBKDF2"));
7373
private static NativeCrypto nativeCrypto;
7474
private static final boolean nativeCryptTrace = NativeCrypto.isTraceEnabled();

0 commit comments

Comments
 (0)