summaryrefslogtreecommitdiff
path: root/src/Crypto/Tox.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Crypto/Tox.hs')
-rw-r--r--src/Crypto/Tox.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Crypto/Tox.hs b/src/Crypto/Tox.hs
index 0df06054..6660fc13 100644
--- a/src/Crypto/Tox.hs
+++ b/src/Crypto/Tox.hs
@@ -93,7 +93,7 @@ instance Data Auth where
93 -- Well, this is a little wonky... XXX 93 -- Well, this is a little wonky... XXX
94 gunfold k z c = k (z (Auth . Poly1305.Auth . (BA.convert :: ByteString -> Bytes))) 94 gunfold k z c = k (z (Auth . Poly1305.Auth . (BA.convert :: ByteString -> Bytes)))
95 toConstr _ = con_Auth 95 toConstr _ = con_Auth
96 dataTypeOf _ = mkDataType "ToxCrypto" [con_Auth] 96 dataTypeOf _ = mkDataType "Crypto.Tox" [con_Auth]
97con_Auth :: Constr 97con_Auth :: Constr
98con_Auth = mkConstr (dataTypeOf (Auth (error "con_Auth"))) "Auth" [] Prefix 98con_Auth = mkConstr (dataTypeOf (Auth (error "con_Auth"))) "Auth" [] Prefix
99instance Serialize Auth where 99instance Serialize Auth where
@@ -340,6 +340,8 @@ newtype SymmetricKey = SymmetricKey ByteString
340data TransportCrypto = TransportCrypto 340data TransportCrypto = TransportCrypto
341 { transportSecret :: SecretKey 341 { transportSecret :: SecretKey
342 , transportPublic :: PublicKey 342 , transportPublic :: PublicKey
343 , onionAliasSecret :: SecretKey
344 , onionAliasPublic :: PublicKey
343 , transportSymmetric :: STM SymmetricKey 345 , transportSymmetric :: STM SymmetricKey
344 , transportNewNonce :: STM Nonce24 346 , transportNewNonce :: STM Nonce24
345 } 347 }