Fixed exception: 'TypeError: argument must be string or read-only buffer, not bytearray'
This commit is contained in:
parent
ab589175f3
commit
c1a5abc6a9
|
@ -207,7 +207,7 @@ class HexLoader:
|
|||
if SCP_DEBUG:
|
||||
print(binascii.hexlify(paddedData))
|
||||
cipher = AES.new(self.scp_enc_key, AES.MODE_CBC, self.scp_enc_iv)
|
||||
encryptedData = cipher.encrypt(paddedData)
|
||||
encryptedData = cipher.encrypt(bytes(paddedData))
|
||||
self.scp_enc_iv = encryptedData[-16:]
|
||||
if SCP_DEBUG:
|
||||
print(binascii.hexlify(encryptedData))
|
||||
|
|
Loading…
Reference in New Issue