942 # We XOR t with the four-byte block 16, 24, 32 bytes before the new |
942 # We XOR t with the four-byte block 16, 24, 32 bytes before the new |
943 # expanded key. This becomes the next four bytes in the expanded |
943 # expanded key. This becomes the next four bytes in the expanded |
944 # key. |
944 # key. |
945 for m in range(4): |
945 for m in range(4): |
946 expandedKey[currentSize] = expandedKey[currentSize - size] ^ t[m] |
946 expandedKey[currentSize] = expandedKey[currentSize - size] ^ t[m] |
947 currentSize += 1 # __IGNORE_WARNING_Y113__ |
947 currentSize += 1 # noqa: Y113 |
948 |
948 |
949 return expandedKey |
949 return expandedKey |
950 |
950 |
951 def __addRoundKey(self, state, roundKey): |
951 def __addRoundKey(self, state, roundKey): |
952 """ |
952 """ |