/** * Send the serialized message from the current 1-out-of-2 OT. * * @param messageZero The message to send for choice zero * @param messageOne The message to send for choice one */ public void send(byte[] messageZero, byte[] messageOne) { // Check if there is still an unused random OT stored, if not, execute a // random OT extension if (offset < 0 || offset >= batchSize) { randomMessages = sender.extend(batchSize); offset = 0; } doActualSend(messageZero, messageOne); offset++; }