<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.cryptography.viff.patches">
    <title>gmane.comp.cryptography.viff.patches</title>
    <link>http://blog.gmane.org/gmane.comp.cryptography.viff.patches</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/161"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/159"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/157"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/154"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/141"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/161">
    <title>[Fwd: [PATCH 1 of 1] Added computation-id option]</title>
    <link>http://comments.gmane.org/gmane.comp.cryptography.viff.patches/161</link>
    <description>&lt;pre&gt;

-------- Original Message --------
Subject: [PATCH 1 of 1] Added computation-id option
Date: Wed, 04 Aug 2010 12:17:43 -0000
From: Thomas P Jakobsen &amp;lt;tpj&amp;lt; at &amp;gt;cs.au.dk&amp;gt;
To: mkeller&amp;lt; at &amp;gt;cs.au.dk
CC: ttoft&amp;lt; at &amp;gt;cs.au.dk
References: &amp;lt;patchbomb.1280924262&amp;lt; at &amp;gt;dhcp-11-67-32.daimi.au.dk&amp;gt;

# HG changeset patch
# User Tomas Toft &amp;lt;ttoft&amp;lt; at &amp;gt;cs.au.dk&amp;gt;
# Date 1280227043 -7200
# Node ID 7c45463151f482ff75bbd877dad3509e8f9cb3c9
# Parent  e7b2fe7eb75319e2f60cc292b0d68fe568d394ab
Added computation-id option.

This changeset adds a command line option to VIFF allowing users to
specify a computation id.

Prior to this changeset, any computation involving pseudo-random
secret sharing (which for the time being boils down to computations
done with the PassiveRuntime) could only be run one time using the
same set of VIFF player configuration files. If more than one
computation was executed with the same set of configuration files, the
security of the system would be broken.

With this changeset, multiple computations can be run securely with
the same set of configuration files as long as each computation is run
with a unique computation id.

diff -r e7b2fe7eb753 -r 7c45463151f4 viff/runtime.py
--- a/viff/runtime.pyThu Jul 29 15:58:52 2010 +0200
+++ b/viff/runtime.pyTue Jul 27 12:37:23 2010 +0200
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -536,6 +536,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
                           "multiple times on the command line; the 
first will "
                           "override host and port of player 1, the 
second that "
                           "of player 2, and so forth.")
+        group.add_option("--computation-id", type="int", metavar="ID",
+                         help="Set the (positive, integer) ID for this "
+                               "computation. Must be unique to ensure "
+                               "security.")

          try:
              # Using __import__ since we do not use the module, we are
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -551,7 +555,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
                              deferred_debug=False,
                              profile=False,
                              track_memory=False,
-                            statistics=False)
+                            statistics=False,
+                            computation_id=None)

      def __init__(self, player, threshold, options=None):
          """Initialize runtime.
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -585,7 +590,12 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
          self._needed_data = {}

          #: Current program counter.
-        self.program_counter = [0]
+        __comp_id = self.options.computation_id
+        if __comp_id is None:
+            __comp_id = 0
+        else:
+            assert __comp_id &amp;gt;0, "Non-positive ID: %d." % __comp_id
+        self.program_counter = [__comp_id, 0]

          #: Connections to the other players.
          #:
&lt;/pre&gt;</description>
    <dc:creator>Marcel Keller</dc:creator>
    <dc:date>2010-08-04T12:28:21</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/159">
    <title>[PATCH 0 of 1] Command line arguments for host andport.</title>
    <link>http://comments.gmane.org/gmane.comp.cryptography.viff.patches/159</link>
    <description>&lt;pre&gt;Here's a patch that allows users to specify player host and port
numbers via the command line.

If theres no objections, I'll push this change into VIFF in a couple
of days.

Regards,
Thomas
&lt;/pre&gt;</description>
    <dc:creator>Thomas P Jakobsen</dc:creator>
    <dc:date>2010-04-13T18:15:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/157">
    <title>[PATCH] Added option to avoid retrying to connect ifsocket isalready in use</title>
    <link>http://comments.gmane.org/gmane.comp.cryptography.viff.patches/157</link>
    <description>&lt;pre&gt;# HG changeset patch
# User Thomas P Jakobsen &amp;lt;tpj&amp;lt; at &amp;gt;cs.au.dk&amp;gt;
# Date 1263974081 -3600
# Node ID 2324d01c74e2c35b5bb6cb4d7bda1304a376b066
# Parent  efa1983063d62a8115949a7e63d5ad4e5a23a791
Added option to avoid retrying to connect if socket is already in use.

In some situations it turns out to be more convenient to have VIFF
throw an exception rather than keep retrying to connect to a socket
with exponentially increasing delays. This is now possible using the
new command line parameter --no-socket-retry.

diff -r efa1983063d6 -r 2324d01c74e2 viff/runtime.py
--- a/viff/runtime.pyThu Jan 14 11:36:13 2010 +0100
+++ b/viff/runtime.pyWed Jan 20 08:54:41 2010 +0100
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -525,6 +525,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
                          help="Collect and print profiling information.")
         group.add_option("--track-memory", action="store_true",
                          help="Track memory usage over time.")
+        group.add_option("--no-socket-retry", action="store_true",
+                         default=False, help="Fail rather than keep retrying "
+                         "to connect if port is already in use.")
 
         try:
             # Using __import__ since we do not use the module, we are
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1068,6 +1071,8 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
         try:
             runtime.port = listen(port)
         except CannotListenError, e:
+            if options and options.no_socket_retry:
+                raise
             delay *= 1 + rand.random()
             print "Error listening on port %d: %s" % (port, e.socketError[1])
             print "Will try again in %d seconds" % delay
&lt;/pre&gt;</description>
    <dc:creator>Thomas P Jakobsen</dc:creator>
    <dc:date>2010-01-20T07:56:34</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/154">
    <title>[PATCH] Added option to avoid retrying to connect ifsocket isalready in use</title>
    <link>http://comments.gmane.org/gmane.comp.cryptography.viff.patches/154</link>
    <description>&lt;pre&gt;# HG changeset patch
# User Thomas P Jakobsen &amp;lt;tpj&amp;lt; at &amp;gt;cs.au.dk&amp;gt;
# Date 1263939336 -3600
# Node ID 0b1e6cf3f57efe5a3b320897da636a6e2ebb2bdf
# Parent  efa1983063d62a8115949a7e63d5ad4e5a23a791
Added option to avoid retrying to connect if socket is already in use.

In some situations it turns out to be more convenient to have VIFF
throw an exception rather than keep retrying to connect to a socket
with exponentially increasing delays. This is now possible using the
new command line parameter --no-socket-retry.

diff -r efa1983063d6 -r 0b1e6cf3f57e viff/runtime.py
--- a/viff/runtime.pyThu Jan 14 11:36:13 2010 +0100
+++ b/viff/runtime.pyTue Jan 19 23:15:36 2010 +0100
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -525,6 +525,10 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
                          help="Collect and print profiling information.")
         group.add_option("--track-memory", action="store_true",
                          help="Track memory usage over time.")
+        group.add_option("--no-socket-retry", action="store_false",
+                         dest="socket_retry", default=True,
+                         help="Fail rather than keep retrying to connect "
+                              "if port is already in use.")
 
         try:
             # Using __import__ since we do not use the module, we are
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -1060,18 +1064,21 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt;
         connect = lambda host, port: reactor.connectTCP(host, port, factory)
 
     port = players[id].port
-    runtime.port = None
-    delay = 2
-    while runtime.port is None:
-        # We keep trying to listen on the port, but with an
-        # exponentially increasing delay between each attempt.
-        try:
-            runtime.port = listen(port)
-        except CannotListenError, e:
-            delay *= 1 + rand.random()
-            print "Error listening on port %d: %s" % (port, e.socketError[1])
-            print "Will try again in %d seconds" % delay
-            time.sleep(delay)
+    if options and options.socket_retry:
+        runtime.port = None
+        delay = 2
+        while runtime.port is None:
+            # We keep trying to listen on the port, but with an
+            # exponentially increasing delay between each attempt.
+            try:
+                runtime.port = listen(port)
+            except CannotListenError, e:
+                delay *= 1 + rand.random()
+                print "Error listening on port %d: %s" % (port, e.socketError[1])
+                print "Will try again in %d seconds" % delay
+                time.sleep(delay)
+    else:
+        runtime.port = listen(port)
     print "Listening on port %d" % port
 
     for peer_id, player in players.iteritems():
&lt;/pre&gt;</description>
    <dc:creator>Thomas P Jakobsen</dc:creator>
    <dc:date>2010-01-19T22:18:59</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.cryptography.viff.patches/141">
    <title>[PATCH 00 of 20] Implementation of the Orlandiruntime</title>
    <link>http://comments.gmane.org/gmane.comp.cryptography.viff.patches/141</link>
    <description>&lt;pre&gt;Hi friends of VIFF,

This pathcbomb contains three contributions

1) I have made it possible for a player to send and expect data from him self. This simplifies the implementation of the broadcast protocol I have implemented for the Orlandi runtime

2) An implementation of the Orlandi runtime. I have decided not to include the code for the commitment scheme yet, since it uses propriatary code

3) A refactoring and improvement of the benchmark.py application


Please review the code.

--
Janus
&lt;/pre&gt;</description>
    <dc:creator>Janus Dam Nielsen</dc:creator>
    <dc:date>2009-10-06T08:09:50</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.cryptography.viff.patches">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.cryptography.viff.patches</link>
  </textinput>
</rdf:RDF>

