Skip to content

Commit

Permalink
Removed a lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
sfstpala committed Sep 15, 2016
1 parent 42af76b commit 608eabc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pcr/aes.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,9 @@ def mix_column(column):
m = [14, 9, 13, 11]

c = bytearray(i for i in column)
g = lambda a, b: self.galois_multiplication[b][a]

def g(a, b):
return self.galois_multiplication[b][a]

column[0] = (g(c[0], m[0]) ^ g(c[3], m[1]) ^
g(c[2], m[2]) ^ g(c[1], m[3]))
Expand Down

0 comments on commit 608eabc

Please sign in to comment.