src/eric7/Utilities/crypto/py3AES.py

branch
eric7
changeset 10180
3a595df36c9a
parent 9653
e67609152c5e
child 10433
328f3ec4b77a
equal deleted inserted replaced
10179:c2125fcab4b8 10180:3a595df36c9a
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 """

eric ide

mercurial