[jdk25u-dev] RFR: 8358159: Empty mode/padding in cipher transformations [v2]
duke
duke at openjdk.org
Fri Jan 9 15:25:43 UTC 2026
On Mon, 5 Jan 2026 16:32:29 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)
>
> 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
@rm-gh-8
Your change (at version b971f8813a9c578ebf2b6efe4539e48c8eec7048) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk25u-dev/pull/95#issuecomment-3729367192
More information about the jdk-updates-dev
mailing list