@Test
public void testRFCVectors() throws Exception {

  for (int i = 0; i < rfcTestVectors.length; i++) {
    RFCTestVector t = rfcTestVectors[i];
    if (Cipher.getMaxAllowedKeyLength("AES") < 256 && t.encKey.length > 16) {
      System.out.println(
          "Unlimited Strength Jurisdiction Policy Files are required"
              + " but not installed. Skip tests with keys larger than 128 bits.");
      continue;
    }
    Aead aead = getAead(t.macKey, t.encKey, t.ivSize, t.tagLength, t.macAlg);
    try {
      aead.decrypt(t.ciphertext, t.aad);
    } catch (GeneralSecurityException e) {
      fail("Ciphertext and aad are valid, shouldn't reach here: " + i + " " + e);
    }
  }
}