RFR: 8258915: Temporary buffer cleanup

Weijun Wang weijun at openjdk.java.net
Fri Jan 22 15:43:06 UTC 2021


On Thu, 21 Jan 2021 16:25:13 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>>> please add noreg label to the JBS bug.
>> 
>> Added. Thanks.
>
> Just pushed a new commit. First I merged into the RSA PKCS #1 code change from @valeriepeng, and then reapplied the cleanup to `RSAKeyFactory`. Most new code change is inside `RSAPrivateCrtKeyImpl`. I also updated `DerValue` and `DerOutpuStream` a little to avoid unnecessary array copying.

New commit. However, I was writing test to detect leak in `RSAPrivateKeySpec` conversion and add more key->spec->key for other algorithms and find more leaks. Will fix in another commit.

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

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



More information about the security-dev mailing list