diff options
author | joe <joe@jerkface.net> | 2017-11-29 16:56:13 -0500 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-11-29 16:56:13 -0500 |
commit | c604eeb6046c27fefc6eefbf389f21c989a55929 (patch) | |
tree | 1934f8fb61ba61e86eb64f38171f64d866f50025 /src/Network/Tox.hs | |
parent | b116e11ef79e1b3f290e3c6994bfe52dd9ab27e5 (diff) |
Disabled curve 25519 backport for newer cryptonite library.
Diffstat (limited to 'src/Network/Tox.hs')
-rw-r--r-- | src/Network/Tox.hs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/Network/Tox.hs b/src/Network/Tox.hs index aa95df81..b3c4cedc 100644 --- a/src/Network/Tox.hs +++ b/src/Network/Tox.hs | |||
@@ -1,3 +1,4 @@ | |||
1 | {-# LANGUAGE CPP #-} | ||
1 | {-# LANGUAGE DeriveDataTypeable #-} | 2 | {-# LANGUAGE DeriveDataTypeable #-} |
2 | {-# LANGUAGE DeriveFoldable #-} | 3 | {-# LANGUAGE DeriveFoldable #-} |
3 | {-# LANGUAGE DeriveFunctor #-} | 4 | {-# LANGUAGE DeriveFunctor #-} |
@@ -25,9 +26,14 @@ import Control.Monad.Fix | |||
25 | import qualified Crypto.Cipher.ChaChaPoly1305 as Symmetric | 26 | import qualified Crypto.Cipher.ChaChaPoly1305 as Symmetric |
26 | import qualified Crypto.Cipher.Salsa as Salsa | 27 | import qualified Crypto.Cipher.Salsa as Salsa |
27 | import qualified Crypto.Cipher.XSalsa as XSalsa | 28 | import qualified Crypto.Cipher.XSalsa as XSalsa |
28 | import Crypto.ECC.Class | ||
29 | import qualified Crypto.Error as Cryptonite | 29 | import qualified Crypto.Error as Cryptonite |
30 | #ifdef CRYPTONITE_BACKPORT | ||
31 | import Crypto.ECC.Class | ||
30 | import Crypto.Error.Types | 32 | import Crypto.Error.Types |
33 | #else | ||
34 | import Crypto.ECC | ||
35 | import Crypto.Error | ||
36 | #endif | ||
31 | import qualified Crypto.MAC.Poly1305 as Poly1305 | 37 | import qualified Crypto.MAC.Poly1305 as Poly1305 |
32 | import Crypto.PubKey.Curve25519 | 38 | import Crypto.PubKey.Curve25519 |
33 | import Crypto.PubKey.ECC.Types | 39 | import Crypto.PubKey.ECC.Types |