Activation File

From PS4 Developer wiki
Revision as of 20:08, 11 December 2017 by Idc (talk | contribs) (Created page with "== File Structure == An act.dat file is made up of 1 to 21 sequential activation structures. The file is truncated to valid activation structures, so its size will be a mult...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

File Structure

An act.dat file is made up of 1 to 21 sequential activation structures.

The file is truncated to valid activation structures, so its size will be a multiple of 512.

Activation Structure

Fields are big-endian.

Name Offset Size Example Remark
Signature 0x000 4 41 43 54 00 ('ACT\0')
Version 0x004 2 00 00 00 01 1 (current)
Type 0x006 2 00 00 00 02 2 or 3
PSN Account ID 0x008 8 AB CD EF 01 02 34 78 91
Start Timestamp 0x010 8 00 00 00 00 52 85 64 00 Start timestamp (unix/epoch)
End Timestamp 0x018 8 7F FF FF FF FF FF FF FF End timestamp (unix/epoch), typically INT64_MAX
Unknown 0x020 64 -
OpenPsId SHA256 Hash 0x060 32 - sha256(sceKernelGetOpenPsIdForSystem())
Unknown 0x080 32 - Found to match exactly for different users and consoles. Maybe system version SHA256 hash?
Unknown 0x0A0 16 - Match exactly to data found in RIF data at 0x260 of same size (KDS RIF only)
Unknown 0x0B0 16 - Used to decrypt RIF secret data (KDS RIF only)
Unknown 0x0C0 64 -
RSA Signature 0x100 256 - Verified using same public key as RIF type 0