test_class.declarator: macKeyShareOne = getFieldDefinition().createElement(11231)
test_class.modifier: private final
test_class.original_string: private final FieldElement macKeyShareOne = getFieldDefinition().createElement(11231);
test_class.type: FieldElement
test_class.var_name: macKeyShareOne
test_class.declarator: macKeyShareTwo = getFieldDefinition().createElement(7719)
test_class.modifier: private final
test_class.original_string: private final FieldElement macKeyShareTwo = getFieldDefinition().createElement(7719);
test_class.type: FieldElement
test_class.var_name: macKeyShareTwo
test_class.file: tools/mascot/src/test/java/dk/alexandra/fresco/tools/mascot/TestMascot.java
test_class.identifier: TestMascot
test_class.superclass: extends NetworkedTest
test_case.body: @Test
    public void testInput() {
      // set up runtime environment and get contexts
      initContexts(2);
  
      FieldElement input = getFieldDefinition().createElement(12345);
  
      // define per party task with params
      List<Callable<List<AuthenticatedElement>>> tasks = new ArrayList<>();
      tasks.add(() -> runInputter(contexts.get(1), macKeyShareOne, Collections.singletonList(input)));
      tasks.add(() -> runNonInputter(contexts.get(2), macKeyShareTwo, 1, 1));
  
      List<List<AuthenticatedElement>> results = testRuntime.runPerPartyTasks(tasks);
      assertEquals(results.get(0).size(), 1);
      assertEquals(results.get(1).size(), 1);
      List<AuthenticatedElement> combined =
          Addable.sumRows(results);
      FieldElement actualRecombinedValue = combined.get(0).getShare();
      FieldElement actualRecombinedMac = combined.get(0).getMac();
      CustomAsserts.assertEquals(getFieldDefinition(), input, actualRecombinedValue);
      FieldElement expectedMac = input.multiply(macKeyShareOne.add(macKeyShareTwo));
      CustomAsserts.assertEquals(getFieldDefinition(), expectedMac, actualRecombinedMac);
    }
test_case.class_method_signature: TestMascot.testInput()
test_case.full_signature: @Test public void testInput()
test_case.identifier: testInput
test_case.invocations: initContexts createElement getFieldDefinition add runInputter get singletonList add runNonInputter get runPerPartyTasks assertEquals size get assertEquals size get sumRows getShare get getMac get assertEquals getFieldDefinition multiply add assertEquals getFieldDefinition
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testInput()
focal_class.declarator: tripleGeneration
focal_class.modifier: private final
focal_class.original_string: private final TripleGeneration tripleGeneration;
focal_class.type: TripleGeneration
focal_class.var_name: tripleGeneration
focal_class.declarator: elementGeneration
focal_class.modifier: private final
focal_class.original_string: private final ElementGeneration elementGeneration;
focal_class.type: ElementGeneration
focal_class.var_name: elementGeneration
focal_class.declarator: bitConverter
focal_class.modifier: private final
focal_class.original_string: private final BitConverter bitConverter;
focal_class.type: BitConverter
focal_class.var_name: bitConverter
focal_class.declarator: resourcePool
focal_class.modifier: private final
focal_class.original_string: private final MascotResourcePool resourcePool;
focal_class.type: MascotResourcePool
focal_class.var_name: resourcePool
focal_class.file: tools/mascot/src/main/java/dk/alexandra/fresco/tools/mascot/Mascot.java
focal_class.identifier: Mascot
focal_class.class_method_signature: Mascot.Mascot(MascotResourcePool resourcePool, Network network, FieldElement macKeyShare)
focal_class.full_signature: public  Mascot(MascotResourcePool resourcePool, Network network, FieldElement macKeyShare)
focal_class.identifier: Mascot
focal_class.modifiers: public
focal_class.parameters: (MascotResourcePool resourcePool, Network network, FieldElement macKeyShare)
focal_class.signature:  Mascot(MascotResourcePool resourcePool, Network network, FieldElement macKeyShare)
focal_class.class_method_signature: Mascot.getTriples(int numTriples)
focal_class.full_signature: public List<MultiplicationTriple> getTriples(int numTriples)
focal_class.identifier: getTriples
focal_class.modifiers: public
focal_class.parameters: (int numTriples)
focal_class.return: List<MultiplicationTriple>
focal_class.signature: List<MultiplicationTriple> getTriples(int numTriples)
focal_class.class_method_signature: Mascot.input(List<FieldElement> rawElements)
focal_class.full_signature: public List<AuthenticatedElement> input(List<FieldElement> rawElements)
focal_class.identifier: input
focal_class.modifiers: public
focal_class.parameters: (List<FieldElement> rawElements)
focal_class.return: List<AuthenticatedElement>
focal_class.signature: List<AuthenticatedElement> input(List<FieldElement> rawElements)
focal_class.class_method_signature: Mascot.input(Integer inputterId, int numElements)
focal_class.full_signature: public List<AuthenticatedElement> input(Integer inputterId, int numElements)
focal_class.identifier: input
focal_class.modifiers: public
focal_class.parameters: (Integer inputterId, int numElements)
focal_class.return: List<AuthenticatedElement>
focal_class.signature: List<AuthenticatedElement> input(Integer inputterId, int numElements)
focal_class.class_method_signature: Mascot.getRandomElements(int numElements)
focal_class.full_signature: public List<AuthenticatedElement> getRandomElements(int numElements)
focal_class.identifier: getRandomElements
focal_class.modifiers: public
focal_class.parameters: (int numElements)
focal_class.return: List<AuthenticatedElement>
focal_class.signature: List<AuthenticatedElement> getRandomElements(int numElements)
focal_class.class_method_signature: Mascot.getInputMasks(Integer maskerId, int numMasks)
focal_class.full_signature: public List<InputMask> getInputMasks(Integer maskerId, int numMasks)
focal_class.identifier: getInputMasks
focal_class.modifiers: public
focal_class.parameters: (Integer maskerId, int numMasks)
focal_class.return: List<InputMask>
focal_class.signature: List<InputMask> getInputMasks(Integer maskerId, int numMasks)
focal_class.class_method_signature: Mascot.getRandomBits(int numBits)
focal_class.full_signature: public List<AuthenticatedElement> getRandomBits(int numBits)
focal_class.identifier: getRandomBits
focal_class.modifiers: public
focal_class.parameters: (int numBits)
focal_class.return: List<AuthenticatedElement>
focal_class.signature: List<AuthenticatedElement> getRandomBits(int numBits)
focal_method.body: public List<AuthenticatedElement> input(List<FieldElement> rawElements) {
      return elementGeneration.input(rawElements);
    }
focal_method.class_method_signature: Mascot.input(List<FieldElement> rawElements)
focal_method.full_signature: public List<AuthenticatedElement> input(List<FieldElement> rawElements)
focal_method.identifier: input
focal_method.invocations: input
focal_method.modifiers: public
focal_method.parameters: (List<FieldElement> rawElements)
focal_method.return: List<AuthenticatedElement>
focal_method.signature: List<AuthenticatedElement> input(List<FieldElement> rawElements)