Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ciphers/mibs.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
shuffle2 = [1, 7, 0, 2, 5, 6, 3, 4]
shuffle2_inv = [2, 0, 3, 6, 7, 4, 5, 1]

# Copy of the left side pass through the round function
# Copy the left side state variable to the temporary variable which pass through the rounnd function
for i in range(32):
mibs.apply_mov(s[i], t[i])

Expand Down Expand Up @@ -53,7 +53,7 @@
mibs.apply_xor(y6, y2, y2)
mibs.apply_xor(y5, y1, y1)

# XOR of output of round functiond and right side of input
# XOR of output of round function and right side of input
for nibble in range(8):
for bit in range(4):
mibs.apply_xor(y[shuffle2_inv[nibble]][bit], s[4 * nibble + bit + 32], s[4 * nibble + bit + 32])
Expand Down