Skip to content
Snippets Groups Projects
Commit 6a5ef578 authored by Keith Millette's avatar Keith Millette
Browse files

Fix code blocks

parent 2af32f7e
No related branches found
No related tags found
No related merge requests found
...@@ -82,11 +82,12 @@ hoped that this glossary will help you understand the pseudo code. ...@@ -82,11 +82,12 @@ hoped that this glossary will help you understand the pseudo code.
* Encrypt(key, payload): Encrypt and then MAC: * Encrypt(key, payload): Encrypt and then MAC:
MAC(key, E(key, payload)) MAC(key, E(key, payload))
* Decrypt(key, payload): MAC then Decrypt: * Decrypt(key, payload): MAC then Decrypt:
```
if MAC(key, payload) { // If MAC is valid... if MAC(key, payload) { // If MAC is valid...
D(key, payload) D(key, payload)
} }
```
### High level Auth protocol description ### High level Auth protocol description
![handshake ladder diagram](@site/static/img/auth_protocol.png) ![handshake ladder diagram](@site/static/img/auth_protocol.png)
...@@ -386,11 +387,12 @@ makes use of a stream cipher and MAC: ...@@ -386,11 +387,12 @@ makes use of a stream cipher and MAC:
* Encrypt(key, payload): Encrypt and then MAC: * Encrypt(key, payload): Encrypt and then MAC:
MAC(key, E(key, payload)) MAC(key, E(key, payload))
* Decrypt(key, payload): MAC then Decrypt: * Decrypt(key, payload): MAC then Decrypt:
```
if MAC(key, payload) { // If MAC is valid... if MAC(key, payload) { // If MAC is valid...
D(key, payload) D(key, payload)
} }
```
In the future we'd like to replace this with an AEAD. The Encrypt In the future we'd like to replace this with an AEAD. The Encrypt
also sets the message fingerprint field of the cMix message. Please also sets the message fingerprint field of the cMix message. Please
see our [cMix design document](cmix.md) for more detailed information see our [cMix design document](cmix.md) for more detailed information
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment