[8u] RFR: 8245169: EncryptedPrivateKeyInfo incorrectly decodes KDF algorithm

Alexey Bakhtin alexey at azul.com
Fri Feb 4 14:26:50 UTC 2022


JBS: https://bugs.openjdk.java.net/browse/JDK-8245169
Webrev: http://cr.openjdk.java.net/~abakhtin/8245169/webrev.0/

The supplied keystore does not have the optional key length field which leads to the parsing of KDF being skipped unexpectedly.
This issue is fixed by com/sun/crypto/provider/PBES2Parameters.java part of the JDK-8076190 [1] enhancement.
JDK-8076190 enhancement can not be applied to JDK8u, so this issue is fixed as a separate fix.

Tested by the test attached in the issue

Regards
Alexey

[1] - https://bugs.openjdk.java.net/browse/JDK-8076190


More information about the jdk8u-dev mailing list