diff options
| author | Simeon Simeonov | 2018-04-27 08:37:17 +0200 |
|---|---|---|
| committer | Simeon Simeonov | 2018-04-27 08:37:17 +0200 |
| commit | 5fe50787fc1f8edec8a7cc7899741633f6c9c53f (patch) | |
| tree | 11872661318da487143d751897601fe8f3f0025e /README.md | |
| parent | 7f2064ed526db2e54b3ebde04e58beaffbb397ed (diff) | |
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -161,7 +161,7 @@ Operation: | |||
| 161 | 161 | ||
| 162 | - produce a hash digest (H): H = SHA_256(N + P + R (if the length of P < L)) | 162 | - produce a hash digest (H): H = SHA_256(N + P + R (if the length of P < L)) |
| 163 | 163 | ||
| 164 | - encrypt (E): E = AES_256_CFB_ENCRYPT(H + N + P + R (if the length of P < L), K) | 164 | - encrypt (E): E = AES_256_CFB_ENCRYPT(H + N + P + R (if the length of P < L), K, IV=S) |
| 165 | 165 | ||
| 166 | - B = mpes1:BASE64_ENCODE(S + E) | 166 | - B = mpes1:BASE64_ENCODE(S + E) |
| 167 | 167 | ||
| @@ -192,7 +192,7 @@ Operation: | |||
| 192 | 192 | ||
| 193 | - derive the key (K): K = SHA_256(S + M) | 193 | - derive the key (K): K = SHA_256(S + M) |
| 194 | 194 | ||
| 195 | - decrypt the rest of B (D): D = AES_256_CFB_DECRYPT(B[16 :], K) | 195 | - decrypt the rest of B (D): D = AES_256_CFB_DECRYPT(B[16 :], K, IV=S) |
| 196 | 196 | ||
| 197 | - extract the first 16 bytes for the hash digest (H): H = D[0 : 15] | 197 | - extract the first 16 bytes for the hash digest (H): H = D[0 : 15] |
| 198 | 198 | ||
