@Test
  public void testEncryptDecryptTagSize() throws Exception {
    Assume.assumeFalse(TinkFips.useOnlyFips());

    testEncryptDecrypt(16, 12, 512, 0, 5000, 128);
    testEncryptDecrypt(16, 16, 512, 0, 5000, 128);
    testEncryptDecrypt(16, 20, 512, 0, 5000, 128);
    testEncryptDecrypt(16, 32, 512, 0, 5000, 128);
  }
Encrypts and decrypts some plaintext in a stream and checks that the expected plaintext is
returned.

@param keySizeInBytes the size of the AES key.
@param tagSizeInBytes the size of authentication tag.
@param segmentSize the size of the ciphertext segments.
@param firstSegmentOffset number of bytes prepended to the ciphertext stream.
@param plaintextSize the size of the plaintext
@param chunkSize decryption read chunks of this size.
java_src/src/test/java/com/google/crypto/tink/subtle/AesCtrHmacStreamingTest.java