[8u] RFR: JDK-8258419: RSA cipher buffer cleanup

Andrew Hughes gnu.andrew at redhat.com
Fri Mar 19 05:41:20 UTC 2021

Bug: https://bugs.openjdk.java.net/browse/JDK-8258419
Webrev: https://cr.openjdk.java.net/~andrew/openjdk8/8258419/webrev.01/

This patch cleans up RSA temporary buffers after use and avoids
some unnecessary copying. Fix is backported to all Oracle releases
from 7 to 17.

Patch applies almost cleanly to 8u. Only rejects are the copyright
header changes to RSAPadding.java and RSACipher.java, as they were
already updated to 2020 by JDK-8230978.

Ok for 8u?

Andrew :)

Senior Free Java Software Engineer
OpenJDK Package Owner
Red Hat, Inc. (http://www.redhat.com)

PGP Key: ed25519/0xCFDA0F9B35964222 (hkp://keys.gnupg.net)
Fingerprint = 5132 579D D154 0ED2 3E04  C5A0 CFDA 0F9B 3596 4222

More information about the jdk8u-dev mailing list