Skip to content

Instantly share code, notes, and snippets.

@HatchiFr
Forked from eXhumer/Tinfoil-New-Index-Info.md
Created October 15, 2020 19:46
Show Gist options
  • Select an option

  • Save HatchiFr/c1ed75c62b0bde55a29a82403e3b3731 to your computer and use it in GitHub Desktop.

Select an option

Save HatchiFr/c1ed75c62b0bde55a29a82403e3b3731 to your computer and use it in GitHub Desktop.

Revisions

  1. @eXhumer eXhumer revised this gist May 11, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Tinfoil-New-Index-Info.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@

    * X = Index Size

    **Notes**
    **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.

  2. @eXhumer eXhumer revised this gist May 11, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Tinfoil-New-Index-Info.md
    Original file line number Diff line number Diff line change
    @@ -11,7 +11,7 @@
    * 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.
    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
  3. @eXhumer eXhumer created this gist May 11, 2020.
    30 changes: 30 additions & 0 deletions Tinfoil-New-Index-Info.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,30 @@
    ## 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 |