RFR: 8302017: Allocate BadPaddingException only if it will be thrown [v2]

Valerie Peng valeriep at openjdk.org
Mon Jul 17 23:10:16 UTC 2023


On Fri, 14 Jul 2023 20:08:54 GMT, Sean Mullan <mullan at openjdk.org> wrote:

>> Valerie Peng has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Address review feedbacks, e.g. Removed RSAPadding.Output and use byte[] as before.
>
> src/java.base/share/classes/sun/security/rsa/RSASignature.java line 233:
> 
>> 231:             }
>> 232:             return status;
>> 233:         } catch (javax.crypto.BadPaddingException e) {
> 
> Can this exception still be thrown?

Yes, BadPaddingException is still thrown by RSACore class.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14839#discussion_r1265982964



More information about the security-dev mailing list