ABY Framework  1.0
Arithmetic Bool Yao Framework
 All Classes Files Functions Variables Enumerations Enumerator Macros
abytest.h
Go to the documentation of this file.
1 
19 #ifndef MAINS_ABYTEST_H_
20 #define MAINS_ABYTEST_H_
21 
22 #include <stdio.h>
23 #include <stdlib.h>
24 #include <time.h>
25 #include "../abycore/util/typedefs.h"
26 #include "../abycore/util/crypto/crypto.h"
27 #include "../abycore/aby/abyparty.h"
28 #include "../abycore/util/timer.h"
29 #include "../abycore/util/parse_options.h"
30 #include "../abycore/sharing/sharing.h"
31 #include "../examples/psi_scs/common/sort_compare_shuffle.h"
32 #include "../examples/psi_phasing/common/phasing_circuit.h"
33 #include "../examples/aes/common/aescircuit.h"
34 #include "../examples/min-euclidean-dist/common/min-euclidean-dist-circuit.h"
35 
36 typedef struct {
37  e_operation op;
38  e_sharing sharing;
39  string opname;
40 
41 } test_ops_t;
42 
43 bool run_tests(e_role role, char* address, seclvl seclvl, uint32_t bitlen, uint32_t nvals, uint32_t nthreads, e_mt_gen_alg mt_alg, int32_t testop, bool verbose);
44 
45 int32_t read_test_options(int32_t* argcp, char*** argvp, e_role* role, uint32_t* bitlen, uint32_t* nreps, uint32_t* secparam, string* address, uint16_t* port, int32_t* test_op,
46  bool* verbose);
47 
48 int32_t test_standard_ops(test_ops_t* test_ops, ABYParty* party, uint32_t bitlen, uint32_t num_test_runs,
49  uint32_t nops, e_role role, bool verbose);
50 
51 int32_t test_vector_ops(test_ops_t* test_ops, ABYParty* party, uint32_t nvals, uint32_t bitlen,
52  uint32_t num_test_runs, uint32_t nops, e_role role, bool verbose);
53 
54 string get_op_name(e_operation op);
55 
56 #endif /* MAINS_ABYTEST_H_ */
Definition: abytest.h:36
Definition: abyparty.h:52
e_mt_gen_alg
Enumeration which defines the method that is used for arithmetic multiplication triple generation...
Definition: constants.h:55
e_role
Defines the role of the party or the source / target for certain operations (e.g., input/output)
Definition: constants.h:139
Definition: typedefs.h:79
e_sharing
Enumeration which defines the different sharing which are there in the framework. ...
Definition: constants.h:124
e_operation
Enumeration which defines all the operations which are there in the framework.
Definition: constants.h:91