|
@@ -2,7 +2,7 @@
|
|
|
|
|
|
#include "types.hpp"
|
|
|
#include "duoram.hpp"
|
|
|
-#include "node.hpp"
|
|
|
+#include "bst.hpp"
|
|
|
|
|
|
|
|
|
|
|
@@ -196,12 +196,11 @@ std::tuple<RegXS, RegBS> insert(MPCTIO &tio, yield_t &yield, RegXS ptr, Node new
|
|
|
RegXS next_ptr;
|
|
|
mpc_select(tio, yield, next_ptr, gt, left, right, 32);
|
|
|
|
|
|
-
|
|
|
- CDPF dpf;
|
|
|
+ CDPF dpf = tio.cdpf(yield);
|
|
|
size_t &aes_ops = tio.aes_ops();
|
|
|
|
|
|
|
|
|
-
|
|
|
+ RegBS F_z = dpf.is_zero(tio, yield, next_ptr, aes_ops);
|
|
|
RegBS F_i;
|
|
|
|
|
|
if(tio.player()==0) {
|
|
@@ -273,6 +272,7 @@ void newnode(Node &a) {
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
|
void bst(MPCIO &mpcio,
|
|
|
const PRACOptions &opts, char **args)
|
|
|
{
|