Editing Keystone
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
=== File Structure === | |||
== File Structure == | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 15: | Line 5: | ||
! Offset !! Size !! Description | ! Offset !! Size !! Description | ||
|- | |- | ||
| 0x0 || 0x8 || | | 0x0 || 0x8 || magic "keystone" | ||
|- | |- | ||
| 0x8 || 0x2 || Type (always 2) | | 0x8 || 0x2 || Type (always 2) | ||
Line 21: | Line 11: | ||
| 0xA || 0x2 || Version (always 1) | | 0xA || 0x2 || Version (always 1) | ||
|- | |- | ||
| 0xC || 0x14 || | | 0xC || 0x14 || 00 Filler | ||
|- | |- | ||
| 0x20 || 0x10 || IV for encrypted key | | 0x20 || 0x10 || IV for encrypted key | ||
Line 30: | Line 20: | ||
|- | |- | ||
|} | |} | ||
The first step is to check the HMAC of the file. The process is to use the HMAC key from the [[Keys#PFS_Secret_Keys]] page to check the HMAC at position 0x40 in the file. If it is correct, it proceeds to use another key to decrypt the value at 0x30 using the value at 0x20 as the IV. | The first step is to check the HMAC of the file. The process is to use the HMAC key from the [[Keys#PFS_Secret_Keys]] page to check the HMAC at position 0x40 in the file. If it is correct, it proceeds to use another key to decrypt the value at 0x30 using the value at 0x20 as the IV. |