test_class.file: tools/mascot/src/test/java/dk/alexandra/fresco/tools/mascot/TestMascotResourcePoolImpl.java
test_class.identifier: TestMascotResourcePoolImpl
test_case.body: @Test(expected = IllegalArgumentException.class)
    public void testCreateRotForSelf() {
      MascotResourcePool resourcePool = new MascotResourcePoolImpl(1, 1, 1,
          new AesCtrDrbg(new byte[32]), null, new MascotSecurityParameters(),
          new BigIntegerFieldDefinition(ModulusFinder.findSuitableModulus(128)));
      resourcePool.createRot(1, null);
    }
test_case.class_method_signature: TestMascotResourcePoolImpl.testCreateRotForSelf()
test_case.full_signature: @Test(expected = IllegalArgumentException.class) public void testCreateRotForSelf()
test_case.identifier: testCreateRotForSelf
test_case.invocations: findSuitableModulus createRot
test_case.modifiers: @Test(expected = IllegalArgumentException.class) public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testCreateRotForSelf()
focal_class.declarator: seedOts
focal_class.modifier: private final
focal_class.original_string: private final Map<Integer, RotList> seedOts;
focal_class.type: Map<Integer, RotList>
focal_class.var_name: seedOts
focal_class.declarator: instanceId
focal_class.modifier: private final
focal_class.original_string: private final int instanceId;
focal_class.type: int
focal_class.var_name: instanceId
focal_class.declarator: fieldDefinition
focal_class.modifier: private final
focal_class.original_string: private final FieldDefinition fieldDefinition;
focal_class.type: FieldDefinition
focal_class.var_name: fieldDefinition
focal_class.declarator: localSampler
focal_class.modifier: private final
focal_class.original_string: private final FieldElementPrg localSampler;
focal_class.type: FieldElementPrg
focal_class.var_name: localSampler
focal_class.declarator: messageDigest
focal_class.modifier: private final
focal_class.original_string: private final MessageDigest messageDigest;
focal_class.type: MessageDigest
focal_class.var_name: messageDigest
focal_class.declarator: mascotSecurityParameters
focal_class.modifier: private final
focal_class.original_string: private final MascotSecurityParameters mascotSecurityParameters;
focal_class.type: MascotSecurityParameters
focal_class.var_name: mascotSecurityParameters
focal_class.declarator: drbg
focal_class.modifier: private final
focal_class.original_string: private final Drbg drbg;
focal_class.type: Drbg
focal_class.var_name: drbg
focal_class.file: tools/mascot/src/main/java/dk/alexandra/fresco/tools/mascot/MascotResourcePoolImpl.java
focal_class.identifier: MascotResourcePoolImpl
focal_class.interfaces: implements MascotResourcePool
focal_class.class_method_signature: MascotResourcePoolImpl.MascotResourcePoolImpl(int myId, int noOfParties, int instanceId, Drbg drbg,
        Map<Integer, RotList> seedOts, MascotSecurityParameters mascotSecurityParameters,
        FieldDefinition fieldDefinition)
focal_class.full_signature: public  MascotResourcePoolImpl(int myId, int noOfParties, int instanceId, Drbg drbg,
        Map<Integer, RotList> seedOts, MascotSecurityParameters mascotSecurityParameters,
        FieldDefinition fieldDefinition)
focal_class.identifier: MascotResourcePoolImpl
focal_class.modifiers: public
focal_class.parameters: (int myId, int noOfParties, int instanceId, Drbg drbg,
        Map<Integer, RotList> seedOts, MascotSecurityParameters mascotSecurityParameters,
        FieldDefinition fieldDefinition)
focal_class.signature:  MascotResourcePoolImpl(int myId, int noOfParties, int instanceId, Drbg drbg,
        Map<Integer, RotList> seedOts, MascotSecurityParameters mascotSecurityParameters,
        FieldDefinition fieldDefinition)
focal_class.class_method_signature: MascotResourcePoolImpl.getFieldDefinition()
focal_class.full_signature: @Override public FieldDefinition getFieldDefinition()
focal_class.identifier: getFieldDefinition
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: FieldDefinition
focal_class.signature: FieldDefinition getFieldDefinition()
focal_class.class_method_signature: MascotResourcePoolImpl.getInstanceId()
focal_class.full_signature: @Override public int getInstanceId()
focal_class.identifier: getInstanceId
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getInstanceId()
focal_class.class_method_signature: MascotResourcePoolImpl.getModBitLength()
focal_class.full_signature: @Override public int getModBitLength()
focal_class.identifier: getModBitLength
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getModBitLength()
focal_class.class_method_signature: MascotResourcePoolImpl.getLambdaSecurityParam()
focal_class.full_signature: @Override public int getLambdaSecurityParam()
focal_class.identifier: getLambdaSecurityParam
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getLambdaSecurityParam()
focal_class.class_method_signature: MascotResourcePoolImpl.getNumCandidatesPerTriple()
focal_class.full_signature: @Override public int getNumCandidatesPerTriple()
focal_class.identifier: getNumCandidatesPerTriple
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getNumCandidatesPerTriple()
focal_class.class_method_signature: MascotResourcePoolImpl.getLocalSampler()
focal_class.full_signature: @Override public FieldElementPrg getLocalSampler()
focal_class.identifier: getLocalSampler
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: FieldElementPrg
focal_class.signature: FieldElementPrg getLocalSampler()
focal_class.class_method_signature: MascotResourcePoolImpl.createRot(int otherId, Network network)
focal_class.full_signature: @Override public RotBatch createRot(int otherId, Network network)
focal_class.identifier: createRot
focal_class.modifiers: @Override public
focal_class.parameters: (int otherId, Network network)
focal_class.return: RotBatch
focal_class.signature: RotBatch createRot(int otherId, Network network)
focal_class.class_method_signature: MascotResourcePoolImpl.getRandomGenerator()
focal_class.full_signature: @Override public Drbg getRandomGenerator()
focal_class.identifier: getRandomGenerator
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Drbg
focal_class.signature: Drbg getRandomGenerator()
focal_class.class_method_signature: MascotResourcePoolImpl.getMessageDigest()
focal_class.full_signature: @Override public MessageDigest getMessageDigest()
focal_class.identifier: getMessageDigest
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: MessageDigest
focal_class.signature: MessageDigest getMessageDigest()
focal_class.class_method_signature: MascotResourcePoolImpl.getPrgSeedLength()
focal_class.full_signature: @Override public int getPrgSeedLength()
focal_class.identifier: getPrgSeedLength
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPrgSeedLength()
focal_class.superclass: extends ResourcePoolImpl
focal_method.body: @Override
    public RotBatch createRot(int otherId, Network network) {
      if (getMyId() == otherId) {
        throw new IllegalArgumentException("Cannot initialize with self");
      }
      CoinTossing ct = new CoinTossing(getMyId(), otherId, getRandomGenerator());
      ct.initialize(network);
      OtExtensionResourcePool otResources = new OtExtensionResourcePoolImpl(getMyId(), otherId,
          getPrgSeedLength(), getLambdaSecurityParam(), getInstanceId(),
          getRandomGenerator(), ct, seedOts.get(otherId));
      return new BristolRotBatch(new RotFactory(otResources, network),
          getPrgSeedLength(), getLambdaSecurityParam());
    }
focal_method.class_method_signature: MascotResourcePoolImpl.createRot(int otherId, Network network)
focal_method.full_signature: @Override public RotBatch createRot(int otherId, Network network)
focal_method.identifier: createRot
focal_method.invocations: getMyId getMyId getRandomGenerator initialize getMyId getPrgSeedLength getLambdaSecurityParam getInstanceId getRandomGenerator get getPrgSeedLength getLambdaSecurityParam
focal_method.modifiers: @Override public
focal_method.parameters: (int otherId, Network network)
focal_method.return: RotBatch
focal_method.signature: RotBatch createRot(int otherId, Network network)