RFR: 8358159: Empty mode/padding in cipher transformations
Varada M
varadam at openjdk.org
Mon Jun 2 12:11:55 UTC 2025
On Fri, 30 May 2025 12:40:51 GMT, Sean Mullan <mullan at openjdk.org> wrote:
>> 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)
>
> I think this should have a regression test for this change. Also, you indicated this patch restores the behavior - do you know what release this last worked in and what issue caused it to stop working?
Hi @seanjmullan ,
This [previous commit](https://github.com/openjdk/jdk/pull/11339) in openjdk broke some cipher transformations.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25547#issuecomment-2930371743
More information about the security-dev
mailing list