ABY Framework  1.0
Arithmetic Bool Yao Framework
 All Classes Files Functions Variables Enumerations Enumerator Macros
euclidean_dist.h
Go to the documentation of this file.
1 
19 #ifndef __EUCLIDEAN_DIST_H_
20 #define __EUCLIDEAN_DIST_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 
41 int32_t test_euclid_dist_circuit(e_role role, char* address, seclvl seclvl,
42  uint32_t nvals, uint32_t bitlen, uint32_t nthreads, e_mt_gen_alg mt_alg,
43  e_sharing sharing);
44 
54 share* BuildEuclidDistanceCircuit(share *s_x1, share *s_x2, share *s_y1,
55  share *s_y2, BooleanCircuit *bc);
56 
57 static uint32_t m_nBitLength;
58 
59 #endif /* __EUCLIDEAN_DIST_H_ */
Definition: booleancircuits.h:27
share * BuildEuclidDistanceCircuit(share *s_x1, share *s_x2, share *s_y1, share *s_y2, BooleanCircuit *bc)
This function is used to build and find the Euclidean Distance.
Definition: euclidean_dist.cpp:128
int32_t test_euclid_dist_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 finding the Euclidean Distance...
Definition: euclidean_dist.cpp:21
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
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