Skip to content

Commit

Permalink
fix options in TinyGarble
Browse files Browse the repository at this point in the history
  • Loading branch information
esonghori committed Oct 21, 2015
1 parent e0d58a2 commit 162ed71
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,19 +112,17 @@ description (`.scd`) file.
-p [ --port ] arg (=1234) socket port
-s [ --server_ip ] arg (=127.0.0.1) Server's (Alice's) IP, required when
running as Bob.
--init arg Hexadecimal init for initializing DFFs,
if not provided, it will be random.
--input arg Hexadecimal input, if not provided, it
will be random.
--init arg (=0) Hexadecimal init for initializing DFFs.
--input arg (=0) Hexadecimal input.
--clock_cycles arg (=1) Number of clock cycles to evaluate the
circuit.
--dump_directory arg Directory for dumping memory hex files.
--disable_OT Disable Oblivious Transfer (OT) for
transferring labels. WARNING: OT is
crucial for GC security.
--output_mask arg (=0) Hexadecimal mask for output. 0
indicates that output belongs to Alice,
and 1 belongs to Bob
indicates that output belongs to Bob,
and 1 belongs to Alice.
--output_mode arg (=0) 0: normal, 1:separated by clock 2:last
clock.
```
Expand Down
4 changes: 2 additions & 2 deletions garbled_circuit/garbled_circuit_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ int main(int argc, char* argv[]) {
("disable_OT", "Disable Oblivious Transfer (OT) for transferring labels. "
"WARNING: OT is crucial for GC security.") //
("output_mask", po::value<string>(&output_mask)->default_value("0"),
"Hexadecimal mask for output. 0 indicates that output belongs to Alice, "
"and 1 belongs to Bob ") //
"Hexadecimal mask for output. 0 indicates that output belongs to Bob, "
"and 1 belongs to Alice.") //
("output_mode", po::value<int>(&output_mode)->default_value(0),
"0: normal, 1:separated by clock 2:last clock.");

Expand Down

0 comments on commit 162ed71

Please sign in to comment.