changeset 1257:1754fd1e0d9f

Fork program counter in AES encryption.
author Marcel Keller <mkeller@cs.au.dk>
date Tue, 29 Sep 2009 14:19:43 +0200
parents 3e1043e38221
children bd8cf1987411
files viff/aes.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/viff/aes.py	Tue Sep 29 12:57:20 2009 +0200
+++ b/viff/aes.py	Tue Sep 29 14:19:43 2009 +0200
@@ -367,6 +367,8 @@
         (possibly shared as elements of GF256)."""
 
         start = time.time()
+        self.runtime.increment_pc()
+        self.runtime.fork_pc()
 
         assert len(cleartext) == 4 * self.n_b, "Wrong length of cleartext."
         assert len(key) == 4 * self.n_k, "Wrong length of key."
@@ -470,4 +472,5 @@
         else:
             round(None, state, 1)
 
+        self.runtime.unfork_pc()
         return result