RFR: 8273977: Reduce unnecessary BadPaddingExceptions in RSAPadding

Lari Hotari duke at openjdk.java.net
Wed Nov 3 19:03:24 UTC 2021


On Mon, 20 Sep 2021 08:43:24 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> Submitted the bug for it, [JDK-8273977](https://bugs.openjdk.java.net/browse/JDK-8273977). Please change the PR title to "8273977: Reduce unnecessary BadPaddingExceptions in RSAPadding" to get bots hooked properly.

Thanks for submitting the bug @shipilev . I renamed the title accordingly.
 
> Regarding the changes themselves, I think the key thing here is the method comment: "Note that we want to make it a constant-time operation", which is probably why this exception is always unconditionally created. Security folks need to say for sure.

+1

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

PR: https://git.openjdk.java.net/jdk/pull/5581



More information about the security-dev mailing list