On 4/26/18 11:57 AM, Sean Mullan wrote:
The ChaCha20ParameterSpec.java file should have an @since 11 annotation on it.

Also:

  65         if (nonce.length == 12) {
  66             this.nonce = nonce.clone();
  67         } else {
  68             throw new IllegalArgumentException(
  69                     "Nonce must be 96-bits in length");
  70         }

You should clone nonce before you check the length and check the length on the copy, not the parameter passed in. Also, you should use NONCE_LENGTH instead of 12 since it is already defined as a constant in the class.

--Sean


--Sean

On 3/26/18 3:08 PM, Jamil Nimeh wrote:
Hello all,

This is a request for review for the ChaCha20 and ChaCha20-Poly1305 cipher implementations.  Links to the webrev and the JEP which outlines the characteristics and behavior of the ciphers are listed below.

http://cr.openjdk.java.net/~jnimeh/reviews/8153028/webrev.01/
http://openjdk.java.net/jeps/329

Thanks,
--Jamil

Reply via email to