@Test
public void testNistVector() throws Exception {

  byte[] rawCiphertext = TestUtil.hexDecode(NIST_CIPHERTEXT);
  byte[] iv = TestUtil.hexDecode(NIST_IV);
  byte[] ciphertext = new byte[iv.length + rawCiphertext.length];
  System.arraycopy(iv, 0, ciphertext, 0, iv.length);
  System.arraycopy(rawCiphertext, 0, ciphertext, iv.length, rawCiphertext.length);
  AesCtrJceCipher cipher = new AesCtrJceCipher(TestUtil.hexDecode(NIST_KEY), iv.length);
  assertArrayEquals(TestUtil.hexDecode(NIST_PLAINTEXT), cipher.decrypt(ciphertext));
}