jnayak1 / kmp-mpc

Knuth Morris Pratt Multi-Party Computation
5 stars 4 forks source link

Running #2

Open thiline opened 3 years ago

thiline commented 3 years ago

Could you please explain a bit how to run this ? Thank you

jnayak1 commented 3 years ago

Hey I just saw this. I haven't run it for over 3 years. Let me see if I can get it running again.

jnayak1 commented 3 years ago

@thiline were you able to follow the instructions at the bottom of the README? Let me know if you need any additional info

thiline commented 3 years ago

@thiline were you able to follow the instructions at the bottom of the README? Let me know if you need any additional info

I could not follow that instruction. I would like to have additional info how to run the commands in Running section.

thiline commented 3 years ago

@jnayak1 When I tried to follow the instructions at the bottom I got below messages. Could you please help me with this how to run it correctly and get the expected output ? Thank you

parallels@parallels-Parallels-Virtual-Platform:~/SMPC/kmp-mpc/kmp-mpc$ ./a.out 1234 -- text.txt & [1] 4220 parallels@parallels-Parallels-Virtual-Platform:~/SMPC/kmp-mpc/kmp-mpc$ ./a.out 1234 localhost pattern.txt [1]+ Segmentation fault (core dumped) ./a.out 1234 -- text.txt Segmentation fault (core dumped)

jnayak1 commented 3 years ago

@thiline Obliv-C and sqrtOram are prerequisites. Did you get those up and running and confirm they are working? After that, you need to export the path to them

jnayak1 commented 3 years ago

Make sure you can run the test programs found in https://github.com/samee/obliv-c/tree/obliv-c/test/oblivc first

jnayak1 commented 3 years ago

I'll try to see if I can dockerize this. I have some time today so I will work on getting it running.

jnayak1 commented 3 years ago

https://github.com/samee/sqrtOram/issues/5

I see that you were able to run sqrtOram. I am having the same difficulty referenced in this issue. How'd you solve it?

jnayak1 commented 3 years ago

Never mind. I just cloned https://github.com/drn98/sqrtOram instead. Now when I run kmp-mpc, I am getting the same segmentation fault you are. I put some fprintf messages in the programs and it looks like it is failing when creating the oram. This is the line that is failing: https://github.com/jnayak1/kmp-mpc/blob/master/kmp.oc#L28