RFR: 8258915: Temporary buffer cleanup [v2]

Valerie Peng valeriep at openjdk.java.net
Fri Jan 22 07:21:33 UTC 2021


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

>> Clean up temporary byte array, char array, and keyspec around keys and passwords.
>> 
>> No new regression test.
>
> Weijun Wang has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:
> 
>  - rsa
>  - Merge
>  - 8258915: More temporary buffer cleanup
>    
>    8258915: More temporary buffer cleanup

src/java.base/share/classes/com/sun/crypto/provider/PrivateKeyInfo.java line 98:

> 96: 
> 97:     public void clear() {
> 98:         Arrays.fill(privkey, (byte)0);

check for null just in case?

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

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



More information about the security-dev mailing list