viff

changeset 1352:f19dce86dc4d

Orlandi:Fixed documentation bugs.
author Janus Dam Nielsen <janus.nielsen@alexandra.dk>
date Tue, 27 Oct 2009 21:03:02 +0100
parents 46ffe8878fbf
children 3f9b8ebb7de6
files viff/orlandi.py
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line diff
     1.1 --- a/viff/orlandi.py	Tue Oct 27 20:42:45 2009 +0100
     1.2 +++ b/viff/orlandi.py	Tue Oct 27 21:03:02 2009 +0100
     1.3 @@ -223,7 +223,7 @@
     1.4          Every partyi broadcasts a share pair ``(x_i', rho_x,i')``.
     1.5  
     1.6          The parties compute the sums ``x'``, ``rho_x'`` and check
     1.7 -        ``Com_ck(x',rho_x' = C_x``.
     1.8 +        ``Com_ck(x',rho_x') = C_x``.
     1.9  
    1.10          If yes, return ``x = x'``, else else return :const:`None`.
    1.11          """
    1.12 @@ -415,7 +415,7 @@
    1.13          trusted dealer. Then we denote the following protocol but
    1.14          ``[x] = Shift(P_i, x, [r])``.
    1.15  
    1.16 -        1. ``r = OpenTo(P_i, [r]``
    1.17 +        1. ``r = OpenTo(P_i, [r])``
    1.18  
    1.19          2. ``P_i broadcasts Delta = r - x``
    1.20  
    1.21 @@ -830,10 +830,10 @@
    1.22  
    1.23          def step45(Cs, alphas, gammas, alpha_randomness,
    1.24                     As, Bs, ai, bi, ci, r, s, t, dijs):
    1.25 -            """4) Everyone computes:
    1.26 -                  ``A = PRODUCT_i A_i``
    1.27 -                  ``B = PRODUCT_i B_i``
    1.28 -                  ``C = PRODUCT_i C_i``
    1.29 +            """4) Everyone computes::
    1.30 +                  A = PRODUCT_i A_i
    1.31 +                  B = PRODUCT_i B_i
    1.32 +                  C = PRODUCT_i C_i
    1.33  
    1.34                 5) Every party ``P_i`` outputs shares ``[a_i] = (a_i, r_i, A)``,
    1.35                    ``[b_i] = (b_i, s_i, B)``, and ``[c_i] = (c_i, t_i, C)``.