Quantcast

Jump to content

» «
Photo

Encryption flags on modified RPF archive

1 reply to this topic
dexyfex
  • dexyfex

    CodeWalker

  • Members
  • Joined: 04 Mar 2017
  • None

#1

Posted 4 weeks ago

Hi there,

I had some users complaining about my app crashing when working with GTAV RPF archives that were modified by OpenIV. When I investigated the issue, I noticed that OpenIV is changing the encryption flags in the main RPF archive header (i.e bytes # 12 - 15).

As an example, update.rpf in my game files has these bytes 12-15 set to 0x0FEFFFFF (ie. NG encryption) when it's unmodified. But if I edit a file in the archive (eg. make a change to dlclist.xml in the OpenIV editor), afterwards these bytes are set to 0x4E45504F (ie "OPEN").

 

I've added a workaround to my app to handle this case, but I'm still wondering if there's any reason that OpenIV does this? Or are you just using these bytes to indicate it's been edited by OpenIV?


dexyfex
  • dexyfex

    CodeWalker

  • Members
  • Joined: 04 Mar 2017
  • None

#2

Posted 3 weeks ago

So for anyone interested, the short answer is that these "OPEN" bytes are used to indicate that the RPF table of contents (eg all the file names etc) is not encrypted, since OpenIV will not encrypt all that TOC data when the RPF is modified (in original files, it is all encrypted).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users