-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDefines.h
51 lines (37 loc) · 827 Bytes
/
Defines.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#pragma once
#include <cryptoTools/Common/Defines.h>
#include <cryptoTools/Common/Matrix.h>
#include <cryptoTools/Common/BitVector.h>
#include <cryptoTools/Crypto/PRNG.h>
#include <coproto/coproto.h>
namespace volePSI
{
using u64 = oc::u64;
using u32 = oc::u32;
using u16 = oc::u16;
using u8 = oc::u8;
using i64 = oc::i64;
using i32 = oc::i32;
using i16 = oc::i16;
using i8 = oc::i8;
using block = oc::block;
template<typename T>
using span = oc::span<T>;
template<typename T>
using Matrix = oc::Matrix<T>;
template<typename T>
using MatrixView = oc::MatrixView<T>;
enum Mode {
Sender = 1,
Receiver = 2
//Dual = 3
};
struct RequiredBase
{
u64 mNumSend;
oc::BitVector mRecvChoiceBits;
};
using PRNG = oc::PRNG;
using Socket = coproto::Socket;
using Proto = coproto::task<void>;
}