[jdk25u-dev] RFR: 8358159: Empty mode/padding in cipher transformations [v2]

Roland Mesde duke at openjdk.org
Mon Jan 5 16:32:29 UTC 2026


> 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)

Roland Mesde has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains two additional commits since the last revision:

 - Merge branch 'openjdk:master' into JDK-8358159-V25
 - Backport 3ff83ec49e561c44dd99508364b8ba068274b63a

-------------

Changes:
  - all: https://git.openjdk.org/jdk25u-dev/pull/95/files
  - new: https://git.openjdk.org/jdk25u-dev/pull/95/files/87d83df3..b971f881

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=95&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=95&range=00-01

  Stats: 6603 lines in 147 files changed: 2772 ins; 3332 del; 499 mod
  Patch: https://git.openjdk.org/jdk25u-dev/pull/95.diff
  Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/95/head:pull/95

PR: https://git.openjdk.org/jdk25u-dev/pull/95


More information about the jdk-updates-dev mailing list