[viff-devel] Multiparty AES in less than 3 seconds per block thanks to Twisted hack

Marcel Keller mkeller at cs.au.dk
Mon Mar 2 06:22:33 PST 2009


Hi friends of VIFF,

I've now implemented the hack I mentioned at the last SIMAP/CACE 
meeting. The quintessence of the hack is that we do network 
communication every time a multiplication or open operation is 
scheduled, not only after returning the control back to Twisted.

As you can see in the attached graphs, the results are much better and 
more accurate than without the hack. The graph also shows that inversion 
by masking still is slower than inversion by exponentiation. However, 
the gap is smaller because I optimized PRSS which is used more with 
masking than with exponentiation. I guess that masking is slower because 
it needs more local computation and the network latency between the test 
machines is quite low (about 0.1 ms), which increases the impact of 
local computations.

If you want to try out the hack yourself, you find two patches attached. 
One is against Twisted 8.2.0 and one against the current tip of my VIFF 
repository: http://hg.viff.dk/mkeller/rev/d522f9b14b49. The PRSS 
optimizations can also be found there.

Furthermore, a new version of the document describing the AES 
implementation is attached. It corrects various errors of the previous 
version.

Best regards,
Marcel


-------------- next part --------------
A non-text attachment was scrubbed...
Name: aes_with_hack.pdf
Type: application/pdf
Size: 10185 bytes
Desc: not available
URL: <http://lists.viff.dk/pipermail/viff-devel-viff.dk/attachments/20090302/282eb480/attachment-0003.pdf>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aes_without_hack.pdf
Type: application/pdf
Size: 10216 bytes
Desc: not available
URL: <http://lists.viff.dk/pipermail/viff-devel-viff.dk/attachments/20090302/282eb480/attachment-0004.pdf>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: twisted-hack.patch
URL: <http://lists.viff.dk/pipermail/viff-devel-viff.dk/attachments/20090302/282eb480/attachment-0002.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: viff-twisted-hack.patch
URL: <http://lists.viff.dk/pipermail/viff-devel-viff.dk/attachments/20090302/282eb480/attachment-0003.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aes.pdf
Type: application/pdf
Size: 56532 bytes
Desc: not available
URL: <http://lists.viff.dk/pipermail/viff-devel-viff.dk/attachments/20090302/282eb480/attachment-0005.pdf>


More information about the viff-devel mailing list