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/DeterministicAeadWrapperTest.java
test_class.identifier: DeterministicAeadWrapperTest
test_case.body: @Test
    public void testEncrytDecrypt() throws Exception {
      KeysetHandle keysetHandle = KeysetHandle.generateNew(DeterministicAeadKeyTemplates.AES256_SIV);
      DeterministicAead aead =
          new DeterministicAeadWrapper().wrap(Registry.getPrimitives(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: DeterministicAeadWrapperTest.testEncrytDecrypt()
test_case.full_signature: @Test public void testEncrytDecrypt()
test_case.identifier: testEncrytDecrypt
test_case.invocations: generateNew wrap getPrimitives 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.declarator: logger = Logger.getLogger(DeterministicAeadWrapper.class.getName())
focal_class.modifier: private static final
focal_class.original_string: private static final Logger logger = Logger.getLogger(DeterministicAeadWrapper.class.getName());
focal_class.type: Logger
focal_class.var_name: logger
focal_class.file: java_src/src/main/java/com/google/crypto/tink/daead/DeterministicAeadWrapper.java
focal_class.identifier: DeterministicAeadWrapper
focal_class.interfaces: implements PrimitiveWrapper<DeterministicAead, DeterministicAead>
focal_class.class_method_signature: DeterministicAeadWrapper.DeterministicAeadWrapper()
focal_class.full_signature:   DeterministicAeadWrapper()
focal_class.identifier: DeterministicAeadWrapper
focal_class.parameters: ()
focal_class.signature:  DeterministicAeadWrapper()
focal_class.class_method_signature: DeterministicAeadWrapper.wrap(final PrimitiveSet<DeterministicAead> primitives)
focal_class.full_signature: @Override public DeterministicAead wrap(final PrimitiveSet<DeterministicAead> primitives)
focal_class.identifier: wrap
focal_class.modifiers: @Override public
focal_class.parameters: (final PrimitiveSet<DeterministicAead> primitives)
focal_class.return: DeterministicAead
focal_class.signature: DeterministicAead wrap(final PrimitiveSet<DeterministicAead> primitives)
focal_class.class_method_signature: DeterministicAeadWrapper.getPrimitiveClass()
focal_class.full_signature: @Override public Class<DeterministicAead> getPrimitiveClass()
focal_class.identifier: getPrimitiveClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<DeterministicAead>
focal_class.signature: Class<DeterministicAead> getPrimitiveClass()
focal_class.class_method_signature: DeterministicAeadWrapper.getInputPrimitiveClass()
focal_class.full_signature: @Override public Class<DeterministicAead> getInputPrimitiveClass()
focal_class.identifier: getInputPrimitiveClass
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Class<DeterministicAead>
focal_class.signature: Class<DeterministicAead> getInputPrimitiveClass()
focal_class.class_method_signature: DeterministicAeadWrapper.register()
focal_class.full_signature: public static void register()
focal_class.identifier: register
focal_class.modifiers: public static
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void register()
focal_method.body: @Override
    public DeterministicAead wrap(final PrimitiveSet<DeterministicAead> primitives) {
      return new WrappedDeterministicAead(primitives);
    }
focal_method.class_method_signature: DeterministicAeadWrapper.wrap(final PrimitiveSet<DeterministicAead> primitives)
focal_method.full_signature: @Override public DeterministicAead wrap(final PrimitiveSet<DeterministicAead> primitives)
focal_method.identifier: wrap
focal_method.modifiers: @Override public
focal_method.parameters: (final PrimitiveSet<DeterministicAead> primitives)
focal_method.return: DeterministicAead
focal_method.signature: DeterministicAead wrap(final PrimitiveSet<DeterministicAead> primitives)