ABY Framework  1.0
Arithmetic Bool Yao Framework
 All Classes Files Functions Variables Enumerations Enumerator Macros
millionaire_prob.h
Go to the documentation of this file.
1 
19 #ifndef __MILLIONAIREPROB_H_
20 #define __MILLIONAIREPROB_H_
21 
22 #include "../../../abycore/circuit/booleancircuits.h"
23 #include "../../../abycore/circuit/arithmeticcircuits.h"
24 #include "../../../abycore/circuit/circuit.h"
25 #include "../../../abycore/aby/abyparty.h"
26 #include <math.h>
27 #include <cassert>
28 
29 #define ALICE "ALICE"
30 #define BOB "BOB"
31 
44 int32_t test_millionaire_prob_circuit(e_role role, char* address, seclvl seclvl,
45  uint32_t nvals, uint32_t bitlen, uint32_t nthreads, e_mt_gen_alg mt_alg,
46  e_sharing sharing);
47 
55  BooleanCircuit *bc);
56 
57 
58 #endif /* __MILLIONAIREPROB_H_ */
Definition: booleancircuits.h:27
share * BuildMillionaireProbCircuit(share *s_alice, share *s_bob, BooleanCircuit *bc)
This function is used to build and solve the millionaire's problem.
Definition: millionaire_prob.cpp:118
e_mt_gen_alg
Enumeration which defines the method that is used for arithmetic multiplication triple generation...
Definition: constants.h:55
Definition: circuit.h:258
int32_t test_millionaire_prob_circuit(e_role role, char *address, seclvl seclvl, uint32_t nvals, uint32_t bitlen, uint32_t nthreads, e_mt_gen_alg mt_alg, e_sharing sharing)
This function is used for running a testing environment for solving the millionaire's problem...
Definition: millionaire_prob.cpp:21
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