mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-05-25 11:22:25 +00:00
Verify integrity of decrypted slots and display a dialog on error
This commit is contained in:
parent
1ae9364c5e
commit
7269cc2b6a
6 changed files with 74 additions and 9 deletions
14
doc/db.md
14
doc/db.md
|
@ -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.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue