From 5fe50787fc1f8edec8a7cc7899741633f6c9c53f Mon Sep 17 00:00:00 2001 From: Simeon Simeonov Date: Fri, 27 Apr 2018 08:37:17 +0200 Subject: Improve README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1cf6d21..e33c964 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ Operation: - produce a hash digest (H): H = SHA_256(N + P + R (if the length of P < L)) -- encrypt (E): E = AES_256_CFB_ENCRYPT(H + N + P + R (if the length of P < L), K) +- encrypt (E): E = AES_256_CFB_ENCRYPT(H + N + P + R (if the length of P < L), K, IV=S) - B = mpes1:BASE64_ENCODE(S + E) @@ -192,7 +192,7 @@ Operation: - derive the key (K): K = SHA_256(S + M) -- decrypt the rest of B (D): D = AES_256_CFB_DECRYPT(B[16 :], K) +- decrypt the rest of B (D): D = AES_256_CFB_DECRYPT(B[16 :], K, IV=S) - extract the first 16 bytes for the hash digest (H): H = D[0 : 15] -- cgit v1.3