zamaudio / ptformat

Free software file format parser for Avid ProTools sessions
GNU Lesser General Public License v2.1
72 stars 18 forks source link

Fix a wrong assumption in the xor code #3

Closed jonjonarnearne closed 7 years ago

jonjonarnearne commented 7 years ago

For reasons unknown, it was assumed that the xor key for PT10 -> PT12 would only be 128 bytes long. This assumption was wrong. I've encountered a ptx file that needed a 256 byte key to be correctly unxored.

This commit fixes the code so big ptx files can be correctly unxored.

zamaudio commented 7 years ago

If this is indeed true, we may have cracked all the encryption so far... I have only seen issues with some ptx files as you say. Thank you very much for helping with this!

zamaudio commented 7 years ago

Accepted in 3837aa5, thanks!