On Fri, 22 Jan 2021 21:28:53 GMT, Weijun Wang <wei...@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:
> 
>   keyfactory operations on own keyspec

src/java.base/share/classes/com/sun/crypto/provider/DHPrivateKey.java line 116:

> 114:             encode();
> 115:         } catch (IOException e) {
> 116:             throw new ProviderException("Cannot produce ASN.1 encoding", 
> e);

Supposedly the IOException should never happen? Otherwise the Arrays.fill(...) 
call may not happen.

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

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

Reply via email to