diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Network/Tox/Crypto/Transport.hs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Network/Tox/Crypto/Transport.hs b/src/Network/Tox/Crypto/Transport.hs index 851de5d9..40ca8b11 100644 --- a/src/Network/Tox/Crypto/Transport.hs +++ b/src/Network/Tox/Crypto/Transport.hs | |||
@@ -75,6 +75,17 @@ data CryptoMessage -- First byte indicates data | |||
75 | -- --> Handshake CookieAddress | 75 | -- --> Handshake CookieAddress |
76 | -- <-- Handshake CookieAddress | 76 | -- <-- Handshake CookieAddress |
77 | 77 | ||
78 | -- cookie request packet (145 bytes) | ||
79 | -- | ||
80 | -- [uint8_t 24] | ||
81 | -- [Sender's DHT Public key (32 bytes)] | ||
82 | -- [Random nonce (24 bytes)] | ||
83 | -- [Encrypted message containing: | ||
84 | -- [Sender's real public key (32 bytes)] | ||
85 | -- [padding (32 bytes)] | ||
86 | -- [uint64_t echo id (must be sent back untouched in cookie response)] | ||
87 | -- ] | ||
88 | |||
78 | -- Handshake packet: | 89 | -- Handshake packet: |
79 | -- [uint8_t 26] (0x1a) | 90 | -- [uint8_t 26] (0x1a) |
80 | -- [Cookie] | 91 | -- [Cookie] |