[jdk25u-dev] Integrated: 8358159: Empty mode/padding in cipher transformations
Roland Mesde
duke at openjdk.org
Mon Jan 12 16:18:58 UTC 2026
On Tue, 16 Dec 2025 20:08:16 GMT, Roland Mesde <duke at openjdk.org> wrote:
> Backporting JDK-8358159: Empty mode/padding in cipher transformations.
>
> Cipher transformation strings with empty mode or padding components (e.g., "AES/ /NoPadding") incorrectly throw
> NoSuchAlgorithmException instead of being processed normally. This commit fixes the issue by treating empty mode or padding strings as null values during transformation parsing.
>
> For parity with Oracle JDK.
>
> Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
>
> (Passed) - make test TEST=test/jdk/javax/crypto
>
> Results attached:
> [linux-aarch64-specific-2-test.log](https://github.com/user-attachments/files/24200380/linux-aarch64-specific-2-test.log)
> [linux-x64-specific-2-test.log](https://github.com/user-attachments/files/24200381/linux-x64-specific-2-test.log)
> [macos-aarch64-specific-2-test.log](https://github.com/user-attachments/files/24200382/macos-aarch64-specific-2-test.log)
> [windows-x64-specific-2-test.log](https://github.com/user-attachments/files/24200383/windows-x64-specific-2-test.log)
This pull request has now been integrated.
Changeset: fae7da1f
Author: Roland Mesde <mesde at amazon.com>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk25u-dev/commit/fae7da1f91bfd947eac4f98e8b888909f692deae
Stats: 68 lines in 2 files changed: 62 ins; 0 del; 6 mod
8358159: Empty mode/padding in cipher transformations
Backport-of: 3ff83ec49e561c44dd99508364b8ba068274b63a
-------------
PR: https://git.openjdk.org/jdk25u-dev/pull/95
More information about the jdk-updates-dev
mailing list