diff --git a/ciphers/mibs.py b/ciphers/mibs.py index ea51f58..99bc4c3 100644 --- a/ciphers/mibs.py +++ b/ciphers/mibs.py @@ -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]) @@ -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])