My Oracle Support Banner

[Java SE] Java SE 8u71 and Later Throws BadPaddingException when Decrypting with PBE Algorithms Using 256-bit AES Ciphers (Doc ID 2271328.1)

Last updated on NOVEMBER 09, 2023

Applies to:

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

Symptoms

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:



Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.