Open ogwwkn opened 1 year ago
So I just tried this on JDK8u372 and it seems to have gone back to working, maybe they found a way of fixing the fix. Is that your experience?
Thank you for your comment. I have confirmed that it works fine with OpenJDK8u372. However, it returned null for OracleJDK8u371 and OracleJDK8u381. It seems that OpenJDK8 and OracleJDK8 behave differently. The one I'm using is OracleJDK8.
In the program I maintain, I get the algorithm parameters with "encryptedPrivateKeyInfo.getAlgParameters()" in order to decrypt the data encrypted with "AES128-CBC-NoPadding". This method returned a value in JDK8u361, but returned null in JDK8u371. When I contacted Oracle, I was told that JDK-8242151, which was fixed in JDK8u371, changed the specification of the value obtained by "EncryptedPrivateKeyInfo.getAlgName()" from the object ID to the encryption algorithm name. Do you have any plans to support the specification change in this JDKu371?
Java sample