/** * Act as receiver in a 1-out-of-2 OT. * * @param choiceBit * The bit representing choice of message. False represents 0 and * true represents 1. */ @Override public StrictBitVector receive(boolean choiceBit) { if (this.receiver == null) { RotReceiver receiver = rot.createReceiver(); this.receiver = new BristolOtReceiver(receiver, resources, network, batchSize); } byte[] res = receiver.receive(choiceBit); return new StrictBitVector(res); } }