samsung-firmware-magic icon indicating copy to clipboard operation
samsung-firmware-magic copied to clipboard

error

Open Zibri opened this issue 1 year ago • 1 comments

file: Samsung_SSD_850_EVO_EMT02B6Q_Win.iso

$ python3 ~/samsung-magic.py <DSRD.enc >DSRD.xml
Traceback (most recent call last):
  File "/home/zibri/samsung-magic.py", line 51, in <module>
    aes = AES.new(key, AES.MODE_ECB)
  File "/home/zibri/.local/lib/python3.10/site-packages/Crypto/Cipher/AES.py", line 95, in new
    return AESCipher(key, *args, **kwargs)
  File "/home/zibri/.local/lib/python3.10/site-packages/Crypto/Cipher/AES.py", line 59, in __init__
    blockalgo.BlockAlgo.__init__(self, _AES, key, *args, **kwargs)
  File "/home/zibri/.local/lib/python3.10/site-packages/Crypto/Cipher/blockalgo.py", line 141, in __init__
    self._cipher = factory.new(key, *args, **kwargs)
SystemError: PY_SSIZE_T_CLEAN macro must be defined for '#' formats

Zibri avatar Jan 12 '24 08:01 Zibri

i think the error came because of pycrypto python module.

pl uninstall pycrypto module and install pycryptodome module by pip install pycryptodome and verify it solved or not

yssreddy1961 avatar Jan 21 '24 10:01 yssreddy1961