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 wrap: on
line diff
--- a/apps/aes.py	Wed Oct 28 20:23:26 2009 +0100
+++ b/apps/aes.py	Wed Oct 28 20:24:18 2009 +0100
@@ -122,6 +122,7 @@
 def preprocess(rt):
     start = time.time()
     program_desc = {}
+    online_phase = 2
 
     if options.active:
         if options.exponentiation is False:
@@ -139,7 +140,7 @@
             pcs = [(2, 1 + i, 2 + 3 * j)
                    for i in range(10 * options.count)
                    for j in range(140)] + \
-                  [(3, 18, k) + (121,) * i + (4 + 6 * j, 1 + 3 * l)
+                  [(3, 18, k) + (101,) * i + (3 + 5 * j, 1 + 3 * l)
                    for k in range(1, options.count + 1)
                    for i in range(10)
                    for j in range(20)
@@ -150,9 +151,10 @@
                    for i in range(10)
                    for j in js]
         program_desc[("generate_triples", (GF256,))] = pcs
+        online_phase = 3
 
     if options.exponentiation == 4:
-        pcs = [(3, 18, k) + (121,) * i + (1 + j * 6,)
+        pcs = [(online_phase, 18, k) + (101,) * i + (1 + j * 5,)
                for k in range(1, options.count + 1)
                for i in range(10)
                for j in range(20)]