SFE.BOAL
Class OT

java.lang.Object
  extended by SFE.BOAL.OT

public class OT
extends java.lang.Object


Field Summary
static int NBYTESG
           
 
Constructor Summary
OT(int ot_type)
           
 
Method Summary
static void ChooserOTs(Circuit c, Formatter f, OT ot, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          This routine prepares a vector of OTs for the chooser, executes them, and places their results in the circuit
 void executeChooserOTs_BOT(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
           
 void executeChooserOTs_BOTBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
           
 void executeChooserOTs_EG_NOC(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeChooserOTs_EG_NOC: El-Gamal OT + No Object Communication
 void executeChooserOTs_EG(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeChooserOTs_EG: El-Gamal OT
 void executeChooserOTs_EGBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeChooserOTs_EGBatch: El-Gamal OTs + communication batching
 void executeChooserOTs_EGNP(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeChooserOTs_EGNP: El-Gamal OT + Naor-Pinkas opt
 void executeChooserOTs_EGNPBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeChooserOTs_EGNPBatch: El-Gamal OTs + Naor-Pinkas opt + communication batching
 void executeChooserOTs_EGNPOcomBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeChooserOTs_EGNPOcomBatch: Only communication alla EG+NP+ communication batching
 void executeChooserOTs_EGOcomBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeChooserOTs_EGOcomBatch: Only communication alla El-Gamal + communication batching
 void executeChooserOTs_PlainBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeChooserOTs_PlainBatch: no real OT + communication batching
 void executeChooserOTs(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeChooserOTs:
 void executeSenderOTs_BOT(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
           
 void executeSenderOTs_BOTBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
           
 void executeSenderOTs_EG_NOC(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeSenderOTs_EG_NOC: El-Gamal OT + No Object Communication
 void executeSenderOTs_EG(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeSenderOTs_EG: El-Gamal OT
 void executeSenderOTs_EGBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeSenderOTs_EGBatch: El-Gamal OTs + communication batching
 void executeSenderOTs_EGNP(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeSenderOTs_EGNP: El-Gamal OT + Naor-Pinkas opt
 void executeSenderOTs_EGNPBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeSenderOTs_EGNPBatch: El-Gamal OTs + Naor-Pinkas opt + communication batching
 void executeSenderOTs_EGNPOcomBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeSenderOTs_EGNPOcomBatch: Only communication alla EG+NP communication batching
 void executeSenderOTs_EGOcomBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeSenderOTs_EGOcomBatch: Only communication alla El-Gamal+ communication batching
 void executeSenderOTs_PlainBatch(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeSenderOTs_PlainBatch: no real OT + communication batching
 void executeSenderOTs(java.util.Vector v, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          executeSenderOTs:
static void SenderOTs(Circuit c, Formatter f, OT ot, java.io.ObjectOutputStream oos, java.io.ObjectInputStream ois)
          This routine prepares a vector of OTs for the sender, and executes them.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NBYTESG

public static final int NBYTESG
See Also:
Constant Field Values
Constructor Detail

OT

public OT(int ot_type)
Method Detail

ChooserOTs

public static void ChooserOTs(Circuit c,
                              Formatter f,
                              OT ot,
                              java.io.ObjectOutputStream oos,
                              java.io.ObjectInputStream ois)
This routine prepares a vector of OTs for the chooser, executes them, and places their results in the circuit

Parameters:
c - a gate-level circuit
f - I/O format for the circuit
ot - controls what type of OT to do
oos - for outgoing communication
ois - for incoming communication

SenderOTs

public static void SenderOTs(Circuit c,
                             Formatter f,
                             OT ot,
                             java.io.ObjectOutputStream oos,
                             java.io.ObjectInputStream ois)
This routine prepares a vector of OTs for the sender, and executes them.

Parameters:
c - a gate-level circuit
f - I/O format for the circuit
ot - controls what type of OT to do
oos - for outgoing communication
ois - for incoming communication

executeChooserOTs

public void executeChooserOTs(java.util.Vector v,
                              java.io.ObjectOutputStream oos,
                              java.io.ObjectInputStream ois)
executeChooserOTs:

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeSenderOTs

public void executeSenderOTs(java.util.Vector v,
                             java.io.ObjectOutputStream oos,
                             java.io.ObjectInputStream ois)
executeSenderOTs:

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Chooser
ois - ObjectOutputStream to receive messages from Chooser

executeChooserOTs_EG

public void executeChooserOTs_EG(java.util.Vector v,
                                 java.io.ObjectOutputStream oos,
                                 java.io.ObjectInputStream ois)
executeChooserOTs_EG: El-Gamal OT

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeSenderOTs_EG

public void executeSenderOTs_EG(java.util.Vector v,
                                java.io.ObjectOutputStream oos,
                                java.io.ObjectInputStream ois)
executeSenderOTs_EG: El-Gamal OT

Parameters:
v - Vector of OT task to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeChooserOTs_EGBatch

public void executeChooserOTs_EGBatch(java.util.Vector v,
                                      java.io.ObjectOutputStream oos,
                                      java.io.ObjectInputStream ois)
executeChooserOTs_EGBatch: El-Gamal OTs + communication batching

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeSenderOTs_EGBatch

public void executeSenderOTs_EGBatch(java.util.Vector v,
                                     java.io.ObjectOutputStream oos,
                                     java.io.ObjectInputStream ois)
executeSenderOTs_EGBatch: El-Gamal OTs + communication batching

Parameters:
v - Vector of OT task to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeChooserOTs_EGNP

public void executeChooserOTs_EGNP(java.util.Vector v,
                                   java.io.ObjectOutputStream oos,
                                   java.io.ObjectInputStream ois)
executeChooserOTs_EGNP: El-Gamal OT + Naor-Pinkas opt

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeSenderOTs_EGNP

public void executeSenderOTs_EGNP(java.util.Vector v,
                                  java.io.ObjectOutputStream oos,
                                  java.io.ObjectInputStream ois)
executeSenderOTs_EGNP: El-Gamal OT + Naor-Pinkas opt

Parameters:
v - Vector of OT task to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeChooserOTs_EGNPBatch

public void executeChooserOTs_EGNPBatch(java.util.Vector v,
                                        java.io.ObjectOutputStream oos,
                                        java.io.ObjectInputStream ois)
executeChooserOTs_EGNPBatch: El-Gamal OTs + Naor-Pinkas opt + communication batching

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeSenderOTs_EGNPBatch

public void executeSenderOTs_EGNPBatch(java.util.Vector v,
                                       java.io.ObjectOutputStream oos,
                                       java.io.ObjectInputStream ois)
executeSenderOTs_EGNPBatch: El-Gamal OTs + Naor-Pinkas opt + communication batching

Parameters:
v - Vector of OT task to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeChooserOTs_PlainBatch

public void executeChooserOTs_PlainBatch(java.util.Vector v,
                                         java.io.ObjectOutputStream oos,
                                         java.io.ObjectInputStream ois)
executeChooserOTs_PlainBatch: no real OT + communication batching

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeSenderOTs_PlainBatch

public void executeSenderOTs_PlainBatch(java.util.Vector v,
                                        java.io.ObjectOutputStream oos,
                                        java.io.ObjectInputStream ois)
executeSenderOTs_PlainBatch: no real OT + communication batching

Parameters:
v - Vector of OT task to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeChooserOTs_EGOcomBatch

public void executeChooserOTs_EGOcomBatch(java.util.Vector v,
                                          java.io.ObjectOutputStream oos,
                                          java.io.ObjectInputStream ois)
executeChooserOTs_EGOcomBatch: Only communication alla El-Gamal + communication batching

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeSenderOTs_EGOcomBatch

public void executeSenderOTs_EGOcomBatch(java.util.Vector v,
                                         java.io.ObjectOutputStream oos,
                                         java.io.ObjectInputStream ois)
executeSenderOTs_EGOcomBatch: Only communication alla El-Gamal+ communication batching

Parameters:
v - Vector of OT task to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeChooserOTs_EGNPOcomBatch

public void executeChooserOTs_EGNPOcomBatch(java.util.Vector v,
                                            java.io.ObjectOutputStream oos,
                                            java.io.ObjectInputStream ois)
executeChooserOTs_EGNPOcomBatch: Only communication alla EG+NP+ communication batching

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeSenderOTs_EGNPOcomBatch

public void executeSenderOTs_EGNPOcomBatch(java.util.Vector v,
                                           java.io.ObjectOutputStream oos,
                                           java.io.ObjectInputStream ois)
executeSenderOTs_EGNPOcomBatch: Only communication alla EG+NP communication batching

Parameters:
v - Vector of OT task to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeChooserOTs_EG_NOC

public void executeChooserOTs_EG_NOC(java.util.Vector v,
                                     java.io.ObjectOutputStream oos,
                                     java.io.ObjectInputStream ois)
executeChooserOTs_EG_NOC: El-Gamal OT + No Object Communication

Parameters:
v - Vector of OT tasks to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeSenderOTs_EG_NOC

public void executeSenderOTs_EG_NOC(java.util.Vector v,
                                    java.io.ObjectOutputStream oos,
                                    java.io.ObjectInputStream ois)
executeSenderOTs_EG_NOC: El-Gamal OT + No Object Communication

Parameters:
v - Vector of OT task to do
oos - ObjectOutputStream to send messages to Sender
ois - ObjectOutputStream to receive messages from Sender

executeChooserOTs_BOT

public void executeChooserOTs_BOT(java.util.Vector v,
                                  java.io.ObjectOutputStream oos,
                                  java.io.ObjectInputStream ois)

executeSenderOTs_BOT

public void executeSenderOTs_BOT(java.util.Vector v,
                                 java.io.ObjectOutputStream oos,
                                 java.io.ObjectInputStream ois)

executeChooserOTs_BOTBatch

public void executeChooserOTs_BOTBatch(java.util.Vector v,
                                       java.io.ObjectOutputStream oos,
                                       java.io.ObjectInputStream ois)

executeSenderOTs_BOTBatch

public void executeSenderOTs_BOTBatch(java.util.Vector v,
                                      java.io.ObjectOutputStream oos,
                                      java.io.ObjectInputStream ois)