mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-24 07:18:09 +00:00
Merge branch 'master' of github.com:trezor/trezor-storage
This commit is contained in:
commit
24df1ca2b7
@ -26,11 +26,11 @@ The format of public entries has remained unchanged, that is:
|
||||
|
||||
Private values are used to store storage-specific information and cannot be directly accessed through the storage interface. Protected entries have the following new format:
|
||||
|
||||
| Data | KEY | APP | LEN | IV | ENCRDATA | TAG |
|
||||
|----------------|-----|-----|-----|----|----------|-----|
|
||||
| Length (bytes) | 1 | 1 | 2 | 12 | LEN - 28 | 16 |
|
||||
| Data | KEY | APP | LEN | IV | TAG | ENCRDATA |
|
||||
|----------------|-----|-----|-----|----|-----|----------|
|
||||
| Length (bytes) | 1 | 1 | 2 | 12 | 16 | LEN - 28 |
|
||||
|
||||
The LEN value thus indicates the total length of IV, ENCRDATA and TAG.
|
||||
The LEN value thus indicates the total length of IV, TAG and ENCRDATA.
|
||||
|
||||
The random salt (32 bits), EDEK (256 bits), ESAK (128 bits) and PVC (64 bits) is stored in a single entry under APP=0, KEY=2:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user