wangxiao1254 / flexsc Goto Github PK
View Code? Open in Web Editor NEWA Flexible Efficient Secure Computation Backend
License: Other
A Flexible Efficient Secure Computation Backend
License: Other
In FlexSC/test/oram/TestCircuitOramRec.java, after each write,
Flag.sw.startTotal();
client.write(client.baseOram.lib.toSignals(element), scData);
double t = Flag.sw.stopTotal();
Flag.sw.addCounter();
We increase the counter.
In FlexSC/src/util/StopWatch.java, the default value of the counter is:
long counter = 1;
flush()
also makes it back to 1.
However, to print the result:
System.out.println(elapsedTimeTotal / 1000000000.0 / counter + "\t"
So, if we do experiments for 128 writes, the result is the total divided by 129.
I am doing experiments for 10 writes (for very big input), the result is divided by 11 (kind of problematic).
It seems that Flag StopWatch with a counter is only used to measure the Circuit ORAM.
So I think I can submit a PR to reduce 1 counter increasement.
This also affects the ObliVMGC library because the code is the same. (maybe no need to fix that one)
https://github.com/oblivm/ObliVMGC/tree/master/java/com/oblivm/backend
I guess it is only for me... I tried to debug why output is not available, and finally, finally, found that result for runXXX.sh test example is not out if use CIRCUIT mode - there will be Null Pointer Exception.
So I guess to use OPT as the default mode in "FlexSC/Config.conf".
Or is there anything wrong with my environtment?
src/util/Reciever.java
-> Receiver
Guesses we need to change many files...
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.