RFR: 8258915: Temporary buffer cleanup

Weijun Wang weijun at openjdk.java.net
Fri Jan 22 21:28:54 UTC 2021

On Fri, 22 Jan 2021 15:39:53 GMT, Weijun Wang <weijun at openjdk.org> wrote:

>> 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.

Another new commit. Last time I only fixed KeySpec on PKCS8 format. This time it's for an algorithm's _own_ spec.


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

More information about the security-dev mailing list