Java SE 8u71 and Later Throws BadPaddingException when Decrypting with PBE Algorithms Using 256-bit AES Ciphers

(Doc ID 2271328.1)

Last updated on JUNE 11, 2017

Applies to:

Java SE JDK and JRE - Version 8 to 8
Information in this document applies to any platform.


Context: Java SE 8 with the JCE Unlimited Strength Jurisdiction Policy Files installed.

When encryption is done with Java SE 8 update 66 or lower patch updates, using PBE algorithms using 256-bit AES ciphers, e.g. PBEWithHmacSHA256AndAES_256, decryption will fail on Java SE 8u71 and higher patch updates.  This results in the exception:




Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms