Open luke-jr opened 2 years ago
Ran into the same issue and made a quick-and-dirty workaround using Wine. That means it will only work on architectures that support Wine but I guess that's better than nothing (or installing Windows).
Create a file called 'encrypt' in the root of the repository with the following contents:
#!/bin/bash
wine encrypt.exe "$@"
Save it and make it executable (chmod +x encrypt
)
Patch bkutils/unpackager.py line 46 to say this:
os.system("./encrypt "+destfile+" 510fb093 a3cbeadc 5993a17e c7adeb03 10000")
Unpackaging should now work.
In case you are still looking for the source, this is probably it: https://github.com/ghsecuritylab/tysdk_for_bk7231/tree/master/toolchain/encrypt_crc
Where does encrypt.exe come from? Trying to decrypt a firmware on ppc64 Linux...