From 162ed71e725fab63918cb2af8844c7ad198b8312 Mon Sep 17 00:00:00 2001 From: Ebrahim Songhori Date: Wed, 21 Oct 2015 16:04:41 -0500 Subject: [PATCH] fix options in TinyGarble --- README.md | 10 ++++------ garbled_circuit/garbled_circuit_main.cpp | 4 ++-- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index ca7ad0d..86d2189 100644 --- a/README.md +++ b/README.md @@ -112,10 +112,8 @@ 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. @@ -123,8 +121,8 @@ description (`.scd`) file. 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. ``` diff --git a/garbled_circuit/garbled_circuit_main.cpp b/garbled_circuit/garbled_circuit_main.cpp index c8ac835..55d6e45 100644 --- a/garbled_circuit/garbled_circuit_main.cpp +++ b/garbled_circuit/garbled_circuit_main.cpp @@ -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(&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(&output_mode)->default_value(0), "0: normal, 1:separated by clock 2:last clock.");