RFR: 8358159: Empty mode/padding in cipher transformations [v3]

Varada M varadam at openjdk.org
Wed Jun 4 10:37:28 UTC 2025


> Omitting the mode/padding in a transformation string eg: "AES/ /NoPadding" throws NoSuchAlgorithmException.
> This patch restores the behavior by ensuring that empty mode or padding strings are interpreted as null.
> 
> Testing done for : tier1 - fastdebug level (AIX)
> 
> JBS: [JDK-8358159](https://bugs.openjdk.org/browse/JDK-8358159)

Varada M has updated the pull request incrementally with one additional commit since the last revision:

  whitespace error fix

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/25547/files
  - new: https://git.openjdk.org/jdk/pull/25547/files/ccc650bb..b5854da0

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=25547&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=25547&range=01-02

  Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/25547.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/25547/head:pull/25547

PR: https://git.openjdk.org/jdk/pull/25547


More information about the security-dev mailing list