betteryao/obsolete/GarbledMal.cpp
void GarbledMal::initialize_eval_circuit(const std::vector<Bytes> &ot_keys, const Bytes &masked_gen_inp, const Bytes &evl_inp){
  m_ot_keys = &ot_keys;
  m_gen_inp_mask = masked_gen_inp; // do we really need to mask Gen's input?
  m_evl_inp = evl_inp;


  // Eval has to figure out the outputs for both Gen and Eval,
  // so the output buffers are reserved and cleared here in preparation
  m_evl_out.reserve(MAX_OUTPUT_SIZE); // MAX_OUTPUT_SIZE in GarbledBase.h
  m_evl_out.clear(); // will grow dynamically
  m_gen_out.reserve(MAX_OUTPUT_SIZE);
  m_gen_out.clear(); // will grow dynamically

}
/**
   To initialize an evaluation circuit, we need to
   - set the OT keys
   - set Eval's input
   - set Gen's masked input (why?)
   - and clear the circuit's output buffers
   Eval calls this function for her evaluation circuits.
 */
To initialize an evaluation circuit, we need to
set the OT keys
set Eval's input
set Gen's masked input (why?)
and clear the circuit's output buffers
Eval calls this function for her evaluation circuits.
To initialize an evaluation circuit we need to set the OT keys set Eval ' s input set Gen ' s masked input ( why? ) and clear the circuit ' s output buffers Eval calls this function for her evaluation circuits .
void GarbledMal::initialize_eval_circuit(const std::vector<Bytes> &ot_keys, const Bytes &masked_gen_inp, const Bytes &evl_inp){
  m_ot_keys = &ot_keys;
  m_gen_inp_mask = masked_gen_inp; 
  m_evl_inp = evl_inp;
  m_evl_out.reserve(MAX_OUTPUT_SIZE); 
  m_evl_out.clear(); 
  m_gen_out.reserve(MAX_OUTPUT_SIZE);
  m_gen_out.clear(); 
}
void GarbledMal :: initialize_eval_circuit ( const std :: vector < Bytes > & ot_keys , const Bytes & masked_gen_inp , const Bytes & evl_inp ) { m_ot_keys = & ot_keys ; m_gen_inp_mask = masked_gen_inp ; m_evl_inp = evl_inp ; m_evl_out . reserve ( MAX_OUTPUT_SIZE ) ; m_evl_out . clear ( ) ; m_gen_out . reserve ( MAX_OUTPUT_SIZE ) ; m_gen_out . clear ( ) ; }
To initialize an evaluation circuit, we need to
 set the OT keys
 set Eval's input
 set Gen's masked input (why?)
To initialize an evaluation circuit we need to set the OT keys set Eval ' s input set Gen ' s masked input ( why? )
// do we really need to mask Gen's input? // Eval has to figure out the outputs for both Gen and Eval, // so the output buffers are reserved and cleared here in preparation // MAX_OUTPUT_SIZE in GarbledBase.h // will grow dynamically // will grow dynamically