viff

changeset 1364:f441d4776bcc

apps/aes: Adapted program counters.
author Marcel Keller <mkeller@cs.au.dk>
date Wed, 28 Oct 2009 20:24:18 +0100
parents 73a40d45008f
children 04a696700b3f
files apps/aes.py
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line diff
     1.1 --- a/apps/aes.py	Wed Oct 28 20:23:26 2009 +0100
     1.2 +++ b/apps/aes.py	Wed Oct 28 20:24:18 2009 +0100
     1.3 @@ -122,6 +122,7 @@
     1.4  def preprocess(rt):
     1.5      start = time.time()
     1.6      program_desc = {}
     1.7 +    online_phase = 2
     1.8  
     1.9      if options.active:
    1.10          if options.exponentiation is False:
    1.11 @@ -139,7 +140,7 @@
    1.12              pcs = [(2, 1 + i, 2 + 3 * j)
    1.13                     for i in range(10 * options.count)
    1.14                     for j in range(140)] + \
    1.15 -                  [(3, 18, k) + (121,) * i + (4 + 6 * j, 1 + 3 * l)
    1.16 +                  [(3, 18, k) + (101,) * i + (3 + 5 * j, 1 + 3 * l)
    1.17                     for k in range(1, options.count + 1)
    1.18                     for i in range(10)
    1.19                     for j in range(20)
    1.20 @@ -150,9 +151,10 @@
    1.21                     for i in range(10)
    1.22                     for j in js]
    1.23          program_desc[("generate_triples", (GF256,))] = pcs
    1.24 +        online_phase = 3
    1.25  
    1.26      if options.exponentiation == 4:
    1.27 -        pcs = [(3, 18, k) + (121,) * i + (1 + j * 6,)
    1.28 +        pcs = [(online_phase, 18, k) + (101,) * i + (1 + j * 5,)
    1.29                 for k in range(1, options.count + 1)
    1.30                 for i in range(10)
    1.31                 for j in range(20)]