Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example not working #14

Open
jagsousa opened this issue Nov 20, 2018 · 1 comment
Open

Example not working #14

jagsousa opened this issue Nov 20, 2018 · 1 comment

Comments

@jagsousa
Copy link

jagsousa commented Nov 20, 2018

Hi,

I just tried compiling/running the code, but the provided example fails.

./TinyGarble --alice --scd_file bin/scd/netlists/hamming_32bit_32cc.scd --input FF55AA77 --log2std

garbled_circuit_main.cpp:268 INFO: Open Alice's server on port: 1234
scd.cpp:49 ERROR: can't open bin/scd/netlists/hamming_32bit_32cc.scd
garbled_circuit.cpp:64 ERROR: Error while reading scd file: bin/scd/netlists/hamming_32bit_32cc.scd
garbled_circuit_main.cpp:279 ERROR: GarbleStr(scd_file_address, p_init_str, p_input_str, init_str, input_str, clock_cycles, output_mask, terminate_period, output_mode, disable_OT, low_mem_foot, &output_str, connfd) failed

Note
The ctest -Vworks!

Any idea what could be the problem?

@siamumar
Copy link
Collaborator

The relative location for the SCD file is wrong. If you are running it as "./TinyGarble", that means you are in the "bin/garbled_circuit" directory. So the correct location is "../scd/netlists/hamming_32bit_32cc.scd".

Also, as the name suggests, this scd file needs to be run for 32 cycles. Please use "-c 32".

./TinyGarble --alice --scd_file ../scd/netlists/hamming_32bit_32cc.scd --input FF55AA77 -c 32 --log2std

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants