Browse Source

Expose a routine to reset the counts of precomputed values used

Ian Goldberg 2 years ago
parent
commit
ee02e44109
1 changed files with 8 additions and 0 deletions
  1. 8 0
      mpcio.hpp

+ 8 - 0
mpcio.hpp

@@ -237,6 +237,14 @@ struct MPCPeerIO : public MPCIO {
         }
         os << "\n";
     }
+
+    void reset_precomp_stats()
+    {
+        for (size_t i=0; i<triples.size(); ++i) {
+            triples[i].reset_stats();
+            halftriples[i].reset_stats();
+        }
+    }
 };
 
 // A class to represent all of the server party's IO, either to