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 wrap: on
line diff
--- a/viff/passive.py	Thu Dec 10 13:40:55 2009 +0100
+++ b/viff/passive.py	Thu Dec 10 13:44:25 2009 +0100
@@ -464,8 +464,7 @@
         return (b_p, b ^ r_lsb)
 
     def powerchain(self, share, max):
-        """Returns the list [*share*, *share*^2, *share*^4, ...,
-        *share*^(i^max)]."""
+        """Returns the list ``[share, share**2, share**4, ..., share**(2**max)]``."""
         result = [share]
         for i in range(max):
             share = share * share
@@ -475,7 +474,7 @@
     @preprocess("prss_powerchains")
     def prss_powerchain(self, max=7):
         """Generate a random secret share in GF256 and returns
-        [*share*, *share*^2, *share*^4, ..., *share*^(i^max)]."""
+        ``[share, share**2, share**4, ..., share**(2**max)]``."""
         share = self.prss_share_random(GF256)
         return self.powerchain(share, max)