viff

changeset 1406:19a61a72c2ee

passive: fix inline markup
author Martin Geisler <mg@cs.au.dk>
date Thu, 10 Dec 2009 13:44:25 +0100
parents 1a1ff80f026c
children c2e2cc8d195f
files viff/passive.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/viff/passive.py	Thu Dec 10 13:40:55 2009 +0100
     1.2 +++ b/viff/passive.py	Thu Dec 10 13:44:25 2009 +0100
     1.3 @@ -464,8 +464,7 @@
     1.4          return (b_p, b ^ r_lsb)
     1.5  
     1.6      def powerchain(self, share, max):
     1.7 -        """Returns the list [*share*, *share*^2, *share*^4, ...,
     1.8 -        *share*^(i^max)]."""
     1.9 +        """Returns the list ``[share, share**2, share**4, ..., share**(2**max)]``."""
    1.10          result = [share]
    1.11          for i in range(max):
    1.12              share = share * share
    1.13 @@ -475,7 +474,7 @@
    1.14      @preprocess("prss_powerchains")
    1.15      def prss_powerchain(self, max=7):
    1.16          """Generate a random secret share in GF256 and returns
    1.17 -        [*share*, *share*^2, *share*^4, ..., *share*^(i^max)]."""
    1.18 +        ``[share, share**2, share**4, ..., share**(2**max)]``."""
    1.19          share = self.prss_share_random(GF256)
    1.20          return self.powerchain(share, max)
    1.21