SpdzDummyDataSupplier implements SpdzDataSupplier { @Override public SpdzInputMask getNextInputMask(int towardPlayerId) { Pair<BigInteger, BigInteger> raw = supplier.getRandomElementShare(); if (myId == towardPlayerId) { return new SpdzInputMask(toSpdzSInt(raw), createElement(raw.getFirst())); } else { return new SpdzInputMask(toSpdzSInt(raw), null); } } SpdzDummyDataSupplier(int myId, int noOfPlayers, FieldDefinition fieldDefinition,
      BigInteger secretSharedKey);  SpdzDummyDataSupplier(int myId, int noOfPlayers, FieldDefinition fieldDefinition,
      BigInteger secretSharedKey, int expPipeLength); @Override SpdzTriple getNextTriple(); @Override SpdzSInt[] getNextExpPipe(); @Override SpdzInputMask getNextInputMask(int towardPlayerId); @Override SpdzSInt getNextBit(); @Override FieldDefinition getFieldDefinition(); @Override FieldElement getSecretSharedKey(); @Override SpdzSInt getNextRandomFieldElement();  }
@Test public void testGetNextInputMask() { List<Integer> partyCounts = Arrays.asList(2, 3, 5); for (int partyCount : partyCounts) { for (int i = 0; i < partyCount; i++) { testGetNextInputMask(fields.get(0), partyCount, i + 1); } } }