viff

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 diff
     1.1 --- a/viff/aes.py	Tue Sep 29 12:57:20 2009 +0200
     1.2 +++ b/viff/aes.py	Tue Sep 29 14:19:43 2009 +0200
     1.3 @@ -367,6 +367,8 @@
     1.4          (possibly shared as elements of GF256)."""
     1.5  
     1.6          start = time.time()
     1.7 +        self.runtime.increment_pc()
     1.8 +        self.runtime.fork_pc()
     1.9  
    1.10          assert len(cleartext) == 4 * self.n_b, "Wrong length of cleartext."
    1.11          assert len(key) == 4 * self.n_k, "Wrong length of key."
    1.12 @@ -470,4 +472,5 @@
    1.13          else:
    1.14              round(None, state, 1)
    1.15  
    1.16 +        self.runtime.unfork_pc()
    1.17          return result