Expand description
Reader for RFF (“Resource File Format”) archives used by Blood.
Layout (all little endian):
- header, 32 bytes: magic
RFF\x1a, u16 version, u16 pad, u32 dictionary offset, u32 entry count, 16 bytes padding. - dictionary:
countentries of 48 bytes, XOR-obfuscated for versions >= 0x300. - entries flagged
FLAG_ENCRYPTEDhave their first 256 bytes XOR-obfuscated.
Structs§
Constants§
Functions§
- crypt
- XOR obfuscation used for file payloads and v0x301 dictionaries:
byte
iis XORed with(key + i) >> 1. - crypt_
v300 🔒 - Dictionary obfuscation of v0x300 archives: byte
iXOR((key + i) & 0xff) >> 1. - cstr 🔒
- invalid 🔒