o-gs / dji-firmware-tools

Tools for handling firmwares of DJI products, with focus on quadcopters.
GNU General Public License v3.0
1.45k stars 405 forks source link

Signed image file head signature has unexpected size #292

Open AntonKukoba1 opened 1 year ago

AntonKukoba1 commented 1 year ago

Mavic Pro 3 firmwares contain 0802 module firmware which is PRAK-UFIE encrypted. But pkghead.signature_size is 384 bytes, i.e. it's RSA-3072. Thus I get:

Signed image file head signature has unexpected size

Is there any key which I could try to use to unpack 0802 module?

milenovic commented 6 months ago

The signature verification issue can be bypassed by not specifying the PRAK key, adding the -f option to force decrypt, and using -k UFIE-2022-08.