MultiplyRight(MascotResourcePool resourcePool, Network network, int otherId) { this.otherId = otherId; this.resourcePool = resourcePool; this.network = network; multiplyRightHelper = new MultiplyRightHelper(resourcePool, network, otherId); }
/** * Creates a new {@link CopeInputter} and initializes the COPE protocol. * * <p>This will run the initialization sub-protocol of COPE using an OT protocol to set up the PRG * seeds used in the <i>Extend</i> sub-protocol.</p> */ public CopeInputter(MascotResourcePool resourcePool, Network network, int otherId) { this.otherId = otherId; this.resourcePool = resourcePool; this.network = network; this.leftPrgs = new ArrayList<>(); this.rightPrgs = new ArrayList<>(); this.helper = new MultiplyRightHelper(resourcePool, network, otherId); seedPrgs(helper.generateSeeds(1, resourcePool.getLambdaSecurityParam())); }