RFR: 8258915: Temporary buffer cleanup [v6]

Valerie Peng valeriep at openjdk.java.net
Fri Feb 5 16:37:43 UTC 2021


On Fri, 29 Jan 2021 18:40:02 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 incrementally with one additional commit since the last revision:
> 
>   drbg
>   
>   only in patch2:
>   unchanged:

src/java.base/share/classes/sun/security/provider/CtrDrbg.java line 507:

> 505:                     System.arraycopy(out, 0, result, pos, len);
> 506:                     Arrays.fill(out, (byte)0);
> 507:                 }

No need to handle encryption output?

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

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



More information about the security-dev mailing list