From 2712b4af28ffc5c51c604baccd7dd02ea16976a7 Mon Sep 17 00:00:00 2001 From: Alexander Bakker Date: Mon, 7 Aug 2017 22:39:43 +0200 Subject: [PATCH] Update docs to reflect the key derivation function changes --- doc/db.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/doc/db.md b/doc/db.md index 102db1fd..3d44156b 100644 --- a/doc/db.md +++ b/doc/db.md @@ -81,14 +81,15 @@ This slot type contains no additional data. ##### Password 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 -before initial release) as the underlying PRF. The parameters used for PBKDF2 -are stored as additional data. +user-provided password. The key derivation function is scrypt. The parameters +used for scrypt are stored as additional data. -| Length | Contents | -|:-------|:--------------------------------| -| `8` | `uint64_t` Number of iterations | -| `32` | Salt | +| Length | Contents | +|:-------|:-------------| +| `4` | `uint32_t` N | +| `4` | `uint32_t` r | +| `4` | `uint32_t` p | +| `32` | Salt | ##### Fingerprint