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 testInvalidKeyMaterial() throws Exception {
      Key valid =
          TestUtil.createKey(
              TestUtil.createAesSivKeyData(64), 42, KeyStatusType.ENABLED, OutputPrefixType.TINK);
      Key invalid =
          TestUtil.createKey(
              TestUtil.createAesCtrHmacAeadKeyData(
                  Random.randBytes(16), 12, Random.randBytes(16), 16),
              43,
              KeyStatusType.ENABLED,
              OutputPrefixType.RAW);
  
      KeysetHandle keysetHandle = TestUtil.createKeysetHandle(TestUtil.createKeyset(valid, invalid));
      try {
        DeterministicAeadFactory.getPrimitive(keysetHandle);
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertExceptionContains(e, "com.google.crypto.tink.DeterministicAead not supported");
      }
  
      // invalid as the primary key.
      keysetHandle = TestUtil.createKeysetHandle(TestUtil.createKeyset(invalid, valid));
      try {
        DeterministicAeadFactory.getPrimitive(keysetHandle);
        fail("Expected GeneralSecurityException");
      } catch (GeneralSecurityException e) {
        assertExceptionContains(e, "com.google.crypto.tink.DeterministicAead not supported");
      }
    }
test_case.class_method_signature: DeterministicAeadFactoryTest.testInvalidKeyMaterial()
test_case.full_signature: @Test public void testInvalidKeyMaterial()
test_case.identifier: testInvalidKeyMaterial
test_case.invocations: createKey createAesSivKeyData createKey createAesCtrHmacAeadKeyData randBytes randBytes createKeysetHandle createKeyset getPrimitive fail assertExceptionContains createKeysetHandle createKeyset getPrimitive fail assertExceptionContains
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInvalidKeyMaterial()
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)