test_class.declarator: keySizeInBytes
test_class.modifier: private
test_class.original_string: private Integer[] keySizeInBytes;
test_class.type: Integer[]
test_class.var_name: keySizeInBytes
test_class.file: java_src/src/test/java/com/google/crypto/tink/daead/DeterministicAeadFactoryTest.java
test_class.identifier: DeterministicAeadFactoryTest
test_case.body: @Test
    public void testEncrytDecrypt() throws Exception {
      KeysetHandle keysetHandle = KeysetHandle.generateNew(DeterministicAeadKeyTemplates.AES256_SIV);
      DeterministicAead aead = DeterministicAeadFactory.getPrimitive(keysetHandle);
      byte[] plaintext = Random.randBytes(20);
      byte[] associatedData = Random.randBytes(20);
      byte[] ciphertext = aead.encryptDeterministically(plaintext, associatedData);
      byte[] ciphertext2 = aead.encryptDeterministically(plaintext, associatedData);
      byte[] decrypted = aead.decryptDeterministically(ciphertext, associatedData);
      byte[] decrypted2 = aead.decryptDeterministically(ciphertext2, associatedData);
  
      assertArrayEquals(ciphertext, ciphertext2);
      assertArrayEquals(plaintext, decrypted);
      assertArrayEquals(plaintext, decrypted2);
    }
test_case.class_method_signature: DeterministicAeadFactoryTest.testEncrytDecrypt()
test_case.full_signature: @Test public void testEncrytDecrypt()
test_case.identifier: testEncrytDecrypt
test_case.invocations: generateNew getPrimitive randBytes randBytes encryptDeterministically encryptDeterministically decryptDeterministically decryptDeterministically assertArrayEquals assertArrayEquals assertArrayEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testEncrytDecrypt()
focal_class.file: java_src/src/main/java/com/google/crypto/tink/daead/DeterministicAeadFactory.java
focal_class.identifier: DeterministicAeadFactory
focal_class.class_method_signature: DeterministicAeadFactory.getPrimitive(KeysetHandle keysetHandle)
focal_class.full_signature: @Deprecated public static DeterministicAead getPrimitive(KeysetHandle keysetHandle)
focal_class.identifier: getPrimitive
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (KeysetHandle keysetHandle)
focal_class.return: DeterministicAead
focal_class.signature: DeterministicAead getPrimitive(KeysetHandle keysetHandle)
focal_class.class_method_signature: DeterministicAeadFactory.getPrimitive(
        KeysetHandle keysetHandle, final KeyManager<DeterministicAead> keyManager)
focal_class.full_signature: @Deprecated public static DeterministicAead getPrimitive(
        KeysetHandle keysetHandle, final KeyManager<DeterministicAead> keyManager)
focal_class.identifier: getPrimitive
focal_class.modifiers: @Deprecated public static
focal_class.parameters: (
        KeysetHandle keysetHandle, final KeyManager<DeterministicAead> keyManager)
focal_class.return: DeterministicAead
focal_class.signature: DeterministicAead getPrimitive(
        KeysetHandle keysetHandle, final KeyManager<DeterministicAead> keyManager)
focal_method.body: @Deprecated
    public static DeterministicAead getPrimitive(KeysetHandle keysetHandle)
        throws GeneralSecurityException {
      return getPrimitive(keysetHandle, /* keyManager= */ null);
    }
focal_method.class_method_signature: DeterministicAeadFactory.getPrimitive(KeysetHandle keysetHandle)
focal_method.full_signature: @Deprecated public static DeterministicAead getPrimitive(KeysetHandle keysetHandle)
focal_method.identifier: getPrimitive
focal_method.invocations: getPrimitive
focal_method.modifiers: @Deprecated public static
focal_method.parameters: (KeysetHandle keysetHandle)
focal_method.return: DeterministicAead
focal_method.signature: DeterministicAead getPrimitive(KeysetHandle keysetHandle)