viff

changeset 696:d344c748fa5e

Mark strings containing non-ASCII characters as Unicode strings. Also change the file encoding to UTF-8 since that gives us the least trouble when files are displayed on the web. Python 3.0 will solve this better by making all strings Unicode strings, for now we have to do it like this.
author Martin Geisler <mg@daimi.au.dk>
date Mon, 21 Apr 2008 22:31:59 +0200
parents c8fa9ca3ac9f
children c08da3f0859d
files viff/prss.py viff/runtime.py
diffstat 2 files changed, 7 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/viff/prss.py	Mon Apr 21 17:09:42 2008 +0200
     1.2 +++ b/viff/prss.py	Mon Apr 21 22:31:59 2008 +0200
     1.3 @@ -1,4 +1,4 @@
     1.4 -# Necessary because of the 'å' in 'Damgård': -*- coding: latin-1 -*-
     1.5 +# -*- coding: utf-8 -*-
     1.6  #
     1.7  # Copyright 2007, 2008 VIFF Development Team.
     1.8  #
     1.9 @@ -17,7 +17,7 @@
    1.10  # You should have received a copy of the GNU Lesser General Public
    1.11  # License along with VIFF. If not, see <http://www.gnu.org/licenses/>.
    1.12  
    1.13 -"""Methods for pseudo-random secret sharing.
    1.14 +u"""Methods for pseudo-random secret sharing.
    1.15  
    1.16  Normal Shamir sharing (see the L{shamir} module) requires secure
    1.17  channels between the players for distributing shares. With
    1.18 @@ -36,7 +36,7 @@
    1.19  
    1.20  The code is based on the paper "Share Conversion, Pseudorandom
    1.21  Secret-Sharing and Applications to Secure Computation" by Ronald
    1.22 -Cramer, Ivan Damgård, and Yuval Ishai in Proc. of TCC 2005, LNCS 3378.
    1.23 +Cramer, Ivan Damgård, and Yuval Ishai in Proc. of TCC 2005, LNCS 3378.
    1.24  U{Download <http://www.cs.technion.ac.il/~yuvali/pubs/CDI05.ps>}.
    1.25  """
    1.26  
     2.1 --- a/viff/runtime.py	Mon Apr 21 17:09:42 2008 +0200
     2.2 +++ b/viff/runtime.py	Mon Apr 21 22:31:59 2008 +0200
     2.3 @@ -1,4 +1,5 @@
     2.4 -# Necessary because of the 'å' in 'Damgård': -*- coding: latin-1 -*-
     2.5 +# -*- coding: utf-8 -*-
     2.6 +#
     2.7  # Copyright 2007, 2008 VIFF Development Team.
     2.8  #
     2.9  # This file is part of VIFF, the Virtual Ideal Functionality Framework.
    2.10 @@ -864,13 +865,13 @@
    2.11  
    2.12      @increment_pc
    2.13      def prss_share(self, inputters, field, element=None):
    2.14 -        """Creates pseudo-random secret sharings.
    2.15 +        u"""Creates pseudo-random secret sharings.
    2.16  
    2.17          This protocol creates a secret sharing for each player in the
    2.18          subset of players specified in C{inputters}. The protocol uses the
    2.19          pseudo-random secret sharing technique described in the paper "Share
    2.20          Conversion, Pseudorandom Secret-Sharing and Applications to Secure
    2.21 -        Computation" by Ronald Cramer, Ivan Damgård, and Yuval Ishai in Proc.
    2.22 +        Computation" by Ronald Cramer, Ivan Damgård, and Yuval Ishai in Proc.
    2.23          of TCC 2005, LNCS 3378.
    2.24          U{Download <http://www.cs.technion.ac.il/~yuvali/pubs/CDI05.ps>}.
    2.25