Integrated: 8257769: Cipher.getParameters() throws NPE for ChaCha20-Poly1305

Jamil Nimeh jnimeh at openjdk.java.net
Tue Dec 8 06:13:14 UTC 2020


On Sat, 5 Dec 2020 23:23:47 GMT, Jamil Nimeh <jnimeh at openjdk.org> wrote:

> This fix corrects a problem where ChaCha20-Poly1305 objects prior to init throw NPE when getParameters() is called.  It will now generate parameters containing a random nonce on each pre-init call to getParameters(). Post-initialization calls to the getParameters() method will always return the same set of parameters until the next initialization occurs.

This pull request has now been integrated.

Changeset: 500ab457
Author:    Jamil Nimeh <jnimeh at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/500ab457
Stats:     125 lines in 2 files changed: 119 ins; 0 del; 6 mod

8257769: Cipher.getParameters() throws NPE for ChaCha20-Poly1305

Reviewed-by: mullan, valeriep

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

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



More information about the security-dev mailing list