test readme.txt error
This is the result in README.txt
$ cd editdist
$ make
$ ./a.out
Port number missing
Usage: ./a.out
I tested the example in Reader.txt,but something wrong happened. I want to know what happened? emmm This is my result master:~/mpc/obliv-c/test/oblivc/editdist$ ./a.out 1234 -- leaf & [1] 47444 master:~/mpc/obliv-c/test/oblivc/editdist$ ./a.out 1234 localhost left Generator OT time: 0.132232 s Evaluator OT time: 0.132566 s 2244 Evaluator total time: 0.133091 s Result: -542695010 2244 Generator total time: 0.133033 s Result: -542695010
I honestly don't think I've ever seen that before. Did you get any other strange error during the build process? Do you see any changes if you run git diff?
Also, can you paste the output from running uname -a on your system? I just want to make sure this isn't related to some unusual system configuration I haven't seen before.
Thank you.I have solved it.I ran git diff and found the reason. I copied the file from windows OS and formats have problems.
Then I run this find /path/to/folder -type f -print0 | xargs -0 dos2unix
/mpc/obliv-c/test/oblivc/editdist$ ./a.out 1234 -- leaf & [5] 64186 swz@master:~/mpc/obliv-c/test/oblivc/editdist$ ./a.out 1234 localhost left Generator OT time: 0.131464 s Evaluator OT time: 0.131340 s 2252 Evaluator total time: 0.131673 s Result: 2 2252 Generator total time: 0.131994 s Result: 2 [5] Done
Is 2252 a PID? I had run the millon test example and wanted to read your source code about execYaoProtocol()function . But it seemed a little hard for me.haha. It's not as easy as it looks in the book. It's hard to find the steps to convert to the circuit, encrypt, send my x, send y via ot protocol and decrypt etc
master:~/mpc/obliv-c/test/oblivc/editdist$ uname -a Linux master 5.15.0-67-generic #74~20.04.1-Ubuntu SMP Wed Feb 22 14:52:34 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux