Re: RFR: 8273977: Reduce unnecessary BadPaddingExceptions in RSAPadding

2021-11-04 Thread Lari Hotari
On Wed, 3 Nov 2021 21:56:10 GMT, Xue-Lei Andrew Fan wrote: >>> Hi @lhotari, please submit an OCA at https://oca.opensource.oracle.com/ if >>> you are contributing on your own behalf. If you are contributing on your >>> employers behalf, please send me an e-Mail at >>> [dalibor.to...@oracle.com

Re: RFR: 8273977: Reduce unnecessary BadPaddingExceptions in RSAPadding

2021-11-03 Thread Lari Hotari
On Mon, 20 Sep 2021 09:35:57 GMT, Lari Hotari wrote: >> ### Motivation >> >> When profiling an application that uses JWT token authentication, it was >> noticed that a high number of `javax.crypto.BadPaddingException`s were >> created. When investigating the c

Re: RFR: 8273977: Reduce unnecessary BadPaddingExceptions in RSAPadding

2021-11-03 Thread Lari Hotari
On Mon, 20 Sep 2021 08:38:18 GMT, Lari Hotari wrote: > ### Motivation > > When profiling an application that uses JWT token authentication, it was > noticed that a high number of `javax.crypto.BadPaddingException`s were > created. When investigating the code in RSAPadding, o

Re: RFR: 8273977: Reduce unnecessary BadPaddingExceptions in RSAPadding

2021-11-03 Thread Lari Hotari
On Mon, 20 Sep 2021 08:43:24 GMT, Aleksey Shipilev 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 s

RFR: 8273977: Reduce unnecessary BadPaddingExceptions in RSAPadding

2021-11-03 Thread Lari Hotari
### Motivation When profiling an application that uses JWT token authentication, it was noticed that a high number of `javax.crypto.BadPaddingException`s were created. When investigating the code in RSAPadding, one can see that BadPaddingException is created in all cases, also on the success pa