Verify integrity of decrypted slots and display a dialog on error

This commit is contained in:
Alexander Bakker 2017-08-18 22:12:45 +02:00
parent 1ae9364c5e
commit 7269cc2b6a
6 changed files with 74 additions and 9 deletions

View file

@ -54,9 +54,17 @@ ID can be one of:
#### Slots
This section contains a list of slots. All slots contain the master key
encrypted with raw AES. The key that is used for encryption depends on the slot
type.
This section contains a SHA-256 hash of the master key and a list of slots. The
hash is used to verify the integrity of a decrypted slot. Note that this is just
for convenience, not security.
| Length | Contents |
|:-------|:--------------------------|
| `32` | `uint8_t` Master Key Hash |
| `?` | Slots |
All slots contain the master key encrypted with raw AES. The key that is used for
encryption depends on the slot type.
A slot has the following structure.