Skip to content

Latest commit

 

History

History

garbled

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
-*- outline -*-

* Baseline

mrossi@mac garbled % ./garbled -g -c ~/Documents/MultiPartyComputation/circuits/sha-256.txt -i 97
Circuit: #gates=236112, #wires=236624 n1=512, n2=0, n3=256
Input: 97
Listening for connections at :8080
Serving connetion from 127.0.0.1:60973
Labels:	428.786393ms
Garble:	1.150771941s
Xfer:	9.744741936s	27797kB
Result: 20481332157328876998068754042437324112747935216369862845079579784704323629189
Eval:	575.874463ms

* Fixed-key blockcipher

mrossi@mac garbled % ./garbled -g -c ~/Documents/MultiPartyComputation/circuits/sha-256.txt -i 97
Circuit: #gates=236112, #wires=236624 n1=512, n2=0, n3=256
Input: 97
Listening for connections at :8080
Serving connetion from 127.0.0.1:61995
Labels:	376.996328ms
Garble:	629.481624ms
Xfer:	9.559002307s	16267kB
Result: 20481332157328876998068754042437324112747935216369862845079579784704323629189
Eval:	282.217417ms

* bufio

% ./garbled -g -c ~/Documents/MultiPartyComputation/circuits/sha-256.txt -i 97
Circuit: #gates=236112, #wires=236624 n1=512, n2=0, n3=256
Input: 97
Listening for connections at :8080
New connection from 127.0.0.1:62168
Labels:	387.926306ms
Garble:	713.267007ms
Xfer:	562.177517ms	16267kB
Result: 20481332157328876998068754042437324112747935216369862845079579784704323629189
Eval:	242.450102ms

* sha256

Evaluator:

$ ./garbled -v -e -i 0 examples/sha256.mpcl

SHA256("")
0x e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

$ ./garbled -v -i 0x80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 examples/sha256.mpcl
Result[0]: 0xe3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

SHA256("ab")
0x fb8e20fc2e4c3f248c60c39bd652f3c1347298bb977b8b4d5903b85055620603

$ ./garbled -v -i 0x61628000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010 examples/sha256.mpcl
Result[0]: 0xfb8e20fc2e4c3f248c60c39bd652f3c1347298bb977b8b4d5903b85055620603