summaryrefslogtreecommitdiff
path: root/src/Network/Tox/Crypto
diff options
context:
space:
mode:
authorJoe Crayne <joe@jerkface.net>2018-11-01 21:51:00 -0400
committerJoe Crayne <joe@jerkface.net>2018-11-02 00:21:52 -0400
commit1b3b665cb8413ed519fab1fa560716736676fa59 (patch)
tree413491b8429dc3986a576dea037956342ca5ef2d /src/Network/Tox/Crypto
parentb9b1a68f1a440f36b5f3b7a7acdd3d0e9a09a2a2 (diff)
Comments and debug prints.
Diffstat (limited to 'src/Network/Tox/Crypto')
-rw-r--r--src/Network/Tox/Crypto/Transport.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Network/Tox/Crypto/Transport.hs b/src/Network/Tox/Crypto/Transport.hs
index 9220fd1e..2a0633f0 100644
--- a/src/Network/Tox/Crypto/Transport.hs
+++ b/src/Network/Tox/Crypto/Transport.hs
@@ -154,8 +154,9 @@ data HandshakeData = HandshakeData
154 -- This prevents a replay attack where a new cookie is inserted into 154 -- This prevents a replay attack where a new cookie is inserted into
155 -- an old valid handshake packet 155 -- an old valid handshake packet
156 , otherCookie :: Cookie Encrypted 156 , otherCookie :: Cookie Encrypted
157 -- ^ Other Cookie (used by the repient to respond to the handshake packet) 157 -- ^ Other Cookie (used by the recipient to respond to the handshake packet)
158 } 158 }
159 deriving (Eq,Ord,Show)
159 160
160instance Sized HandshakeData where 161instance Sized HandshakeData where
161 size = contramap baseNonce size 162 size = contramap baseNonce size