mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-06-04 05:40:21 +00:00
Update docs to reflect the key derivation function changes
This commit is contained in:
parent
911b2fab78
commit
2712b4af28
1 changed files with 8 additions and 7 deletions
15
doc/db.md
15
doc/db.md
|
@ -81,14 +81,15 @@ This slot type contains no additional data.
|
||||||
##### Password
|
##### Password
|
||||||
|
|
||||||
With this slot type the key used for the master key encryption is derived from a
|
With this slot type the key used for the master key encryption is derived from a
|
||||||
user-provided password using PBKDF2 with SHA1 (should be changed to SHA256
|
user-provided password. The key derivation function is scrypt. The parameters
|
||||||
before initial release) as the underlying PRF. The parameters used for PBKDF2
|
used for scrypt are stored as additional data.
|
||||||
are stored as additional data.
|
|
||||||
|
|
||||||
| Length | Contents |
|
| Length | Contents |
|
||||||
|:-------|:--------------------------------|
|
|:-------|:-------------|
|
||||||
| `8` | `uint64_t` Number of iterations |
|
| `4` | `uint32_t` N |
|
||||||
| `32` | Salt |
|
| `4` | `uint32_t` r |
|
||||||
|
| `4` | `uint32_t` p |
|
||||||
|
| `32` | Salt |
|
||||||
|
|
||||||
##### Fingerprint
|
##### Fingerprint
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue