@Test public void testBasicAesCtrHmacAead() throws Exception { byte[] aesCtrKeyValue = Random.randBytes(AES_KEY_SIZE); byte[] hmacKeyValue = Random.randBytes(HMAC_KEY_SIZE); int ivSize = 12; int tagSize = 16; KeysetHandle keysetHandle = TestUtil.createKeysetHandle( TestUtil.createKeyset( TestUtil.createKey( TestUtil.createAesCtrHmacAeadKeyData( aesCtrKeyValue, ivSize, hmacKeyValue, tagSize), 42, KeyStatusType.ENABLED, OutputPrefixType.TINK))); TestUtil.runBasicAeadTests(keysetHandle.getPrimitive(Aead.class)); }
@Deprecated public static Aead getPrimitive(KeysetHandle keysetHandle) throws GeneralSecurityException { return getPrimitive(keysetHandle, null); }
AeadFactory { @Deprecated public static Aead getPrimitive(KeysetHandle keysetHandle) throws GeneralSecurityException { return getPrimitive(keysetHandle, null); } }
AeadFactory { @Deprecated public static Aead getPrimitive(KeysetHandle keysetHandle) throws GeneralSecurityException { return getPrimitive(keysetHandle, null); }  }
AeadFactory { @Deprecated public static Aead getPrimitive(KeysetHandle keysetHandle) throws GeneralSecurityException { return getPrimitive(keysetHandle, null); }  @Deprecated static Aead getPrimitive(KeysetHandle keysetHandle); @Deprecated static Aead getPrimitive(KeysetHandle keysetHandle, final KeyManager<Aead> keyManager); }
AeadFactory { @Deprecated public static Aead getPrimitive(KeysetHandle keysetHandle) throws GeneralSecurityException { return getPrimitive(keysetHandle, null); }  @Deprecated static Aead getPrimitive(KeysetHandle keysetHandle); @Deprecated static Aead getPrimitive(KeysetHandle keysetHandle, final KeyManager<Aead> keyManager);  }