Skip to content

Commit

Permalink
pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
huettenhain committed Nov 28, 2023
1 parent 50131e1 commit a4eb0a3
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions refinery/units/crypto/cipher/sosemanuk.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ def __init__(self, key: bytearray, nonce: bytearray):
logb = bytearray(0x100)
x = 1
for i in range(0xFF):
expb[i] = x
x <<= 1
if x > 0xFF:
x ^= 0x1A9
expb[i] = x
x <<= 1
if x > 0xFF:
x ^= 0x1A9
expb[0xFF] = 0
assert set(expb) == set(range(0x100))
for i in range(0x100):
Expand Down Expand Up @@ -2217,7 +2217,6 @@ def __iter__(self):
yield from self.generate_block()



class sosemanuk(StreamCipherUnit):

def __init__(
Expand Down

0 comments on commit a4eb0a3

Please sign in to comment.