From f5d30f208d63eeb1f5dd13b7cffc58d555d07898 Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Sun, 16 Feb 2020 14:52:31 +0100
Subject: [PATCH] RFC13: add aes256 key derivation instructions

---
 ...013_Duniter_Encrypted_Wallet_Import_Format.md | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/rfc/0013_Duniter_Encrypted_Wallet_Import_Format.md b/rfc/0013_Duniter_Encrypted_Wallet_Import_Format.md
index bf8936d..2d64dcf 100644
--- a/rfc/0013_Duniter_Encrypted_Wallet_Import_Format.md
+++ b/rfc/0013_Duniter_Encrypted_Wallet_Import_Format.md
@@ -45,6 +45,14 @@ This base64 string encodes a sequence of bytes whose structure is defined below.
 
 Symmetric encryption algorithm : aes256
 
+aes256 key : scrypt of user passphrase with the following parameters:
+Seed generated from scrypt with the following parameters:
+password: passphrase
+salt: sha256("dewif" ++ passphrase)
+N : 4096
+r: 16
+p: 1
+
 Encrypted datas :
 
 | seed(32 bytes) | public key(32bytes) |
@@ -76,6 +84,14 @@ DUWIF base 64 string (with zeroing aes key):
 
 Symmetric encryption algorithm : aes256
 
+aes256 key : scrypt of user passphrase with the following parameters:
+Seed generated from scrypt with the following parameters:
+password: passphrase
+salt: sha256("dewif" ++ passphrase)
+N : 4096
+r: 16
+p: 1
+
 Encrypted datas :
 
 | seed1(32 bytes) | public key1(32bytes) | seed2(32 bytes) | public key2(32bytes) |
-- 
GitLab