mirror of
https://github.com/data61/MP-SPDZ.git
synced 2026-01-10 22:17:57 -05:00
34 lines
482 B
C++
34 lines
482 B
C++
/*
|
|
* YaoEvalInput.h
|
|
*
|
|
*/
|
|
|
|
#ifndef YAO_YAOEVALINPUT_H_
|
|
#define YAO_YAOEVALINPUT_H_
|
|
|
|
#include "YaoEvaluator.h"
|
|
|
|
class YaoEvalInput : public InputterBase
|
|
{
|
|
public:
|
|
YaoEvaluator& evaluator;
|
|
BitVector inputs;
|
|
int i_bit;
|
|
octetStream os;
|
|
|
|
YaoEvalInput() :
|
|
evaluator(YaoEvaluator::s())
|
|
{
|
|
inputs.resize(0);
|
|
i_bit = 0;
|
|
}
|
|
|
|
void exchange()
|
|
{
|
|
evaluator.ot_ext.extend_correlated(inputs.size(), inputs);
|
|
evaluator.player.receive(os);
|
|
}
|
|
};
|
|
|
|
#endif /* YAO_YAOEVALINPUT_H_ */
|