You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An issue has been reported by users of BouncyCastle, after upgrading from 8u282 or earlier to 8u292, a "NoSuchAlgorithmException: unrecognized algorithm name" exception is thrown at runtime. This issue will be fixed in the next release 8u302 which is expected on 7/19.
Workarounds:
There are 2 few possible workarounds, the 1st is preferred if it works for your application.
Call "new EncryptedPrivateKeyInfo("PBEWithSHA1AndDESede", new byte[] { 0 });" from your code as early as possible before any BouncyCastle jars are loaded.
Clear out the algorithms so they are reinitialized on next call using something like this
Root Cause Analysis:
There was a change in the upstream OpenJDK to improve JARs verification, which caused the list of Algorithms be to cached with only a subset of the SecurityProviders enabled. When an algorithm from SunJCE or BouncyCastle is requested the table is not refreshed and a NoSuchAlgorithmException is being thrown.
An issue has been reported by users of BouncyCastle, after upgrading from 8u282 or earlier to 8u292, a "NoSuchAlgorithmException: unrecognized algorithm name" exception is thrown at runtime. This issue will be fixed in the next release 8u302 which is expected on 7/19.
Workarounds:
There are 2 few possible workarounds, the 1st is preferred if it works for your application.
Call "new EncryptedPrivateKeyInfo("PBEWithSHA1AndDESede", new byte[] { 0 });" from your code as early as possible before any BouncyCastle jars are loaded.
Clear out the algorithms so they are reinitialized on next call using something like this
Root Cause Analysis:
There was a change in the upstream OpenJDK to improve JARs verification, which caused the list of Algorithms be to cached with only a subset of the SecurityProviders enabled. When an algorithm from SunJCE or BouncyCastle is requested the table is not refreshed and a NoSuchAlgorithmException is being thrown.
Additional information:
bcgit/bc-java#941
https://bugs.openjdk.java.net/browse/JDK-8266929
The text was updated successfully, but these errors were encountered: