Derive encryption key from PIN
oSumAtrIX <[email protected]> Tue, 14 Jul 2026 03:27:43 -0700
| Newsgroups | dev.linux.lists.cryptsetup |
|---|---|
| Message-ID | <CAK+fmzxEkGy+8X9BAwFKyU415Z4xm2uHfL+yaah-U1Rkw9YDYA@mail.gmail.com> |
Hello, I found this email in the README of the cryptsetup GitLab repository. I am reaching out because I noticed that the PIN used to unseal the decryption key from the TPM is not used to derive the decryption key. The PIN is merely used as a policy, when it can also function in a cryptographic context. The sealed key can further be encrypted with the PIN, so that even a full compromise of the TPM including the sealed key does not reveal the decryption key in cleartext. According to https://www.sstic.org/media/SSTIC2011/SSTIC-actes/bitlocker/SSTIC2011-Slides-bitlocker-bordes.pdf BitLocker implements a KDF from the TPM PIN, but it seems to be missing in LUKS. Sincerely, Ohan Melkonyan