emp-toolkit
ot.h
Go to the documentation of this file.
1 #ifndef OT_H__
2 #define OT_H__
3 #include <emp-tool/emp-tool.h>
4 
5 template<typename T>
6 class OT {
7 public:
8  OT(NetIO * nio): io(nio){};
9  NetIO* io = nullptr;
10  void send(const block* data0, const block* data1, int length) {
11  static_cast<T*>(this)->send_impl(data0, data1, length);
12  }
13  void recv(block* data, const bool* b, int length) {
14  static_cast<T*>(this)->recv_impl(data, b, length);
15  }
16 };
17 #endif// OT_H__
__m128i block
Definition: block.h:8
void send(const block *data0, const block *data1, int length)
Definition: ot.h:10
Definition: net_io_channel.h:22
NetIO * io
Definition: ot.h:9
void recv(block *data, const bool *b, int length)
Definition: ot.h:13
Definition: ot.h:6
OT(NetIO *nio)
Definition: ot.h:8