/** * Construct a sending party for an instance of the random OT extension protocol. * * @param snd * The correlated OT with error sender this protocol will use * @param resources * The common OT extension resources * @param network * The network to use */ public RotSenderImpl(CoteSender snd, OtExtensionResourcePool resources, Network network) { super(resources.getCoinTossing(), resources.getDigest(), resources .getComputationalSecurityParameter()); this.sender = snd; this.resources = resources; this.network = network; }
/** * Construct a receiving party for an instance of the random OT extension protocol. * * @param rec * The correlated OT with error receiver this protocol will use * @param resources * The common OT extension resources * @param network * The network to use */ public RotReceiverImpl(CoteReceiver rec, OtExtensionResourcePool resources, Network network) { super(resources.getCoinTossing(), resources.getDigest(), resources .getComputationalSecurityParameter()); this.receiver = rec; this.resources = resources; this.network = network; }