Skip to content

Instantly share code, notes, and snippets.

@eXhumer
Last active April 5, 2024 18:59
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save eXhumer/97cf2258db7fd1074dc1c9d06409cd4b to your computer and use it in GitHub Desktop.
Save eXhumer/97cf2258db7fd1074dc1c9d06409cd4b to your computer and use it in GitHub Desktop.
New Tinfoil Index Information

New Tinfoil Index Information

Offset Size Description
0x0 0x7 Tinfoil Index Magic "TINFOIL"
0x7 0x1 Index Type Information (1)
0x8 0x100 Session Key (PKCS#1 OAEP encrypted randomly generated AES Key used to encrypt index) (2)
0x108 0x8 Unencrypted Index Size
0x110 X Index Data
  • X = Index Size

Notes
1 -> It includes both the compression status and encryption status which is bitwise OR'ed together into a single value. Info about both can be found below.
2 -> Must be null'ed for Unencrypted Index.

Encryption Status

Encryption Status Value
Encrypted Index 0xF0
Unencrypted Index 0x00

Compression Status

Compression Status Value
ZStandard Compressed Index 0x0D
ZLib Compressed Index 0x0E
Uncompressed Index 0x00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment