From d3da06814dc706d2f1dd207cbdb6e2e0b6584ee3 Mon Sep 17 00:00:00 2001
From: Daniel Micay File data is encrypted with AES-256-XTS and file names with AES-256-CTS. A
unique key is derived using HKDF-SHA512 for each regular file, directory and
symbolic link from the per-profile encryption keys, or the device encryption
- key for non-sensitive data stored outside of profiles. GrapheneOS increases
- the file name padding from 16 bytes to 32 bytes.
The OS derives a password token from the profile's lock method credential using scrypt. This is used as the main input for key derivation.